]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - x11/thunderbird/thunderbird
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / x11 / thunderbird / thunderbird
1 # hdw - linux thunderbird package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.0.6
6 # [S] 3-8
7 # [D] thunderbird-1.0.6-source.tar.bz2 http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.6/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         # patching app Makefile (still needed?)
20         sed 's/$(destdir)$(bindir)/$(DESTDIR)$(mozappdir)/' \
21                 mail/app/Makefile.in > mail/app/Makefile.in.new
22         mv mail/app/Makefile.in.new mail/app/Makefile.in
23                 }
24
25 confopt="$confopt --enable-default-toolkit=gtk2 --with-x --with-system-zlib"
26 confopt="$confopt --with-system-jpeg --with-system-png"
27 confopt="$confopt --with-default-mozilla-five-home=$MOZILLA_FIVE_HOME"
28 confopt="$confopt --enable-xft --enable-crypto --enable-xinerama"
29 confopt="$confopt --enable-application=mail --enable-strip --enable-strip-libs"
30 confopt="$confopt --enable-reorder --enable-cpp-rtti --enable-extensions=all"
31 confopt="$confopt --disable-tests --disable-debug --disable-extensions"
32 confopt="$confopt --disable-pedantic --disable-logging --disable-accessibility"
33 confopt="$confopt --disable-freetype2 --disable-installer --disable-mathml"
34 confopt="$confopt --disable-profilesharing --enable-single-profile"
35 confopt="$confopt --disable-oji --disable-plugins --disable-necko-disk-cache"
36 confopt="$confopt --enable-optimize='$optimize'"
37
38 post_install()  {
39         install -d $prefix/include/thunderbird-$ver/nss
40         cp -vLf dist/private/nss/*.h dist/public/nss/*.h \
41                 $prefix/include/thunderbird-$ver/nss
42         ln -sfv thunderbird-$ver $prefix/lib/thunderbird
43         ln -sfv thunderbird-$ver $prefix/include/thunderbird
44
45         cd $prefix/lib/thunderbird-$ver
46         LD_LIBRARY_PATH=. ./regxpcom
47         LD_LIBRARY_PATH=. ./regchrome
48         touch `find $PWD -name *.rdf`
49                 }