2007-11-16 16:35:04 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2007/11/16 21:35:04 martynas Exp $
|
2007-03-19 18:15:16 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2006-10-03 17:10:16 -04:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT= GnuPG extension for Thunderbird
|
2006-10-03 17:10:16 -04:00
|
|
|
|
2007-11-16 16:35:04 -05:00
|
|
|
VER= 0.95.5
|
2006-10-03 17:10:16 -04:00
|
|
|
DISTNAME= enigmail-${VER}
|
|
|
|
CATEGORIES= mail security
|
|
|
|
|
2007-04-30 18:41:52 -04:00
|
|
|
SHARED_LIBS= enigmime 13.0
|
2006-12-21 16:41:44 -05:00
|
|
|
|
2006-10-03 17:10:16 -04:00
|
|
|
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/downloads/src/
|
|
|
|
|
|
|
|
THUNDERBIRD_DIR=mail/mozilla-thunderbird
|
2006-12-21 16:41:44 -05:00
|
|
|
BUILD_DEPENDS= ::${THUNDERBIRD_DIR}:configure \
|
|
|
|
::archivers/unzip
|
|
|
|
RUN_DEPENDS= ::security/gnupg
|
|
|
|
|
2007-11-16 16:35:04 -05:00
|
|
|
LIB_DEPENDS= mozilla-thunderbird/xpcom,mozilla-thunderbird/xpcom_compat,mozilla-thunderbird/xpcom_core:mozilla-thunderbird-2.0.0.9:${THUNDERBIRD_DIR}
|
2006-12-21 16:41:44 -05:00
|
|
|
WANTLIB= c m nspr4 plc4 plds4
|
2006-10-03 17:10:16 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2006-12-21 16:41:44 -05:00
|
|
|
# unzip ${ENIGMAIL_XPI} and inspect install.rdf for GUID
|
|
|
|
GUID= {847b3a00-7ab1-11d4-8f02-006008948af5}
|
|
|
|
GLOBALDIR= ${PREFIX}/mozilla-thunderbird/extensions/${GUID}
|
|
|
|
|
|
|
|
SUBST_VARS= GUID
|
|
|
|
|
2006-10-03 17:10:16 -04:00
|
|
|
post-extract:
|
|
|
|
@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:
|
2006-12-21 16:41:44 -05:00
|
|
|
${INSTALL_DATA_DIR} ${GLOBALDIR}
|
|
|
|
unzip -q ${MOZBIN}/${ENIGMAIL_XPI} -d ${GLOBALDIR}
|
2007-06-11 03:42:53 -04:00
|
|
|
mv ${GLOBALDIR}/platform/OpenBSD*/components/libenigmime.so.* \
|
2007-05-03 09:35:50 -04:00
|
|
|
${GLOBALDIR}/components/
|
2006-10-03 17:10:16 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|