1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/mail/enigmail/Makefile

90 lines
2.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: enigmail
# Date created: 20 January 2004
# Whom: Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= enigmail
PORTVERSION?= 1.2
PORTREVISION?= 0
CATEGORIES= mail security
MASTER_SITES= http://www.mozilla-enigmail.org/download/source/
PKGNAMEPREFIX= ${GECKO}-
MAINTAINER= ale@FreeBSD.org
COMMENT?= A GnuPG extension for the Mozilla mail clients
EXTRACT_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${GECKO_PORTDIR}:configure \
${GECKO:C/[0-9]//}:${PORTSDIR}/${GECKO_PORTDIR} \
gmake:${PORTSDIR}/devel/gmake \
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
.if ${PORTVERSION} == "1.2"
IGNORE= doesn't currently build
.endif
.if !defined(GECKO)
GECKO= libxul
2010-01-20 10:18:21 +00:00
GECKO_PORTDIR= www/${GECKO}
IGNORE= is an abstract port: use one of the slave ports
.endif
.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
USE_GMAKE= yes
.include <bsd.port.pre.mk>
XPI_FILE= ${DISTNAME}-${GECKO}-freebsd${OSVERSION:C/([0-9]).+/\1/}-${ARCH}.xpi
PLIST_FILES= %%DATADIR%%/${XPI_FILE}
PLIST_DIRS= %%DATADIR%%
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@${CP} -Rp ${GECKO_WRKSRC} ${WRKDIR}
@for f in ${EXTRACT_ONLY}; do \
cd ${WRKSRC}/mailnews/extensions && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$f ${EXTRACT_AFTER_ARGS}; \
done
pre-patch:
@${REINPLACE_CMD} -e "s|${GECKO_PORTDIR}|mail/enigmail-${GECKO}|g" \
`${FIND} ${WRKSRC} -name autoconf.mk`
do-build:
@(${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);
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${MOZSRC}/dist/bin/${DISTNAME:C/1.0.[0-9]/1.0/}-freebsd-${ARCH}.xpi ${DATADIR}/${XPI_FILE}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>