2003-05-15 10:35:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2003/05/15 14:35:45 wilfried Exp $
|
2001-08-30 09:43:20 -04:00
|
|
|
# Uses pthreads
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2003-04-12 22:40:48 -04:00
|
|
|
COMMENT= "open source version of the Netscape browser"
|
2001-05-06 00:22:45 -04:00
|
|
|
|
2003-04-12 22:40:48 -04:00
|
|
|
VER= 1.4a
|
2000-09-16 12:13:06 -04:00
|
|
|
DISTNAME= mozilla
|
2001-06-22 12:32:51 -04:00
|
|
|
PKGNAME= mozilla-${VER}
|
|
|
|
DISTFILES= mozilla-source-${VER}.tar.bz2
|
2000-09-16 12:13:06 -04:00
|
|
|
|
2003-05-14 17:50:59 -04:00
|
|
|
BROKEN= More debugging needed
|
2000-03-24 17:13:48 -05: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
|
|
|
|
|
2001-06-22 12:32:51 -04:00
|
|
|
MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla/releases/mozilla${VER}/src/
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2003-05-15 10:35:45 -04:00
|
|
|
MODULES= iconv
|
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
|
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
|
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-14 17:50:59 -04:00
|
|
|
--disable-profilesharing \
|
2003-04-12 22:40:48 -04:00
|
|
|
--disable-ldap
|
|
|
|
# disable this for now
|
|
|
|
# --enable-crypto \
|
|
|
|
# does not pass NSPR tests
|
|
|
|
# --with-pthreads \
|
|
|
|
# enable these once Mozilla actually runs
|
|
|
|
# --disable-debug \
|
|
|
|
# --enable-optimize="${CFLAGS}" \
|
|
|
|
# --disable-tests \
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2001-08-18 22:30:45 -04:00
|
|
|
CONFIGURE_ENV= BSD_PTHREAD_LIBS="-pthread" \
|
2001-08-13 10:16:34 -04:00
|
|
|
CFLAGS="" CXXFLAGS=""
|
2001-08-18 22:30:45 -04:00
|
|
|
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
|
2001-08-13 10:16:34 -04:00
|
|
|
CFLAGS="" CXXFLAGS="" \
|
|
|
|
MALLOC_OPTIONS=j
|
2001-08-18 22:30:45 -04:00
|
|
|
|
2003-05-14 20:53:45 -04:00
|
|
|
MOB= ${WRKSRC}/dist/bin
|
|
|
|
MOZ= ${PREFIX}/mozilla
|
|
|
|
|
1998-08-22 14:38:50 -04:00
|
|
|
do-install:
|
2003-05-14 20:53:45 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}
|
|
|
|
.for dir in chrome components defaults icons res plugins searchplugins
|
|
|
|
@cd ${MOB} && ${TAR} -chf - ${dir} | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
|
|
|
@cd ${MOB} && ${TAR} -chf - *.so.1.0 | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/mozilla ${MOB}/mozilla-config ${MOB}/run-mozilla.sh ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${MOB}/LICENSE ${MOZ}
|
|
|
|
${INSTALL_PROGRAM} ${MOB}/mozilla-bin ${MOZ}
|
1998-08-22 14:38:50 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|