2011-06-02 09:41:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.179 2011/06/02 13:41:41 ajacoutot 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-04-29 03:58:10 -04:00
|
|
|
MOZILLA_VERSION = 4.0.1
|
2011-03-30 17:39:14 -04:00
|
|
|
MOZILLA_BRANCH = 2.0
|
2010-07-09 11:43:54 -04:00
|
|
|
MOZILLA_PROJECT = mozilla-firefox
|
|
|
|
MOZILLA_CODENAME = browser
|
2011-06-02 09:41:36 -04:00
|
|
|
REVISION = 3
|
2010-07-01 16:32:08 -04:00
|
|
|
|
2011-03-30 17:39:14 -04:00
|
|
|
SO_VERSION = 23.0
|
|
|
|
NSS_SO_VERSION = 27.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-03-30 17:39:14 -04:00
|
|
|
CONFIGURE_ARGS += --enable-official-branding --disable-install-strip
|
|
|
|
CONFIGURE_ARGS += --with-system-libevent=/usr/
|
|
|
|
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-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-03-30 17:39:14 -04:00
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/${_MOZ_PROJECT_SHORT}.desktop \
|
2011-04-19 16:39:34 -04:00
|
|
|
${PREFIX}/share/applications/${_MOZ_PROJECT_SHORT}.desktop
|
|
|
|
|
|
|
|
# link default48.png to default.png to be used by default by non-icccm compliant wm
|
|
|
|
ln ${PREFIX}/lib/firefox-${MOZILLA_VERSION}/chrome/icons/default/default{48,}.png
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|