openbsd-ports/www/mozilla-firefox/Makefile
msf 08a983aada - USE_SYSTRACE was written to be transparent to the port author. Adding i
${_SYSTRACE_CMD} to any target in a port Makefile is a mistake.

ok sturm@ kurt@
2005-05-24 00:44:41 +00:00

129 lines
4.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.29 2005/05/24 00:44:41 msf Exp $
ONLY_FOR_ARCHS= alpha amd64 i386 powerpc sparc sparc64
COMMENT= "redesign of Mozilla's browser component"
VER= 1.0.4
DISTNAME= mozilla
PKGNAME= mozilla-firefox-${VER}
SO_VERSION= 3.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
CATEGORIES= www
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
WANTLIB= X11 Xext Xft Xi Xp Xrender Xt c fontconfig freetype \
m pthread z
.if empty(MACHINE_ARCH:Malpha)
WANTLIB+= stdc++
.endif
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/firefox/releases/${VER}/source/ \
http://ftp.mozilla.org/pub/firefox/releases/${VER}/source/
DISTFILES= firefox-${VER}-source.tar.bz2
MODULES= gcc3 devel/gettext
MODGCC3_ARCHES= alpha
MODGCC3_LANGS= C++
RUN_DEPENDS= :esound-*:audio/esound
BUILD_DEPENDS= :ORBit-*:devel/ORBit \
:zip->=2.3:archivers/zip \
:pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gtk.1,gdk.1::x11/gtk+ \
glib.1,gmodule.1::devel/glib \
jpeg.62::graphics/jpeg \
png.3::graphics/png
VMEM_WARNING= Yes
USE_X11= Yes
USE_GMAKE= Yes
# Regression tests are too hard to adapt to run here
NO_REGRESS= Yes
SUBST_VARS= LOCALBASE SO_VERSION
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf \
${WRKSRC}/nsprpub/build/autoconf
AUTOCONF_VERSION= 2.13
CONFIGURE_STYLE= autoconf no-autoheader
CONFIGURE_ARGS= --with-system-jpeg=${LOCALBASE} \
--with-system-png=${LOCALBASE} \
--with-system-zlib=/usr/lib \
--with-pthreads \
--without-system-nspr \
--enable-xft \
--enable-optimize=-Os \
--disable-debug \
--disable-tests \
--disable-pedantic \
--disable-installer
# from browser/config/mozconfig
CONFIGURE_ARGS+=--disable-ldap \
--disable-mailnews \
--enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs,negotiateauth \
--enable-crypto \
--disable-composer \
--enable-single-profile \
--disable-profilesharing
CONFIGURE_ENV= MOZ_PHOENIX=1 \
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION="${SO_VERSION}"
MAKE_ENV= MOZ_PHOENIX=1 \
LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION="${SO_VERSION}"
MOB= ${WRKSRC}/dist/bin
MOZ= ${PREFIX}/mozilla-firefox
MAGIC= {972ce4c6-7e08-4474-a285-3208198ce6fd}
post-extract:
@cp ${FILESDIR}/xptc* ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/
pre-configure:
@cd ${WRKSRC}/nsprpub && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
${WRKSRC}/browser/app/mozilla.in
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
${WRKSRC}/nsprpub/pr/include/md/_openbsd.h \
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
do-install:
.for dir in chrome components defaults greprefs res searchplugins
${INSTALL_DATA_DIR} ${MOZ}/${dir}
@cd ${MOB} && ${TAR} -chf - ${dir} | \
${TAR} -xf - -C ${MOZ}
.endfor
@cd ${MOB} && ${TAR} -chf - *.so.?.? | \
${TAR} -xf - -C ${MOZ}
@chmod 444 ${MOZ}/*.so.?.? ${MOZ}/components/*.so.?.? ${MOZ}/components/*.js
${INSTALL_DATA} ${WRKSRC}/LICENSE ${MOZ}
${INSTALL_DATA} ${WRKSRC}/browser/app/mozicon16.xpm ${WRKSRC}/browser/app/mozicon50.xpm ${MOZ}
${INSTALL_SCRIPT} ${MOB}/firefox ${MOB}/firefox-config ${PREFIX}/bin/
ln -f ${PREFIX}/bin/firefox ${PREFIX}/bin/mozilla-firefox
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOZ}
${INSTALL_PROGRAM} ${MOB}/regchrome ${MOB}/regxpcom ${MOB}/firefox-bin ${MOB}/mozilla-xremote-client ${MOZ}
ln -f ${MOZ}/firefox-bin ${MOZ}/mozilla-firefox-bin
${INSTALL_DATA_DIR} ${MOZ}/extensions
${INSTALL_DATA} ${FILESDIR}/Extensions.rdf ${MOZ}/extensions/
${INSTALL_DATA_DIR} ${MOZ}/extensions/${MAGIC}
${INSTALL_DATA} ${MOZ}/defaults/profile/extensions/installed-extensions.txt ${MOZ}/extensions/installed-extensions-processed.txt
${INSTALL_DATA} ${MOZ}/defaults/profile/extensions/${MAGIC}/install.rdf ${MOZ}/extensions/${MAGIC}/
.include <bsd.port.mk>