summaryrefslogtreecommitdiff
path: root/mozilla
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-08-30 12:15:44 +0000
committerPhil Blundell <philb@gnu.org>2004-08-30 12:15:44 +0000
commite38795b4b7e5b372857a47a716efffe14ff7b2e8 (patch)
treea51bd687230d16c9d3af7930ce737b6854cde136 /mozilla
parentc2b81453ccc54e9a287f43b0501b5afdb9594fc9 (diff)
apply patch from Tim Dodge to add enigmail support
BKrev: 41331a70QIR9dqnvGkF-C6hu3lW8Kw
Diffstat (limited to 'mozilla')
-rw-r--r--mozilla/thunderbird-0.7.3/mozconfig49
-rw-r--r--mozilla/thunderbird_0.7.3.oe77
2 files changed, 126 insertions, 0 deletions
diff --git a/mozilla/thunderbird-0.7.3/mozconfig b/mozilla/thunderbird-0.7.3/mozconfig
index e69de29bb2..b48cb7398d 100644
--- a/mozilla/thunderbird-0.7.3/mozconfig
+++ b/mozilla/thunderbird-0.7.3/mozconfig
@@ -0,0 +1,49 @@
+ac_add_options --with-pthreads
+ac_add_options --disable-freetype2
+ac_add_options --disable-xprint
+ac_add_options --enable-crypto
+ac_add_options --disable-jsd
+ac_add_options --disable-oji
+ac_add_options --disable-accessibility
+ac_add_options --enable-single-profile
+ac_add_options --disable-composer
+ac_add_options --enable-extensions=pref,spellcheck,universalchardet,wallet
+ac_add_options --disable-ldap
+ac_add_options --disable-mathml
+ac_add_options --disable-installer
+ac_add_options --disable-activex
+ac_add_options --disable-activex-scripting
+ac_add_options --disable-tests
+ac_add_options --disable-logging
+ac_add_options --enable-reorder
+ac_add_options --enable-strip
+ac_add_options --enable-elf-dynstr-gc
+ac_add_options --enable-xterm-updates
+ac_add_options --with-default-mozilla-five-home=/usr/lib/thunderbird-0.7.3
+ac_add_options --disable-pedantic
+ac_add_options --disable-profilesharing
+ac_add_options --disable-profilelocking
+ac_add_options --disable-necko-disk-cache
+ac_add_options --enable-necko-small-buffers
+
+# use GTK+-2 widget set with XFT font rendering
+ac_add_options --enable-default-toolkit=gtk2
+ac_add_options --enable-xft
+ac_add_options --disable-freetype2
+
+ac_add_options --with-system-zlib
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-png
+
+# build minimal set of protocol handlers
+ac_add_options --enable-necko-protocols=http,file,res,jar,viewsource
+
+# build minimal set of image decoders
+ac_add_options --enable-image-decoders=png,gif,jpeg
+
+export MOZ_THUNDERBIRD=1
+mk_add_options MOZ_THUNDERBIRD=1
+export BUILD_OFFICIAL=1
+export MOZILLA_OFFICIAL=1
+mk_add_options BUILD_OFFICIAL=1
+mk_add_options MOZILLA_OFFICIAL=1
diff --git a/mozilla/thunderbird_0.7.3.oe b/mozilla/thunderbird_0.7.3.oe
index e69de29bb2..b21f0edcfb 100644
--- a/mozilla/thunderbird_0.7.3.oe
+++ b/mozilla/thunderbird_0.7.3.oe
@@ -0,0 +1,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
+}