]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/x11/mozilla/mozilla
fixed unrealircd package
[hdw-linux/hdw-linux.git] / packages / x11 / mozilla / mozilla
1 # hdw - linux mozilla package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.8a1
6 # [S] 3-8
7 # [D] mozilla-source-1.8a1.tar.bz2 http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.8a1/src/
8 # [D] install_flash_player_7_linux.tar.gz http://fpdownload.macromedia.com/get/shockwave/flash/english/linux/7.0r25/
9
10 optimize="`echo $hdw_cflags | awk '{ print $1 }'`"
11 export PKG_CONFIG_PATH="/usr/X11R6/lib/pkgconfig"
12
13 pre_install()   {
14         export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1
15         export MOZILLA_FIVE_HOME=$root/usr/lib/mozilla-${ver}
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 --with-default-mozilla-five-home=$prefix/lib/mozilla-$ver"
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 --enable-xft --enable-crypto --enable-xinerama"
25 confopt="$confopt --disable-tests --disable-debug --disable-dtd-debug"
26 confopt="$confopt --disable-pedantic --disable-logging --disable-accessibility"
27 confopt="$confopt --enable-strip --enable-strip-libs --enable-extensions=all"
28 confopt="$confopt --enable-jsd --enable-mathml --enable-module=psm"
29 confopt="$confopt --enable-optimize='$optimize'"
30
31 post_install()  {
32         install -d $prefix/include/mozilla-$ver/nss
33         cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
34                 $prefix/include/mozilla-$ver/nss
35         ln -nsf mozilla-$ver $prefix/include/mozilla
36         ln -nsf mozilla-$ver $prefix/lib/mozilla
37
38         cd $MOZILLA_FIVE_HOME
39         LD_LIBRARY_PATH=. ./regxpcom
40         LD_LIBRARY_PATH=. ./regchrome
41         
42         cat <<- EOT > $root/etc/profile.d/mozilla
43 export MOZILLA_FIVE_HOME=/usr/lib/mozilla-${ver}
44 EOT
45
46         for i in lib{nspr4,plc4,plds4,nss3,smime3,softokn3,ssl3}.so \
47                                                         libsoftokn3.chk; do
48                 ln -sf $prefix/lib/mozilla-$ver/$i $prefix/lib/$i
49         done
50
51         # plugins
52         cd $root/src.$package
53         tar --use-compress-program=gzip -xvf \
54                 $archdir/install_flash_player_7_linux.tar.gz
55         cp install_flash_player_7_linux/{libflashplayer.so,flashplayer.xpt} \
56                 $MOZILLA_FIVE_HOME/plugins
57                 }