2017-10-23 17:11:02 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.65 2017/10/23 17:11:03 sthen Exp $
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
COMMENT = Firefox web browser, Extended Support Release
|
2017-08-08 10:18:21 +00:00
|
|
|
ONLY_FOR_ARCHS = amd64 i386
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2017-09-28 16:41:13 +00:00
|
|
|
MOZILLA_VERSION = 52.4.0esr
|
2013-11-20 20:57:29 +00:00
|
|
|
MOZILLA_PROJECT = firefox
|
|
|
|
MOZILLA_CODENAME = browser
|
|
|
|
|
|
|
|
PKGNAME = ${MOZILLA_PROJECT}-esr-${MOZILLA_VERSION:S/esr//}
|
2017-03-07 15:36:45 +00:00
|
|
|
SO_VERSION = 4.0
|
|
|
|
MOZILLA_LIBS = xul clearkey lgpllibs mozavcodec mozavutil mozgtk
|
2017-10-23 17:11:02 +00:00
|
|
|
REVISION = 0
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
CATEGORIES = www
|
|
|
|
|
|
|
|
# mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
# lots of logic in mozilla.port.mk
|
|
|
|
MODULES = www/mozilla devel/gettext lang/python
|
|
|
|
|
|
|
|
MODPY_RUNDEP = No
|
|
|
|
|
2017-05-31 08:08:15 +00:00
|
|
|
COMPILER = clang
|
2015-05-16 07:26:12 +00:00
|
|
|
MODCLANG_ARCHS = amd64 i386
|
2013-11-20 20:57:29 +00:00
|
|
|
|
2016-04-27 14:01:02 +00:00
|
|
|
# firefox >= 44 doesnt build with base libevent
|
|
|
|
MOZILLA_USE_BUNDLED_LIBEVENT = Yes
|
2017-03-07 15:36:45 +00:00
|
|
|
# firefox >= 46 defaults to gtk+3
|
|
|
|
MOZILLA_USE_GTK3 = Yes
|
|
|
|
|
2017-10-23 17:11:02 +00:00
|
|
|
WANTLIB += X11-xcb pixman-1 xcb xcb-shm ${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}
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
# avoid conflict with mainline firefox
|
|
|
|
CONFIGURE_ARGS += --with-app-name=firefox-esr
|
|
|
|
|
2016-04-27 14:01:02 +00:00
|
|
|
# bug 857628
|
|
|
|
CONFIGURE_ARGS += --enable-pie
|
2013-11-20 20:57:29 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-04-29 21:30:57 +00:00
|
|
|
# install prefs
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/browser/defaults/preferences
|
2014-08-10 09:58:04 +00:00
|
|
|
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
|
2014-04-29 21:30:57 +00:00
|
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/browser/defaults/preferences/all-openbsd.js
|
2017-04-20 06:12:58 +00:00
|
|
|
# install distribution.ini file
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/distribution
|
|
|
|
echo "[Global]\nid=OpenBSD\nversion=${OSREV}\nabout=Packaged by ${MAINTAINER}\n" > \
|
|
|
|
${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER}/distribution/distribution.ini
|
2013-11-20 20:57:29 +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 \
|
2013-11-20 20:57:29 +00:00
|
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}-esr.desktop
|
|
|
|
# install icon for desktop file
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
|
|
|
|
${INSTALL_DATA} ${PREFIX}/lib/${MOZILLA_PROJECT}-esr-${MOZILLA_VER:S/esr//}/browser/icons/mozicon128.png \
|
|
|
|
${PREFIX}/share/pixmaps/firefox-esr.png
|
|
|
|
|
|
|
|
# link default48.png to default.png to be used by default by non-icccm compliant wm
|
|
|
|
ln ${PREFIX}/lib/firefox-esr-${MOZILLA_VER:S/esr//}/browser/chrome/icons/default/default{48,}.png
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|