1 # hdw - linux mozilla package
3 # author: hackbard@hackdaworld.dyndns.org
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/
10 optimize="`echo $hdw_cflags | awk '{ print $1 }'`"
11 export PKG_CONFIG_PATH="/usr/X11R6/lib/pkgconfig"
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
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'"
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
39 LD_LIBRARY_PATH=. ./regxpcom
40 LD_LIBRARY_PATH=. ./regchrome
42 cat <<- EOT > $root/etc/profile.d/mozilla
43 export MOZILLA_FIVE_HOME=/usr/lib/mozilla-${ver}
46 for i in lib{nspr4,plc4,plds4,nss3,smime3,softokn3,ssl3}.so \
48 ln -sf $prefix/lib/mozilla-$ver/$i $prefix/lib/$i
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