2003-07-04 02:59:15 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.54 2003/07/04 06:59:15 marcm Exp $
|
2003-06-30 22:34:36 -04:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= vax m68k hppa
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2003-04-12 22:40:48 -04:00
|
|
|
COMMENT= "open source version of the Netscape browser"
|
2003-05-23 06:09:17 -04:00
|
|
|
COMMENT-devel= "devel files for Gecko"
|
2001-05-06 00:22:45 -04:00
|
|
|
|
2003-07-01 07:10:36 -04:00
|
|
|
VER= 1.4
|
2000-09-16 12:13:06 -04:00
|
|
|
DISTNAME= mozilla
|
2001-06-22 12:32:51 -04:00
|
|
|
PKGNAME= mozilla-${VER}
|
2003-05-18 11:22:45 -04:00
|
|
|
DISTFILES= mozilla-source-${VER}.tar.bz2
|
2000-09-16 12:13:06 -04:00
|
|
|
|
1998-08-22 14:38:50 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2003-04-12 22:40:48 -04:00
|
|
|
HOMEPAGE= http://www.mozilla.org/
|
|
|
|
|
2001-12-27 07:59:01 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-05-17 12:04:17 -04:00
|
|
|
MASTER_SITES= http://ftp.mozilla.org/pub/mozilla/releases/mozilla${VER}/src/
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2003-05-23 06:09:17 -04:00
|
|
|
MULTI_PACKAGES= -devel
|
|
|
|
|
|
|
|
.for i in ${MULTI_PACKAGES}
|
|
|
|
PKGNAME$i= mozilla${i}-${VER}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
.if ${SUBPACKAGE} == "-devel"
|
|
|
|
RUN_DEPENDS= ::www/mozilla
|
|
|
|
.else
|
2003-06-02 03:05:56 -04:00
|
|
|
MODULES= gcc3
|
2003-05-17 01:15:10 -04:00
|
|
|
MODGCC3_ARCHES= sparc64
|
|
|
|
MODGCC3_LANGS= C++
|
2003-04-12 22:40:48 -04:00
|
|
|
BUILD_DEPENDS= :zip->=2.3:archivers/zip
|
2003-05-15 10:35:45 -04:00
|
|
|
LIB_DEPENDS= gtk.1,gdk.1::x11/gtk+ \
|
|
|
|
glib.1,gmodule.1::devel/glib \
|
2003-04-12 22:40:48 -04:00
|
|
|
IDL.4::devel/ORBit \
|
|
|
|
jpeg.62::graphics/jpeg \
|
|
|
|
png.3::graphics/png \
|
|
|
|
mng.1::graphics/libmng
|
2003-05-23 06:09:17 -04:00
|
|
|
.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
|
2003-06-30 22:28:42 -04:00
|
|
|
# Regression tests are too hard to adapt to run here
|
|
|
|
NO_REGRESS= Yes
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2001-08-18 22:30:45 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2001-08-13 10:16:34 -04:00
|
|
|
CONFIGURE_ARGS= \
|
2003-04-12 22:40:48 -04:00
|
|
|
--with-system-jpeg=${LOCALBASE} \
|
|
|
|
--with-system-mng=${LOCALBASE} \
|
|
|
|
--with-system-png=${LOCALBASE} \
|
|
|
|
--with-system-zlib=/usr/lib \
|
2003-05-17 01:56:22 -04:00
|
|
|
--with-pthreads \
|
2003-05-16 15:11:30 -04:00
|
|
|
--enable-crypto \
|
2003-05-23 06:09:17 -04:00
|
|
|
--enable-extensions=default \
|
2003-05-26 07:06:38 -04:00
|
|
|
--disable-pedantic \
|
2003-05-15 23:56:41 -04:00
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
2003-04-12 22:40:48 -04:00
|
|
|
--disable-ldap
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2003-05-27 08:26:40 -04:00
|
|
|
CFLAGS+= -fno-stack-protector
|
|
|
|
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/dist/bin"
|
2001-08-18 22:30:45 -04:00
|
|
|
|
2003-05-23 06:09:17 -04:00
|
|
|
MOB= ${WRKSRC}/dist
|
2003-05-14 20:53:45 -04:00
|
|
|
MOZ= ${PREFIX}/mozilla
|
|
|
|
|
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}
|
2003-06-19 15:07:59 -04:00
|
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/xpfe/bootstrap/mozilla.in
|
2003-05-17 01:52:25 -04:00
|
|
|
|
1998-08-22 14:38:50 -04:00
|
|
|
do-install:
|
2003-05-23 06:09:17 -04:00
|
|
|
.for dir in include lib
|
2003-05-21 07:15:28 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
2003-05-14 20:53:45 -04:00
|
|
|
@cd ${MOB} && ${TAR} -chf - ${dir} | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
2003-05-23 06:09:17 -04:00
|
|
|
.for dir in chrome components defaults icons res plugins 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 | \
|
2003-05-14 20:53:45 -04:00
|
|
|
${TAR} -xf - -C ${MOZ}
|
2003-05-23 06:09:17 -04:00
|
|
|
${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}
|
2003-07-04 02:59:15 -04:00
|
|
|
${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
|
1998-08-22 14:38:50 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|