Changeset View
Changeset View
Standalone View
Standalone View
mail/thunderbird/Makefile
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org> | # Created by: Joe Marcus Clarke <marcus@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= thunderbird | PORTNAME= thunderbird | ||||
DISTVERSION= 52.9.0 | DISTVERSION= 60.0b10 | ||||
CATEGORIES= mail news net-im ipv6 | CATEGORIES= mail news net-im ipv6 | ||||
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ | MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ | ||||
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build2/source | MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build1/source | ||||
DISTFILES= ${DISTNAME}.source${EXTRACT_SUFX} | DISTNAME= ${PORTNAME}-${PORTVERSION:R} | ||||
DISTFILES= ${DISTNAME}${PORTVERSION:E}.source${EXTRACT_SUFX} | |||||
MAINTAINER= gecko@FreeBSD.org | MAINTAINER= gecko@FreeBSD.org | ||||
COMMENT= Mozilla Thunderbird is standalone mail and news that stands above | COMMENT= Mozilla Thunderbird is standalone mail and news that stands above | ||||
BUILD_DEPENDS= nspr>=4.13.1:devel/nspr \ | BUILD_DEPENDS= nspr>=4.19:devel/nspr \ | ||||
nss>=3.28.6:security/nss \ | nss>=3.36.1:security/nss \ | ||||
libevent>=2.0.21_2:devel/libevent \ | icu>=59.1,1:devel/icu \ | ||||
harfbuzz>=1.4.1:print/harfbuzz \ | libevent>=2.1.8:devel/libevent \ | ||||
graphite2>=1.3.8:graphics/graphite2 \ | harfbuzz>=1.7.6:print/harfbuzz \ | ||||
png>=1.6.25:graphics/png \ | graphite2>=1.3.11:graphics/graphite2 \ | ||||
libvorbis>=1.3.5,3:audio/libvorbis \ | png>=1.6.34:graphics/png \ | ||||
libvorbis>=1.3.6,3:audio/libvorbis \ | |||||
libvpx>=1.5.0:multimedia/libvpx \ | libvpx>=1.5.0:multimedia/libvpx \ | ||||
sqlite3>=3.17.0:databases/sqlite3 \ | sqlite3>=3.22.0:databases/sqlite3 \ | ||||
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ | ||||
v4l_compat>0:multimedia/v4l_compat \ | v4l_compat>0:multimedia/v4l_compat \ | ||||
autoconf-2.13:devel/autoconf213 \ | autoconf-2.13:devel/autoconf213 \ | ||||
yasm:devel/yasm \ | yasm:devel/yasm \ | ||||
zip:archivers/zip | zip:archivers/zip | ||||
# soundtouch>=1.9.0:audio/soundtouch \ | # soundtouch>=1.9.0:audio/soundtouch \ | ||||
LIB_DEPENDS= libv4l2.so:multimedia/libv4l | |||||
SSP_UNSAFE= yes | SSP_UNSAFE= yes | ||||
USE_GECKO= gecko | USE_GECKO= gecko | ||||
USE_MOZILLA= -soundtouch | USE_MOZILLA= -cairo -soundtouch | ||||
USE_GL= gl | USE_GL= gl | ||||
USES= tar:xz | USES= tar:xz | ||||
MOZ_OPTIONS= --enable-application=mail --enable-official-branding | MOZ_OPTIONS= --enable-application=comm/mail --enable-official-branding | ||||
MOZ_MK_OPTIONS= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 | MOZ_MK_OPTIONS= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 | ||||
MOZ_EXPORT= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 | MOZ_EXPORT= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 | ||||
MOZ_PKGCONFIG_FILES= | MOZ_PKGCONFIG_FILES= | ||||
PORTNAME_ICON= ${MOZILLA}.png | PORTNAME_ICON= ${MOZILLA}.png | ||||
PORTNAME_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png | PORTNAME_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png | ||||
SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}/defaults/pref/${PORTNAME}.js | SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}/defaults/pref/${PORTNAME}.js | ||||
MOZ_PIS_SCRIPTS=moz_pis_S50cleanhome | MOZ_PIS_SCRIPTS=moz_pis_S50cleanhome | ||||
OPTIONS_DEFINE= LIGHTNING RUST | OPTIONS_DEFINE= LIGHTNING | ||||
OPTIONS_SINGLE= TOOLKIT | OPTIONS_DEFAULT=CANBERRA LIGHTNING | ||||
OPTIONS_SINGLE_TOOLKIT= GTK2 GTK3 | OPTIONS_EXCLUDE=BUNDLED_CAIRO | ||||
OPTIONS_DEFAULT=BUNDLED_CAIRO CANBERRA GTK3 LIGHTNING | |||||
.include "${.CURDIR}/../../www/firefox/Makefile.options" | .include "${.CURDIR}/../../www/firefox/Makefile.options" | ||||
# Inconsistent fallback order (libcubeb vs. audio_device) | |||||
SNDIO_PREVENTS= ${OPTIONS_MULTI_AUDIO:NSNDIO} | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
MOZSRC:= ${WRKSRC}/mozilla | |||||
.if ${PORT_OPTIONS:MLIGHTNING} | .if ${PORT_OPTIONS:MLIGHTNING} | ||||
MOZ_OPTIONS+= --enable-calendar | MOZ_OPTIONS+= --enable-calendar | ||||
.else | .else | ||||
MOZ_OPTIONS+= --disable-calendar | MOZ_OPTIONS+= --disable-calendar | ||||
.endif | .endif | ||||
post-extract: | post-extract: | ||||
@${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON}|;s|@MOZILLA@|${MOZILLA}|' \ | @${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON}|;s|@MOZILLA@|${MOZILLA}|' \ | ||||
<${FILESDIR}/thunderbird.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop | <${FILESDIR}/thunderbird.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ | @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ | ||||
${WRKSRC}/mail/app/nsMailApp.cpp | ${WRKSRC}/comm/mail/app/nsMailApp.cpp | ||||
pre-configure: | pre-configure: | ||||
(cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf-2.13) | (cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf-2.13) | ||||
(cd ${MOZSRC} && ${LOCALBASE}/bin/autoconf-2.13) | (cd ${MOZSRC} && ${LOCALBASE}/bin/autoconf-2.13) | ||||
(cd ${MOZSRC}/js/src/ && ${LOCALBASE}/bin/autoconf-2.13) | (cd ${MOZSRC}/js/src/ && ${LOCALBASE}/bin/autoconf-2.13) | ||||
port-pre-install: | port-pre-install: | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/defaults | ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/defaults | ||||
post-install: | post-install: | ||||
${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${PREFIX}/share/applications | ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${PREFIX}/share/applications | ||||
${LN} -sf ${PORTNAME_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME_ICON} | ${LN} -sf ${PORTNAME_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME_ICON} | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |