freebsd-ports/mail/thunderbird-esr/Makefile

91 lines
3.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: mozilla-thunderbird
# Date created: 4 September 2003
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/mail/thunderbird/Makefile,v 1.13 2005/11/24 01:43:41 ahze Exp $
#
PORTNAME= thunderbird
PORTVERSION= 1.0.7
PORTREVISION= 6
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_MOZILLA}
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
MASTER_SITE_SUBDIR= ${PORTNAME}/releases/${PORTVERSION}/source
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= gnome@FreeBSD.org
COMMENT= Mozilla Thunderbird is standalone mail and news that stands above
WANT_GNOME= yes
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
ALL_TARGET= default
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
HAS_CONFIGURE= yes
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
USE_BZIP2= yes
USE_GMAKE= yes
USE_X_PREFIX= yes
MOZ_EXTENSIONS= wallet,spellcheck,xmlextras,webservices
MOZ_PROTOCOLS= http,file,jar,viewsource,res,data
MOZ_GRAPHICS= default,-xbm
MOZ_OPTIONS= --enable-single-profile --disable-profilesharing \
--enable-official-branding
MOZ_EXPORT= MOZ_THUNDERBIRD=1
MOZ_MK_OPTIONS= MOZ_MOZ_THUNDERBIRD=1
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
PORTNAME_ICON= ${PREFIX}/lib/${PORTNAME}/chrome/icons/default/default.xpm
MOZ_PIS_SCRIPTS=moz_pis_S50cleanhome
CONFLICTS= thunderbird*-1.5*
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../../www/mozilla/Makefile.common"
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
.if ${ARCH} == "alpha" && ${OSVERSION} < 500035
IGNORE= core dumps at runtime
.endif # ${ARCH} == "alpha" && ${OSVERSION} < 500035
.if ${PERL_LEVEL} < 500600
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-config_make-jars.pl
.endif # ${PERL_LEVEL} < 500600
post-extract::
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
@${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON}|' \
<${FILESDIR}/${PORTNAME}.desktop.in >${WRKDIR}/${PORTNAME}.desktop
post-patch:
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
@${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
pre-install:
${MKDIR} ${FAKEDIR}/lib/${PORTNAME}/defaults
${CP} -RL ${WRKSRC}/dist/bin/defaults/isp \
${FAKEDIR}/lib/${PORTNAME}/defaults
@cd ${FAKEDIR}/lib/${PORTNAME}/defaults/isp && \
${FIND} -s * -type f -o -type l | \
${SED} -e 's|^|lib/${PORTNAME}/defaults/isp/|' >> ${PLIST} && \
${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm lib/${PORTNAME}/defaults/isp/|' \
>> ${PLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/lib/${PORTNAME}/defaults/isp 2>/dev/null || ${TRUE}" >> ${PLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/lib/${PORTNAME}/defaults 2>/dev/null || ${TRUE}" >> ${PLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/lib/${PORTNAME}/ 2>/dev/null || ${TRUE}" >> ${PLIST}
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
${ECHO_CMD} 'share/applications/${PORTNAME}.desktop' >> ${PLIST}
${ECHO_CMD} "@unexec ${RMDIR} %D/share/applications 2>/dev/null || ${TRUE}" >> ${PLIST}
post-install:
${MKDIR} ${PREFIX}/share/applications
- Repo copy a lot of changes from www/firefox/Makefile. The best part is that before it would install in the strange place like this. ${X11BASE}/lib/thunderbird/include/thunderbird-1.0.6 Now it will install in the correct place like firefox: ${X11BASE}/include/thunderbird Also, get *.pc and idl files install. - Didn't copy following from www/firefox/Makefile: * plugins stuff, because it's known cause the stability problem like crash. * EXTRA_SCRIPTS=${PORTNAME}.rb, thunderbird doesn't need it. - Make portlint happier. - Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'thunderbird' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team.
2005-08-28 10:00:00 +02:00
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/other-licenses/branding/${PORTNAME}/default.xpm \
${PREFIX}/lib/${PORTNAME}/chrome/icons/default/default.xpm
.include <bsd.port.post.mk>