2012-03-16 17:38:33 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.100 2012/03/16 21:38:33 landry Exp $
|
2006-12-22 18:32:27 -05:00
|
|
|
|
2010-07-27 12:55:21 -04:00
|
|
|
COMMENT-main = Mozilla application suite
|
|
|
|
COMMENT-lightning = Mozilla Seamonkey calendar extension
|
2011-07-28 16:32:39 -04:00
|
|
|
COMMENT-enigmail = Mozilla Seamonkey GnuPG extension
|
2011-07-24 03:31:57 -04:00
|
|
|
BROKEN-sparc64 = https://bugzilla.mozilla.org/show_bug.cgi?id=577056
|
2006-12-22 18:32:27 -05:00
|
|
|
|
2012-03-16 17:38:33 -04:00
|
|
|
MOZILLA_VERSION= 2.8
|
2011-07-24 03:31:57 -04:00
|
|
|
MOZILLA_BRANCH = release
|
2010-07-09 11:39:00 -04:00
|
|
|
MOZILLA_PROJECT = seamonkey
|
|
|
|
MOZILLA_CODENAME = suite
|
2006-12-22 18:32:27 -05:00
|
|
|
|
2011-07-28 16:32:39 -04:00
|
|
|
MULTI_PACKAGES = -main -lightning -enigmail
|
2011-08-23 16:25:24 -04:00
|
|
|
PKGNAME-main = ${PKGNAME}
|
2012-03-16 17:38:33 -04:00
|
|
|
PKGNAME-lightning = lightning-seamonkey-1.3beta1
|
|
|
|
ENIG_V = 1.4
|
2011-12-07 19:39:18 -05:00
|
|
|
PKGNAME-enigmail = enigmail-seamonkey-${ENIG_V}
|
2010-07-27 12:55:21 -04:00
|
|
|
EPOCH-lightning = 0
|
|
|
|
|
2012-03-16 17:38:33 -04:00
|
|
|
SO_VERSION= 23.0
|
2006-12-22 18:32:27 -05:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
2011-07-28 16:32:39 -04:00
|
|
|
MOZILLA_LIBS = ldap60 ldif60 mozalloc prldap60 suite xpcom xul calbasecomps enigmime ipc
|
2010-10-27 09:02:38 -04:00
|
|
|
|
2007-03-26 16:41:37 -04:00
|
|
|
CATEGORIES= www mail net news
|
2006-12-22 18:32:27 -05:00
|
|
|
|
|
|
|
# mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2012-02-20 15:20:00 -05:00
|
|
|
MASTER_SITES0 = http://www.mozilla-enigmail.org/download/source/
|
2007-04-22 11:04:39 -04:00
|
|
|
|
2011-07-28 16:32:39 -04:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
2011-12-07 19:39:18 -05:00
|
|
|
enigmail-${ENIG_V}.tar.gz
|
2011-07-28 16:32:39 -04:00
|
|
|
EXTRACT_CASES = enigmail-*.tar.gz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | tar -C comm-${MOZILLA_BRANCH}/mailnews/extensions/ -xf -;;
|
2007-04-22 11:04:39 -04:00
|
|
|
|
2011-07-28 16:32:39 -04:00
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
|
2012-02-20 15:20:00 -05:00
|
|
|
enigmail-${ENIG_V}.tar.gz:0
|
2007-04-22 11:04:39 -04:00
|
|
|
|
2010-07-09 11:39:00 -04:00
|
|
|
MODULES= www/mozilla devel/gettext lang/python
|
2010-11-22 03:36:47 -05:00
|
|
|
BUILD_DEPENDS+= archivers/unzip
|
2006-12-22 18:32:27 -05:00
|
|
|
|
2010-10-19 04:02:53 -04:00
|
|
|
USE_GROFF = Yes
|
2006-12-22 18:32:27 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2011-07-24 03:31:57 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS+= ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
|
2006-12-22 18:32:27 -05:00
|
|
|
|
2011-12-07 19:39:18 -05:00
|
|
|
LIB_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
|
2011-10-03 17:07:39 -04:00
|
|
|
WANTLIB-lightning = lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/xpcom \
|
|
|
|
lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/xul \
|
|
|
|
lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/mozalloc \
|
2011-07-24 03:31:57 -04:00
|
|
|
c m stdc++ nspr4 plc4 plds4
|
2010-07-27 12:55:21 -04:00
|
|
|
|
2011-07-28 16:32:39 -04:00
|
|
|
RUN_DEPENDS-enigmail = security/gnupg
|
|
|
|
LIB_DEPENDS-enigmail = ${LIB_DEPENDS-lightning}
|
|
|
|
WANTLIB-enigmail = ${WANTLIB-lightning}
|
|
|
|
|
2010-07-09 11:39:00 -04:00
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
2011-07-24 03:31:57 -04:00
|
|
|
CONFIGURE_ENV += CPPFLAGS=-I${X11BASE}/include
|
2010-07-27 12:55:21 -04:00
|
|
|
CONFIGURE_ARGS += --enable-calendar
|
2011-07-24 03:31:57 -04:00
|
|
|
CONFIGURE_ARGS += --enable-official-branding
|
2011-12-15 18:05:44 -05:00
|
|
|
CONFIGURE_ARGS += --disable-gconf
|
2011-07-24 03:31:57 -04:00
|
|
|
CONFIGURE_ARGS += --with-system-libevent=/usr/
|
|
|
|
CONFIGURE_ARGS += --with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE}
|
|
|
|
WANTLIB += event
|
2010-04-03 05:30:14 -04:00
|
|
|
|
2010-07-09 11:39:00 -04:00
|
|
|
ALL_TARGET= default
|
2006-12-22 18:32:27 -05:00
|
|
|
|
2011-07-24 03:31:57 -04:00
|
|
|
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
|
|
|
|
MOZILLA_SUBST_FILES += configure
|
2007-06-08 07:49:47 -04:00
|
|
|
|
2011-07-28 16:32:39 -04:00
|
|
|
ENIGMAIL_DIR = ${WRKSRC}/mailnews/extensions/enigmail
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
# build enigmail
|
|
|
|
cd ${ENIGMAIL_DIR} && ./makemake -r
|
|
|
|
cd ${ENIGMAIL_DIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
|
|
|
|
cd ${MOB}/chrome/enigmail && zip -r ../enigmail.jar .
|
|
|
|
cd ${ENIGMAIL_DIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi
|
|
|
|
|
|
|
|
GNU_ARCH = ${MACHINE_ARCH:S/amd64/x86_64/}
|
2011-07-24 03:31:57 -04:00
|
|
|
# guid for gdata-provider comes from em:id in install.rdf
|
|
|
|
GUIDS = gdata-provider {a62ef8ec-5fdc-40c2-873c-223b8a6925cc} \
|
|
|
|
lightning {e2fda1a4-762b-4020-b5ad-a41df1933103} \
|
2011-07-28 16:32:39 -04:00
|
|
|
calendar-timezones calendar-timezones@mozilla.org \
|
2011-09-21 10:34:27 -04:00
|
|
|
../bin/enigmail-1.4-openbsd-${GNU_ARCH} {847b3a00-7ab1-11d4-8f02-006008948af5}
|
2011-07-28 16:32:39 -04:00
|
|
|
|
2011-10-03 17:07:39 -04:00
|
|
|
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/extensions/
|
2010-07-27 12:55:21 -04:00
|
|
|
|
2010-07-09 11:39:00 -04:00
|
|
|
post-install:
|
2010-04-03 05:30:14 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/mozilla/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/
|
2011-07-24 03:31:57 -04:00
|
|
|
|
|
|
|
.for xpi guid in ${GUIDS}
|
|
|
|
${UNZIP} -oq ${MOB}/../xpi-stage/${xpi}.xpi -d ${EXTDIR}/${guid}
|
2007-04-22 11:04:39 -04:00
|
|
|
.endfor
|
2011-07-24 03:31:57 -04:00
|
|
|
# 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 ; \
|
2006-12-22 18:32:27 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|