3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/firefox/builder.sh
Eelco Dolstra 7070dc0986 * Allow Firefox to be started again when there already is a running
instance.

svn path=/nixpkgs/trunk/; revision=1464
2004-09-19 15:24:01 +00:00

35 lines
833 B
Bash

. $stdenv/setup
preConfigure=preConfigure
preConfigure() {
cat > .mozconfig <<EOF
. \$topsrcdir/browser/config/mozconfig
ac_add_options --prefix=$out
ac_add_options --enable-optimize
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
#ac_add_options --disable-shared
#ac_add_options --enable-static
EOF
}
makeFlags="-f client.mk build"
genericBuild
# Strip some more stuff
strip -S $out/lib/*/* || true
# We don't need this (do we?)
rm -rf $out/include
# 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 .