2021-02-13 05:05:54 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.143 2021/02/13 05:05:55 jsg Exp $
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
COMMENT = Firefox web browser, Extended Support Release
|
2019-12-03 17:02:20 +00:00
|
|
|
ONLY_FOR_ARCHS = amd64 i386 aarch64
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2021-02-05 14:42:14 +00:00
|
|
|
MOZILLA_VERSION = 78.7.1esr
|
2018-06-27 05:11:34 +00:00
|
|
|
MOZILLA_BRANCH = release
|
2020-07-30 14:28:23 +00:00
|
|
|
MOZILLA_PROJECT = firefox-esr
|
2013-11-20 20:57:29 +00:00
|
|
|
MOZILLA_CODENAME = browser
|
2020-07-30 14:28:23 +00:00
|
|
|
MOZILLA_DIST = firefox
|
2021-02-13 05:05:54 +00:00
|
|
|
REVISION = 0
|
2020-03-26 14:52:38 +00:00
|
|
|
|
2018-06-27 05:11:34 +00:00
|
|
|
WRKDIST = ${WRKDIR}/${MOZILLA_DIST}-${MOZILLA_DIST_VERSION:C/esr//}
|
2017-12-08 13:13:15 +00:00
|
|
|
HOMEPAGE = https://www.mozilla.org/firefox/organizations/
|
2020-07-30 14:28:23 +00:00
|
|
|
PKGNAME = ${MOZILLA_PROJECT}-${MOZILLA_VERSION:S/esr//}
|
2020-07-28 14:21:48 +00:00
|
|
|
SO_VERSION = 7.0
|
|
|
|
MOZILLA_LIBS = xul clearkey lgpllibs mozavcodec mozavutil mozgtk mozsqlite3
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
CATEGORIES = www
|
|
|
|
|
|
|
|
# mozilla public license
|
2019-07-12 20:50:46 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
# lots of logic in mozilla.port.mk
|
2017-11-14 20:12:26 +00:00
|
|
|
MODULES = www/mozilla lang/python
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
MODPY_RUNDEP = No
|
2020-07-28 14:21:48 +00:00
|
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2018-06-27 05:11:34 +00:00
|
|
|
COMPILER = base-clang ports-clang
|
2015-05-16 07:26:12 +00:00
|
|
|
MODCLANG_ARCHS = amd64 i386
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2019-09-03 16:31:12 +00:00
|
|
|
# 63 requires node because why not #1483595
|
|
|
|
BUILD_DEPENDS += lang/node
|
|
|
|
# 63 requires cbindgen #1478813
|
2020-07-28 14:21:48 +00:00
|
|
|
BUILD_DEPENDS += devel/cbindgen>=0.14.3
|
2018-06-27 05:11:34 +00:00
|
|
|
|
2019-12-23 09:04:10 +00:00
|
|
|
# uses pledge()
|
2020-07-28 14:21:48 +00:00
|
|
|
WANTLIB += X11-xcb Xcursor Xi intl xcb xcb-shm harfbuzz ${COMPILER_LIBCXX}
|
2016-04-27 14:01:02 +00:00
|
|
|
|
2013-11-20 20:57:29 +00:00
|
|
|
# Regression tests are too hard to adapt to run here
|
|
|
|
NO_TEST = Yes
|
|
|
|
|
2017-03-07 15:36:45 +00:00
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
CONFIGURE_ARGS += --prefix=${PREFIX}
|
2019-12-12 14:16:36 +00:00
|
|
|
MAKE_ENV += BUILD_VERBOSE_LOG="1" CARGOFLAGS="-j${MAKE_JOBS}"
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
# avoid conflict with mainline firefox
|
2020-07-30 14:28:23 +00:00
|
|
|
CONFIGURE_ARGS += --with-app-name=${MOZILLA_PROJECT}
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2018-06-27 05:11:34 +00:00
|
|
|
CONFIGURE_ARGS += --enable-release #1386371
|
2020-07-28 14:21:48 +00:00
|
|
|
CONFIGURE_ARGS += --enable-sandbox
|
2019-09-03 16:31:12 +00:00
|
|
|
CONFIGURE_ARGS += --with-libclang-path=${LOCALBASE}/lib
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2020-07-28 14:21:48 +00:00
|
|
|
# XXX badly formed debug in libxul ?
|
|
|
|
DWZ = :
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
2019-11-14 19:02:24 +00:00
|
|
|
DEBUG_CONFIGURE_ARGS += --enable-debug-symbols \
|
|
|
|
--disable-install-strip
|
2019-10-01 04:39:31 +00:00
|
|
|
|
2013-11-20 20:57:29 +00:00
|
|
|
post-install:
|
2014-04-29 21:30:57 +00:00
|
|
|
# install prefs
|
2020-07-30 14:28:23 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/defaults/preferences
|
2014-08-10 09:58:04 +00:00
|
|
|
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
|
2020-07-30 14:28:23 +00:00
|
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}/browser/defaults/preferences/all-openbsd.js
|
2017-04-20 06:12:58 +00:00
|
|
|
# install distribution.ini file
|
2020-07-30 14:28:23 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}/distribution
|
2017-04-20 06:12:58 +00:00
|
|
|
echo "[Global]\nid=OpenBSD\nversion=${OSREV}\nabout=Packaged by ${MAINTAINER}\n" > \
|
2020-07-30 14:28:23 +00:00
|
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}/distribution/distribution.ini
|
2013-11-20 20:57:29 +00:00
|
|
|
# install desktop file
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
2020-07-30 14:28:23 +00:00
|
|
|
${SUBST_DATA} ${WRKSRC}/taskcluster/docker/firefox-snap/firefox.desktop \
|
|
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2020-11-17 16:09:58 +00:00
|
|
|
# install icon for desktop file
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
|
|
|
|
${INSTALL_DATA} ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/chrome/icons/default/default128.png \
|
|
|
|
${PREFIX}/share/pixmaps/${MOZILLA_PROJECT}.png
|
|
|
|
|
2013-11-20 20:57:29 +00:00
|
|
|
# link default48.png to default.png to be used by default by non-icccm compliant wm
|
2020-10-06 15:43:09 +00:00
|
|
|
ln -f ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/chrome/icons/default/default{48,}.png
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2020-07-28 14:21:48 +00:00
|
|
|
.for f in unveil.content unveil.gpu unveil.main pledge.content pledge.gpu pledge.main
|
2020-07-30 14:28:23 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/${f} ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/defaults/preferences/
|
2020-07-28 14:21:48 +00:00
|
|
|
.endfor
|
|
|
|
|
2013-11-20 20:57:29 +00:00
|
|
|
.include <bsd.port.mk>
|