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
|
2003-11-07 11:18:47 +00:00
|
|
|
EOF
|
2004-03-30 18:28:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
makeFlags="-f client.mk build"
|
|
|
|
|
|
|
|
genericBuild
|
2004-09-19 15:13:24 +01:00
|
|
|
|
|
|
|
# Strip some more stuff
|
|
|
|
strip -S $out/lib/*/* || true
|
|
|
|
|
|
|
|
# We don't need this (do we?)
|
|
|
|
rm -rf $out/include
|
2004-09-19 16:24:01 +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 .
|