blob: b21f0edcfb808e54878bce98764c800e97d9460b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
DEPENDS = "xt xi zip-native gtk+ orbit2"
PR = "r1"
EMVER="0.85.0"
IPCVER="1.0.7"
SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/thunderbird-${PV}-source.tar.bz2 \
http://downloads.mozdev.org/enigmail/src/enigmail-${EMVER}.tar.gz \
http://downloads.mozdev.org/enigmail/src/ipc-${IPCVER}.tar.gz \
file://mozconfig \
file://xptcstubs.patch;patch=1 \
file://no-xmb.patch;patch=1 \
file://extensions-hack.patch;patch=1 \
file://mozilla-thunderbird.png file://mozilla-thunderbird.desktop"
S = "${WORKDIR}/mozilla"
FILES_${PN} += "${libdir}/thunderbird-${PV} ${datadir}/idl"
SELECTED_OPTIMIZATION = "-Os -fsigned-char -fno-strict-aliasing"
export MOZ_THUNDERBIRD=1
export CROSS_COMPILE=1
export HOST_LIBIDL_CONFIG="libIDL-config-2"
export CONFIGURE_ARGS="--target=${TARGET_SYS} --host=${BUILD_SYS} --build=${BUILD_SYS} --prefix=${prefix}"
export HOST_CFLAGS="${BUILD_CFLAGS}"
export HOST_CXXFLAGS="${BULID_CXXFLAGS}"
export HOST_LDFLAGS="${BUILD_LDFLAGS}"
export HOST_RANLIB="${BUILD_RANLIB}"
export HOST_AR="${BUILD_AR}"
do_configure() {
cp ${WORKDIR}/mozconfig .mozconfig
for x in ipc enigmail; do
mv ${WORKDIR}/${x} ${WORKDIR}/mozilla/extensions
cd ${WORKDIR}/mozilla/extensions/${x}
makemake
done
cd ${WORKDIR}/mozilla
}
do_compile() {
make -f client.mk build_all
cd ${WORKDIR}/mozilla/extensions/ipc
make
cd ${WORKDIR}/mozilla/extensions/enigmail
make
}
do_install() {
make DESTDIR="${D}" install
cd ${WORKDIR}/mozilla/extensions/ipc
make DESTDIR="${D}" install
cd ${WORKDIR}/mozilla/extensions/enigmail
make DESTDIR="${D}" install
cd ${WORKDIR}/mozilla
install -d ${D}${datadir}/applications
install -d ${D}${datadir}/pixmaps
install -m 0644 ${WORKDIR}/mozilla-thunderbird.desktop ${D}${datadir}/applications/
install -m 0644 ${WORKDIR}/mozilla-thunderbird.png ${D}${datadir}/pixmaps/
# work around requirement for root access on first startup
}
pkg_postinst_thunderbird() {
chmod -R a+w ${libdir}/thunderbird*
}
# Simulate the silly csh makemake script
makemake() {
typeset m topdir
for m in $(find . -name Makefile.in); do
topdir=$(echo "$m" | sed -r 's:[^/]+:..:g')
sed -e "s:@srcdir@:.:g" -e "s:@top_srcdir@:${topdir}:g" \
< ${m} > ${m%.in} || die "sed ${m} failed"
done
}
|