2004-03-30 19:28:41 +02:00
|
|
|
. $stdenv/setup
|
2003-11-07 12:18:47 +01:00
|
|
|
|
2004-09-19 16:13:24 +02:00
|
|
|
preConfigure=preConfigure
|
2004-03-30 19:28:41 +02:00
|
|
|
preConfigure() {
|
|
|
|
cat > .mozconfig <<EOF
|
2004-09-19 16:13:24 +02:00
|
|
|
. \$topsrcdir/browser/config/mozconfig
|
|
|
|
ac_add_options --prefix=$out
|
|
|
|
ac_add_options --enable-optimize
|
2003-11-07 12:18:47 +01:00
|
|
|
ac_add_options --disable-debug
|
|
|
|
ac_add_options --enable-xft
|
2004-09-19 17:24:01 +02:00
|
|
|
#ac_add_options --enable-swg
|
2003-11-07 12:18:47 +01:00
|
|
|
ac_add_options --enable-strip
|
|
|
|
ac_add_options --enable-default-toolkit=gtk2
|
2004-09-19 16:13:24 +02:00
|
|
|
#ac_add_options --disable-shared
|
|
|
|
#ac_add_options --enable-static
|
2004-10-05 21:54:56 +02:00
|
|
|
#ac_add_options --with-system-jpeg
|
|
|
|
#ac_add_options --with-system-png
|
|
|
|
#ac_add_options --with-system-zlib
|
2003-11-07 12:18:47 +01:00
|
|
|
EOF
|
2004-03-30 19:28:41 +02:00
|
|
|
}
|
|
|
|
|
2004-10-05 21:54:56 +02:00
|
|
|
postInstall=postInstall
|
|
|
|
postInstall() {
|
2004-03-30 19:28:41 +02:00
|
|
|
|
2004-10-05 21:54:56 +02:00
|
|
|
# Strip some more stuff
|
|
|
|
strip -S $out/lib/*/* || true
|
|
|
|
|
|
|
|
# We don't need this (do we?)
|
2004-10-17 15:11:44 +02:00
|
|
|
# rm -rf $out/include
|
2004-10-05 21:54:56 +02: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 16:13:24 +02:00
|
|
|
|
2004-10-05 21:54:56 +02:00
|
|
|
# Register extension etc.
|
|
|
|
echo "running firefox -register..."
|
|
|
|
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
2004-09-19 16:13:24 +02:00
|
|
|
|
2004-10-05 21:54:56 +02: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 17:24:01 +02:00
|
|
|
|
2004-10-05 21:54:56 +02:00
|
|
|
genericBuild
|