2007-01-12 16:46:17 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.63 2007/01/12 21:46:17 kurt Exp $
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2005-03-02 14:30:18 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha amd64 i386 powerpc sparc sparc64
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2007-01-12 16:46:17 -05:00
|
|
|
COMMENT-main= "redesign of Mozilla's browser component"
|
|
|
|
COMMENT-devel= "devel files for Gecko"
|
2004-02-15 14:37:14 -05:00
|
|
|
|
2007-01-12 16:46:17 -05:00
|
|
|
VER= 2.0.0.1
|
2004-02-15 14:37:14 -05:00
|
|
|
DISTNAME= mozilla
|
2006-12-21 04:53:43 -05:00
|
|
|
PKGNAME= mozilla-firefox-${VER}
|
2007-01-12 16:46:17 -05:00
|
|
|
PKGNAME-main= mozilla-firefox-${VER}
|
|
|
|
PKGNAME-devel= mozilla-firefox-devel-${VER}
|
|
|
|
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
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/firefox/
|
|
|
|
|
2007-01-12 16:46:17 -05:00
|
|
|
MULTI_PACKAGES= -main -devel
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|
2005-11-15 04:21:50 -05:00
|
|
|
RUN_DEPENDS= :esound-*:audio/esound
|
2007-01-12 16:46:17 -05:00
|
|
|
BUILD_DEPENDS= :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
|
|
|
|
WANTLIB= X11 Xext Xrender atk-1.0 c cairo fontconfig freetype \
|
|
|
|
glib-2.0 glitz gmodule-2.0 gobject-2.0 m pango-1.0 \
|
|
|
|
pangocairo-1.0 pangoft2-1.0 png pthread stdc++ z
|
|
|
|
|
|
|
|
WANTLIB-main= ${WANTLIB} Xft Xinerama Xt jpeg
|
|
|
|
|
|
|
|
LIB_DEPENDS-devel= ${MODGETTEXT_LIB_DEPENDS} IDL-2::devel/libIDL \
|
|
|
|
mozilla-firefox/gtkembedmoz,mozilla-firefox/mozjs,mozilla-firefox/xpcom,mozilla-firefox/xpcom_core:${PKGNAME-main}:www/mozilla-firefox,-main
|
|
|
|
WANTLIB-devel= ${WANTLIB} gdk-x11-2.0 gdk_pixbuf-2.0 gtk-x11-2.0 \
|
|
|
|
nspr4 plc4 plds4
|
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 \
|
|
|
|
--enable-optimize=-Os \
|
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 \
|
|
|
|
--enable-canvas
|
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
|
|
|
|
|
|
|
|
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-01-12 16:46:17 -05:00
|
|
|
SO_VERSION="${SO_VERSION}" \
|
|
|
|
NSS_ENABLE_ECC=1
|
2005-12-20 18:44:00 -05:00
|
|
|
CONFIGURE_ENV= ${MAKE_ENV} \
|
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
MOB= ${WRKSRC}/dist/bin
|
|
|
|
MOZ= ${PREFIX}/mozilla-firefox
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cp ${FILESDIR}/xptc* ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/
|
|
|
|
|
|
|
|
pre-configure:
|
2007-01-12 16:46:17 -05:00
|
|
|
@cd ${WRKSRC}/browser/base/branding && cp aboutCredits.png about.png
|
2004-02-15 14:37:14 -05:00
|
|
|
@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
|
|
|
|
|
|
|
do-install:
|
2007-01-12 16:46:17 -05:00
|
|
|
.for dir in include idl
|
2004-11-26 13:29:14 -05:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
2007-01-12 16:46:17 -05:00
|
|
|
@cd ${WRKSRC}/dist && ${TAR} -chf - ${dir} | \
|
2004-02-15 14:37:14 -05:00
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
2007-01-12 16:46:17 -05:00
|
|
|
.for dir in chrome components defaults dictionaries extensions greprefs icons \
|
|
|
|
init.d plugins res searchplugins
|
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
|
|
|
@cd ${MOB} && ${TAR} -chf - ${dir}/ | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
|
|
|
@cd ${MOB} && ${TAR} -chf - *.so.${SO_VERSION} | \
|
2004-02-15 14:37:14 -05:00
|
|
|
${TAR} -xf - -C ${MOZ}
|
2007-01-12 16:46:17 -05:00
|
|
|
@chmod 444 ${MOZ}/*.so.${SO_VERSION} \
|
|
|
|
${MOZ}/components/*.so.${SO_VERSION} \
|
|
|
|
${MOZ}/components/*.js \
|
|
|
|
${MOZ}/plugins/*.so.${SO_VERSION}
|
2006-11-10 09:15:49 -05:00
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${MOZ}
|
2007-01-12 16:46:17 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE \
|
|
|
|
${MOB}/bloaturls.txt \
|
|
|
|
${MOB}/browserconfig.properties ${MOZ}
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/firefox \
|
|
|
|
${MOB}/firefox-config ${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 \
|
|
|
|
${MOB}/regxpcom ${MOB}/TestGtkEmbed ${MOB}/nsinstall \
|
|
|
|
${MOB}/xpcshell ${MOB}/xpicleanup ${MOB}/xpidl \
|
|
|
|
${MOB}/xpt_dump ${MOB}/xpt_link ${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-01-12 16:46:17 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/build/unix/*.pc ${PREFIX}/lib/pkgconfig
|
2004-02-15 14:37:14 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|