0306f3950b
Changelog: new WebExtensions FileLink API to facilitate FileLink add-ons. For the future version Thunderbird 60.5.0: WeTransfer will be included in Thunderbird 60.5.0 and the Dropbox add-on will be compatible with Thunderbird 60.5.0. fixed Decoding problems for messages with less common charsets (cp932, cp936) fixed New messages in the drafts folder (and other special or virtual folders) will no longer be included in the new messages notification
84 lines
3 KiB
Makefile
84 lines
3 KiB
Makefile
# $NetBSD: Makefile,v 1.218 2019/01/05 00:38:22 ryoon Exp $
|
|
|
|
DISTNAME= thunderbird-${TB_VER}.source
|
|
PKGNAME= thunderbird-${TB_VER}
|
|
TB_VER= 60.4.0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.thunderbird.net/en-US/
|
|
COMMENT= Organize, secure and customize your mail
|
|
|
|
USE_TOOLS+= unzip pax
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/.source//}
|
|
MOZILLA_DIR= # empty
|
|
PLIST_SRC+= ${PLIST_SRC_DFLT}
|
|
|
|
CONFIG_GUESS_OVERRIDE+= comm/ldap/sdks/c-sdk/config/autoconf/config.guess
|
|
CONFIG_SUB_OVERRIDE+= comm/ldap/sdks/c-sdk/config/autoconf/config.sub
|
|
|
|
CONFIGURE_ARGS+= --enable-application=comm/mail
|
|
# Disable WebRTC support for Thunderbird unconditionally.
|
|
CONFIGURE_ARGS+= --disable-webrtc
|
|
|
|
MOZILLA_PKG_NAME= thunderbird
|
|
|
|
NOT_PAX_MPROTECT_SAFE+= lib/${MOZILLA_PKG_NAME}/${MOZILLA_PKG_NAME}
|
|
NOT_PAX_MPROTECT_SAFE+= lib/${MOZILLA_PKG_NAME}/${MOZILLA_PKG_NAME}-bin
|
|
|
|
ALL_ENV+= MOZILLA_PKG_NAME=${MOZILLA_PKG_NAME}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
#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'
|
|
|
|
CHECK_WRKREF_SKIP+=lib/${MOZILLA_PKG_NAME}/chrome/toolkit/content/global/buildconfig.html
|
|
|
|
post-extract:
|
|
mv ${WRKSRC}${MOZILLA_DIR}/gfx/ycbcr/yuv_row_arm.s \
|
|
${WRKSRC}${MOZILLA_DIR}/gfx/ycbcr/yuv_row_arm.S
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && mkdir ${OBJDIR}
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
cd ${WRKSRC}${MOZILLA_DIR} && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
cd ${WRKSRC}${MOZILLA_DIR}/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
touch ${WRKSRC}/.mozconfig
|
|
|
|
do-build:
|
|
# XXX for some reason it doesn't work unless -j is explicitly specified
|
|
cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
|
|
|
|
MOZILLA=${MOZILLA_PKG_NAME}
|
|
MOZILLA_NAME=${MOZILLA_PKG_NAME}
|
|
post-build:
|
|
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
|
|
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
|
|
-e 's|@MOZILLA_ICON@|${MOZILLA}.png|g' \
|
|
< ${FILESDIR}/desktop.in \
|
|
> ${WRKDIR}/desktop
|
|
|
|
INSTALLATION_DIRS+= lib/${MOZILLA}/extensions
|
|
INSTALLATION_DIRS+= share/applications share/pixmaps
|
|
post-install:
|
|
${ECHO} '#! /bin/sh' > ${DESTDIR}${PREFIX}/bin/${MOZILLA}
|
|
${ECHO} '${PREFIX}/lib/${MOZILLA}/thunderbird "$$@"' >> \
|
|
${DESTDIR}${PREFIX}/bin/${MOZILLA}
|
|
${CHMOD} 755 ${DESTDIR}${PREFIX}/bin/${MOZILLA}
|
|
${INSTALL_DATA} ${WRKDIR}/desktop \
|
|
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
|
|
${INSTALL_DATA} ${WRKSRC}/${OBJDIR}/dist/thunderbird/chrome/icons/default/default48.png \
|
|
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
|
|
|
|
.include "../../www/firefox60/mozilla-common.mk"
|
|
.include "options.mk"
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|