2008-04-18 11:17:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.94 2008/04/18 15:17:17 martynas 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
|
|
|
|
2008-04-18 11:17:17 -04:00
|
|
|
VER= 2.0.0.14
|
2004-02-15 14:37:14 -05:00
|
|
|
DISTNAME= mozilla
|
2008-02-11 13:13:44 -05:00
|
|
|
PKGNAME= mozilla-firefox-${VER}
|
2007-01-12 16:46:17 -05:00
|
|
|
SO_VERSION= 19.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.
|
2005-12-31 13:35:56 -05:00
|
|
|
.for _lib in accessibility appcomps auth autoconfig browsercomps \
|
|
|
|
browserdirprovider caps chrome commandlines composer cookie docshell \
|
|
|
|
editor embedcomponents fileview gfx_gtk gfxps gfxpsshar gkgfx \
|
2007-01-12 16:46:17 -05:00
|
|
|
gklayout gkplugin gtkembedmoz gtkxtbin htmlpars i18n imglib2 jar50 \
|
|
|
|
jsd jsj mork mozfind mozjs myspell necko necko2 nsappshell nullplugin \
|
|
|
|
oji permissions pipboot pipnss pippki pref rdf remoteservice \
|
|
|
|
searchservice spellchecker storagecomps system-pref toolkitcomps \
|
|
|
|
transformiix txmgr uconv ucvmath universalchardet unixprintplugin \
|
2005-12-31 13:35:56 -05:00
|
|
|
webbrwsr websrvcs widget_gtk2 xmlextras xpcom xpcom_compat \
|
|
|
|
xpcom_compat_c xpcom_core xpconnect xpinstall xpistub
|
|
|
|
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
|
|
|
|
|
|
|
MASTER_SITES= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${VER}/source/
|
2004-11-26 13:29:14 -05:00
|
|
|
DISTFILES= firefox-${VER}-source.tar.bz2
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2007-01-12 16:46:17 -05:00
|
|
|
MODULES= devel/gettext
|
2007-12-19 09:47:50 -05:00
|
|
|
RUN_DEPENDS= :esound-*:audio/esound \
|
2007-12-19 12:25:28 -05:00
|
|
|
:desktop-file-utils-*:devel/desktop-file-utils
|
2008-01-23 11:41:40 -05:00
|
|
|
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
|
|
|
|
: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 \
|
2007-01-12 16:46:17 -05:00
|
|
|
nspr4.>=17,plc4.>=17,plds4.>=17:nspr->=4.6.4p1:devel/nspr \
|
|
|
|
nss3.>=19,smime3.>=19,softokn3.>=19,ssl3.>=19:nss->=3.11.4p1:security/nss
|
2007-10-27 05:04:32 -04:00
|
|
|
WANTLIB= X11 Xau Xcomposite Xdamage Xcursor Xdmcp Xext Xfixes \
|
|
|
|
Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat \
|
|
|
|
fontconfig freetype glib-2.0 glitz gmodule-2.0 \
|
|
|
|
gobject-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
|
2008-01-23 11:41:40 -05:00
|
|
|
png pthread stdc++ z \
|
|
|
|
Xft Xinerama Xt gthread-2.0 jpeg pangox-1.0
|
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
|
2007-01-12 16:46:17 -05:00
|
|
|
SUBST_VARS= LOCALBASE
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2006-11-17 14:14:51 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/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-png=${LOCALBASE} \
|
|
|
|
--with-system-zlib=/usr/lib \
|
2006-11-17 14:14:51 -05:00
|
|
|
--with-system-nspr \
|
2007-01-12 16:46:17 -05:00
|
|
|
--with-system-nss \
|
2004-02-15 14:37:14 -05:00
|
|
|
--with-pthreads \
|
|
|
|
--enable-xft \
|
2007-03-27 12:04:37 -04:00
|
|
|
--disable-optimize \
|
2005-09-08 08:48:39 -04:00
|
|
|
--enable-default-toolkit=gtk2 \
|
2004-02-15 14:37:14 -05:00
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
|
|
|
--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 \
|
|
|
|
--enable-xinerama \
|
|
|
|
--enable-svg \
|
|
|
|
--enable-svg-renderer=cairo \
|
|
|
|
--enable-system-cairo \
|
2007-03-01 17:46:06 -05:00
|
|
|
--enable-canvas \
|
|
|
|
--enable-official-branding
|
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 \
|
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-02-04 19:11:55 -05:00
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
|
2007-03-01 17:46:06 -05:00
|
|
|
MOZ_ENABLE_COREXFONTS=1 \
|
|
|
|
topsrcdir=${WRKSRC}
|
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 \
|
|
|
|
greprefs icons init.d plugins res searchplugins
|
|
|
|
|
2004-02-15 14:37:14 -05:00
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
|
|
|
|
${WRKSRC}/browser/app/mozilla.in
|
2005-04-09 11:43:47 -04:00
|
|
|
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
|
|
|
|
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2007-02-14 17:44:32 -05:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/xpfe/bootstrap && ${MAKE_PROGRAM} firefox.1
|
|
|
|
|
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}/{} \;
|
2007-03-01 17:46:06 -05:00
|
|
|
${INSTALL_DATA} ${MOB}/*.so.${SO_VERSION} ${MOZ}
|
2006-11-10 09:15:49 -05:00
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${MOZ}
|
2007-10-19 13:36:17 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE \
|
2007-12-20 17:41:18 -05:00
|
|
|
${FILESDIR}/browserconfig.properties ${MOZ}
|
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
|
2005-12-25 21:17:53 -05:00
|
|
|
@sed -e 's,!!PREFIX!!,${TRUEPREFIX},g' \
|
|
|
|
< ${FILESDIR}/README.OpenBSD > ${MOZ}/README.OpenBSD
|
2007-02-14 17:44:32 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/xpfe/bootstrap/firefox.1 ${PREFIX}/man/man1/
|
|
|
|
@ln -f ${PREFIX}/man/man1/firefox.1 ${PREFIX}/man/man1/mozilla-firefox.1
|
2007-12-19 09:47:50 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
|
|
@sed -e 's,!!PREFIX!!,${TRUEPREFIX},g' \
|
|
|
|
< ${FILESDIR}/firefox.desktop > \
|
|
|
|
${PREFIX}/share/applications/firefox.desktop
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|