ba75ae9fbb
- See http://www.mozilla.org/en-US/firefox/20.0/releasenotes/ - Fixes MFSA 2013-30->40 - switch back to use clang on i386, now that llvm got fixed there - backport libffi i386 fix (TODO: switch to systemwide libffi if possible) - add nicer fix to avoid installing the sdk lib/headers
85 lines
2.7 KiB
Makefile
85 lines
2.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.230 2013/04/06 14:44:52 landry Exp $
|
|
|
|
COMMENT = Mozilla web browser
|
|
BROKEN-sparc64 = https://bugzilla.mozilla.org/show_bug.cgi?id=577056
|
|
|
|
# Don't forget to bump www/firefox-i18n after updates.
|
|
# Don't forget to update devel/xulrunner/2.0 if patches changes.
|
|
|
|
MOZILLA_VERSION = 20.0
|
|
MOZILLA_BRANCH = release
|
|
MOZILLA_PROJECT = firefox
|
|
MOZILLA_CODENAME = browser
|
|
|
|
#MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/nightly/${MOZILLA_VERSION}-candidates/build1/source/
|
|
SO_VERSION = 39.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 mozalloc mozgnome \
|
|
xpcom xul
|
|
|
|
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
|
|
|
|
# necessary glue to build with the correct compiler after fx 17
|
|
MODULES += gcc4 lang/clang
|
|
MODGCC4_ARCHS = powerpc
|
|
MODGCC4_LANGS = c c++
|
|
MODCLANG_ARCHS = amd64 i386
|
|
MODCLANG_LANGS = c c++
|
|
|
|
USE_GROFF = Yes
|
|
# Regression tests are too hard to adapt to run here
|
|
NO_TEST = Yes
|
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
|
WANTLIB += kvm
|
|
|
|
CONFIGURE_ARGS += --enable-gstreamer
|
|
LIB_DEPENDS += multimedia/gstreamer-0.10/plugins-base
|
|
|
|
WANTLIB += gmodule-2.0 gstapp-0.10 gstbase-0.10 gstreamer-0.10
|
|
WANTLIB += gstvideo-0.10 xml2
|
|
|
|
RUN_DEPENDS += multimedia/gstreamer-0.10/plugins-good
|
|
|
|
# --with-system-png=${LOCALBASE}
|
|
# no system png : apng support not bundled in
|
|
|
|
MOZILLA_AUTOCONF_DIRS += js/src
|
|
|
|
# add method appeared in 18
|
|
post-patch:
|
|
echo "UNSUPPORTED(int sa_stream_set_stream_type(sa_stream_t *s, const sa_stream_type_t stream_type))" \
|
|
>> ${WRKSRC}/${_MOZDIR}/media/libsydneyaudio/src/sydney_audio_sndio.c
|
|
|
|
post-install:
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${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 desktop file
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${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}/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_VERSION:C/b.//}/chrome/icons/default/default{48,}.png
|
|
|
|
# cleanup useless dirs from #798450 (fx 18?)
|
|
rm -Rf ${PREFIX}/lib/firefox-${MOZILLA_VERSION:C/b.//}/modules
|
|
|
|
|
|
.include <bsd.port.mk>
|