1998-04-12 12:47:23 +00:00
# New ports collection makefile for: mozilla
# Date created: 31 Mar 1998
# Whom: eivind/dima/jseger
1997-02-24 19:00:30 +00:00
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
1997-02-24 19:00:30 +00:00
#
2000-04-10 00:07:29 +00:00
PORTNAME = mozilla
2002-04-22 16:58:31 +00:00
PORTVERSION = 1.0.rc1
2001-01-12 16:59:59 +00:00
PORTEPOCH = 1
1997-02-24 19:00:30 +00:00
CATEGORIES = www
2002-02-07 10:56:05 +00:00
MASTER_SITES = ${ MASTER_SITE_MOZILLA } \
2002-04-22 22:26:14 +00:00
http://people.freebsd.org/~sobomax/:people
2002-04-22 17:19:10 +00:00
MASTER_SITE_SUBDIR = mozilla/releases/${ PORTNAME } ${ PORTVERSION : S /.rc/rc/ } /src
2001-12-26 10:21:22 +00:00
DISTFILES = ${ PORTNAME } -source-${ PORTVERSION } ${ EXTRACT_SUFX } \
2002-04-22 22:26:14 +00:00
libart_lgpl-${ PORTVERSION } ${ EXTRACT_SUFX } :people
1997-11-15 01:11:00 +00:00
2001-05-22 10:04:37 +00:00
MAINTAINER = gnome@FreeBSD.org
1997-11-15 01:11:00 +00:00
2002-03-12 18:16:09 +00:00
BUILD_DEPENDS = zip:${ PORTSDIR } /archivers/zip \
freetype-config:${ PORTSDIR } /print/freetype2
2001-05-04 21:41:30 +00:00
LIB_DEPENDS = ORBit.2:${ PORTSDIR } /devel/ORBit \
2000-10-31 07:16:00 +00:00
jpeg.9:${ PORTSDIR } /graphics/jpeg \
2001-09-11 02:38:25 +00:00
png.5:${ PORTSDIR } /graphics/png \
2001-05-22 08:15:39 +00:00
mng.1:${ PORTSDIR } /graphics/libmng \
2002-03-12 18:16:09 +00:00
freetype.9:${ PORTSDIR } /print/freetype2
1998-11-11 05:37:39 +00:00
2000-04-21 02:36:52 +00:00
WRKSRC = ${ WRKDIR } /${ PORTNAME }
2000-02-04 07:45:35 +00:00
USE_BZIP2 = yes
2002-02-15 18:44:15 +00:00
EXTRACT_AFTER_ARGS = | tar -xf - -X ${ FILESDIR } /tar-exclude
1999-07-24 02:26:33 +00:00
USE_X_PREFIX = yes
USE_PERL5 = yes
USE_GMAKE = yes
2000-10-25 05:15:45 +00:00
USE_GTK = yes
GNU_CONFIGURE = yes
1999-07-24 02:26:33 +00:00
CONFIGURE_ARGS = \
2002-02-15 18:44:15 +00:00
--disable-auto-deps \
--enable-chrome-format= jar \
2001-01-22 01:23:18 +00:00
--disable-cpp-exceptions \
1999-07-24 02:26:33 +00:00
--disable-cpp-rtti \
2001-06-13 09:15:59 +00:00
--enable-crypto \
2002-02-15 18:44:15 +00:00
--disable-debug \
--enable-default-toolkit= gtk \
1999-07-24 02:26:33 +00:00
--enable-double-buffer \
2002-02-15 18:44:15 +00:00
--enable-dtd-debug \
--enable-jsd \
--enable-ldap \
1999-07-24 02:26:33 +00:00
--enable-mailnews \
2000-02-04 07:45:35 +00:00
--enable-mathml \
2002-02-15 18:44:15 +00:00
--disable-md \
--disable-optimize \
--disable-pedantic \
--disable-plaintext-editor-only \
--enable-reorder \
--enable-strip \
2001-01-22 01:23:18 +00:00
--enable-svg \
2002-02-15 18:44:15 +00:00
--disable-tests \
--disable-xterm-updates \
--enable-xinerama \
--with-system-jpeg= ${ LOCALBASE } \
--with-system-mng= ${ LOCALBASE } \
--with-system-png= ${ LOCALBASE } \
2001-01-22 01:23:18 +00:00
--with-pthreads
2002-01-04 14:18:26 +00:00
. i f ! d e f i n e d ( W I T H O U T _ C H A T Z I L L A )
2002-03-14 20:21:05 +00:00
CONFIGURE_ARGS += --enable-extensions= default,irc,xmlterm
2002-04-15 21:44:48 +00:00
PLIST_SUB += CHATZILLA = ""
. e l s e
PLIST_SUB += CHATZILLA = "@comment "
2002-01-04 14:18:26 +00:00
. e n d i f
2002-02-15 18:44:15 +00:00
CONFIGURE_ENV = MOZ_INTERNAL_LIBART_LGPL = 1
2002-04-26 04:17:52 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2001-08-07 11:52:15 +00:00
MAKE_ENV = LD_LIBRARY_PATH = ${ WRKSRC } /dist/bin \
2001-12-26 10:21:22 +00:00
MOZ_INTERNAL_LIBART_LGPL = 1
ALL_TARGET = default
1998-03-15 15:13:57 +00:00
2002-04-26 04:17:52 +00:00
. i f e x i s t s ( $ { L O C A L B A S E } / i n c l u d e / f r e e t y p e / f r e e t y p e . h )
BROKEN = " You must upgrade your freetype port to 1.3.1_2 or higher before installing Mozilla. If you have 1.3.1_2 installed, please remove ${ LOCALBASE } /include/freetype, then build Mozilla "
. e n d i f
2000-02-04 07:45:35 +00:00
post-build :
2002-02-15 18:44:15 +00:00
${ SED } -e " s;@PREFIX@; ${ PREFIX } ;g " \
2000-02-04 07:45:35 +00:00
${ FILESDIR } /mozilla.sh >${ WRKSRC } /mozilla
2002-02-15 18:44:15 +00:00
( cd ${ WRKSRC } /dist/bin; \
2000-10-27 09:24:08 +00:00
${ SETENV } LD_LIBRARY_PATH = . MOZILLA_FIVE_HOME = . ./regxpcom; \
2002-01-29 12:08:37 +00:00
${ ECHO_CMD } skin,install,select,classic/1.0 >> chrome/installed-chrome.txt; \
${ ECHO_CMD } locale,install,select,en-US >> chrome/installed-chrome.txt; \
2000-10-27 09:24:08 +00:00
${ SETENV } LD_LIBRARY_PATH = . MOZILLA_FIVE_HOME = . ./regchrome)
2002-02-15 18:44:15 +00:00
${ FIND } ${ WRKSRC } /dist/bin -type d | /usr/bin/sort -r | \
${ XARGS } ${ RMDIR } 2> /dev/null || ${ TRUE }
2000-02-04 07:45:35 +00:00
1997-04-09 15:12:15 +00:00
do-install :
1999-07-24 02:26:33 +00:00
${ MKDIR } ${ PREFIX } /lib/mozilla
1999-08-22 19:01:07 +00:00
${ CHMOD } 755 ${ PREFIX } /lib/mozilla
2002-04-13 17:06:30 +00:00
cd ${ WRKSRC } /dist/bin && ${ FIND } . | \
cpio -pdm -L -R ${ LIBOWN } :${ LIBGRP } ${ PREFIX } /lib/mozilla
1999-07-24 02:26:33 +00:00
${ INSTALL_SCRIPT } ${ WRKSRC } /mozilla ${ PREFIX } /bin
2002-02-18 20:04:06 +00:00
${ LN } -sf ${ LOCALBASE } /jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${ PREFIX } /lib/mozilla/plugins/libjavaplugin_oji.so
1997-02-24 19:00:30 +00:00
2002-04-26 04:17:52 +00:00
. i n c l u d e < b s d . p o r t . p o s t . m k >