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
|
|
|
|
ac_add_options --enable-swg
|
|
|
|
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
|