aboutsummaryrefslogtreecommitdiffstats
path: root/mail/thunderbird-esr
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-10-18 05:40:11 +0800
committermarcus <marcus@FreeBSD.org>2004-10-18 05:40:11 +0800
commit62da0e0deeae084f25dbb0dc094c93d77206fce5 (patch)
tree69f9cba2f1f63798fbf83ec1dd97be87e5bc40e9 /mail/thunderbird-esr
parentef68e001187c69ddb6811f7d3df3daed2034f4e6 (diff)
downloadfreebsd-ports-gnome-62da0e0deeae084f25dbb0dc094c93d77206fce5.tar.gz
freebsd-ports-gnome-62da0e0deeae084f25dbb0dc094c93d77206fce5.tar.zst
freebsd-ports-gnome-62da0e0deeae084f25dbb0dc094c93d77206fce5.zip
* Remove a patch that is no longer needed
* Change an instance of Firefox to Thunderbird [1] * Workaround a potential crash with JavaScript pop-ups [2] * Use Xvfb to initialize the extensions datastore as root [2] https://bugzilla.mozilla.org/show_bug.cgi?id=264557 Sbumitted by: Radek Kozlowski <radek@raadradd.com> [1]
Diffstat (limited to 'mail/thunderbird-esr')
-rw-r--r--mail/thunderbird-esr/Makefile11
-rw-r--r--mail/thunderbird-esr/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp12
-rw-r--r--mail/thunderbird-esr/pkg-install.in5
3 files changed, 12 insertions, 16 deletions
diff --git a/mail/thunderbird-esr/Makefile b/mail/thunderbird-esr/Makefile
index d8771737fe86..69d04074fac7 100644
--- a/mail/thunderbird-esr/Makefile
+++ b/mail/thunderbird-esr/Makefile
@@ -7,7 +7,7 @@
PORTNAME= thunderbird
PORTVERSION= 0.8
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= thunderbird/releases/${PORTVERSION}
@@ -21,6 +21,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
mng.1:${PORTSDIR}/graphics/libmng \
nspr4.1:${PORTSDIR}/devel/nspr
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
+RUN_DEPENDS= Xvfb:${X_VFBSERVER_PORT}
USE_X_PREFIX= yes
@@ -49,7 +50,7 @@ OPTIONS= DEBUG "Build a debugging image" off \
LOGGING "Enable additional log messages" off \
OPTIMIZED_CFLAGS "Enable some additional optimizations" off \
XFT "Enable support for anti-aliased fonts" on \
- NEW_ICON "Install the new Firefox branding icon" off
+ NEW_ICON "Install the new Thunderbird branding icon" off
.include <bsd.port.pre.mk>
@@ -120,7 +121,8 @@ post-patch:
${WRKSRC}/js/src/Makefile.in
@${REINPLACE_CMD} -E -e 's|libesd\.so\.[0-9]+|${ESD_LIB}|g' \
${WRKSRC}/widget/src/gtk2/nsSound.cpp
- @${REINPLACE_CMD} -e '/accessibility.typeaheadfind.enablesound/s/true/false/' \
+ @${REINPLACE_CMD} -e '/accessibility.typeaheadfind.enablesound/s/true/false/ ; \
+ /dom.disable_window_open_feature.toolbar/s/false/true/' \
${WRKSRC}/modules/libpref/src/init/all.js \
${WRKSRC}/extensions/sroaming/resources/content/prefs/all.js \
${WRKSRC}/modules/libpref/src/init/all.js
@@ -128,7 +130,8 @@ post-patch:
${WRKSRC}/configure \
${WRKSRC}/intl/uconv/native/nsNativeUConvService.cpp \
${WRKSRC}/xpcom/io/nsNativeCharsetUtils.cpp
- @${SED} -e 's|%%MOZDIR%%|${LOCAL_PREFIX}/lib/${PORTNAME}-${PORTVERSION}|g' \
+ @${SED} -e 's|%%MOZDIR%%|${LOCAL_PREFIX}/lib/${PORTNAME}-${PORTVERSION}|g ; \
+ s|%%X11BASE%%|${X11BASE}|g' \
< ${MASTERDIR}/pkg-install.in > ${PKGINSTALL}
@${SED} -e 's|%%MOZDIR%%|${LOCAL_PREFIX}/lib/${PORTNAME}-${PORTVERSION}|g' \
< ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
diff --git a/mail/thunderbird-esr/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp b/mail/thunderbird-esr/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp
deleted file mode 100644
index bc141062f7c6..000000000000
--- a/mail/thunderbird-esr/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
---- gfx/src/gtk/nsFontMetricsXft.cpp.orig Wed Mar 17 02:08:01 2004
-+++ gfx/src/gtk/nsFontMetricsXft.cpp Wed Mar 17 02:08:15 2004
-@@ -65,7 +65,8 @@
-
- #include <gdk/gdkx.h>
- #include <freetype/tttables.h>
--#include <freetype/freetype.h>
-+#include <ft2build.h>
-+#include FT_FREETYPE_H
-
- #define FORCE_PR_LOG
- #include "prlog.h"
diff --git a/mail/thunderbird-esr/pkg-install.in b/mail/thunderbird-esr/pkg-install.in
index 048ff1d62da3..415295540dc1 100644
--- a/mail/thunderbird-esr/pkg-install.in
+++ b/mail/thunderbird-esr/pkg-install.in
@@ -15,6 +15,7 @@ PATH=/bin:/usr/bin
MOZDIR=%%MOZDIR%%
REGXPCOM=${MOZDIR}/regxpcom
REGCHROME=${MOZDIR}/regchrome
+THUNDERBIRD=${MOZDIR}/thunderbird-bin
echo "===> Building Chrome's registry..."
rm -rf ${MOZDIR}/chrome/overlayinfo
@@ -27,4 +28,8 @@ cd ${MOZDIR} || exit 1
./run-mozilla.sh ${REGXPCOM} || true
./run-mozilla.sh ${REGCHROME} || true
+# Instantiate the extension space as root.
+su - root -c "%%X11BASE%%/bin/xinit %%MOZDIR%%/run-mozilla.sh ${THUNDERBIRD} -install-global-extension -- %%X11BASE%%/bin/Xvfb :1001" > /dev/null 2>&1
+su - root -c "%%X11BASE%%/bin/xinit %%MOZDIR%%/run-mozilla.sh ${THUNDERBIRD} -install-global-theme -- %%X11BASE%%/bin/Xvfb :1001" > /dev/null 2>&1
+
exit 0