there may be some missing as my unpacked ports source is a little out of date but this should catch the main things people might run into the struct was reordered a second time in sysctl.h r1.192 to improve compatibility but amd64 snapshot packages made it out before that happened so the bumps are still needed
82 lines
2.4 KiB
Makefile
82 lines
2.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.226 2019/06/25 20:25:23 sthen Exp $
|
|
|
|
COMMENT-main = Mozilla application suite
|
|
COMMENT-lightning = Mozilla Seamonkey calendar extension
|
|
ONLY_FOR_ARCHS = amd64 i386
|
|
|
|
# version = (TB version - 3) / 100 + 2
|
|
MOZILLA_VERSION = 2.49.4
|
|
MOZILLA_PROJECT = seamonkey
|
|
MOZILLA_CODENAME = suite
|
|
|
|
MULTI_PACKAGES = -main -lightning
|
|
PKGNAME-main = ${PKGNAME}
|
|
PKGNAME-lightning = lightning-seamonkey-5.4.4
|
|
EPOCH-lightning = 0
|
|
REVISION-main = 5
|
|
REVISION-lightning = 0
|
|
|
|
HOMEPAGE = http://www.seamonkey-project.org/
|
|
|
|
SO_VERSION = 47.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 mozavcodec mozavutil prldap60 suite xul lgpllibs
|
|
|
|
CATEGORIES= www mail net news
|
|
|
|
# MPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES = www/mozilla lang/python
|
|
MODPY_RUNDEP = No
|
|
|
|
COMPILER = base-clang ports-clang
|
|
MODCLANG_ARCHS = amd64 i386
|
|
|
|
# gecko >= 44 doesnt build with base libevent
|
|
MOZILLA_USE_BUNDLED_LIBEVENT = Yes
|
|
# gecko >= 46 defaults to gtk+3
|
|
#MOZILLA_USE_GTK3 = Yes
|
|
CONFIGURE_ARGS += --enable-default-toolkit=cairo-gtk2
|
|
NO_TEST= Yes
|
|
|
|
CONFIGURE_STYLE = simple
|
|
CONFIGURE_ARGS += --prefix=${PREFIX}
|
|
|
|
RUN_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
|
|
WANTLIB += X11-xcb fribidi intl pixman-1 xcb xcb-shm
|
|
WANTLIB-lightning=
|
|
|
|
# build lightning xpi
|
|
CONFIGURE_ARGS += --enable-calendar
|
|
|
|
# SQLITE_CFLAGS is set from pkgconfig, but it's not used for all files that need it
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
CONFIGURE_ARGS += --disable-debug-symbols
|
|
DPB_PROPERTIES = lonesome
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKBUILD}/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/
|
|
|
|
cp ${WRKBUILD}/dist/xpi-stage/gdata-provider*xpi \
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/distribution/extensions/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}.xpi
|
|
|
|
# install prefs
|
|
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/defaults/pref/all-openbsd.js
|
|
# install desktop file
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ; \
|
|
${SUBST_DATA} ${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>
|