openbsd-ports/www/mozilla/Makefile

123 lines
3.5 KiB
Makefile
Raw Normal View History

2005-01-04 16:27:27 -05:00
# $OpenBSD: Makefile,v 1.78 2005/01/04 21:27:28 wilfried 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.6
DISTNAME= mozilla
PKGNAME= mozilla-${VER}
DISTFILES= mozilla-source-${VER}.tar.bz2
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
2004-12-11 08:29:20 -05:00
WANTLIB= X11 Xext Xft Xi Xp Xrender Xt c fontconfig freetype \
glib gmodule iconv intl m pthread stdc++ z
2004-02-15 14:44:01 -05:00
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla${VER}/src/ \
http://ftp.mozilla.org/pub/mozilla/releases/mozilla${VER}/src/
1998-08-22 14:38:50 -04:00
MULTI_PACKAGES= -devel
2003-07-16 12:41:24 -04:00
VMEM_WARNING=yes
.for i in ${MULTI_PACKAGES}
PKGNAME$i= mozilla${i}-${VER}
.endfor
SUBPACKAGE?=
.if ${SUBPACKAGE} == "-devel"
RUN_DEPENDS= ::www/mozilla
.else
MODULES= gcc3
2004-10-31 02:23:13 -05:00
MODGCC3_ARCHES= alpha
2003-05-17 01:15:10 -04:00
MODGCC3_LANGS= C++
BUILD_DEPENDS= :zip->=2.3:archivers/zip \
:pkgconfig-*:devel/pkgconfig
2003-05-15 10:35:45 -04:00
LIB_DEPENDS= gtk.1,gdk.1::x11/gtk+ \
IDL.4::devel/ORBit \
jpeg.62::graphics/jpeg \
2005-01-04 16:27:27 -05:00
png.3::graphics/png \
esd.2::audio/esound
.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
2005-01-04 15:59:16 -05:00
SUBST_VARS= LOCALBASE
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 \
--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
1998-08-22 14:38:50 -04:00
CONFIGURE_ENV= PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/dist/bin"
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}
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
${WRKSRC}/xpfe/bootstrap/mozilla.in
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
2004-02-15 14:44:01 -05:00
.for dir in chrome components defaults res searchplugins
${INSTALL_DATA_DIR} ${MOZ}/${dir}
@cd ${MOB}/bin && ${TAR} -chf - ${dir} | \
${TAR} -xf - -C ${MOZ}
.endfor
@cd ${MOB}/bin && ${TAR} -chf - *.so.1.0 | \
${TAR} -xf - -C ${MOZ}
2004-02-15 14:44:01 -05:00
@chmod 444 ${MOZ}/*.so.1.0 ${MOZ}/components/*.so.1.0
${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}
2003-06-25 08:01:05 -04:00
${INSTALL_PROGRAM} ${MOB}/bin/regchrome ${MOB}/bin/regxpcom ${MOB}/bin/mozilla-bin ${MOZ}
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
.for file in mozilla mozilla-mail mozilla-compose
${INSTALL_DATA} ${WRKSRC}/build/package/rpm/SOURCES/${file}.desktop ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/build/package/rpm/SOURCES/${file}-icon.* ${PREFIX}/share/pixmaps
.endfor
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>