]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - firefox/firefox
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / firefox / firefox
1 # hdw - linux firefox package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.0
6 # [S] 3-8
7 # [D] firefox-1.0-source.tar.bz2 http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0/source/
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="$prefix/X11R6/lib/pkgconfig"
13
14 pre_install()   {
15         export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1 MOZ_PHOENIX=1
16         export MOZILLA_FIVE_HOME=$prefix/lib/firefox-$ver
17         sed "s,0000000000,hdw-linux -- ${hdw_version}," \
18                 xpfe/global/build.dtd.in > xpfe/global/build.dtd.in.new
19         mv xpfe/global/build.dtd.in.new xpfe/global/build.dtd.in
20                 }
21
22 confopt="$confopt --enable-default-toolkit=gtk2 --with-x --with-system-zlib"
23 confopt="$confopt --with-system-jpeg --with-system-png --with-extensions"
24 confopt="$confopt --with-default-mozilla-five-home=$MOZILLA_FIVE_HOME"
25 confopt="$confopt --with-user-appdir=.firefox"
26 confopt="$confopt --enable-xft --enable-crypto --enable-xinerama"
27 confopt="$confopt --enable-strip --enable-strip-libs --enable-extensions=all"
28 confopt="$confopt --enable-application=browser"
29 confopt="$confopt --enable-optimize='$optimize' --enable-cpp-rtti"
30 confopt="$confopt --enable-single-profile --disable-profilesharing "
31 confopt="$confopt --disable-mailnews --disable-ldap --disable-freetype2"
32 confopt="$confopt --disable-tests --disable-debug --disable-composer"
33 confopt="$confopt --disable-pedantic --disable-logging --disable-accessibility"
34 confopt="$confopt --disable-installer --disable-dtd-debug"
35
36 post_install()  {
37         install -d $prefix/include/firefox-$ver/nss
38         cp -vLf dist/private/nss/*.h dist/public/nss/*.h \
39                 $prefix/include/firefox-$ver/nss
40         ln -sfv firefox-$ver $prefix/lib/firefox
41         ln -sfv firefox-$ver $prefix/include/firefox
42
43         cd $prefix/lib/firefox-$ver
44         LD_LIBRARY_PATH=. ./regxpcom
45         LD_LIBRARY_PATH=. ./regchrome
46         touch `find $PWD -name *.rdf`
47
48         # plugins
49         cd $root/src.$package
50         tar --use-compress-program=gzip -xvf \
51                 $archdir/install_flash_player_7_linux.tar.gz
52         cp install_flash_player_7_linux/{libflashplayer.so,flashplayer.xpt} \
53                 $MOZILLA_FIVE_HOME/plugins
54                 }