2011-03-10 09:34:17 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.168 2011/03/10 14:34:18 dcoppa Exp $
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
COMMENT = Mozilla web browser
|
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-02 09:39:48 -05:00
|
|
|
MOZILLA_VERSION = 3.6.14
|
2010-07-09 11:43:54 -04:00
|
|
|
MOZILLA_BRANCH = 1.9.2
|
|
|
|
MOZILLA_PROJECT = mozilla-firefox
|
|
|
|
MOZILLA_CODENAME = browser
|
2011-03-10 09:34:17 -05:00
|
|
|
REVISION = 0
|
2010-07-01 16:32:08 -04:00
|
|
|
|
2011-01-14 17:49:47 -05:00
|
|
|
SO_VERSION = 22.2
|
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.
|
2010-07-09 11:43:54 -04:00
|
|
|
MOZILLA_LIBS = browsercomps browserdirprovider imgicon mozjs \
|
2011-01-14 17:49:47 -05:00
|
|
|
xpcom xul nullplugin unixprintplugin
|
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
|
|
|
# needed for convert xpm icon to png
|
2010-11-22 03:36:47 -05:00
|
|
|
BUILD_DEPENDS += graphics/netpbm
|
2004-02-15 14:37:14 -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
|
|
|
|
CONFIGURE_ARGS += --enable-official-branding
|
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_DATADIRS = chrome components defaults dictionaries extensions \
|
|
|
|
greprefs icons modules plugins res searchplugins
|
2009-05-01 18:53:25 -04:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
MOZILLA_AUTOCONF_DIRS += js/src
|
|
|
|
MOZILLA_SUBST_FILES += config/autoconf.mk.in
|
2007-02-14 17:44:32 -05:00
|
|
|
|
2010-07-09 11:43:54 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/browserconfig.properties ${MOB}/LICENSE ${MOB}/blocklist.xml ${MOZ}
|
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/mozilla-firefox.1 \
|
|
|
|
${PREFIX}/man/man1/mozilla-firefox.1
|
2008-11-20 18:41:32 -05:00
|
|
|
ln -f ${PREFIX}/man/man1/mozilla-firefox.1 ${PREFIX}/man/man1/firefox.1
|
2004-11-26 13:29:14 -05:00
|
|
|
ln -f ${PREFIX}/bin/firefox ${PREFIX}/bin/mozilla-firefox
|
|
|
|
ln -f ${MOZ}/firefox-bin ${MOZ}/mozilla-firefox-bin
|
2010-04-26 18:14:37 -04:00
|
|
|
# create an xpm icon from the png one as nsWindow::SetWindowIconList
|
|
|
|
# fails to load png icons : confuses the png pixbuf loader from gtk, which
|
|
|
|
# differs from the libpng bundled in firefox
|
2010-04-28 02:56:38 -04:00
|
|
|
cd ${MOZ}/chrome/icons/default/ && \
|
|
|
|
${LOCALBASE}/bin/pngtopnm -alpha default48.png > ${WRKSRC}/alpha.pgm && \
|
|
|
|
${LOCALBASE}/bin/pngtopnm default48.png | \
|
|
|
|
${LOCALBASE}/bin/ppmtoxpm -alphamask=${WRKSRC}/alpha.pgm > default.xpm
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|