openbsd-ports/mail/enigmail/Makefile
martynas aed36ea3dc http://enigmail.mozdev.org/download/changelog.php#enig0.96.0
* A total of 81(!) bugs were fixed in this release.
* Improvements to the main user interface for decrypting messages.
* Use gpg groups as target for email addresses and rules.
* Option to automatically attach signing key to sent messages.
* Allow to send encrypted messages to newsgroups.
* New displaying of keys in the Enigmail key manager.
2009-09-18 20:33:50 +00:00

72 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2009/09/18 20:33:50 martynas Exp $
SHARED_ONLY= Yes
COMMENT= GnuPG extension for Thunderbird
VER= 0.96.0
DISTNAME= enigmail-${VER}
CATEGORIES= mail security
SHARED_LIBS= enigmime 13.0
HOMEPAGE= http://enigmail.mozdev.org/
# mozilla public license or GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.mozilla-enigmail.org/download/source/
THUNDERBIRD_DIR=mail/mozilla-thunderbird
BUILD_DEPENDS= ::${THUNDERBIRD_DIR}:configure \
::archivers/unzip
RUN_DEPENDS= ::security/gnupg
LIB_DEPENDS= mozilla-thunderbird/xpcom,mozilla-thunderbird/xpcom_compat,mozilla-thunderbird/xpcom_core:mozilla-thunderbird-2.0.0.23:${THUNDERBIRD_DIR}
WANTLIB= c m nspr4 plc4 plds4
USE_X11= Yes
USE_GMAKE= Yes
NO_REGRESS= Yes
MOZBASE= ${WRKDIR}/${THUNDERBIRD_DIR}/mozilla
MOZBIN= ${MOZBASE}/dist/bin
WRKDIST= ${WRKDIR}/enigmail
WRKSRC= ${MOZBASE}/mailnews/extensions/enigmail
GNU_ARCH= ${MACHINE_ARCH:S/amd64/x86_64/}
ENIGMAIL_XPI= ${DISTNAME}-${OPSYS:L}-${GNU_ARCH}.xpi
# unzip ${ENIGMAIL_XPI} and inspect install.rdf for GUID
GUID= {847b3a00-7ab1-11d4-8f02-006008948af5}
GLOBALDIR= ${PREFIX}/mozilla-thunderbird/extensions/${GUID}
SUBST_VARS= GUID
post-extract:
@perl -pi -e 's|(genxpi.*) (\$$\(TARGET_XPCOM_ABI\))|\1 "\2"|g' \
${WRKDIST}/Makefile.in
@perl -pi -e 's|[-_]?\$${xpcomAbi}||g' ${WRKDIST}/genxpi
@mv ${WRKDIST} ${MOZBASE}/mailnews/extensions
do-build:
@cd ${MOZBASE} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} export
@cd ${MOZBASE}/modules/libreg && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
@cd ${MOZBASE}/xpcom/string && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
@cd ${MOZBASE}/xpcom && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
@cd ${MOZBASE}/xpcom/obsolete && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
@cd ${WRKSRC} && ./makemake -r
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi
do-install:
${INSTALL_DATA_DIR} ${GLOBALDIR}
unzip -q ${MOZBIN}/${ENIGMAIL_XPI} -d ${GLOBALDIR}
mv ${GLOBALDIR}/platform/OpenBSD*/components/libenigmime.so.* \
${GLOBALDIR}/components/
.include <bsd.port.mk>