2014-06-14 01:46:34 +02:00
|
|
|
# $NetBSD: Makefile,v 1.137 2014/06/13 23:46:34 ryoon Exp $
|
2004-04-20 01:25:27 +02:00
|
|
|
|
2012-03-16 22:09:55 +01:00
|
|
|
DISTNAME= # empty
|
2009-11-29 04:06:42 +01:00
|
|
|
PKGNAME= thunderbird-${TB_VER}
|
2014-06-14 01:46:34 +02:00
|
|
|
TB_VER= 24.6.0
|
2013-09-27 15:44:49 +02:00
|
|
|
#LIGHTNINGVER= 1.9
|
2009-11-29 13:00:42 +01:00
|
|
|
CATEGORIES= mail
|
2013-11-12 21:50:51 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
|
|
|
|
DISTFILES= thunderbird-${TB_VER}.source.tar.bz2
|
2013-09-27 15:44:49 +02:00
|
|
|
#DISTFILES+= lightning-${LIGHTNINGVER}.source.tar.bz2
|
|
|
|
#SITES.lightning-${LIGHTNINGVER}.source.tar.bz2= ${MASTER_SITE_MOZILLA:=calendar/lightning/releases/${LIGHTNINGVER}/source/}
|
|
|
|
#EXTRACT_DIR.lightning-${LIGHTNINGVER}.source.tar.bz2= ${WRKSRC}/lightning
|
2005-04-02 16:48:35 +02:00
|
|
|
|
2013-02-01 23:21:05 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2009-11-29 04:06:42 +01:00
|
|
|
HOMEPAGE= http://www.mozillamessaging.com/en-US/thunderbird/
|
|
|
|
COMMENT= Organize, secure and customize your mail
|
2004-04-20 01:25:27 +02:00
|
|
|
|
2010-07-12 18:49:21 +02:00
|
|
|
USE_TOOLS+= unzip pax
|
2013-11-12 21:50:51 +01:00
|
|
|
WRKSRC= ${WRKDIR}/comm-esr24
|
2009-11-29 04:06:42 +01:00
|
|
|
MOZILLA_DIR= mozilla/
|
2012-02-21 06:07:21 +01:00
|
|
|
PLIST_SRC+= ${PLIST_SRC_DFLT}
|
2007-08-15 18:02:41 +02:00
|
|
|
|
2011-08-19 16:39:09 +02:00
|
|
|
CONFIG_GUESS_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.guess
|
|
|
|
CONFIG_SUB_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.sub
|
2009-11-29 04:06:42 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-application=mail
|
2013-11-12 21:50:51 +01:00
|
|
|
# Disable WebRTC support for Thunderbird unconditionally.
|
|
|
|
CONFIGURE_ARGS+= --disable-webrtc
|
2009-11-29 04:06:42 +01:00
|
|
|
|
|
|
|
ALL_ENV+= MOZILLA_PKG_NAME=thunderbird
|
|
|
|
|
2012-03-10 12:42:38 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2012-01-06 09:40:01 +01:00
|
|
|
|
2011-11-13 17:59:58 +01:00
|
|
|
#SUBST_CLASSES+= ext-compat
|
|
|
|
#SUBST_STAGE.ext-compat= pre-configure
|
|
|
|
#SUBST_MESSAGE.ext-compat= Fixing extension compatibility
|
|
|
|
#SUBST_FILES.ext-compat= mailnews/extensions/enigmail/package/install.rdf
|
|
|
|
#SUBST_FILES.ext-compat+= calendar/*/install.rdf
|
|
|
|
#SUBST_FILES.ext-compat+= calendar/*/*/install.rdf
|
|
|
|
#SUBST_SED.ext-compat= -e 's,\(<em:maxVersion>\).*<,\19.0<,g'
|
2011-08-19 16:39:09 +02:00
|
|
|
|
2013-11-12 21:50:51 +01:00
|
|
|
SUBST_CLASSES+= sys-dic
|
|
|
|
SUBST_STAGE.sys-dic= pre-configure
|
|
|
|
SUBST_MESSAGE.sys-dic= Reference to system hunspell dictionaries.
|
|
|
|
SUBST_FILES.sys-dic= mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp
|
|
|
|
SUBST_VARS.sys-dic= PREFIX
|
|
|
|
|
|
|
|
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/header.py
|
|
|
|
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/typelib.py
|
|
|
|
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/xpidl.py
|
|
|
|
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/xpt.py
|
|
|
|
|
2013-09-27 15:44:49 +02:00
|
|
|
#post-extract:
|
|
|
|
# cd ${WRKSRC} && ${RM} -r calendar
|
|
|
|
# ${CP} -r ${EXTRACT_DIR.lightning-${LIGHTNINGVER}.source.tar.bz2}/comm-beta/calendar ${WRKSRC}
|
|
|
|
# ${RM} -r ${EXTRACT_DIR.lightning-${LIGHTNINGVER}.source.tar.bz2}
|
2012-06-12 21:37:48 +02:00
|
|
|
|
2009-11-29 04:06:42 +01:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/mozilla && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/mozilla/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/mozilla/nsprpub && ${SETENV} ${CONFIGURE_ENV} autoconf
|
2011-08-19 16:39:09 +02:00
|
|
|
cd ${WRKSRC}/ldap/sdks/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
|
2013-11-12 21:50:51 +01:00
|
|
|
# XXX Makefile is broken? When libxul is provided from devel/xulrunner,
|
|
|
|
# XXX please remove this.
|
|
|
|
mkdir ${WRKSRC}/mozilla/js/src/.deps
|
2009-11-29 04:06:42 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
# XXX for some reason it doesn't work unless -j is explicitly specified
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
|
|
|
|
|
|
|
|
MOZILLA=thunderbird
|
|
|
|
MOZILLA_NAME=Thunderbird
|
2009-11-29 04:28:04 +01:00
|
|
|
post-build:
|
|
|
|
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
|
2009-11-29 04:06:42 +01:00
|
|
|
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
|
|
|
|
-e 's|@MOZILLA_ICON@|${MOZILLA}.png|g' \
|
|
|
|
< ${FILESDIR}/desktop.in \
|
|
|
|
> ${WRKDIR}/desktop
|
2009-11-29 04:28:04 +01:00
|
|
|
|
2013-10-18 13:41:17 +02:00
|
|
|
INSTALLATION_DIRS+= lib/${MOZILLA}/extensions
|
2009-11-29 04:28:04 +01:00
|
|
|
INSTALLATION_DIRS+= share/applications share/pixmaps
|
|
|
|
post-install:
|
2009-11-29 04:06:42 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/desktop \
|
|
|
|
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
|
2011-08-19 17:07:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/mozilla/dist/thunderbird/chrome/icons/default/default48.png \
|
2009-11-29 04:06:42 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
|
2010-07-12 18:49:21 +02:00
|
|
|
@${STEP_MSG} "Installing bundled thunderbird extensions."
|
|
|
|
rm -rf ${WRKDIR}/extensions
|
|
|
|
${MKDIR} ${WRKDIR}/extensions
|
|
|
|
${RUN} for e in ${XPI_FILES}; do \
|
|
|
|
subdir="`${UNZIP_CMD} -c "$$e" install.rdf | awk '/^ <em:id>/ {sub(".*<em:id>","");sub("</em:id>.*","");print;exit;}'`" && \
|
|
|
|
${MKDIR} "${WRKDIR}/extensions/$$subdir" && \
|
|
|
|
cd "${WRKDIR}/extensions/$$subdir" && \
|
|
|
|
${UNZIP_CMD} -aqo $$e; \
|
|
|
|
done
|
|
|
|
cd ${WRKDIR}/extensions && pax -rw . \
|
|
|
|
${DESTDIR}${PREFIX}/lib/${MOZILLA}/extensions/.
|
|
|
|
rm -rf ${WRKDIR}/extensions
|
2009-11-29 04:06:42 +01:00
|
|
|
|
2013-11-12 21:50:51 +01:00
|
|
|
.include "../../www/firefox24/mozilla-common.mk"
|
2009-11-29 04:06:42 +01:00
|
|
|
.include "options.mk"
|
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2005-09-18 07:04:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|