if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
86 lines
2.8 KiB
Makefile
86 lines
2.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.145 2021/02/23 19:39:47 sthen Exp $
|
|
|
|
COMMENT = Firefox web browser, Extended Support Release
|
|
ONLY_FOR_ARCHS = amd64 i386 aarch64
|
|
|
|
MOZILLA_VERSION = 78.8.0esr
|
|
MOZILLA_BRANCH = release
|
|
MOZILLA_PROJECT = firefox-esr
|
|
MOZILLA_CODENAME = browser
|
|
MOZILLA_DIST = firefox
|
|
|
|
WRKDIST = ${WRKDIR}/${MOZILLA_DIST}-${MOZILLA_DIST_VERSION:C/esr//}
|
|
HOMEPAGE = https://www.mozilla.org/firefox/organizations/
|
|
PKGNAME = ${MOZILLA_PROJECT}-${MOZILLA_VERSION:S/esr//}
|
|
SO_VERSION = 7.0
|
|
MOZILLA_LIBS = xul clearkey lgpllibs mozavcodec mozavutil mozgtk mozsqlite3
|
|
|
|
CATEGORIES = www
|
|
|
|
# mozilla public license
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
# lots of logic in mozilla.port.mk
|
|
MODULES = www/mozilla lang/python
|
|
|
|
MODPY_RUNDEP = No
|
|
|
|
COMPILER = base-clang ports-clang
|
|
MODCLANG_ARCHS = amd64 i386
|
|
|
|
# 63 requires node because why not #1483595
|
|
BUILD_DEPENDS += lang/node
|
|
# 63 requires cbindgen #1478813
|
|
BUILD_DEPENDS += devel/cbindgen>=0.14.3
|
|
|
|
# uses pledge()
|
|
WANTLIB += X11-xcb Xcursor Xi intl xcb xcb-shm harfbuzz ${COMPILER_LIBCXX}
|
|
|
|
# Regression tests are too hard to adapt to run here
|
|
NO_TEST = Yes
|
|
|
|
CONFIGURE_STYLE = simple
|
|
CONFIGURE_ARGS += --prefix=${PREFIX}
|
|
MAKE_ENV += BUILD_VERBOSE_LOG="1" CARGOFLAGS="-j${MAKE_JOBS}"
|
|
|
|
# avoid conflict with mainline firefox
|
|
CONFIGURE_ARGS += --with-app-name=${MOZILLA_PROJECT}
|
|
|
|
CONFIGURE_ARGS += --enable-release #1386371
|
|
CONFIGURE_ARGS += --enable-sandbox
|
|
CONFIGURE_ARGS += --with-libclang-path=${LOCALBASE}/lib
|
|
|
|
# XXX badly formed debug in libxul ?
|
|
DWZ = :
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
DEBUG_CONFIGURE_ARGS += --enable-debug-symbols \
|
|
--disable-install-strip
|
|
|
|
post-install:
|
|
# install prefs
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/defaults/preferences
|
|
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}/browser/defaults/preferences/all-openbsd.js
|
|
# install distribution.ini file
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}/distribution
|
|
echo "[Global]\nid=OpenBSD\nversion=${OSREV}\nabout=Packaged by ${MAINTAINER}\n" > \
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}/distribution/distribution.ini
|
|
# install desktop file
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
${SUBST_DATA} ${WRKSRC}/taskcluster/docker/firefox-snap/firefox.desktop \
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop
|
|
|
|
# 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
|
|
|
|
# link default48.png to default.png to be used by default by non-icccm compliant wm
|
|
ln -f ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/chrome/icons/default/default{48,}.png
|
|
|
|
.for f in unveil.content unveil.gpu unveil.main pledge.content pledge.gpu pledge.main
|
|
${INSTALL_DATA} ${FILESDIR}/${f} ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/defaults/preferences/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|