2004-01-28 18:04:32 +00:00
|
|
|
# New ports collection makefile for: enigmail
|
|
|
|
# Date created: 20 January 2004
|
|
|
|
# Whom: Alex Dupre <ale@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= enigmail
|
2011-07-03 08:02:38 +00:00
|
|
|
PORTVERSION?= 1.2
|
|
|
|
PORTREVISION?= 0
|
2004-01-28 18:04:32 +00:00
|
|
|
CATEGORIES= mail security
|
2010-01-11 12:50:14 +00:00
|
|
|
MASTER_SITES= http://www.mozilla-enigmail.org/download/source/
|
|
|
|
PKGNAMEPREFIX= ${GECKO}-
|
2004-01-28 18:04:32 +00:00
|
|
|
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2010-01-11 12:50:14 +00:00
|
|
|
COMMENT?= A GnuPG extension for the Mozilla mail clients
|
2004-01-28 18:04:32 +00:00
|
|
|
|
2010-01-11 12:50:14 +00:00
|
|
|
EXTRACT_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${GECKO_PORTDIR}:configure \
|
|
|
|
${GECKO:C/[0-9]//}:${PORTSDIR}/${GECKO_PORTDIR} \
|
2006-02-06 07:12:20 +00:00
|
|
|
gmake:${PORTSDIR}/devel/gmake \
|
2010-01-11 12:50:14 +00:00
|
|
|
intltool-extract:${PORTSDIR}/textproc/intltool \
|
|
|
|
${LOCALBASE}/libdata/pkgconfig/printproto.pc:${PORTSDIR}/x11/printproto
|
|
|
|
BUILD_DEPENDS= ${GECKO:C/[0-9]//}:${PORTSDIR}/${GECKO_PORTDIR}
|
|
|
|
RUN_DEPENDS= ${GECKO:C/[0-9]//}:${PORTSDIR}/${GECKO_PORTDIR} \
|
|
|
|
gpg:${PORTSDIR}/security/gnupg
|
|
|
|
|
2011-07-03 08:02:38 +00:00
|
|
|
.if ${PORTVERSION} == "1.2"
|
|
|
|
IGNORE= doesn't currently build
|
|
|
|
.endif
|
|
|
|
|
2010-01-11 12:50:14 +00:00
|
|
|
.if !defined(GECKO)
|
2010-12-29 07:14:38 +00:00
|
|
|
GECKO= libxul
|
2010-01-20 10:18:21 +00:00
|
|
|
GECKO_PORTDIR= www/${GECKO}
|
2010-12-29 07:14:38 +00:00
|
|
|
IGNORE= is an abstract port: use one of the slave ports
|
2010-01-11 12:50:14 +00:00
|
|
|
.endif
|
2004-05-10 07:56:18 +00:00
|
|
|
|
2010-01-11 12:50:14 +00:00
|
|
|
.if defined(GECKO_EXTDIR)
|
|
|
|
GECKO_WRKSRC= ${WRKDIR}/../../../${GECKO_PORTDIR}/work/${GECKO_EXTDIR}
|
|
|
|
WRKSRC= ${WRKDIR}/${GECKO_EXTDIR}
|
|
|
|
MOZSRC= ${WRKSRC}/mozilla
|
|
|
|
.else
|
|
|
|
GECKO_WRKSRC= ${WRKDIR}/../../../${GECKO_PORTDIR}/work/mozilla
|
|
|
|
WRKSRC= ${WRKDIR}/mozilla
|
|
|
|
MOZSRC= ${WRKSRC}
|
|
|
|
.endif
|
2004-06-27 09:58:45 +00:00
|
|
|
|
2004-01-28 18:04:32 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2010-01-11 12:50:14 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-01-28 18:04:32 +00:00
|
|
|
|
2010-01-11 12:50:14 +00:00
|
|
|
XPI_FILE= ${DISTNAME}-${GECKO}-freebsd${OSVERSION:C/([0-9]).+/\1/}-${ARCH}.xpi
|
|
|
|
PLIST_FILES= %%DATADIR%%/${XPI_FILE}
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2004-01-28 18:04:32 +00:00
|
|
|
|
|
|
|
do-extract:
|
2004-01-30 12:42:31 +00:00
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
2010-12-20 16:19:27 +00:00
|
|
|
@${CP} -Rp ${GECKO_WRKSRC} ${WRKDIR}
|
2004-11-01 10:46:24 +00:00
|
|
|
@for f in ${EXTRACT_ONLY}; do \
|
2010-01-11 12:50:14 +00:00
|
|
|
cd ${WRKSRC}/mailnews/extensions && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$f ${EXTRACT_AFTER_ARGS}; \
|
2004-01-28 18:04:32 +00:00
|
|
|
done
|
|
|
|
|
2004-05-03 22:36:41 +00:00
|
|
|
pre-patch:
|
2010-01-11 12:50:14 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|${GECKO_PORTDIR}|mail/enigmail-${GECKO}|g" \
|
2004-11-01 10:46:24 +00:00
|
|
|
`${FIND} ${WRKSRC} -name autoconf.mk`
|
2004-05-03 22:36:41 +00:00
|
|
|
|
2004-01-28 18:04:32 +00:00
|
|
|
do-build:
|
2011-07-03 08:02:38 +00:00
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC} tier_base)
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC} tier_nspr)
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC} tier_js)
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} export)
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/modules/libreg)
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/xpcom/string)
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/xpcom)
|
|
|
|
.if ${PORTVERSION} == "1.0.1"
|
|
|
|
@(${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/xpcom/obsolete)
|
|
|
|
.endif
|
|
|
|
@(cd ${WRKSRC}/mailnews/extensions/enigmail; ./makemake -r);
|
|
|
|
@(cd ${WRKSRC}/mailnews/extensions/enigmail; ${SETENV} ${MAKE_ENV} ${GMAKE});
|
|
|
|
@(cd ${WRKSRC}/mailnews/extensions/enigmail; ${SETENV} ${MAKE_ENV} ${GMAKE} xpi);
|
2004-01-28 18:04:32 +00:00
|
|
|
|
|
|
|
do-install:
|
2010-01-11 12:50:14 +00:00
|
|
|
${MKDIR} ${DATADIR}
|
2010-02-16 11:02:35 +00:00
|
|
|
${INSTALL_DATA} ${MOZSRC}/dist/bin/${DISTNAME:C/1.0.[0-9]/1.0/}-freebsd-${ARCH}.xpi ${DATADIR}/${XPI_FILE}
|
2004-01-28 18:04:32 +00:00
|
|
|
|
|
|
|
post-install:
|
2004-05-10 07:56:18 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-01-28 18:04:32 +00:00
|
|
|
|
2010-01-11 12:50:14 +00:00
|
|
|
.include <bsd.port.post.mk>
|