2012-09-22 06:30:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.158 2012/09/22 10:30:17 landry Exp $
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-07-27 13:01:16 -04:00
|
|
|
COMMENT-main = Mozilla e-mail, rss and usenet client
|
|
|
|
COMMENT-lightning = Mozilla Thunderbird calendar extension
|
2011-07-28 16:30:30 -04:00
|
|
|
COMMENT-enigmail = Mozilla Thunderbird GnuPG extension
|
2011-07-24 03:10:12 -04:00
|
|
|
BROKEN-sparc64 = https://bugzilla.mozilla.org/show_bug.cgi?id=577056
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-07-01 16:32:08 -04:00
|
|
|
# Don't forget to bump mail/thunderbird-i18n after updates.
|
2011-03-21 04:45:37 -04:00
|
|
|
# Don't forget to update productivity/sunbird if patches changes.
|
2010-07-01 16:32:08 -04:00
|
|
|
|
2012-09-10 04:47:02 -04:00
|
|
|
MOZILLA_VERSION = 15.0.1
|
2011-08-23 16:19:33 -04:00
|
|
|
MOZILLA_BRANCH = release
|
2011-07-08 07:07:32 -04:00
|
|
|
MOZILLA_PROJECT = thunderbird
|
2010-07-09 12:55:59 -04:00
|
|
|
MOZILLA_CODENAME = mail
|
|
|
|
|
2011-07-28 16:30:30 -04:00
|
|
|
MULTI_PACKAGES = -main -lightning -enigmail
|
2010-07-27 13:01:16 -04:00
|
|
|
PKGNAME-main = ${PKGNAME}
|
2012-09-22 06:30:17 -04:00
|
|
|
REVISION-main = 1
|
2012-09-01 10:22:45 -04:00
|
|
|
PKGNAME-lightning = lightning-1.7beta1
|
|
|
|
ENIG_V = 1.4.4
|
2012-06-11 11:33:26 -04:00
|
|
|
PKGNAME-enigmail = enigmail-${ENIG_V}
|
2010-07-27 13:01:16 -04:00
|
|
|
EPOCH-lightning = 0
|
2012-09-10 11:46:29 -04:00
|
|
|
REVISION-lightning = 0
|
2012-06-11 11:33:26 -04:00
|
|
|
EPOCH-enigmail = 0
|
2012-09-10 04:47:02 -04:00
|
|
|
REVISION-enigmail = 0
|
2010-07-27 13:01:16 -04:00
|
|
|
|
2011-10-03 17:07:05 -04:00
|
|
|
#MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/nightly/${MOZILLA_VERSION}-candidates/build1/source/
|
2011-07-28 16:30:30 -04:00
|
|
|
MASTER_SITES0 = http://www.mozilla-enigmail.org/download/source/
|
|
|
|
DISTFILES += ${MOZILLA_PROJECT}-${MOZILLA_VERSION}.source.tar.bz2 \
|
2011-12-07 21:25:59 -05:00
|
|
|
enigmail-${ENIG_V}.tar.gz:0
|
2011-07-28 16:30:30 -04:00
|
|
|
EXTRACT_CASES = enigmail-*.tar.gz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | tar -C comm-${MOZILLA_BRANCH}/mailnews/extensions/ -xf -;;
|
|
|
|
|
2012-06-11 11:33:26 -04:00
|
|
|
SO_VERSION = 25.0
|
2005-04-09 04:11:18 -04:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
2012-02-20 15:17:49 -05:00
|
|
|
# components dir to avoid pkg_add -r issues.
|
2006-12-21 16:52:12 -05:00
|
|
|
|
2011-07-28 16:30:30 -04:00
|
|
|
MOZILLA_LIBS = ldap60 ldif60 mozalloc prldap60 xpcom xul calbasecomps enigmime ipc
|
2011-07-24 03:10:12 -04:00
|
|
|
|
|
|
|
#.if ${FLAVOR:L:Mdebug}
|
|
|
|
#MOZILLA_LIBS += addrbook bayesflt fts3tok mailview mime mimeemitter msgbase \
|
|
|
|
# msgcompose msgdb msgimap msglocal msgmdn msgnews vcard msgbaseutil
|
|
|
|
#.endif
|
2010-10-27 08:54:34 -04:00
|
|
|
|
2004-01-18 06:47:42 -05:00
|
|
|
CATEGORIES= mail news
|
|
|
|
|
2007-06-22 14:51:30 -04:00
|
|
|
# MPL
|
2004-01-18 06:47:42 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-03-09 17:32:22 -04:00
|
|
|
|
2010-07-09 12:55:59 -04:00
|
|
|
MODULES = www/mozilla devel/gettext lang/python
|
2011-06-15 12:16:10 -04:00
|
|
|
MODPY_RUNDEP = No
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-07-09 12:55:59 -04:00
|
|
|
# Regression tests are too hard to adapt to run here
|
|
|
|
NO_REGRESS = Yes
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2011-07-24 03:10:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS += ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-07-09 12:55:59 -04:00
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
2011-07-24 03:10:12 -04:00
|
|
|
CONFIGURE_ARGS += --enable-official-branding
|
|
|
|
CONFIGURE_ARGS += --with-system-libevent=/usr/
|
|
|
|
CONFIGURE_ARGS += --with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE}
|
|
|
|
WANTLIB += event
|
|
|
|
|
2012-06-11 11:33:26 -04:00
|
|
|
# bug #736961
|
|
|
|
SEPARATE_BUILD = Yes
|
2011-07-24 03:10:12 -04:00
|
|
|
# XXX solved in firefox by patch-config-autoconf_mk_in ?
|
|
|
|
CONFIGURE_ENV += CPPFLAGS=-I${X11BASE}/include
|
2006-01-23 07:34:06 -05:00
|
|
|
|
2012-02-20 15:17:49 -05:00
|
|
|
# XXX needed since 10.0b4, relocation overflow otherwise...
|
|
|
|
# replaces -g by -Os
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
CONFIGURE_ENV += MOZ_DEBUG_FLAGS="-Os"
|
|
|
|
.endif
|
|
|
|
|
2011-01-14 17:53:42 -05:00
|
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS}
|
|
|
|
WANTLIB-main = ${WANTLIB}
|
2011-10-03 17:07:05 -04:00
|
|
|
LIB_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
|
2012-01-10 20:10:24 -05:00
|
|
|
WANTLIB-lightning = lib/thunderbird-${MOZILLA_VER}/xpcom \
|
|
|
|
lib/thunderbird-${MOZILLA_VER}/xul \
|
|
|
|
lib/thunderbird-${MOZILLA_VER}/mozalloc \
|
2011-07-24 03:10:12 -04:00
|
|
|
c m stdc++ nspr4 plc4 plds4
|
2010-11-19 02:23:05 -05:00
|
|
|
BUILD_DEPENDS += archivers/unzip #to unzip xpi
|
2010-07-27 13:01:16 -04:00
|
|
|
|
2011-07-28 16:30:30 -04:00
|
|
|
RUN_DEPENDS-enigmail = security/gnupg
|
|
|
|
LIB_DEPENDS-enigmail = ${LIB_DEPENDS-lightning}
|
|
|
|
WANTLIB-enigmail = ${WANTLIB-lightning}
|
|
|
|
|
2010-07-27 13:01:16 -04:00
|
|
|
# build lightning xpi
|
|
|
|
CONFIGURE_ARGS += --enable-calendar \
|
2011-12-15 18:05:44 -05:00
|
|
|
--enable-official-branding \
|
|
|
|
--disable-gconf
|
2010-07-27 13:01:16 -04:00
|
|
|
|
2010-07-09 12:55:59 -04:00
|
|
|
ALL_TARGET = default
|
|
|
|
|
2011-07-24 03:10:12 -04:00
|
|
|
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
|
2010-07-27 13:01:16 -04:00
|
|
|
MOZILLA_SUBST_FILES += config/autoconf.mk.in
|
|
|
|
|
2012-06-11 11:33:26 -04:00
|
|
|
ENIGMAIL_DIR = mailnews/extensions/enigmail
|
2011-07-28 16:30:30 -04:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
# build enigmail
|
2012-06-11 11:33:26 -04:00
|
|
|
cd ${WRKSRC}/${ENIGMAIL_DIR} && ./makemake -o ${WRKBUILD} -r
|
|
|
|
cd ${WRKBUILD}/${ENIGMAIL_DIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
|
|
|
|
cd ${WRKBUILD}/mozilla/dist/bin/chrome/enigmail && zip -r ../enigmail.jar .
|
|
|
|
cd ${WRKBUILD}/${ENIGMAIL_DIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi
|
2011-07-28 16:30:30 -04:00
|
|
|
|
|
|
|
GNU_ARCH = ${MACHINE_ARCH:S/amd64/x86_64/}
|
2010-07-27 13:01:16 -04:00
|
|
|
# guid for gdata-provider comes from em:id in install.rdf
|
2011-07-24 03:10:12 -04:00
|
|
|
GUIDS = gdata-provider {a62ef8ec-5fdc-40c2-873c-223b8a6925cc} \
|
|
|
|
lightning {e2fda1a4-762b-4020-b5ad-a41df1933103} \
|
2011-07-28 16:30:30 -04:00
|
|
|
calendar-timezones calendar-timezones@mozilla.org \
|
2012-04-30 11:32:06 -04:00
|
|
|
../bin/enigmail-1.5-openbsd-${GNU_ARCH} {847b3a00-7ab1-11d4-8f02-006008948af5}
|
2011-07-28 16:30:30 -04:00
|
|
|
|
2012-01-10 20:10:24 -05:00
|
|
|
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/extensions/
|
2010-07-27 13:01:16 -04:00
|
|
|
post-install:
|
2011-07-24 03:10:12 -04:00
|
|
|
.for xpi guid in ${GUIDS}
|
2012-06-11 11:33:26 -04:00
|
|
|
unzip -q ${WRKBUILD}/mozilla/dist/xpi-stage/${xpi}.xpi -d ${EXTDIR}/${guid}
|
2011-07-24 03:10:12 -04:00
|
|
|
.endfor
|
|
|
|
# install desktop file
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ; \
|
2011-08-24 02:19:50 -04:00
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/${MOZILLA_PROJECT}.desktop \
|
|
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop ; \
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2012-06-11 11:33:26 -04:00
|
|
|
# cleanup useless dirs from #717616
|
|
|
|
rm -Rf ${PREFIX}/lib/thunderbird-${MOZILLA_VERSION:C/b.//}/js{sub,}loader
|
|
|
|
|
2004-01-18 06:47:42 -05:00
|
|
|
.include <bsd.port.mk>
|