- See http://www.seamonkey-project.org/releases/seamonkey2.25/ - Fixes MFSA-2014-15->32 (except 21,24,25, not relevant to SM?) - Remove enigmail subpackage, build goo & patches, will be superseded by mail/enigmail,-seamonkey - add an all-openbsd.js file to customize default preferences and install it in defaults/pref/. Use it to set extensions.autoDisableScopes to 3, so that extensions installed in ${LOCALBASE}/lib/mozilla/extensions/${APPID} are enabled by default. - remove libffi patches, were merged upstream in #928390 and #928381
91 lines
3.0 KiB
Makefile
91 lines
3.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.153 2014/03/24 21:34:21 landry Exp $
|
|
|
|
COMMENT-main = Mozilla application suite
|
|
COMMENT-lightning = Mozilla Seamonkey calendar extension
|
|
|
|
MOZILLA_VERSION = 2.25
|
|
MOZILLA_BRANCH = release
|
|
MOZILLA_PROJECT = seamonkey
|
|
MOZILLA_CODENAME = suite
|
|
|
|
MULTI_PACKAGES = -main -lightning
|
|
PKGNAME-main = ${PKGNAME}
|
|
PKGNAME-lightning = lightning-seamonkey-3.0beta1
|
|
EPOCH-lightning = 0
|
|
|
|
HOMEPAGE = http://www.seamonkey-project.org/
|
|
#MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/nightly/${MOZILLA_VERSION}-candidates/build1/source/
|
|
|
|
SO_VERSION = 36.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 mozgnome prldap60 suite xul calbasecomps
|
|
|
|
CATEGORIES= www mail net news
|
|
|
|
# MPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES = www/mozilla devel/gettext lang/python
|
|
MODPY_RUNDEP = No
|
|
|
|
# necessary glue to build with the correct compiler after fx 17
|
|
MODULES += gcc4 lang/clang
|
|
MODGCC4_ARCHS = powerpc sparc64 alpha i386
|
|
MODGCC4_LANGS = c c++
|
|
MODCLANG_ARCHS = amd64
|
|
MODCLANG_LANGS = c c++
|
|
|
|
NO_TEST= Yes
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS += ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
|
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
|
|
|
LIB_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
|
|
WANTLIB-lightning = lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/xul \
|
|
lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/mozalloc \
|
|
c m stdc++ nspr4 plc4 plds4 pthread
|
|
|
|
# build lightning xpi
|
|
CONFIGURE_ARGS += --enable-calendar
|
|
|
|
# to be able to link when building with clang on i386 or gcc on powerpc
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"
|
|
CONFIGURE_ARGS += --disable-debug-symbols
|
|
.endif
|
|
|
|
# relies on pulseaudio for sound and broken at runtime
|
|
CONFIGURE_ARGS += --disable-webrtc
|
|
|
|
ALL_TARGET = default
|
|
|
|
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
|
|
|
|
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}
|
|
|
|
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/extensions/
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKBUILD}/mozilla/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/
|
|
|
|
.for xpi guid in ${GUIDS}
|
|
${UNZIP} -oq ${WRKBUILD}/mozilla/dist/xpi-stage/${xpi}*.xpi -d ${EXTDIR}/${guid}
|
|
.endfor
|
|
# install prefs
|
|
${INSTALL_DATA} ${FILESDIR}/all-openbsd.js \
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/defaults/pref/
|
|
# 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 ; \
|
|
# install icon for desktop file
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
|
|
${INSTALL_DATA} ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/chrome/icons/default/${MOZILLA_PROJECT}.png \
|
|
${PREFIX}/share/pixmaps/${MOZILLA_PROJECT}.png
|
|
|
|
.include <bsd.port.mk>
|