]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - thunderbird/thunderbird
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / thunderbird / thunderbird
1 # hdw - linux thunderbird package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.0
6 # [S] 3-8
7 # [D] thunderbird-1.0-source.tar.bz2 http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0/source/
8
9 srcdir=mozilla
10 optimize="`echo $hdw_cflags | awk '{ print $1 }'`"
11 export PKG_CONFIG_PATH="$prefix/X11R6/lib/pkgconfig"
12
13 pre_install()   {
14         export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1 MOZ_THUNDERBIRD=1
15         export MOZILLA_FIVE_HOME=$prefix/lib/thunderbird-$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 --enable-default-toolkit=gtk2 --with-x --with-system-zlib"
22 confopt="$confopt --with-system-jpeg --with-system-png"
23 confopt="$confopt --with-default-mozilla-five-home=$MOZILLA_FIVE_HOME"
24 confopt="$confopt --enable-xft --enable-crypto --enable-xinerama"
25 confopt="$confopt --enable-application=mail --enable-strip --enable-strip-libs"
26 confopt="$confopt --enable-reorder --enable-cpp-rtti --enable-extensions=all"
27 confopt="$confopt --disable-tests --disable-debug --disable-extensions"
28 confopt="$confopt --disable-pedantic --disable-logging --disable-accessibility"
29 confopt="$confopt --disable-freetype2 --disable-installer --disable-mathml"
30 confopt="$confopt --disable-profilesharing --enable-single-profile"
31 confopt="$confopt --disable-oji --disable-plugins --disable-necko-disk-cache"
32 confopt="$confopt --enable-optimize='$optimize'"
33
34 post_install()  {
35         install -d $prefix/include/thunderbird-$ver/nss
36         cp -vLf dist/private/nss/*.h dist/public/nss/*.h \
37                 $prefix/include/thunderbird-$ver/nss
38         ln -sfv thunderbird-$ver $prefix/lib/thunderbird
39         ln -sfv thunderbird-$ver $prefix/include/thunderbird
40
41         cd $prefix/lib/thunderbird-$ver
42         LD_LIBRARY_PATH=. ./regxpcom
43         LD_LIBRARY_PATH=. ./regchrome
44         touch `find $PWD -name *.rdf`
45                 }