2010-05-09 05:35:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.137 2010/05/09 09:35:55 dcoppa Exp $
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2007-03-27 12:04:37 -04:00
|
|
|
SHARED_ONLY= Yes
|
2007-02-26 09:21:26 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha amd64 arm i386 powerpc sparc sparc64
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2008-01-23 11:41:40 -05:00
|
|
|
COMMENT= redesign of Mozilla's browser component
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-04-26 15:55:58 -04:00
|
|
|
VER= 3.6.3
|
|
|
|
DISTNAME= mozilla-1.9.2
|
2010-05-09 05:35:55 -04:00
|
|
|
PKGNAME= mozilla-firefox-${VER}p2
|
2010-04-26 15:55:58 -04:00
|
|
|
SO_VERSION= 21.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.
|
2010-04-26 15:55:58 -04:00
|
|
|
.for _lib in browsercomps browserdirprovider imgicon freebl3 mozjs \
|
|
|
|
nspr4 nss3 nssckbi nssdbm3 nssutil3 plc4 plds4 smime3 \
|
|
|
|
softokn3 ssl3 xpcom xul nullplugin unixprintplugin
|
2005-12-31 13:35:56 -05:00
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
CATEGORIES= www
|
|
|
|
|
2007-02-04 19:11:55 -05:00
|
|
|
FLAVORS= debug
|
|
|
|
FLAVOR?=
|
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/firefox/
|
|
|
|
|
|
|
|
# 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-04-26 15:55:58 -04:00
|
|
|
MASTER_SITES= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${VER}/source/
|
|
|
|
DISTFILES= firefox-${VER}.source.tar.bz2
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2008-11-20 18:41:32 -05:00
|
|
|
MODULES= devel/gettext lang/python
|
2009-05-01 18:53:25 -04:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
|
2008-01-23 11:41:40 -05:00
|
|
|
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
|
2010-04-26 18:14:37 -04:00
|
|
|
::graphics/netpbm \
|
2008-01-23 11:41:40 -05:00
|
|
|
:zip->=2.3:archivers/zip
|
2006-11-17 14:14:51 -05:00
|
|
|
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
2010-04-26 15:55:58 -04:00
|
|
|
sqlite3.>=13.3:sqlite3->=3.6.16:databases/sqlite3
|
|
|
|
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes Xi \
|
2008-11-20 18:41:32 -05:00
|
|
|
Xinerama Xrandr Xrender Xt atk-1.0 c cairo expat fontconfig \
|
2009-03-10 08:08:34 -04:00
|
|
|
freetype gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0 \
|
|
|
|
gthread-2.0 jpeg m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
|
2010-05-09 05:35:55 -04:00
|
|
|
pixman-1 png pthread pthread-stubs sndio stdc++ xcb \
|
|
|
|
xcb-render xcb-render-util z
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
# Regression tests are too hard to adapt to run here
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2010-04-26 15:55:58 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf \
|
|
|
|
${WRKSRC}/js/src/build/autoconf \
|
|
|
|
${WRKSRC}/nsprpub/build/autoconf
|
2004-08-04 12:12:14 -04:00
|
|
|
|
2004-05-06 10:39:49 -04:00
|
|
|
AUTOCONF_VERSION= 2.13
|
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
2004-02-15 14:37:14 -05:00
|
|
|
CONFIGURE_ARGS= --with-system-jpeg=${LOCALBASE} \
|
|
|
|
--with-system-zlib=/usr/lib \
|
|
|
|
--with-pthreads \
|
|
|
|
--enable-xft \
|
2007-03-27 12:04:37 -04:00
|
|
|
--disable-optimize \
|
2008-11-20 18:41:32 -05:00
|
|
|
--enable-default-toolkit=cairo-gtk2 \
|
2004-02-15 14:37:14 -05:00
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
2008-11-20 18:41:32 -05:00
|
|
|
--disable-freetypetest \
|
|
|
|
--disable-mochitest \
|
|
|
|
--disable-libIDLtest \
|
|
|
|
--disable-glibtest \
|
2004-02-15 14:37:14 -05:00
|
|
|
--disable-pedantic \
|
2005-09-24 12:19:29 -04:00
|
|
|
--disable-installer \
|
2005-12-20 18:44:00 -05:00
|
|
|
--disable-updater \
|
|
|
|
--disable-gnomeui \
|
|
|
|
--disable-gnomevfs \
|
2008-11-20 18:41:32 -05:00
|
|
|
--disable-dbus \
|
2005-12-20 18:44:00 -05:00
|
|
|
--enable-xinerama \
|
|
|
|
--enable-svg \
|
|
|
|
--enable-svg-renderer=cairo \
|
|
|
|
--enable-system-cairo \
|
2008-11-20 18:41:32 -05:00
|
|
|
--enable-system-sqlite \
|
2007-03-01 17:46:06 -05:00
|
|
|
--enable-canvas \
|
2009-09-10 17:34:55 -04:00
|
|
|
--disable-crashreporter \
|
2010-04-26 15:55:58 -04:00
|
|
|
--disable-libnotify \
|
|
|
|
--disable-necko-wifi \
|
2007-03-01 17:46:06 -05:00
|
|
|
--enable-official-branding
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2010-04-26 18:14:37 -04:00
|
|
|
# --with-system-png=${LOCALBASE}
|
|
|
|
# no system png : apng support not bundled in
|
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
# from browser/config/mozconfig
|
2005-12-20 18:44:00 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-application=browser
|
|
|
|
|
2007-02-04 19:11:55 -05:00
|
|
|
.if ${FLAVOR:L:Mdebug}
|
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
.endif
|
|
|
|
|
2005-12-20 18:44:00 -05:00
|
|
|
MAKE_ENV= MOZ_CO_PROJECT=browser \
|
2005-04-09 11:43:47 -04:00
|
|
|
LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
|
2005-04-16 11:49:17 -04:00
|
|
|
BUILD_OFFICIAL=1 \
|
|
|
|
MOZILLA_OFFICIAL=1 \
|
2010-04-26 15:55:58 -04:00
|
|
|
NSS_ENABLE_ECC=1 \
|
|
|
|
NSS_USE_SYSTEM_SQLITE=1 \
|
2007-03-01 17:46:06 -05:00
|
|
|
SO_VERSION="${SO_VERSION}"
|
2005-12-20 18:44:00 -05:00
|
|
|
CONFIGURE_ENV= ${MAKE_ENV} \
|
2007-03-01 17:46:06 -05:00
|
|
|
MOZ_ENABLE_COREXFONTS=1 \
|
|
|
|
topsrcdir=${WRKSRC}
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2008-11-20 18:41:32 -05:00
|
|
|
MODPY_RUNDEP= No
|
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
MOB= ${WRKSRC}/dist/bin
|
|
|
|
MOZ= ${PREFIX}/mozilla-firefox
|
|
|
|
|
2007-06-01 04:03:42 -04:00
|
|
|
DATADIRS= chrome components defaults dictionaries extensions \
|
2008-11-20 18:41:32 -05:00
|
|
|
greprefs icons modules plugins res searchplugins
|
2007-06-01 04:03:42 -04:00
|
|
|
|
2010-04-28 02:56:38 -04:00
|
|
|
SUBST_VARS+= VER
|
|
|
|
|
2009-05-01 18:53:25 -04:00
|
|
|
post-extract:
|
2010-04-26 15:55:58 -04:00
|
|
|
@find ${WRKSRC} -name "*.orig" -exec rm -f {} \;
|
2009-05-01 18:53:25 -04:00
|
|
|
@cp -f ${FILESDIR}/nsSound.cpp ${WRKSRC}/widget/src/gtk2/
|
2010-04-26 15:55:58 -04:00
|
|
|
@cp -f ${FILESDIR}/sydney_audio_sndio.c \
|
|
|
|
${WRKSRC}/media/libsydneyaudio/src/
|
2009-05-01 18:53:25 -04:00
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
pre-configure:
|
2010-04-26 15:55:58 -04:00
|
|
|
cd ${WRKSRC}/js/src && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
|
|
|
cd ${WRKSRC}/nsprpub && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
2010-04-28 02:56:38 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/xpcom/io/nsAppFileLocationProvider.cpp \
|
2010-04-26 15:55:58 -04:00
|
|
|
${WRKSRC}/build/unix/mozilla.in \
|
2008-11-20 18:41:32 -05:00
|
|
|
${WRKSRC}/extensions/spellcheck/hunspell/src/mozHunspell.cpp \
|
|
|
|
${WRKSRC}/js/src/xpconnect/shell/Makefile.in \
|
|
|
|
${WRKSRC}/toolkit/xre/nsXREDirProvider.cpp
|
2007-02-14 17:44:32 -05:00
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
do-install:
|
2007-06-01 04:03:42 -04:00
|
|
|
cd ${MOB} && \
|
|
|
|
find ${DATADIRS} -type d \
|
|
|
|
-exec ${INSTALL_DATA_DIR} ${MOZ}/{} \; && \
|
|
|
|
find ${DATADIRS} ! -type d \
|
|
|
|
-exec ${INSTALL_DATA} -m 644 {} ${MOZ}/{} \;
|
2008-11-20 18:41:32 -05:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD \
|
|
|
|
${FILESDIR}/browserconfig.properties ${MOB}/*.so.${SO_VERSION} \
|
|
|
|
${MOB}/LICENSE ${MOB}/application.ini ${MOB}/blocklist.xml \
|
|
|
|
${MOB}/platform.ini ${MOZ}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/firefox.desktop ${PREFIX}/share/applications
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/mozilla-firefox.1 ${PREFIX}/man/man1
|
2010-04-28 02:56:38 -04:00
|
|
|
${SUBST_CMD} ${MOZ}/README.OpenBSD ${PREFIX}/man/man1/mozilla-firefox.1 \
|
2008-11-20 18:41:32 -05:00
|
|
|
${PREFIX}/share/applications/firefox.desktop
|
2010-04-28 02:56:38 -04:00
|
|
|
rm -f ${MOZ}/README.OpenBSD.beforesubst \
|
|
|
|
${PREFIX}/man/man1/mozilla-firefox.1.beforesubst \
|
|
|
|
${PREFIX}/share/applications/firefox.desktop.beforesubst
|
2008-11-20 18:41:32 -05:00
|
|
|
ln -f ${PREFIX}/man/man1/mozilla-firefox.1 ${PREFIX}/man/man1/firefox.1
|
2008-01-23 11:41:40 -05:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/firefox ${PREFIX}/bin
|
2004-11-26 13:29:14 -05:00
|
|
|
ln -f ${PREFIX}/bin/firefox ${PREFIX}/bin/mozilla-firefox
|
2005-04-09 11:43:47 -04:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOZ}
|
2007-01-12 16:46:17 -05:00
|
|
|
${INSTALL_PROGRAM} ${MOB}/firefox-bin ${MOB}/mozilla-xremote-client \
|
2008-01-23 11:41:40 -05:00
|
|
|
${MOB}/regxpcom ${MOZ}
|
2004-11-26 13:29:14 -05:00
|
|
|
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>
|