From 5cf26912543cbc393c38c151f001e620913b50d0 Mon Sep 17 00:00:00 2001 From: Florian Smeets Date: Sat, 28 Jul 2012 22:31:08 +0000 Subject: Fix enigmail after the recent gecko updates. In collaboration with: Jan Beich Reported by: many Approved by: portmgr (miwi) --- mail/enigmail/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/mail/enigmail/Makefile b/mail/enigmail/Makefile index 2fcdc4322793..350133df50dd 100644 --- a/mail/enigmail/Makefile +++ b/mail/enigmail/Makefile @@ -47,7 +47,11 @@ GECKO_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip \ .if defined(GECKO_EXTDIR) GECKO_WRKSRC= ${WRKDIR}/../../../${GECKO_PORTDIR}/work/${GECKO_EXTDIR} WRKSRC= ${WRKDIR}/${GECKO_EXTDIR} +. if ${GECKO_PORTDIR:N*-esr} +MOZSRC= ${WRKSRC}/obj-${CONFIGURE_TARGET:S/amd64/x86_64/}/mozilla +. else MOZSRC= ${WRKSRC}/mozilla +. endif .else GECKO_WRKSRC= ${WRKDIR}/../../../${GECKO_PORTDIR}/work/mozilla WRKSRC= ${WRKDIR}/mozilla @@ -58,7 +62,7 @@ USE_GMAKE= yes .include -XPI_FILE= ${MOZSRC}/dist/bin/${DISTNAME}-freebsd-${ARCH}.xpi +XPI_FILE= ${MOZSRC}/dist/bin/${DISTNAME}-freebsd-${ARCH:S/amd64/x86_64/}.xpi XPI_LIBDIR= ${PREFIX}/lib/xpi XPI_ORIG_ID= {847b3a00-7ab1-11d4-8f02-006008948af5} XPI_ID= ${GECKO}@mozilla-enigmail.org @@ -90,14 +94,23 @@ 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}/.. export ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/modules/libreg ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/xpcom/string ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${MOZSRC}/xpcom .endif +.if ${GECKO_PORTDIR:N*-esr} + cd ${WRKSRC}/mailnews/extensions/enigmail; \ + ./makemake -r -o $${objdir=${WRKSRC}/obj-${CONFIGURE_TARGET:S/amd64/x86_64/}}; \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \ + -C $$objdir/mailnews/extensions/enigmail; \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} xpi \ + -C $$objdir/mailnews/extensions/enigmail +.else 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 +.endif do-install: @${MKDIR} ${XPI_LIBDIR}/${XPI_ID} ${XPI_LIBDIR}/symlinks/${GECKO} -- cgit v1.2.3