136 lines
4.1 KiB
Makefile
136 lines
4.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.94 2011/10/28 13:17:14 robert Exp $
|
|
|
|
COMMENT-main = Mozilla application suite
|
|
COMMENT-lightning = Mozilla Seamonkey calendar extension
|
|
COMMENT-enigmail = Mozilla Seamonkey GnuPG extension
|
|
BROKEN-sparc64 = https://bugzilla.mozilla.org/show_bug.cgi?id=577056
|
|
|
|
MOZILLA_VERSION= 2.4.1
|
|
MOZILLA_BRANCH = release
|
|
MOZILLA_PROJECT = seamonkey
|
|
MOZILLA_CODENAME = suite
|
|
|
|
MULTI_PACKAGES = -main -lightning -enigmail
|
|
PKGNAME-main = ${PKGNAME}
|
|
PKGNAME-lightning = lightning-seamonkey-1.0beta6
|
|
PKGNAME-enigmail = enigmail-seamonkey-1.3.2
|
|
REVISION-main = 0
|
|
REVISION-lightning = 0
|
|
REVISION-enigmail = 1
|
|
EPOCH-lightning = 0
|
|
|
|
SO_VERSION= 20.0
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
# components dir to avoid pkg_add -r issues.
|
|
MOZILLA_LIBS = ldap60 ldif60 mozalloc prldap60 suite xpcom xul calbasecomps enigmime ipc
|
|
|
|
CATEGORIES= www mail net news
|
|
|
|
# mozilla public license
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES0= http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${MOZILLA_VERSION}/langpack/ \
|
|
ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/${MOZILLA_VERSION}/langpack/
|
|
MASTER_SITES1 = http://www.mozilla-enigmail.org/download/source/
|
|
|
|
LANGUAGES= ca \
|
|
cs \
|
|
de \
|
|
en-GB \
|
|
en-US \
|
|
es-AR \
|
|
es-ES \
|
|
fi \
|
|
fr \
|
|
hu \
|
|
it \
|
|
ja \
|
|
lt \
|
|
nb-NO \
|
|
nl \
|
|
pl \
|
|
pt-PT \
|
|
ru \
|
|
sk \
|
|
sv-SE \
|
|
tr
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
|
enigmail-1.3.2.tar.gz
|
|
EXTRACT_CASES = enigmail-*.tar.gz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | tar -C comm-${MOZILLA_BRANCH}/mailnews/extensions/ -xf -;;
|
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
|
|
enigmail-1.3.2.tar.gz:1
|
|
.for language in ${LANGUAGES}
|
|
DISTFILES+= seamonkey-${MOZILLA_VERSION}.${language}.langpack.xpi:0
|
|
.endfor
|
|
|
|
MODULES= www/mozilla devel/gettext lang/python
|
|
BUILD_DEPENDS+= archivers/unzip
|
|
|
|
USE_GROFF = Yes
|
|
NO_REGRESS= Yes
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS+= ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
|
|
|
|
LIB_DEPENDS-lightning = STEM->=2.4beta3:${BUILD_PKGPATH},-main
|
|
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 \
|
|
c m stdc++ nspr4 plc4 plds4
|
|
|
|
RUN_DEPENDS-enigmail = security/gnupg
|
|
LIB_DEPENDS-enigmail = ${LIB_DEPENDS-lightning}
|
|
WANTLIB-enigmail = ${WANTLIB-lightning}
|
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
|
CONFIGURE_ENV += CPPFLAGS=-I${X11BASE}/include
|
|
CONFIGURE_ARGS += --enable-calendar
|
|
CONFIGURE_ARGS += --enable-official-branding
|
|
CONFIGURE_ARGS += --with-system-libevent=/usr/
|
|
CONFIGURE_ARGS += --with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE}
|
|
WANTLIB += event
|
|
|
|
ALL_TARGET= default
|
|
|
|
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
|
|
MOZILLA_SUBST_FILES += configure
|
|
|
|
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/}
|
|
# 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} \
|
|
calendar-timezones calendar-timezones@mozilla.org \
|
|
../bin/enigmail-1.4-openbsd-${GNU_ARCH} {847b3a00-7ab1-11d4-8f02-006008948af5}
|
|
|
|
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/extensions/
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/mozilla/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/
|
|
.for language in ${LANGUAGES}
|
|
${INSTALL_DATA} ${FULLDISTDIR}/seamonkey-${MOZILLA_VERSION}.${language}.langpack.xpi \
|
|
${EXTDIR}/langpack-${language}@${MOZILLA_PROJECT}.mozilla.org.xpi
|
|
.endfor
|
|
|
|
.for xpi guid in ${GUIDS}
|
|
${UNZIP} -oq ${MOB}/../xpi-stage/${xpi}.xpi -d ${EXTDIR}/${guid}
|
|
.endfor
|
|
# install desktop file
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ; \
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/${MOZILLA_PROJECT}.desktop \
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop ; \
|
|
|
|
.include <bsd.port.mk>
|