blob: 87c19db234439648fcbcc0ceea18c0168d82edf4 (
plain)
1 # Description: email client from the Mozilla project
2 # URL: http://www.mozillamessaging.com/en-US/thunderbird/
3 # Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
4 # Depends on: python,unzip,zip,gtk,alsa-lib,xorg-libxt,libidl,nss,yasm,mesa3d,libjpeg-turbo
5
6 name=thunderbird
7 version=45.5.1
8 release=1
9 source=(http://ftp.mozilla.org/pub/thunderbird/releases/$version/source/$name-$version.source.tar.xz
10 $name.desktop thunderbird-install-dir.patch thunderbird-gcc6.patch)
11
12 build() {
13 cd $name-$version
14 sed -i '/^ftglyph.h/ i freetype/ftfntfmt.h' mozilla/config/system-headers
15 patch -p1 -i $SRC/thunderbird-install-dir.patch
16 patch -p1 -i $SRC/thunderbird-gcc6.patch
17 export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/$name"
18 export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
19 export CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
20
21 cat <<- EOF > .mozconfig
22 mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
23 ac_add_options --prefix=/usr
24 ac_add_options --enable-application=mail
25 ac_add_options --with-system-jpeg
26 ac_add_options --with-system-zlib
27 ac_add_options --with-system-bz2
28 ac_add_options --with-system-mng
29 ac_add_options --with-system-png
30 ac_add_options --with-system-nspr
31 ac_add_options --with-system-nss
32 ac_add_options --enable-system-ffi
33 ac_add_options --enable-system-pixman
34 #ac_add_options --enable-system-sqlite
35 ac_add_options --enable-system-cairo
36 ac_add_options --with-pthreads
37 ac_add_options --enable-optimize="$CFLAGS"
38 ac_add_options --enable-official-branding
39 ac_add_options --enable-shared
40 ac_add_options --enable-single-profile
41 ac_add_options --enable-calendar
42 ac_add_options --enable-pie
43 ac_add_options --disable-gstreamer
44 ac_add_options --disable-tests
45 ac_add_options --disable-mochitest
46 ac_add_options --disable-dbus
47 ac_add_options --disable-debug
48 ac_add_options --disable-installer
49 ac_add_options --disable-updater
50 ac_add_options --disable-profilesharing
51 ac_add_options --disable-crashreporter
52 ac_add_options --disable-necko-wifi
53 ac_add_options --disable-libnotify
54 ac_add_options --disable-pulseaudio
55 ac_add_options --with-distribution-id=nu.crux
56 ac_add_options --disable-gconf
57 ac_add_options --disable-elf-hack
58 EOF
59 make -f client.mk build
60 make -f client.mk DESTDIR=$PKG install
61
62 mkdir -p $PKG/usr/share/pixmaps
63 ln -s /usr/lib/thunderbird/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/thunderbird_default48.png
64 install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
65
66 find $PKG -iname '*README*' -delete
67 rm -r $PKG/usr/{include,lib/thunderbird-devel,share/idl}
68 }
|