]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - x11/firefox/firefox
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / x11 / firefox / firefox
1 # hdw - linux firefox package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 0.8
6 # [S] 3-8
7 # [D] firefox-source-0.8.tar.bz2 http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.8/
8 # [D] install_flash_player_7_linux.tar.gz http://fpdownload.macromedia.com/get/shockwave/flash/english/linux/7.0r25/
9
10 srcdir=mozilla
11 optimize="`echo $hdw_cflags | awk '{ print $1 }'`"
12 export PKG_CONFIG_PATH="/usr/X11R6/lib/pkgconfig"
13
14 pre_install()   {
15         export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1 MOZ_PHOENIX=1
16         #sed "s,0000000000,hdw-linux -- ${hdw_version}," \
17         #       xpfe/global/build.dtd.in > xpfe/global/build.dtd.in.new
18         #mv xpfe/global/build.dtd.in.new xpfe/global/build.dtd.in
19                 }
20
21 confopt="$confopt --enable-default-toolkit=gtk2 --with-x --with-system-zlib"
22 confopt="$confopt --with-system-jpeg --with-system-png --with-extensions"
23 confopt="$confopt --enable-xft --enable-crypto --enable-xinerama"
24 confopt="$confopt --disable-tests --disable-debug --disable-dtd-debug"
25 confopt="$confopt --disable-pedantic --disable-logging --disable-accessibility"
26 confopt="$confopt --enable-strip --enable-strip-libs --enable-extensions=all"
27 confopt="$confopt --enable-optimize='$optimize'"
28 confopt="$confopt --disable-mailnews --disable-ldap"
29
30 post_install()  {
31         cd $prefix/lib/mozilla-*
32         export MOZILLA_FIVE_HOME=$PWD
33         LD_LIBRARY_PATH=. ./regxpcom
34         LD_LIBRARY_PATH=. ./regchrome
35         touch `find $PWD -name *.rdf`
36
37         # plugins
38         cd $root/src.$package
39         tar --use-compress-program=gzip -xvf \
40                 $archdir/install_flash_player_7_linux.tar.gz
41         cp install_flash_player_7_linux/{libflashplayer.so,flashplayer.xpt} \
42                 $MOZILLA_FIVE_HOME/plugins
43                 }