2013-01-14 08:52:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.221 2013/01/14 13:52:59 landry Exp $
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
COMMENT = Mozilla web browser
|
2011-03-30 17:39:14 -04:00
|
|
|
BROKEN-sparc64 = https://bugzilla.mozilla.org/show_bug.cgi?id=577056
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-07-01 16:32:08 -04:00
|
|
|
# Don't forget to bump www/firefox-i18n after updates.
|
2011-03-30 17:39:14 -04:00
|
|
|
# Don't forget to update devel/xulrunner/2.0 if patches changes.
|
2011-03-21 04:45:37 -04:00
|
|
|
|
2013-01-11 17:57:14 -05:00
|
|
|
MOZILLA_VERSION = 18.0
|
2011-06-28 01:43:57 -04:00
|
|
|
MOZILLA_BRANCH = release
|
2011-07-08 07:07:32 -04:00
|
|
|
MOZILLA_PROJECT = firefox
|
2010-07-09 11:43:54 -04:00
|
|
|
MOZILLA_CODENAME = browser
|
2013-01-14 08:52:59 -05:00
|
|
|
REVISION = 0
|
2010-07-01 16:32:08 -04:00
|
|
|
|
Update to firefox 17.0.
- see http://www.mozilla.org/en-US/firefox/17.0/releasenotes/ for details
- enable the gio/libnotify interaction, since it brings no additional
dep. libnotify will be dlopened at runtime if present, and gio is
already in the dependency chain. The latter will interact with the gio mime
database for file associations, and firefox will ask the user if he
wants to register it as the default http:// handler. The former will
show a notify popup upon download completion, among others.
- add build depends on yasm in i386/amd64 for webm
- remove patch-browser_app_profile_firefox_js, the updater is already disabled
- remove gstreamer patches from #776838, #777696 & #747257, merged upstream
- remove ipc_message_utils.h patch from #775428, commited upstream
- remove mozalloc.cpp patch, <sys/types.h> is already included above
- remove xpcshell hang patchset from #706955, cant reproduce anymore
- remove patch-security_manager_ssl_src_Makefile_in, unneeded
- remove OS.File extra logging from #785200, merged upstream
- add patch-toolkit_system_gnome_nsGIOService_cpp, workaround for
#805202 (libgio-2.0.so dlopening), to be removed in fx 19
- remove xpcom arm patch from #783875, merged upstream
ok sthen@
2012-11-24 05:21:50 -05:00
|
|
|
#MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/nightly/${MOZILLA_VERSION}-candidates/build1/source/
|
2013-01-11 17:57:14 -05:00
|
|
|
SO_VERSION = 37.0
|
2005-04-09 11:43:47 -04:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
Update to firefox 17.0.
- see http://www.mozilla.org/en-US/firefox/17.0/releasenotes/ for details
- enable the gio/libnotify interaction, since it brings no additional
dep. libnotify will be dlopened at runtime if present, and gio is
already in the dependency chain. The latter will interact with the gio mime
database for file associations, and firefox will ask the user if he
wants to register it as the default http:// handler. The former will
show a notify popup upon download completion, among others.
- add build depends on yasm in i386/amd64 for webm
- remove patch-browser_app_profile_firefox_js, the updater is already disabled
- remove gstreamer patches from #776838, #777696 & #747257, merged upstream
- remove ipc_message_utils.h patch from #775428, commited upstream
- remove mozalloc.cpp patch, <sys/types.h> is already included above
- remove xpcshell hang patchset from #706955, cant reproduce anymore
- remove patch-security_manager_ssl_src_Makefile_in, unneeded
- remove OS.File extra logging from #785200, merged upstream
- add patch-toolkit_system_gnome_nsGIOService_cpp, workaround for
#805202 (libgio-2.0.so dlopening), to be removed in fx 19
- remove xpcom arm patch from #783875, merged upstream
ok sthen@
2012-11-24 05:21:50 -05:00
|
|
|
MOZILLA_LIBS = browsercomps mozalloc mozgnome \
|
2011-03-30 17:39:14 -04:00
|
|
|
xpcom xul
|
2007-02-04 19:11:55 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
CATEGORIES = www
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
# mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-01-12 16:46:17 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
# lots of logic in mozilla.port.mk
|
|
|
|
MODULES = www/mozilla devel/gettext lang/python
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
MODPY_RUNDEP = No
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2013-01-11 17:57:14 -05:00
|
|
|
# necessary glue to build with the correct compiler after fx 17
|
|
|
|
MODULES += gcc4 lang/clang
|
|
|
|
MODGCC4_VERSION = 4.6
|
|
|
|
MODGCC4_ARCHS = powerpc
|
|
|
|
MODGCC4_LANGS = c c++
|
|
|
|
MODCLANG_ARCHS = i386 amd64
|
|
|
|
MODCLANG_LANGS = c c++
|
|
|
|
|
2010-10-19 04:02:53 -04:00
|
|
|
USE_GROFF = Yes
|
2004-02-15 14:37:14 -05:00
|
|
|
# Regression tests are too hard to adapt to run here
|
2010-07-09 11:43:54 -04:00
|
|
|
NO_REGRESS = Yes
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
2013-01-11 17:57:14 -05:00
|
|
|
WANTLIB += kvm
|
2011-03-30 17:39:14 -04:00
|
|
|
|
2012-08-07 04:55:40 -04:00
|
|
|
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
|
|
|
|
|
2010-04-26 18:14:37 -04:00
|
|
|
# --with-system-png=${LOCALBASE}
|
|
|
|
# no system png : apng support not bundled in
|
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
MOZILLA_AUTOCONF_DIRS += js/src
|
2011-03-30 17:39:14 -04:00
|
|
|
|
2013-01-11 17:57:14 -05:00
|
|
|
# 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
|
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
post-install:
|
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/mozilla-firefox.1 \
|
|
|
|
${PREFIX}/man/man1/mozilla-firefox.1
|
2011-03-30 17:39:14 -04:00
|
|
|
cd ${PREFIX}/man/man1/ && ln -sf mozilla-firefox.1 firefox.1
|
|
|
|
cd ${PREFIX}/bin/ && ln -sf firefox mozilla-firefox
|
|
|
|
# install desktop file
|
2011-04-19 16:39:34 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
2011-08-24 02:19:50 -04:00
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/${MOZILLA_PROJECT}.desktop \
|
|
|
|
${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop
|
2012-10-10 16:56:13 -04:00
|
|
|
# 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
|
2011-04-19 16:39:34 -04:00
|
|
|
|
|
|
|
# link default48.png to default.png to be used by default by non-icccm compliant wm
|
2011-10-03 17:06:09 -04:00
|
|
|
ln ${PREFIX}/lib/firefox-${MOZILLA_VERSION:C/b.//}/chrome/icons/default/default{48,}.png
|
2004-02-15 14:37:14 -05:00
|
|
|
|
Update to firefox 17.0.
- see http://www.mozilla.org/en-US/firefox/17.0/releasenotes/ for details
- enable the gio/libnotify interaction, since it brings no additional
dep. libnotify will be dlopened at runtime if present, and gio is
already in the dependency chain. The latter will interact with the gio mime
database for file associations, and firefox will ask the user if he
wants to register it as the default http:// handler. The former will
show a notify popup upon download completion, among others.
- add build depends on yasm in i386/amd64 for webm
- remove patch-browser_app_profile_firefox_js, the updater is already disabled
- remove gstreamer patches from #776838, #777696 & #747257, merged upstream
- remove ipc_message_utils.h patch from #775428, commited upstream
- remove mozalloc.cpp patch, <sys/types.h> is already included above
- remove xpcshell hang patchset from #706955, cant reproduce anymore
- remove patch-security_manager_ssl_src_Makefile_in, unneeded
- remove OS.File extra logging from #785200, merged upstream
- add patch-toolkit_system_gnome_nsGIOService_cpp, workaround for
#805202 (libgio-2.0.so dlopening), to be removed in fx 19
- remove xpcom arm patch from #783875, merged upstream
ok sthen@
2012-11-24 05:21:50 -05:00
|
|
|
# cleanup useless dirs from #798450 (fx 18?)
|
|
|
|
rm -Rf ${PREFIX}/lib/firefox-${MOZILLA_VERSION:C/b.//}/modules
|
2012-06-11 11:29:56 -04:00
|
|
|
|
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
.include <bsd.port.mk>
|