summaryrefslogtreecommitdiffstats
path: root/mail/thunderbird/Makefile
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-12-29 01:39:32 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-12-29 01:39:32 +0800
commit589477efe47c16a83665a3f16710091e61ac8603 (patch)
tree7fd072e2dde09dd65544b8a63da1bfb1f36410dd /mail/thunderbird/Makefile
parentc120d69ae983fcdcf34cf4d992c4fb0b51fc0b05 (diff)
downloadmarcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.gz
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.bz2
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.lz
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.xz
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.zst
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.zip
Add "--with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA}" to fix other
applications in the runtime. Some applications required to have set MOZILLA_FIVE_HOME or/and LD_LIBRARY_PATH to make it works in the runtime. Now, it's no longer need to set these variables, which this flag takes care of it. The MOZILLA_FIVE_HOME still works with this flag if someone need to use different one. I have learned about this flag from RPM, Debian, Gentoo ebuild and other packages. Bump the PORTREVISION. It has been tested with py-gnome-extras, ruby-gtkmozembed, epiphany, development version of deluge, miro and yelp in both build and run time with Firefox. marcus wants me to put in MC first before I put these in FreeBSD ports tree, because of ports tree still isn't complete unfreeze. I personal doubt that it will causing any problem, so if it does then please report to me. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10009 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail/thunderbird/Makefile')
-rw-r--r--mail/thunderbird/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile
new file mode 100644
index 000000000..c312a75a2
--- /dev/null
+++ b/mail/thunderbird/Makefile
@@ -0,0 +1,94 @@
+# New ports collection makefile for: mozilla-thunderbird
+# Date created: 4 September 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= thunderbird
+DISTVERSION= 2.0.0.9
+PORTREVISION= 1
+CATEGORIES= mail ipv6
+MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
+MASTER_SITE_SUBDIR= thunderbird/releases/${DISTVERSION}/source
+DISTNAME= ${PORTNAME}-${DISTVERSION}-source
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Mozilla Thunderbird is standalone mail and news that stands above
+
+CONFLICTS= lightning-0.[0-9]*
+WANT_GNOME= yes
+ALL_TARGET= default
+CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
+HAS_CONFIGURE= yes
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GCC= 3.4+
+WANT_PERL= yes
+
+MOZ_EXTENSIONS= wallet,spellcheck,xmlextras,webservices
+MOZ_PROTOCOLS= http,file,jar,viewsource,res,data
+MOZ_GRAPHICS= default,-xbm
+MOZ_OPTIONS= --with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA} \
+ --enable-single-profile --disable-profilesharing \
+ --enable-application=mail --enable-official-branding
+MOZ_MK_OPTIONS= MOZ_MOZ_THUNDERBIRD=1
+MOZ_EXPORT= MOZ_THUNDERBIRD=1
+
+PORTNAME_ICON= ${PREFIX}/lib/${PORTNAME}/icons/default.xpm
+
+SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}-${PORTVERSION}/defaults/pref/${PORTNAME}.js
+MOZ_PIS_SCRIPTS=moz_pis_S50cleanhome
+
+OPTIONS=
+
+.include <bsd.port.pre.mk>
+
+GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
+
+.if (${ARCH}=="sparc64" && ${OSVERSION} < 601101)
+IGNORE= core dumps on ${ARCH}, kern.osreldate>=601101 needed
+.endif
+
+post-extract::
+ @${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON}|' \
+ <${FILESDIR}/${PORTNAME}.desktop.in >${WRKDIR}/${PORTNAME}.desktop
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
+ ${WRKSRC}/security/manager/ssl/src/Makefile.in
+ @${REINPLACE_CMD} -e 's|--without-nss||' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS:C/-pthread/${GECKO_PTHREAD_LIBS}/}|' \
+ ${WRKSRC}/storage/build/Makefile.in
+ @${REINPLACE_CMD} -e 's|/usr/local/netscape|${LOCALBASE}|g' \
+ -e 's|/usr/local/lib/netscape|${LOCALBASE}/lib|g' \
+ ${WRKSRC}/xpcom/*/SpecialSystemDirectory.cpp
+ @${FIND} ${WRKSRC} -name all.js | ${XARGS} ${REINPLACE_CMD} -e \
+ '/accessibility.typeaheadfind.enablesound/s/true/false/ ; \
+ /dom.disable_window_open_feature.toolbar/s/false/true/'
+ @${REINPLACE_CMD} -e 's|<iconv.h>|\"${LOCALBASE}/include/iconv.h\"|g' \
+ ${WRKSRC}/configure \
+ ${WRKSRC}/intl/uconv/native/nsNativeUConvService.cpp \
+ ${WRKSRC}/xpcom/io/nsNativeCharsetUtils.cpp
+
+port-pre-install:
+ ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
+ ${FAKEDIR}/bin/thunderbird-config ${FAKEDIR}/bin/thunderbird
+ ${RM} -f ${FAKEDIR}/bin/*.bak
+ ${MKDIR} ${FAKEDIR}/lib/${PORTNAME}/defaults
+ ${CP} -RL ${WRKSRC}/dist/bin/isp \
+ ${FAKEDIR}/lib/${PORTNAME}/defaults
+
+pre-install:
+ @${ECHO_CMD} 'share/applications/${PORTNAME}.desktop' >> ${PLIST}
+ @${ECHO_CMD} '@dirrmtry share/applications' >> ${PLIST}
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/other-licenses/branding/${PORTNAME}/default.xpm \
+ ${PORTNAME_ICON}
+
+.include "${PORTSDIR}/www/mozilla/Makefile.common"
+.include <bsd.port.post.mk>