2015-05-28 10:17:22 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.173 2015/05/28 10:17:25 pascal Exp $
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2010-07-27 16:55:21 +00:00
|
|
|
COMMENT-main = Mozilla application suite
|
|
|
|
COMMENT-lightning = Mozilla Seamonkey calendar extension
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2015-03-23 21:05:12 +00:00
|
|
|
MOZILLA_VERSION = 2.33.1
|
2011-07-24 07:31:57 +00:00
|
|
|
MOZILLA_BRANCH = release
|
2010-07-09 15:39:00 +00:00
|
|
|
MOZILLA_PROJECT = seamonkey
|
|
|
|
MOZILLA_CODENAME = suite
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2014-03-11 06:31:27 +00:00
|
|
|
MULTI_PACKAGES = -main -lightning
|
2011-08-23 20:25:24 +00:00
|
|
|
PKGNAME-main = ${PKGNAME}
|
2015-03-16 20:00:29 +00:00
|
|
|
PKGNAME-lightning = lightning-seamonkey-3.8
|
2015-05-28 10:17:22 +00:00
|
|
|
REVISION-main = 2
|
|
|
|
REVISION-lightning = 3
|
2010-07-27 16:55:21 +00:00
|
|
|
EPOCH-lightning = 0
|
|
|
|
|
2013-04-06 14:48:09 +00:00
|
|
|
HOMEPAGE = http://www.seamonkey-project.org/
|
2012-10-21 09:55:47 +00:00
|
|
|
|
2015-01-14 17:46:53 +00:00
|
|
|
SO_VERSION = 41.0
|
2006-12-22 23:32:27 +00:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
2012-10-21 09:55:47 +00:00
|
|
|
|
2014-03-24 21:34:21 +00:00
|
|
|
MOZILLA_LIBS = ldap60 ldif60 mozalloc mozgnome prldap60 suite xul calbasecomps
|
2010-10-27 13:02:38 +00:00
|
|
|
|
2007-03-26 20:41:37 +00:00
|
|
|
CATEGORIES= www mail net news
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2012-10-21 09:55:47 +00:00
|
|
|
# MPL
|
2006-12-22 23:32:27 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2012-10-21 09:55:47 +00:00
|
|
|
MODULES = www/mozilla devel/gettext lang/python
|
|
|
|
MODPY_RUNDEP = No
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2013-01-11 23:17:31 +00:00
|
|
|
# necessary glue to build with the correct compiler after fx 17
|
|
|
|
MODULES += gcc4 lang/clang
|
2015-03-19 19:49:49 +00:00
|
|
|
MODGCC4_ARCHS = powerpc sparc64 alpha
|
2013-01-11 23:17:31 +00:00
|
|
|
MODGCC4_LANGS = c c++
|
2015-03-19 19:49:49 +00:00
|
|
|
MODCLANG_ARCHS = amd64 i386
|
2013-01-11 23:17:31 +00:00
|
|
|
MODCLANG_LANGS = c c++
|
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2012-10-21 09:55:47 +00:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS += ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
|
2011-07-28 20:32:39 +00:00
|
|
|
|
2010-07-09 15:39:00 +00:00
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
2012-11-25 13:49:47 +00:00
|
|
|
|
2012-10-21 09:55:47 +00:00
|
|
|
LIB_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
|
2013-07-11 16:23:38 +00:00
|
|
|
WANTLIB-lightning = lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/xul \
|
2012-10-21 09:55:47 +00:00
|
|
|
lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/mozalloc \
|
2012-11-24 10:36:20 +00:00
|
|
|
c m stdc++ nspr4 plc4 plds4 pthread
|
2012-10-21 09:55:47 +00:00
|
|
|
|
|
|
|
# build lightning xpi
|
2012-12-04 21:17:29 +00:00
|
|
|
CONFIGURE_ARGS += --enable-calendar
|
2012-10-21 09:55:47 +00:00
|
|
|
|
2013-08-08 07:02:37 +00:00
|
|
|
# to be able to link when building with clang on i386 or gcc on powerpc
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"
|
2013-07-11 16:23:38 +00:00
|
|
|
CONFIGURE_ARGS += --disable-debug-symbols
|
|
|
|
.endif
|
|
|
|
|
2013-12-12 19:58:39 +00:00
|
|
|
# relies on pulseaudio for sound and broken at runtime
|
|
|
|
CONFIGURE_ARGS += --disable-webrtc
|
2013-07-11 16:23:38 +00:00
|
|
|
|
2014-10-17 07:30:43 +00:00
|
|
|
# bug #1064665
|
|
|
|
LIB_DEPENDS += textproc/icu4c
|
|
|
|
CONFIGURE_ARGS += --with-system-icu
|
|
|
|
WANTLIB += icudata icui18n icuuc
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += --enable-gstreamer=1.0
|
|
|
|
BUILD_DEPENDS += multimedia/gstreamer1/plugins-base
|
2014-05-03 07:28:30 +00:00
|
|
|
|
2012-10-21 09:55:47 +00:00
|
|
|
ALL_TARGET = default
|
|
|
|
|
|
|
|
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
|
2007-06-08 11:49:47 +00:00
|
|
|
|
2011-07-28 20:32:39 +00:00
|
|
|
GNU_ARCH = ${MACHINE_ARCH:S/amd64/x86_64/}
|
2011-07-24 07:31:57 +00:00
|
|
|
# guid for gdata-provider comes from em:id in install.rdf
|
|
|
|
GUIDS = gdata-provider {a62ef8ec-5fdc-40c2-873c-223b8a6925cc} \
|
2014-03-11 17:30:06 +00:00
|
|
|
lightning {e2fda1a4-762b-4020-b5ad-a41df1933103}
|
|
|
|
|
2012-10-21 09:55:47 +00:00
|
|
|
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/extensions/
|
2014-09-09 21:27:17 +00:00
|
|
|
|
2014-10-17 07:30:43 +00:00
|
|
|
CONFIGURE_ENV+=MOZCONFIG=${WRKSRC}/mozilla/.mozconfig
|
2014-09-09 21:27:17 +00:00
|
|
|
# MOZCONFIG is mandatory now even if empty ?
|
|
|
|
post-patch:
|
2014-10-17 07:30:43 +00:00
|
|
|
touch ${WRKSRC}/mozilla/.mozconfig
|
2014-09-09 21:27:17 +00:00
|
|
|
|
2010-07-09 15:39:00 +00:00
|
|
|
post-install:
|
2014-12-07 09:19:57 +00:00
|
|
|
${INSTALL_MAN} ${WRKBUILD}/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/
|
2011-07-24 07:31:57 +00:00
|
|
|
|
|
|
|
.for xpi guid in ${GUIDS}
|
2014-12-07 09:19:57 +00:00
|
|
|
${UNZIP} -oq ${WRKBUILD}/dist/xpi-stage/${xpi}*.xpi -d ${EXTDIR}/${guid}
|
2007-04-22 15:04:39 +00:00
|
|
|
.endfor
|
2014-03-24 21:34:21 +00:00
|
|
|
# install prefs
|
2014-08-10 09:58:04 +00:00
|
|
|
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
|
2014-04-29 21:47:00 +00:00
|
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/defaults/pref/all-openbsd.js
|
2011-07-24 07:31:57 +00:00
|
|
|
# install desktop file
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ; \
|
2014-08-10 09:58:04 +00:00
|
|
|
${SUBST_DATA} ${FILESDIR}/${MOZILLA_PROJECT}.desktop \
|
2011-08-24 06:19:50 +00:00
|
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop ; \
|
2012-11-24 10:36:20 +00:00
|
|
|
# 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
|
|
|
|
|
2006-12-22 23:32:27 +00:00
|
|
|
.include <bsd.port.mk>
|