pkgsrc/www/seamonkey/enigmail.mk
ryoon c6a65eeffc Update to 2.30
* Update enigmail to 1.7.2

Changelog:
* SeaMonkey specific changes are not available.
* Use xul engine from Firefox 33.
2014-11-02 05:40:31 +00:00

53 lines
2 KiB
Makefile

# $NetBSD: enigmail.mk,v 1.14 2014/11/02 05:40:31 ryoon Exp $
#
# This Makefile fragment hooks the Enigmail OpenPGP extension
# (see http://www.mozilla-enigmail.org/ ) into the build.
ENIGMAIL_DIST= enigmail-1.7.2.tar.gz
XPI_FILES+= ${WRKDIR}/enigmail.xpi
.if !defined(DISTFILES)
DISTFILES= ${DEFAULT_DISTFILES}
.endif
DISTFILES+= ${ENIGMAIL_DIST}
SITES.${ENIGMAIL_DIST}= http://www.mozilla-enigmail.org/download/source/
#SITES.${ENIGMAIL_DIST}= https://dev.gentoo.org/~polynomial-c/mozilla/
DEPENDS+= gnupg-[0-9]*:../../security/gnupg
PLIST_SRC+= PLIST.enigmail
TARGET_XPCOM_ABI= ${MACHINE_ARCH:S/i386/x86/}-gcc3
PLIST_SUBST+= TARGET_XPCOM_ABI=${TARGET_XPCOM_ABI}
USE_TOOLS+= patch pax
REPLACE_PERL+= ${WRKSRC}/${OBJDIR}/mailnews/extensions/enigmail/util/fixlang.pl
post-extract: enigmail-post-extract
.PHONY: enigmail-post-extract
enigmail-post-extract:
${RUN} mkdir ${WRKSRC}/${OBJDIR}/mailnews/extensions
${RUN} mv ${WRKDIR}/enigmail ${WRKSRC}/${OBJDIR}/mailnews/extensions
${RUN} cd ${WRKSRC}/${OBJDIR} && \
${PATCH} < ${FILESDIR}/mailnews_extensions_enigmail_ipc_modules_subprocess.jsm && \
${PATCH} < ${FILESDIR}/patch-mailnews_extensions_enigmail_Makefile
post-configure: enigmail-post-configure
.PHONY: enigmail-post-configure
enigmail-post-configure:
cd ${WRKSRC}/${OBJDIR}/mailnews/extensions/enigmail && \
${SETENV} ${CONFIGURE_ENV} \
./configure --prefix=${PREFIX}
# We need to do a switcheroo of the dist directory while building enigmail;
# otherwise we get extra files contamination in the PLIST.
post-build: enigmail-post-build
.PHONY: enigmail-post-build
enigmail-post-build:
rm -rf ${WRKSRC}/${OBJDIR}/mozilla/dist.save
cd ${WRKSRC}/${OBJDIR}/mozilla/dist && pax -rwpe . ../dist.save
cd ${WRKSRC}/${OBJDIR}/mailnews/extensions/enigmail && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} all xpi
${CP} ${WRKSRC}/${OBJDIR}/mailnews/extensions/enigmail/build/enigmail*.xpi \
${WRKDIR}/enigmail.xpi
rm -rf ${WRKSRC}/${OBJDIR}/mozilla/dist
cd ${WRKSRC}/${OBJDIR}/mozilla/dist.save && pax -rwpe . ../dist