84 lines
2.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.308 2017/01/24 21:33:09 landry Exp $
2004-02-15 19:37:14 +00:00
COMMENT = Mozilla web browser
2004-02-15 19:37:14 +00:00
2010-07-01 20:32:08 +00:00
# Don't forget to bump www/firefox-i18n after updates.
MOZILLA_VERSION = 51.0
MOZILLA_BRANCH = release
MOZILLA_PROJECT = firefox
MOZILLA_CODENAME = browser
BROKEN-sparc64 = xpcshell SIGBUS during fake
EXTRACT_SUFX = .tar.xz
2010-07-01 20:32:08 +00:00
SO_VERSION = 69.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
MOZILLA_LIBS = browsercomps mozavcodec mozavutil mozgtk xul clearkey lgpllibs
CATEGORIES = www
2004-02-15 19:37:14 +00:00
# mozilla public license
PERMIT_PACKAGE_CDROM= Yes
# lots of logic in mozilla.port.mk
MODULES = www/mozilla devel/gettext lang/python
2004-02-15 19:37:14 +00:00
MODPY_RUNDEP = No
2004-02-15 19:37:14 +00:00
MODULES += lang/clang
MODCLANG_ARCHS = amd64 i386
MODCLANG_LANGS = c c++
# firefox >= 44 doesnt build with base libevent
MOZILLA_USE_BUNDLED_LIBEVENT = Yes
# firefox >= 46 defaults to gtk+3
MOZILLA_USE_GTK3 = Yes
WANTLIB += X11-xcb pixman-1 pthread-stubs xcb xcb-shm
2004-02-15 19:37:14 +00:00
# Regression tests are too hard to adapt to run here
2013-03-11 11:35:43 +00:00
NO_TEST = Yes
2004-02-15 19:37:14 +00:00
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += --prefix=${PREFIX}
# to be able to link when building with clang on i386
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS += --disable-debug-symbols
.endif
# relies on pulseaudio for sound and broken at runtime
#CONFIGURE_ARGS += --disable-webrtc
# bug #1064665
LIB_DEPENDS += textproc/icu4c
CONFIGURE_ARGS += --with-system-icu
WANTLIB += icudata icui18n icuuc
# bug 857628
CONFIGURE_ARGS += --enable-pie
post-install:
${SUBST_MAN} ${FILESDIR}/mozilla-firefox.1 \
${PREFIX}/man/man1/mozilla-firefox.1
cd ${PREFIX}/man/man1/ && ln -sf mozilla-firefox.1 firefox.1
cd ${PREFIX}/bin/ && ln -sf firefox mozilla-firefox
# install prefs
${INSTALL_DATA_DIR} ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/browser/defaults/preferences
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/browser/defaults/preferences/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}/browser/icons/mozicon128.png \
${PREFIX}/share/pixmaps/firefox.png
# link default48.png to default.png to be used by default by non-icccm compliant wm
ln ${PREFIX}/lib/firefox-${MOZILLA_VER}/browser/chrome/icons/default/default{48,}.png
2004-02-15 19:37:14 +00:00
.include <bsd.port.mk>