2011-10-03 17:06:09 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.192 2011/10/03 21:06:09 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
|
|
|
|
2011-10-03 17:06:09 -04:00
|
|
|
MOZILLA_VERSION = 7.0.1
|
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
|
2010-07-01 16:32:08 -04:00
|
|
|
|
2011-08-23 16:14:52 -04:00
|
|
|
# url for beta releases
|
|
|
|
# MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/releases/${MOZILLA_VERSION}/source/
|
2011-10-03 17:06:09 -04:00
|
|
|
SO_VERSION = 26.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.
|
2011-03-30 17:39:14 -04:00
|
|
|
MOZILLA_LIBS = browsercomps mozalloc \
|
|
|
|
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
|
|
|
|
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
|
2011-06-28 01:43:57 -04:00
|
|
|
CONFIGURE_ARGS += --enable-official-branding
|
2011-08-23 16:14:52 -04:00
|
|
|
CONFIGURE_ARGS += --with-system-libevent=/usr/ --disable-gconf
|
2011-03-30 17:39:14 -04:00
|
|
|
CONFIGURE_ARGS += --with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE}
|
|
|
|
WANTLIB += event
|
|
|
|
|
2011-04-05 05:00:42 -04:00
|
|
|
.if ${MACHINE_ARCH:Msparc64}
|
|
|
|
CONFIGURE_ARGS += --disable-tracejit --disable-methodjit
|
|
|
|
.endif
|
|
|
|
|
2011-06-28 07:57:39 -04:00
|
|
|
# needed during make install
|
|
|
|
BUILD_DEPENDS += archivers/unzip
|
|
|
|
|
2011-05-04 08:15:33 -04:00
|
|
|
# ensure we depend on cairo with tee backend enabled
|
|
|
|
LIB_DEPENDS = graphics/cairo>=1.10.2p0
|
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
|
|
|
MOZILLA_SUBST_FILES += config/autoconf.mk.in services/crypto/modules/WeaveCrypto.js
|
|
|
|
|
|
|
|
SUBST_VARS += MOZILLA_VERSION NSS_SO_VERSION
|
2007-02-14 17:44:32 -05:00
|
|
|
|
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
|
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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|