freebsd-ports/mail/thunderbird-esr/Makefile

94 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-stable/mail/thunderbird/Makefile,v 1.18 2009/01/02 21:16:20 mezz Exp $
#
PORTNAME= thunderbird
2010-03-19 10:32:29 +01:00
DISTVERSION= 2.0.0.24
CATEGORIES= mail ipv6
2006-11-10 01:51:55 +01:00
MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
MASTER_SITE_SUBDIR= thunderbird/releases/${DISTVERSION}/source
DISTNAME= ${PORTNAME}-${DISTVERSION}-source
MAINTAINER= gecko@FreeBSD.org
COMMENT= Mozilla Thunderbird is standalone mail and news that stands above
2009-12-14 16:38:28 +01:00
CONFLICTS= lightning-0.[0-9]* thunderbird-3*
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_GECKO= gecko
WANT_PERL= yes
MOZ_EXTENSIONS= wallet,spellcheck,xmlextras,webservices,auth,transformiix
MOZ_PROTOCOLS= http,ftp,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
- 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}/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} -m 1 '%{\!pg: %{pthread:' | ${SED
} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
.if (${ARCH}=="sparc64" && ${OSVERSION} < 601101)
IGNORE= core dumps on ${ARCH}, kern.osreldate>=601101 needed
.endif
- 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
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:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/security/manager/ssl/src/Makefile.in
2007-03-19 04:06:16 +01:00
@${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
- 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
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}
pre-install:
@${ECHO_CMD} 'share/applications/${PORTNAME}.desktop' >> ${PLIST}
@${ECHO_CMD} '@dirrmtry share/applications' >> ${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 \
${PORTNAME_ICON}
.include <bsd.port.post.mk>