blob: a5b38ddacf96b63be51120d1299d882230057421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: enigmail.mk,v 1.2 2010/07/12 16:49:21 tnn Exp $
#
# This Makefile fragment hooks the Enigmail OpenPGP extension
# (see http://www.mozilla-enigmail.org/ ) into the build.
ENIGMAIL_DIST= enigmail-1.1.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/
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}
post-extract: enigmail-post-extract
.PHONY: enigmail-post-extract
enigmail-post-extract:
${RUN} mv ${WRKDIR}/enigmail ${WRKSRC}/mailnews/extensions/
post-configure: enigmail-post-configure
.PHONY: enigmail-post-configure
enigmail-post-configure:
${RUN} cd ${WRKSRC}/mailnews/extensions/enigmail && \
${SETENV} ${CONFIGURE_ENV} ${PERL5} ./makemake -r
# 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:
${RUN} cd ${WRKSRC}/mozilla/dist && pax -rwpe . ../dist.save
${RUN} cd ${WRKSRC}/mailnews/extensions/enigmail && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi
${CP} ${WRKSRC}/mozilla/dist/bin/enigmail*.xpi \
${WRKDIR}/enigmail.xpi
${RUN} rm -rf ${WRKSRC}/mozilla/dist
${RUN} cd ${WRKSRC}/mozilla/dist.save && pax -rwpe . ../dist
|