openbsd-ports/www/mozilla/Makefile

137 lines
4.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.95 2005/11/03 03:11:22 pvalchev Exp $
2004-03-02 03:32:13 -05:00
ONLY_FOR_ARCHS= alpha i386 sparc sparc64 amd64 powerpc
1998-08-22 14:38:50 -04:00
COMMENT= "open source version of the Netscape browser"
COMMENT-devel= "devel files for Gecko"
VER= 1.7.12
DISTNAME= mozilla
PKGNAME= mozilla-${VER}p4
PKGNAME-devel= mozilla-devel-${VER}p4
DISTFILES= mozilla-${VER}-source.tar.bz2
SO_VERSION= 5.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
1998-08-22 14:38:50 -04:00
CATEGORIES= www
HOMEPAGE= http://www.mozilla.org/
2003-10-18 15:44:41 -04:00
# mozilla public license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla${VER}/source/ \
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla${VER}/source/
1998-08-22 14:38:50 -04:00
2003-07-16 12:41:24 -04:00
VMEM_WARNING=yes
MULTI_PACKAGES= -devel
SUBPACKAGE?=
MODULES= gcc3 devel/gettext
MODGCC3_ARCHES= alpha
MODGCC3_LANGS= C++
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
:zip->=2.3:archivers/zip \
:pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
WANTLIB= X11 Xt Xft Xrender atk-1.0.0.0 fontconfig freetype \
glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 m \
pango-1.0.0.0 pangox-1.0.0.0 pangoxft-1.0.0.0
.if defined(PACKAGING) && ${SUBPACKAGE} == "-devel"
MODULES= devel/gettext
RUN_DEPENDS= :${PKGNAME}:www/mozilla
.else
RUN_DEPENDS= :esound-0.2.*:audio/esound
WANTLIB+= Xext Xp c jpeg png pthread z
. if empty(MACHINE_ARCH:Malpha)
WANTLIB+= stdc++
. endif
.endif
1998-08-22 14:38:50 -04:00
2000-03-24 17:13:48 -05:00
USE_X11= Yes
2000-03-05 13:30:21 -05:00
USE_GMAKE= Yes
# Regression tests are too hard to adapt to run here
NO_REGRESS= Yes
SUBST_VARS= LOCALBASE SO_VERSION
1998-08-22 14:38:50 -04:00
2004-08-04 12:12:14 -04:00
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf \
${WRKSRC}/nsprpub/build/autoconf \
${WRKSRC}/directory/c-sdk/config/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 \
2003-05-17 01:56:22 -04:00
--with-pthreads \
--without-system-nspr \
--enable-default-toolkit=gtk2 \
--enable-xft \
2004-02-15 14:44:01 -05:00
--enable-optimize=-Os \
2003-05-16 15:11:30 -04:00
--enable-crypto \
--enable-extensions=default \
2003-05-26 07:06:38 -04:00
--disable-pedantic \
--disable-debug \
--disable-tests \
--disable-ldap \
--disable-gnomevfs
1998-08-22 14:38:50 -04:00
CONFIGURE_ENV= PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION=${SO_VERSION}
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION=${SO_VERSION}
MOB= ${WRKSRC}/dist
MOZ= ${PREFIX}/mozilla
2003-07-17 04:24:24 -04:00
post-extract:
@cp ${FILESDIR}/xptc* ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/
2003-05-17 01:52:25 -04:00
pre-configure:
2003-05-18 16:41:19 -04:00
@cd ${WRKSRC}/nsprpub && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
@cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
${WRKSRC}/xpfe/bootstrap/mozilla.in
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
${WRKSRC}/nsprpub/pr/include/md/_openbsd.h \
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
2003-05-17 01:52:25 -04:00
1998-08-22 14:38:50 -04:00
do-install:
.for dir in include lib
2003-05-21 07:15:28 -04:00
${INSTALL_DATA_DIR} ${MOZ}/${dir}
@cd ${MOB} && ${TAR} -chf - ${dir} | \
${TAR} -xf - -C ${MOZ}
.endfor
@cd ${MOB}/public && ${TAR} -chf - nss | \
${TAR} -xf - -C ${MOZ}/include
.for dir in chrome components defaults greprefs res searchplugins
${INSTALL_DATA_DIR} ${MOZ}/${dir}
@cd ${MOB}/bin && ${TAR} -chf - ${dir} | \
${TAR} -xf - -C ${MOZ}
.endfor
@cd ${MOB}/bin && ${TAR} -chf - *.so.?.? | \
${TAR} -xf - -C ${MOZ}
@chmod 444 ${MOZ}/*.so.?.? ${MOZ}/components/*.so.?.? ${MOZ}/components/*.js
${INSTALL_DATA} ${MOB}/bin/LICENSE ${MOZ}
${INSTALL_SCRIPT} ${MOB}/bin/mozilla ${PREFIX}/bin
2003-06-06 08:50:30 -04:00
${INSTALL_SCRIPT} ${MOB}/bin/run-mozilla.sh ${MOB}/bin/mozilla-config ${MOZ}
2005-03-26 14:05:54 -05:00
${INSTALL_PROGRAM} ${MOB}/bin/regchrome ${MOB}/bin/regxpcom ${MOB}/bin/mozilla-bin ${MOB}/bin/mozilla-xremote-client ${MOZ}
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
2003-12-04 10:01:38 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
${INSTALL_DATA} ${WRKBUILD}/build/unix/*.pc ${PREFIX}/lib/pkgconfig
1998-08-22 14:38:50 -04:00
.include <bsd.port.mk>