2019-07-12 20:50:46 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.229 2019/07/12 20:51:05 sthen 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
|
2017-08-08 10:20:29 +00:00
|
|
|
ONLY_FOR_ARCHS = amd64 i386
|
2019-07-04 07:23:45 +00:00
|
|
|
BROKEN-amd64 = xpcshell segfaults during fake since llvm8 update
|
2015-07-25 06:51:50 +00:00
|
|
|
|
2019-01-29 20:47:08 +00:00
|
|
|
# version = (TB version - 3) / 100 + 2
|
2018-08-01 05:28:50 +00:00
|
|
|
MOZILLA_VERSION = 2.49.4
|
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}
|
2018-08-01 05:28:50 +00:00
|
|
|
PKGNAME-lightning = lightning-seamonkey-5.4.4
|
2010-07-27 16:55:21 +00:00
|
|
|
EPOCH-lightning = 0
|
2019-07-09 17:59:09 +00:00
|
|
|
REVISION-main = 6
|
2019-06-25 20:25:20 +00:00
|
|
|
REVISION-lightning = 0
|
2010-07-27 16:55:21 +00:00
|
|
|
|
2013-04-06 14:48:09 +00:00
|
|
|
HOMEPAGE = http://www.seamonkey-project.org/
|
2012-10-21 09:55:47 +00:00
|
|
|
|
2017-11-14 20:46:56 +00:00
|
|
|
SO_VERSION = 47.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
|
|
|
|
2018-03-15 05:38:07 +00:00
|
|
|
MOZILLA_LIBS = ldap60 ldif60 mozavcodec mozavutil prldap60 suite xul lgpllibs
|
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
|
2019-07-12 20:50:46 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2017-11-14 20:46:56 +00:00
|
|
|
MODULES = www/mozilla lang/python
|
2012-10-21 09:55:47 +00:00
|
|
|
MODPY_RUNDEP = No
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2017-11-16 23:20:37 +00:00
|
|
|
COMPILER = base-clang ports-clang
|
2015-03-19 19:49:49 +00:00
|
|
|
MODCLANG_ARCHS = amd64 i386
|
2013-01-11 23:17:31 +00:00
|
|
|
|
2016-12-28 09:14:19 +00:00
|
|
|
# gecko >= 44 doesnt build with base libevent
|
|
|
|
MOZILLA_USE_BUNDLED_LIBEVENT = Yes
|
2016-12-30 08:25:18 +00:00
|
|
|
# gecko >= 46 defaults to gtk+3
|
2018-03-15 05:38:07 +00:00
|
|
|
#MOZILLA_USE_GTK3 = Yes
|
|
|
|
CONFIGURE_ARGS += --enable-default-toolkit=cairo-gtk2
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2006-12-22 23:32:27 +00:00
|
|
|
|
2016-12-28 09:14:19 +00:00
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
CONFIGURE_ARGS += --prefix=${PREFIX}
|
2012-11-25 13:49:47 +00:00
|
|
|
|
2017-11-14 20:46:56 +00:00
|
|
|
RUN_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
|
2018-08-01 05:28:50 +00:00
|
|
|
WANTLIB += X11-xcb fribidi intl pixman-1 xcb xcb-shm
|
2017-11-14 20:46:56 +00:00
|
|
|
WANTLIB-lightning=
|
2017-09-26 12:21:54 +00:00
|
|
|
|
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
|
|
|
|
2016-09-24 12:53:27 +00:00
|
|
|
# SQLITE_CFLAGS is set from pkgconfig, but it's not used for all files that need it
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
|
2018-12-01 12:15:23 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS += --disable-debug-symbols
|
|
|
|
DPB_PROPERTIES = lonesome
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
2017-11-14 20:46:56 +00:00
|
|
|
cp ${WRKBUILD}/dist/xpi-stage/gdata-provider*xpi \
|
|
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/distribution/extensions/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}.xpi
|
2016-12-30 07:04:39 +00:00
|
|
|
|
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>
|