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
#
2002-11-17 22:09:06 +00:00
PORTNAME ?= mozilla
2004-02-26 03:05:47 +00:00
PORTVERSION = 1.7.a
2004-02-27 07:49:33 +00:00
PORTREVISION ?= 2
2004-02-26 03:48:11 +00:00
PORTEPOCH ?= 2
2002-11-17 22:09:06 +00:00
CATEGORIES ?= www
2004-02-26 03:05:47 +00:00
MASTER_SITES = ${ MASTER_SITE_MOZILLA }
MASTER_SITE_SUBDIR = mozilla/releases/${ PORTNAME } ${ PORTVERSION : S /.a/a/ } /src
DISTFILES = ${ PORTNAME } -source-${ PORTVERSION : S /.a/a/ } ${ EXTRACT_SUFX }
1997-11-15 01:11:00 +00:00
2001-05-22 10:04:37 +00:00
MAINTAINER = gnome@FreeBSD.org
2003-03-07 06:14:21 +00:00
COMMENT = The open source, standards compliant web browser
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
2002-07-23 06:58:42 +00:00
LIB_DEPENDS = 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 \
2003-08-12 16:48:56 +00:00
freetype.9:${ PORTSDIR } /print/freetype2 \
nspr4.1:${ PORTSDIR } /devel/nspr
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
2002-11-17 22:09:06 +00:00
MOZILLA ?= mozilla-devel
2003-04-24 18:02:42 +00:00
MOZ_SUFX = -devel
2002-11-17 22:09:06 +00:00
GTK2 mozilla is now the default, and GTK1 support will be built only if explicitly
requested.
This means that mozilla-gtk2 and mozilla-devel-gtk2 are now mozilla and
mozilla-devel, respectively; and the old mozilla and mozilla-devel are now
mozilla-gtk1 and mozilla-devel-gtk1.
This is done for a whole plethora of reasons, and should please everybody
except galeon1 fanatics and uhm... anybody else who it doesn't please.
If you have WITH_MOZILLA set in your /etc/make.conf, you'll need to update
the value accordingly. GTK2 ports will automatically install GTK2 mozilla,
and GTK1 ports will automatically install GTK1 ports, so WITH_MOZILLA need
be defined only if you want the development version... which are dormant
right now anyway.
For now, all ports that honoured WITH_MOZILLA=mozilla-{,-devel}-gtk2 will
still honour those values as well as WITH_MOZILLA=mozilla{,-devel}, but
future ports reserve the right to ignore the *-gtk2 values.
2004-02-18 03:50:38 +00:00
. i f d e f i n e d ( W I T H _ G T K 1 )
PKGNAMESUFFIX = -gtk1
2003-02-12 19:03:23 +00:00
USE_GNOME = gtk12 orbit
GTK2 mozilla is now the default, and GTK1 support will be built only if explicitly
requested.
This means that mozilla-gtk2 and mozilla-devel-gtk2 are now mozilla and
mozilla-devel, respectively; and the old mozilla and mozilla-devel are now
mozilla-gtk1 and mozilla-devel-gtk1.
This is done for a whole plethora of reasons, and should please everybody
except galeon1 fanatics and uhm... anybody else who it doesn't please.
If you have WITH_MOZILLA set in your /etc/make.conf, you'll need to update
the value accordingly. GTK2 ports will automatically install GTK2 mozilla,
and GTK1 ports will automatically install GTK1 ports, so WITH_MOZILLA need
be defined only if you want the development version... which are dormant
right now anyway.
For now, all ports that honoured WITH_MOZILLA=mozilla-{,-devel}-gtk2 will
still honour those values as well as WITH_MOZILLA=mozilla{,-devel}, but
future ports reserve the right to ignore the *-gtk2 values.
2004-02-18 03:50:38 +00:00
. e l s e
USE_GNOME = gtk20 libidl
2002-11-17 22:09:06 +00:00
. e n d i f
2002-10-23 04:26:25 +00:00
. i f ! d e f i n e d ( W I T H O U T _ X F T )
2004-03-16 22:54:05 +00:00
LIB_DEPENDS += Xft.2:${ PORTSDIR } /x11-fonts/libXft
2002-10-25 20:37:54 +00:00
. i f e x i s t s ( $ { X 1 1 B A S E } / l i b / X 1 1 / f o n t s / m o z i l l a / f o n t s . d i r )
2003-04-24 18:02:42 +00:00
BROKEN = Mozilla${ MOZ_SUFX } and Xft2 render the mozilla-fonts \
2003-11-11 04:10:19 +00:00
illegibly. Please remove the mozilla-fonts package.
2002-10-25 20:37:54 +00:00
. e n d i f
2002-10-23 04:26:25 +00:00
. e n d i f
2003-01-22 20:05:04 +00:00
. i f d e f i n e d ( W I T H _ C A L E N D A R ) & & ( d e f i n e d ( W I T H O U T _ M A I L N E W S ) | | \
defined( WITHOUT_COMPOSER) )
2003-04-07 06:27:48 +00:00
BROKEN = "Calendar requires Composer and Mailnews support."
2003-01-22 20:05:04 +00:00
. e n d i f
2002-11-17 22:09:06 +00:00
LATEST_LINK = ${ MOZILLA }
2002-10-22 03:42:24 +00:00
EXTRACT_AFTER_ARGS = | ${ TAR } -xf - --exclude */CVS/* \
--exclude */macbuild/*\
--exclude */package/* \
--exclude .cvsignore \
--exclude makefile.win \
--exclude MANIFEST
2003-05-16 22:03:33 +00:00
USE_BZIP2 = yes
1999-07-24 02:26:33 +00:00
USE_X_PREFIX = yes
USE_PERL5 = yes
2004-02-26 03:05:47 +00:00
USE_ICONV = yes
1999-07-24 02:26:33 +00:00
USE_GMAKE = yes
2002-10-22 03:42:24 +00:00
USE_REINPLACE = yes
2000-10-25 05:15:45 +00:00
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 \
2003-04-14 19:49:37 +00:00
--disable-debug \
--disable-gtktest \
--disable-freetypetest \
--disable-installer \
--disable-glibtest \
1999-07-24 02:26:33 +00:00
--enable-double-buffer \
2000-02-04 07:45:35 +00:00
--enable-mathml \
2002-02-15 18:44:15 +00:00
--disable-md \
--disable-pedantic \
2003-04-07 06:27:48 +00:00
--disable-bidi \
2002-02-15 18:44:15 +00:00
--disable-plaintext-editor-only \
--enable-strip \
2001-01-22 01:23:18 +00:00
--enable-svg \
2004-02-26 03:05:47 +00:00
--enable-svg-renderer-libart \
2002-02-15 18:44:15 +00:00
--disable-tests \
--disable-xterm-updates \
--enable-xinerama \
2003-04-07 06:27:48 +00:00
--with-system-zlib \
2002-02-15 18:44:15 +00:00
--with-system-jpeg= ${ LOCALBASE } \
--with-system-mng= ${ LOCALBASE } \
--with-system-png= ${ LOCALBASE } \
2001-01-22 01:23:18 +00:00
--with-pthreads
2002-05-18 22:09:26 +00:00
2002-10-22 03:42:24 +00:00
PLIST = ${ WRKDIR } /pkg-plist
2002-05-18 22:09:26 +00:00
# LDAP is only used by mail and news so disable both together
. i f d e f i n e d ( W I T H O U T _ M A I L N E W S )
CONFIGURE_ARGS += --disable-ldap --disable-mailnews
. e l s e
# mail and news desired, but not LDAP
. i f d e f i n e d ( W I T H O U T _ L D A P )
CONFIGURE_ARGS += --disable-ldap --enable-mailnews
. e l s e
CONFIGURE_ARGS += --enable-ldap --enable-mailnews
2002-10-22 03:42:24 +00:00
. e n d i f
2002-05-18 22:09:26 +00:00
. e n d i f
2003-08-12 16:48:56 +00:00
MOZ_EXTENSIONS = default
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 )
2003-08-12 16:48:56 +00:00
MOZ_EXTENSIONS := ${ MOZ_EXTENSIONS } ,irc
. e n d i f
. i f ! d e f i n e d ( W I T H O U T _ X M L T E R M )
MOZ_EXTENSIONS := ${ MOZ_EXTENSIONS } ,xmlterm
2002-01-04 14:18:26 +00:00
. e n d i f
2003-08-12 16:48:56 +00:00
CONFIGURE_ARGS += --enable-extensions= ${ MOZ_EXTENSIONS }
2004-02-26 03:05:47 +00:00
CONFIGURE_ENV = MOZ_INTERNAL_LIBART_LGPL = 1 \
LOCALBASE = ${ LOCALBASE }
2002-04-26 04:17:52 +00:00
2003-01-21 16:41:54 +00:00
. i f d e f i n e d ( W I T H _ J A V A S C R I P T _ D E B U G G E R )
CONFIGURE_ARGS += --enable-jsd \
--enable-dtd-debug
2003-04-07 06:27:48 +00:00
. e l s e
CONFIGURE_ARGS += --disable-jsd \
--disable-dtd-debug
2003-01-21 16:41:54 +00:00
. e n d i f
2002-11-11 03:31:22 +00:00
. i f d e f i n e d ( W I T H _ C A L E N D A R )
CONFIGURE_ARGS += --enable-calendar
. e n d i f
2002-10-29 09:09:38 +00:00
. i f d e f i n e d ( W I T H O U T _ C O M P O S E R )
CONFIGURE_ARGS += --disable-composer
. e n d i f
GTK2 mozilla is now the default, and GTK1 support will be built only if explicitly
requested.
This means that mozilla-gtk2 and mozilla-devel-gtk2 are now mozilla and
mozilla-devel, respectively; and the old mozilla and mozilla-devel are now
mozilla-gtk1 and mozilla-devel-gtk1.
This is done for a whole plethora of reasons, and should please everybody
except galeon1 fanatics and uhm... anybody else who it doesn't please.
If you have WITH_MOZILLA set in your /etc/make.conf, you'll need to update
the value accordingly. GTK2 ports will automatically install GTK2 mozilla,
and GTK1 ports will automatically install GTK1 ports, so WITH_MOZILLA need
be defined only if you want the development version... which are dormant
right now anyway.
For now, all ports that honoured WITH_MOZILLA=mozilla-{,-devel}-gtk2 will
still honour those values as well as WITH_MOZILLA=mozilla{,-devel}, but
future ports reserve the right to ignore the *-gtk2 values.
2004-02-18 03:50:38 +00:00
. i f d e f i n e d ( W I T H _ G T K 1 )
2002-10-29 09:09:38 +00:00
CONFIGURE_ARGS += --enable-default-toolkit= gtk
GTK2 mozilla is now the default, and GTK1 support will be built only if explicitly
requested.
This means that mozilla-gtk2 and mozilla-devel-gtk2 are now mozilla and
mozilla-devel, respectively; and the old mozilla and mozilla-devel are now
mozilla-gtk1 and mozilla-devel-gtk1.
This is done for a whole plethora of reasons, and should please everybody
except galeon1 fanatics and uhm... anybody else who it doesn't please.
If you have WITH_MOZILLA set in your /etc/make.conf, you'll need to update
the value accordingly. GTK2 ports will automatically install GTK2 mozilla,
and GTK1 ports will automatically install GTK1 ports, so WITH_MOZILLA need
be defined only if you want the development version... which are dormant
right now anyway.
For now, all ports that honoured WITH_MOZILLA=mozilla-{,-devel}-gtk2 will
still honour those values as well as WITH_MOZILLA=mozilla{,-devel}, but
future ports reserve the right to ignore the *-gtk2 values.
2004-02-18 03:50:38 +00:00
. e l s e
CONFIGURE_ARGS += --enable-default-toolkit= gtk2
2002-10-29 09:09:38 +00:00
. e n d i f
2002-10-23 04:26:25 +00:00
. i f ! d e f i n e d ( W I T H O U T _ X F T )
CONFIGURE_ARGS += --enable-xft
2003-05-01 16:01:10 +00:00
. e l s e
CONFIGURE_ARGS += --disable-xft
2002-10-23 04:26:25 +00:00
. e n d i f
2004-03-11 06:08:29 +00:00
ESD_LIB = libesd.so.2
FREETYPE_LIB = libfreetype.so.9
2003-11-01 21:51:08 +00:00
PKGCONFIG_FILES = mozilla-gtkmozembed mozilla-js mozilla-xpcom \
mozilla-nspr mozilla-nss mozilla-plugin
2003-11-11 22:53:50 +00:00
# JPI stuff. List paths to Java Plug-ins here in the order to try.
2004-02-26 03:05:47 +00:00
JPI_LIST ?= \
2003-11-11 22:53:50 +00:00
${ LOCALBASE } /jdk1.4.2/jre/plugin/${ ARCH } /ns610/libjavaplugin_oji.so \
2003-11-11 22:59:38 +00:00
${ LOCALBASE } /jdk1.4.1/jre/plugin/${ ARCH } /ns610/libjavaplugin_oji.so \
2003-11-11 04:10:19 +00:00
${ LOCALBASE } /diablo-jdk1.3.1/jre/plugin/${ ARCH } /ns600/libjavaplugin_oji.so \
${ LOCALBASE } /jdk1.3.1/jre/plugin/${ ARCH } /ns600/libjavaplugin_oji.so
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-07-23 06:58:42 +00:00
. i f ${ARCH} = = "i386"
CONFIGURE_ARGS += --enable-reorder
. e n d i f
2004-02-26 17:40:56 +00:00
. i f $ { O S V E R S I O N } < 5 0 0 0 3 5
EXTRA_PATCHES += ${ FILESDIR } /extra-patch-nsSVGLibartGlyphMetricsFT.cpp
. e n d i f
2003-06-01 03:34:55 +00:00
. i f d e f i n e d ( W I T H _ O P T I M I Z E D _ C F L A G S )
2003-04-14 19:49:37 +00:00
CFLAGS += -O2
CONFIGURE_ARGS += --enable-optimize= -O2
2003-04-07 06:27:48 +00:00
. e n d i f
2003-06-01 03:34:55 +00:00
. i f ${ARCH} = = "alpha" && ${ OSVERSION } < 500035
2003-10-12 22:01:55 +00:00
IGNORE = "core dumps on alpha during post-build"
2002-07-23 06:58:42 +00:00
. e n d i f
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
2002-11-11 03:31:22 +00:00
pre-everything ::
2004-03-11 06:08:29 +00:00
@${ ECHO_MSG } ""
@${ ECHO_MSG } "Mozilla has the following tunable option(s):"
@${ ECHO_MSG } " WITHOUT_XFT=yes Disables Xft anti-aliasing support"
@${ ECHO_MSG } " WITH_CALENDAR=yes Enables the Calendar module (requires Mailnews and Composer modules)"
@${ ECHO_MSG } " WITHOUT_MAILNEWS=yes Disables the Mail and News modules"
@${ ECHO_MSG } " WITHOUT_COMPOSER=yes Disables the HTML Composer module"
@${ ECHO_MSG } " WITHOUT_LDAP=yes Disables LDAP support within the Mailnews module"
@${ ECHO_MSG } " WITHOUT_CHATZILLA=yes Disable the Chatzilla IRC module"
@${ ECHO_MSG } " WITHOUT_XMLTERM=yes Disable the XMLTerm module"
@${ ECHO_MSG } " WITH_JAVASCRIPT_DEBUGGER=yes Enable the DTD and JavaScript debuggers"
@${ ECHO_MSG } " WITH_OPTIMIZED_CFLAGS=yes Enable -O2 optimization"
@${ ECHO_MSG } ""
2002-11-11 03:31:22 +00:00
. i f d e f i n e d ( W I T H _ C A L E N D A R )
2004-02-26 03:05:47 +00:00
@${ ECHO_MSG } ""
2002-11-11 03:31:22 +00:00
@${ ECHO_MSG } "Calendar is still beta software."
@${ ECHO_MSG } "Use at your own risk."
@${ ECHO_MSG } "http://mozilla.org/projects/calendar/"
2004-02-26 03:05:47 +00:00
@${ ECHO_MSG } ""
2002-11-11 03:31:22 +00:00
. e n d i f
2002-10-22 03:42:24 +00:00
post-patch :
@${ REINPLACE_CMD } -e 's|%%PREFIX%%|${PREFIX}|g' \
${ WRKSRC } /build/unix/run-mozilla.sh
2002-11-17 22:09:06 +00:00
@${ REINPLACE_CMD } -e 's|%%MOZILLA%%|${MOZILLA}|g' \
2003-04-24 18:02:42 +00:00
-e 's|%%HEADERS_SUFX%%|${MOZ_SUFX}|g' \
2002-11-17 22:09:06 +00:00
${ WRKSRC } /config/autoconf.mk.in
2003-04-10 21:09:07 +00:00
@${ FIND } ${ WRKSRC } /other-licenses/libical -name "*.c" | ${ XARGS } \
${ REINPLACE_CMD } 's|<malloc.h>|<stdlib.h>|g'
2004-02-26 03:05:47 +00:00
@${ REINPLACE_CMD } -e ' s| -lc_r| ${ PTHREAD_LIBS } | g ; \
s| -lpthread| ${ PTHREAD_LIBS } | g' \
2003-11-01 21:51:08 +00:00
${ WRKSRC } /configure \
${ WRKSRC } /nsprpub/configure
2003-09-06 18:34:37 +00:00
@${ REINPLACE_CMD } -e 's|-pthread|${PTHREAD_LIBS}|g' \
2003-11-01 21:51:08 +00:00
${ WRKSRC } /nsprpub/configure \
2003-09-06 18:34:37 +00:00
${ WRKSRC } /security/coreconf/FreeBSD.mk \
${ WRKSRC } /directory/c-sdk/config/FreeBSD.mk \
${ WRKSRC } /js/src/Makefile.in
2004-02-26 03:05:47 +00:00
@${ REINPLACE_CMD } -e 's|libesd\.so\.0|${ESD_LIB}|g' \
${ WRKSRC } /widget/src/gtk2/nsSound.cpp
@${ REINPLACE_CMD } -e '/accessibility.typeaheadfind.enablesound/s/true/false/' \
${ WRKSRC } /modules/libpref/src/init/all.js \
${ WRKSRC } /calendar/sunbird/app/profile/all.js
@${ REINPLACE_CMD } -e 's|<iconv.h>|\"${LOCALBASE}/include/iconv.h\"|g' \
${ WRKSRC } /configure \
${ WRKSRC } /intl/uconv/native/nsNativeUConvService.cpp \
${ WRKSRC } /xpcom/io/nsNativeCharsetUtils.cpp
2004-03-11 06:08:29 +00:00
@${ REINPLACE_CMD } -e 's|libfreetype.so.6|${FREETYPE_LIB}|g' \
2004-02-26 09:41:11 +00:00
${ WRKSRC } /modules/libpref/src/init/all.js
2003-04-24 18:02:42 +00:00
@for pcfile in ${ PKGCONFIG_FILES } ; do \
2003-11-11 04:10:19 +00:00
${ REINPLACE_CMD } -e ' s| mozilla-xpcom| mozilla-xpcom${ MOZ_SUFX } ${ PKGNAMESUFFIX } | g ; \
s| mozilla-nspr| mozilla-nspr${ MOZ_SUFX } ${ PKGNAMESUFFIX } | g' \
${ WRKSRC } /build/unix/$$ { pcfile} .pc.in; \
2003-04-24 18:02:42 +00:00
done
2002-10-22 03:42:24 +00:00
2000-02-04 07:45:35 +00:00
post-build :
2002-11-24 00:24:04 +00:00
${ SED } -e " s|%%PREFIX%%| ${ PREFIX } |g " -e " s|%%MOZILLA%%| ${ MOZILLA } |g " \
2002-11-17 22:09:06 +00:00
${ FILESDIR } /mozilla.sh >${ WRKSRC } /${ MOZILLA }
2002-02-15 18:44:15 +00:00
( cd ${ WRKSRC } /dist/bin; \
2003-11-11 04:10:19 +00:00
${ SETENV } LD_LIBRARY_PATH = . MOZILLA_FIVE_HOME = . ./regxpcom; \
${ SETENV } LD_LIBRARY_PATH = . MOZILLA_FIVE_HOME = . ./regchrome; \
${ TOUCH } ./chrome/user-skins.rdf ./chrome/user-locales.rdf)
2004-02-26 17:40:56 +00:00
${ FIND } ${ WRKSRC } /dist/bin -type d | ${ SORT } -r | \
2002-02-15 18:44:15 +00:00
${ XARGS } ${ RMDIR } 2> /dev/null || ${ TRUE }
2000-02-04 07:45:35 +00:00
2002-10-22 03:42:24 +00:00
pre-install :
2002-11-17 22:09:06 +00:00
${ RM } -f ${ PLIST }
2002-10-22 03:42:24 +00:00
${ TOUCH } -f ${ PLIST }
2002-10-23 16:13:29 +00:00
if [ ! -x ${ PREFIX } /bin/mozilla -a ! -L ${ PREFIX } /bin/mozilla ] ; then \
2003-11-11 04:10:19 +00:00
${ ECHO_CMD } bin/mozilla >> ${ PLIST } ; \
2002-10-23 04:26:25 +00:00
fi
2002-11-17 22:09:06 +00:00
${ ECHO_CMD } bin/${ MOZILLA } >> ${ PLIST }
2002-10-23 16:13:29 +00:00
if [ ! -L ${ PREFIX } /lib/browser_plugins/libjavaplugin_oji.so ] ; then \
2003-11-15 02:18:30 +00:00
for jpi in ${ JPI_LIST } ; do \
if [ -f $$ { jpi} ] ; then \
${ ECHO_CMD } lib/browser_plugins/libjavaplugin_oji.so >> ${ PLIST } ; \
break; \
fi ; \
done ; \
2003-11-11 04:10:19 +00:00
${ ECHO_CMD } @dirrm lib/browser_plugins >> ${ PLIST } ; \
2002-10-23 04:26:25 +00:00
fi
2002-10-22 03:42:24 +00:00
cd ${ WRKSRC } /dist/bin && ${ FIND } -s * -type f -o -type l | \
2002-11-17 22:09:06 +00:00
${ SED } -e 's:^:lib/${MOZILLA}/:' >> ${ PLIST } \
2003-11-11 04:10:19 +00:00
&& ${ FIND } -d * -type d | \
${ SED } -e 's:^:@dirrm lib/${MOZILLA}/:' >> ${ PLIST }
2002-11-17 22:09:06 +00:00
${ ECHO_CMD } @dirrm lib/${ MOZILLA } >> ${ PLIST }
for pcfile in ${ PKGCONFIG_FILES } ; do \
2003-11-11 04:10:19 +00:00
${ ECHO_CMD } libdata/pkgconfig/$$ { pcfile} ${ MOZ_SUFX } ${ PKGNAMESUFFIX } .pc >> ${ PLIST } ; \
2002-11-17 22:09:06 +00:00
done
2004-01-18 07:27:03 +00:00
cd ${ WRKSRC } /dist/include && ${ FIND } -s * -type f -o -type l | \
2004-02-27 07:49:33 +00:00
${ SED } -e 's:^:include/${MOZILLA}/:' >> ${ PLIST } \
2004-01-18 07:27:03 +00:00
&& ${ FIND } -d * -type d | \
2004-02-27 07:49:33 +00:00
${ SED } -e 's:^:@dirrm include/${MOZILLA}/:' >> ${ PLIST }
${ ECHO_CMD } @dirrm include/${ MOZILLA } >> ${ PLIST }
2002-10-22 03:42:24 +00:00
1997-04-09 15:12:15 +00:00
do-install :
2002-11-17 22:09:06 +00:00
${ MKDIR } ${ PREFIX } /lib/${ MOZILLA }
${ CHMOD } 755 ${ PREFIX } /lib/${ MOZILLA }
2002-04-13 17:06:30 +00:00
cd ${ WRKSRC } /dist/bin && ${ FIND } . | \
2004-01-22 12:18:43 +00:00
${ CPIO } -pdm -L -R ${ LIBOWN } :${ LIBGRP } ${ PREFIX } /lib/${ MOZILLA }
2002-11-17 22:09:06 +00:00
${ INSTALL_SCRIPT } ${ WRKSRC } /${ MOZILLA } ${ PREFIX } /bin
2002-10-23 16:13:29 +00:00
if [ ! -x ${ PREFIX } /bin/mozilla -a ! -L ${ PREFIX } /bin/mozilla ] ; then \
2003-11-11 04:10:19 +00:00
${ LN } -sf ${ PREFIX } /bin/${ MOZILLA } ${ PREFIX } /bin/mozilla ; \
2002-10-23 04:26:25 +00:00
fi
2002-10-23 16:13:29 +00:00
if [ ! -d ${ PREFIX } /lib/browser_plugins ] ; then \
2003-11-11 04:10:19 +00:00
${ MKDIR } ${ PREFIX } /lib/browser_plugins ; \
2002-10-23 04:26:25 +00:00
fi
2002-10-23 18:20:20 +00:00
if [ ! -L ${ PREFIX } /lib/browser_plugins/libjavaplugin_oji.so ] ; then \
2003-11-11 04:10:19 +00:00
for jpi in ${ JPI_LIST } ; do \
if [ -f $$ { jpi} ] ; then \
${ LN } -sf $$ { jpi} \
${ PREFIX } /lib/browser_plugins/libjavaplugin_oji.so ; \
2003-11-15 02:18:30 +00:00
break; \
2003-11-11 04:10:19 +00:00
fi ; \
done ; \
2002-10-23 04:26:25 +00:00
fi
2002-11-17 22:09:06 +00:00
for pcfile in ${ PKGCONFIG_FILES } ; do \
2003-11-11 04:10:19 +00:00
${ INSTALL_DATA } ${ WRKSRC } /build/unix/$$ { pcfile} .pc \
2003-11-01 21:51:08 +00:00
${ PREFIX } /libdata/pkgconfig/$$ { pcfile} ${ MOZ_SUFX } ${ PKGNAMESUFFIX } .pc ; \
2002-11-17 22:09:06 +00:00
done
2004-02-27 07:49:33 +00:00
-${ RM } -fr ${ PREFIX } /include/${ MOZILLA }
${ MKDIR } ${ PREFIX } /include/${ MOZILLA }
${ CHMOD } 755 ${ PREFIX } /include/${ MOZILLA }
2004-01-18 07:27:03 +00:00
cd ${ WRKSRC } /dist/include && ${ FIND } . | \
2004-02-27 07:49:33 +00:00
${ CPIO } -pdm -L -R ${ LIBOWN } :${ LIBGRP } ${ PREFIX } /include/${ MOZILLA }
2002-10-22 03:42:24 +00:00
post-install :
2003-05-16 22:03:33 +00:00
@${ CHMOD } -R u-w ${ PREFIX } /lib/${ MOZILLA } /components
2002-10-22 03:42:24 +00:00
@${ CAT } ${ PKGMESSAGE }
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 >