2004-03-30 18:28:41 +01:00
|
|
|
. $stdenv/setup
|
2003-11-07 11:18:47 +00:00
|
|
|
|
2004-09-19 15:13:24 +01:00
|
|
|
preConfigure=preConfigure
|
2004-03-30 18:28:41 +01:00
|
|
|
preConfigure() {
|
|
|
|
cat > .mozconfig <<EOF
|
2004-09-19 15:13:24 +01:00
|
|
|
. \$topsrcdir/browser/config/mozconfig
|
|
|
|
ac_add_options --prefix=$out
|
|
|
|
ac_add_options --enable-optimize
|
2003-11-07 11:18:47 +00:00
|
|
|
ac_add_options --disable-debug
|
|
|
|
ac_add_options --enable-xft
|
2004-09-19 16:24:01 +01:00
|
|
|
#ac_add_options --enable-swg
|
2003-11-07 11:18:47 +00:00
|
|
|
ac_add_options --enable-strip
|
|
|
|
ac_add_options --enable-default-toolkit=gtk2
|
2004-09-19 15:13:24 +01:00
|
|
|
#ac_add_options --disable-shared
|
|
|
|
#ac_add_options --enable-static
|
2004-10-05 20:54:56 +01:00
|
|
|
#ac_add_options --with-system-jpeg
|
|
|
|
#ac_add_options --with-system-png
|
|
|
|
#ac_add_options --with-system-zlib
|
2003-11-07 11:18:47 +00:00
|
|
|
EOF
|
2004-03-30 18:28:41 +01:00
|
|
|
}
|
|
|
|
|
2004-10-05 20:54:56 +01:00
|
|
|
postInstall=postInstall
|
|
|
|
postInstall() {
|
2004-03-30 18:28:41 +01:00
|
|
|
|
2004-10-05 20:54:56 +01:00
|
|
|
# Strip some more stuff
|
|
|
|
strip -S $out/lib/*/* || true
|
|
|
|
|
|
|
|
# We don't need this (do we?)
|
2004-10-17 14:11:44 +01:00
|
|
|
# rm -rf $out/include
|
2004-10-05 20:54:56 +01:00
|
|
|
|
|
|
|
# This fixes starting Firefox when there already is a running
|
|
|
|
# instance. The `firefox' wrapper script actually expects to be
|
|
|
|
# in the same directory as `run-mozilla.sh', apparently.
|
|
|
|
cd $out/bin
|
|
|
|
mv firefox ../lib/firefox-*/
|
|
|
|
ln -s ../lib/firefox-*/firefox .
|
2004-09-19 15:13:24 +01:00
|
|
|
|
2004-10-05 20:54:56 +01:00
|
|
|
# Register extension etc.
|
|
|
|
echo "running firefox -register..."
|
|
|
|
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
2004-09-19 15:13:24 +01:00
|
|
|
|
2004-10-05 20:54:56 +01:00
|
|
|
echo "running regxpcom..."
|
|
|
|
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./regxpcom) || false
|
|
|
|
|
|
|
|
echo "running regchrome..."
|
|
|
|
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./regchrome) || false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
makeFlags="-f client.mk build"
|
2004-09-19 16:24:01 +01:00
|
|
|
|
2004-10-05 20:54:56 +01:00
|
|
|
genericBuild
|