502709d398
Problem noticed by steven@ diff from martynas@ okay both. NOTE: Due to change in location of the lib, anyone upgrading from 0.95.0 will need to uninstall 0.95.0, run thunderbird once then install 0.95.0p0. Upgrading from prior versions will work fine.
74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2007/05/03 13:35:50 kurt Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
BROKEN= "Thunderbird hangs when accessing items from the OpenPGP menu"
|
|
.endif
|
|
|
|
COMMENT= "GnuPG extension for Thunderbird"
|
|
|
|
VER= 0.95.0
|
|
DISTNAME= enigmail-${VER}
|
|
PKGNAME= ${DISTNAME}p0
|
|
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/downloads/src/
|
|
|
|
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.0:${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:
|
|
@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>
|