1998-04-12 14:47:23 +02:00
|
|
|
# New ports collection makefile for: mozilla
|
|
|
|
# Date created: 31 Mar 1998
|
|
|
|
# Whom: eivind/dima/jseger
|
1997-02-24 20:00:30 +01:00
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1997-02-24 20:00:30 +01:00
|
|
|
#
|
|
|
|
|
2002-11-17 23:09:06 +01:00
|
|
|
PORTNAME?= mozilla
|
2005-02-28 02:43:57 +01:00
|
|
|
PORTVERSION= 1.8.b1
|
2005-03-12 11:54:27 +01:00
|
|
|
PORTREVISION?= 2
|
2004-02-26 04:48:11 +01:00
|
|
|
PORTEPOCH?= 2
|
2002-11-17 23:09:06 +01:00
|
|
|
CATEGORIES?= www
|
2004-11-30 18:15:49 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
2005-02-28 02:43:57 +01:00
|
|
|
MASTER_SITE_SUBDIR= mozilla/releases/${PORTNAME}${PORTVERSION:S/.b1/b1/}/source
|
2005-04-02 18:54:46 +02:00
|
|
|
DISTNAME= ${PORTNAME}-source-${PORTVERSION:S/.b1/b1/}
|
1997-11-15 02:11:00 +01:00
|
|
|
|
2001-05-22 12:04:37 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The open source, standards compliant web browser
|
1997-11-15 02:11:00 +01:00
|
|
|
|
2005-04-02 18:54:46 +02:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
2002-07-23 08:58:42 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2001-09-11 04:38:25 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2005-04-02 18:54:46 +02:00
|
|
|
Xft.2:${PORTSDIR}/x11-fonts/libXft
|
1998-11-11 06:37:39 +01:00
|
|
|
|
2000-04-21 04:36:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2002-11-17 23:09:06 +01:00
|
|
|
MOZILLA?= mozilla-devel
|
2004-07-01 23:16:10 +02:00
|
|
|
MOZ_SUFX?= -devel
|
2002-11-17 23:09:06 +01:00
|
|
|
LATEST_LINK= ${MOZILLA}
|
2002-10-22 05:42:24 +02:00
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/* \
|
|
|
|
--exclude */macbuild/*\
|
|
|
|
--exclude */package/* \
|
|
|
|
--exclude .cvsignore \
|
|
|
|
--exclude makefile.win \
|
|
|
|
--exclude MANIFEST
|
2005-04-26 21:30:55 +02:00
|
|
|
USE_GNOME= gtk20 libidl desktopfileutils
|
2003-05-17 00:03:33 +02:00
|
|
|
USE_BZIP2= yes
|
1999-07-24 04:26:33 +02:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_PERL5= yes
|
2004-02-26 04:05:47 +01:00
|
|
|
USE_ICONV= yes
|
1999-07-24 04:26:33 +02:00
|
|
|
USE_GMAKE= yes
|
2004-03-20 08:39:26 +01:00
|
|
|
WANT_GNOME= yes
|
2002-10-22 05:42:24 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-10-12 02:07:10 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2005-04-02 18:54:46 +02:00
|
|
|
ALL_TARGET= default
|
|
|
|
FAKEDIR= ${WRKDIR}/fake
|
|
|
|
SCRIPTS_DIR= ${FAKEDIR}/lib/${MOZILLA}
|
|
|
|
MOZ_PIS_DIR= ${SCRIPTS_DIR}/init.d
|
|
|
|
MOZ_PIS_SCRIPTS= S50cleanhome
|
|
|
|
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin
|
1999-07-24 04:26:33 +02:00
|
|
|
CONFIGURE_ARGS= \
|
2002-02-15 19:44:15 +01:00
|
|
|
--disable-auto-deps \
|
|
|
|
--enable-chrome-format=jar \
|
2001-01-22 02:23:18 +01:00
|
|
|
--disable-cpp-exceptions \
|
1999-07-24 04:26:33 +02:00
|
|
|
--disable-cpp-rtti \
|
2001-06-13 11:15:59 +02:00
|
|
|
--enable-crypto \
|
2003-04-14 21:49:37 +02:00
|
|
|
--disable-gtktest \
|
|
|
|
--disable-freetypetest \
|
|
|
|
--disable-installer \
|
|
|
|
--disable-glibtest \
|
1999-07-24 04:26:33 +02:00
|
|
|
--enable-double-buffer \
|
2000-02-04 08:45:35 +01:00
|
|
|
--enable-mathml \
|
2002-02-15 19:44:15 +01:00
|
|
|
--disable-md \
|
|
|
|
--disable-pedantic \
|
2003-04-07 08:27:48 +02:00
|
|
|
--disable-bidi \
|
2002-02-15 19:44:15 +01:00
|
|
|
--disable-plaintext-editor-only \
|
2001-01-22 02:23:18 +01:00
|
|
|
--enable-svg \
|
2002-02-15 19:44:15 +01:00
|
|
|
--disable-tests \
|
|
|
|
--disable-xterm-updates \
|
|
|
|
--enable-xinerama \
|
2003-04-07 08:27:48 +02:00
|
|
|
--with-system-zlib \
|
2002-02-15 19:44:15 +01:00
|
|
|
--with-system-jpeg=${LOCALBASE} \
|
|
|
|
--with-system-png=${LOCALBASE} \
|
2004-03-20 08:39:26 +01:00
|
|
|
--with-gssapi=/usr \
|
2004-10-12 02:07:10 +02:00
|
|
|
--prefix=${FAKEDIR} \
|
2005-01-17 00:47:38 +01:00
|
|
|
--with-pthreads \
|
2005-04-02 18:54:46 +02:00
|
|
|
--enable-application=suite \
|
|
|
|
--enable-xft \
|
|
|
|
--disable-freetype2 \
|
|
|
|
--enable-default-toolkit=gtk2
|
2002-05-19 00:09:26 +02:00
|
|
|
|
2004-03-20 08:39:26 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
MOZ_EXTENSIONS= default
|
2004-11-09 08:48:41 +01:00
|
|
|
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
|
2004-03-20 08:39:26 +01:00
|
|
|
|
|
|
|
ESD_LIB= libesd.so.2
|
|
|
|
FREETYPE_LIB= libfreetype.so.9
|
2005-04-02 18:54:46 +02:00
|
|
|
PKGCONFIG_FILES=mozilla-gtkmozembed mozilla-js mozilla-xpcom \
|
|
|
|
mozilla-nspr mozilla-nss mozilla-plugin
|
2004-03-20 08:39:26 +01:00
|
|
|
|
|
|
|
# JPI stuff. List paths to Java Plug-ins here in the order to try.
|
|
|
|
JPI_LIST?=\
|
|
|
|
${LOCALBASE}/jdk1.4.2/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \
|
|
|
|
${LOCALBASE}/jdk1.4.1/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \
|
|
|
|
${LOCALBASE}/diablo-jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so \
|
|
|
|
${LOCALBASE}/jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so
|
|
|
|
|
2005-04-02 18:54:46 +02:00
|
|
|
OPTIONS=CALENDAR "Enable the Calendar module" off \
|
2004-03-20 08:39:26 +01:00
|
|
|
MAILNEWS "Enable Mail and News modules" on \
|
|
|
|
COMPOSER "Enable the HTML Composer module" on \
|
2004-06-02 03:06:51 +02:00
|
|
|
DEBUG "Enable debugging (i.e. gdb) support" off \
|
2004-03-20 08:39:26 +01:00
|
|
|
LDAP "Enable LDAP support for Mailnews" on \
|
|
|
|
CHATZILLA "Enable the Chatzilla IRC module" on \
|
2005-04-06 21:02:24 +02:00
|
|
|
JAVASCRIPT_DEBUGGER "Enable DTD and JavaScript debuggers" off \
|
2004-03-20 08:39:26 +01:00
|
|
|
OPTIMIZED_CFLAGS "Enable -O2 optimizations" off \
|
2005-04-06 21:02:24 +02:00
|
|
|
CAIRO_RENDER "Enable SVG rendering with Cairo" off \
|
|
|
|
CAIRO "Enable Cairo-specific Canvas features" off \
|
2005-04-26 21:30:55 +02:00
|
|
|
SMB "Enable smb:// URI support via gnomevfs" off
|
2004-03-20 08:39:26 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-04-12 05:29:59 +02:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "alpha"
|
2005-04-02 18:54:46 +02:00
|
|
|
BROKEN= Does not compile on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} < 500035
|
|
|
|
IGNORE= core dumps on ${ARCH} during post-build
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${X11BASE}/lib/X11/fonts/mozilla/fonts.dir)
|
|
|
|
BROKEN= Mozilla${MOZ_SUFX} and Xft2 render the mozilla-fonts \
|
|
|
|
illegibly. Please remove the mozilla-fonts package
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CALENDAR) && (defined(WITHOUT_MAILNEWS) || \
|
|
|
|
defined(WITHOUT_COMPOSER))
|
|
|
|
BROKEN= Calendar requires Composer and Mailnews support.
|
2004-04-03 16:13:40 +02:00
|
|
|
.endif
|
|
|
|
|
2004-12-11 22:50:01 +01:00
|
|
|
.if ${OSVERSION} < 500000
|
2005-01-21 19:06:34 +01:00
|
|
|
USE_GCC= 3.4
|
2004-12-11 22:50:01 +01:00
|
|
|
.endif
|
|
|
|
|
2005-04-02 18:54:46 +02:00
|
|
|
.if defined(WITH_CAIRO_RENDER) || defined(WITH_CAIRO)
|
2004-11-09 08:48:41 +01:00
|
|
|
LIB_DEPENDS+= svg-cairo.1:${PORTSDIR}/graphics/libsvg-cairo
|
2005-04-02 18:54:46 +02:00
|
|
|
.endif
|
2004-11-09 08:48:41 +01:00
|
|
|
|
2005-04-02 18:54:46 +02:00
|
|
|
.if defined(WITH_CAIRO_RENDER)
|
2004-11-09 08:48:41 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-svg-renderer-cairo \
|
|
|
|
--disable-svg-renderer-libart
|
|
|
|
CONFIGURE_ENV+= MOZ_SVG_RENDERER_CAIRO=1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-svg-renderer-libart \
|
|
|
|
--disable-svg-renderer-cairo
|
|
|
|
CONFIGURE_ENV+= MOZ_INTERNAL_LIBART_LGPL=1
|
2005-04-02 18:54:46 +02:00
|
|
|
MAKE_ENV+= MOZ_INTERNAL_LIBART_LGPL=1
|
2004-11-09 08:48:41 +01:00
|
|
|
.endif
|
|
|
|
|
2005-04-02 18:54:46 +02:00
|
|
|
.if defined(WITH_CAIRO)
|
|
|
|
CONFIGURE_ARGS+= --enable-cairo
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/cairo"
|
2004-03-20 08:39:26 +01:00
|
|
|
.endif
|
|
|
|
|
2004-06-02 03:06:51 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2005-04-02 18:54:46 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-debug \
|
|
|
|
--disable-strip
|
2004-06-02 03:06:51 +02:00
|
|
|
.else
|
2005-04-02 18:54:46 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-debug \
|
|
|
|
--enable-strip
|
2004-03-20 08:39:26 +01:00
|
|
|
.endif
|
|
|
|
|
2002-05-19 00:09:26 +02:00
|
|
|
# LDAP is only used by mail and news so disable both together
|
|
|
|
.if defined(WITHOUT_MAILNEWS)
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap --disable-mailnews
|
|
|
|
.else
|
|
|
|
# mail and news desired, but not LDAP
|
|
|
|
.if defined(WITHOUT_LDAP)
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap --enable-mailnews
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-ldap --enable-mailnews
|
2002-10-22 05:42:24 +02:00
|
|
|
.endif
|
2002-05-19 00:09:26 +02:00
|
|
|
.endif
|
2002-01-04 15:18:26 +01:00
|
|
|
.if !defined(WITHOUT_CHATZILLA)
|
2003-08-12 18:48:56 +02:00
|
|
|
MOZ_EXTENSIONS:= ${MOZ_EXTENSIONS},irc
|
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --enable-extensions=${MOZ_EXTENSIONS}
|
2002-04-26 06:17:52 +02:00
|
|
|
|
2003-01-21 17:41:54 +01:00
|
|
|
.if defined(WITH_JAVASCRIPT_DEBUGGER)
|
|
|
|
CONFIGURE_ARGS+= --enable-jsd \
|
|
|
|
--enable-dtd-debug
|
2003-04-07 08:27:48 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-jsd \
|
|
|
|
--disable-dtd-debug
|
2003-01-21 17:41:54 +01:00
|
|
|
.endif
|
|
|
|
|
2002-11-11 04:31:22 +01:00
|
|
|
.if defined(WITH_CALENDAR)
|
|
|
|
CONFIGURE_ARGS+= --enable-calendar
|
|
|
|
.endif
|
|
|
|
|
2002-10-29 10:09:38 +01:00
|
|
|
.if defined(WITHOUT_COMPOSER)
|
|
|
|
CONFIGURE_ARGS+= --disable-composer
|
|
|
|
.endif
|
|
|
|
|
2002-07-23 08:58:42 +02:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS+= --enable-reorder
|
|
|
|
.endif
|
|
|
|
|
2004-03-20 08:39:26 +01:00
|
|
|
.if defined(WITH_SMB)
|
|
|
|
USE_GNOME+= gnomevfs2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gnomevfs
|
|
|
|
.endif
|
|
|
|
|
2003-06-01 05:34:55 +02:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
2005-02-28 02:43:57 +01:00
|
|
|
CFLAGS:= -O2 -fno-strict-aliasing ${CFLAGS:N-O*}
|
|
|
|
.else
|
|
|
|
CFLAGS:= -O ${CFLAGS:N-O*:N-m*}
|
|
|
|
CONFIGURE_ENV+= WITH_OPTIMIZE=-O
|
2003-04-07 08:27:48 +02:00
|
|
|
.endif
|
|
|
|
|
2005-04-02 18:54:46 +02:00
|
|
|
.if !defined(WITHOUT_MENU_ENTRY)
|
2005-03-20 23:02:59 +01:00
|
|
|
USE_GNOME+= gnomehier
|
|
|
|
.endif
|
|
|
|
|
2002-10-22 05:42:24 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/build/unix/run-mozilla.sh
|
2002-11-17 23:09:06 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%MOZILLA%%|${MOZILLA}|g' \
|
2003-04-24 20:02:42 +02:00
|
|
|
-e 's|%%HEADERS_SUFX%%|${MOZ_SUFX}|g' \
|
2002-11-17 23:09:06 +01:00
|
|
|
${WRKSRC}/config/autoconf.mk.in
|
2003-04-10 23:09:07 +02:00
|
|
|
@${FIND} ${WRKSRC}/other-licenses/libical -name "*.c" | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g'
|
2004-02-26 04:05:47 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g' \
|
2003-11-01 22:51:08 +01:00
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/nsprpub/configure
|
2003-09-06 20:34:37 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
|
2003-11-01 22:51:08 +01:00
|
|
|
${WRKSRC}/nsprpub/configure \
|
2003-09-06 20:34:37 +02:00
|
|
|
${WRKSRC}/security/coreconf/FreeBSD.mk \
|
|
|
|
${WRKSRC}/directory/c-sdk/config/FreeBSD.mk \
|
|
|
|
${WRKSRC}/js/src/Makefile.in
|
2004-02-26 04:05:47 +01: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/' \
|
2004-04-29 21:23:34 +02:00
|
|
|
${WRKSRC}/modules/libpref/src/init/all.js
|
2004-02-26 04:05:47 +01:00
|
|
|
@${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 07:08:29 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|libfreetype.so.6|${FREETYPE_LIB}|g' \
|
2004-02-26 10:41:11 +01:00
|
|
|
${WRKSRC}/modules/libpref/src/init/all.js
|
2003-04-24 20:02:42 +02:00
|
|
|
@for pcfile in ${PKGCONFIG_FILES}; do \
|
2004-10-24 04:35:07 +02:00
|
|
|
${REINPLACE_CMD} -e 's|mozilla-xpcom|mozilla-xpcom${MOZ_SUFX}|g ; \
|
|
|
|
s|mozilla-nspr|mozilla-nspr${MOZ_SUFX}|g' \
|
2003-11-11 05:10:19 +01:00
|
|
|
${WRKSRC}/build/unix/$${pcfile}.pc.in; \
|
2003-04-24 20:02:42 +02:00
|
|
|
done
|
2005-03-20 23:02:59 +01:00
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
< ${FILESDIR}/mozilla-devel.desktop.in > \
|
|
|
|
${WRKDIR}/mozilla-devel.desktop
|
|
|
|
|
2004-03-19 04:14:55 +01:00
|
|
|
pre-configure:
|
|
|
|
@if [ -n "`${PKG_INFO} -xI '^bind[0-9]*-base-[0-9]'`" ]; then \
|
|
|
|
${ECHO_CMD} "${PKGNAME}: bind installed with PORT_REPLACES_BASE_BIND causes build problems."; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
2000-02-04 08:45:35 +01:00
|
|
|
post-build:
|
2002-11-24 01:24:04 +01:00
|
|
|
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%MOZILLA%%|${MOZILLA}|g" \
|
2002-11-17 23:09:06 +01:00
|
|
|
${FILESDIR}/mozilla.sh >${WRKSRC}/${MOZILLA}
|
2000-02-04 08:45:35 +01:00
|
|
|
|
2002-10-22 05:42:24 +02:00
|
|
|
pre-install:
|
2004-10-12 02:07:10 +02:00
|
|
|
${RM} -rf ${PLIST} ${FAKEDIR}
|
2002-10-22 05:42:24 +02:00
|
|
|
${TOUCH} -f ${PLIST}
|
2004-10-12 02:07:10 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
Makefile ${MAKE_ARGS} install
|
2005-04-02 18:54:46 +02:00
|
|
|
${MKDIR} ${SCRIPTS_DIR} ${MOZ_PIS_DIR}
|
2004-10-24 04:35:07 +02:00
|
|
|
${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|g' \
|
|
|
|
${FAKEDIR}/bin/mozilla \
|
|
|
|
${FAKEDIR}/bin/mozilla-config
|
2002-10-23 18:13:29 +02:00
|
|
|
if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozilla ]; then \
|
2003-11-11 05:10:19 +01:00
|
|
|
${ECHO_CMD} bin/mozilla >> ${PLIST} ; \
|
2002-10-23 06:26:25 +02:00
|
|
|
fi
|
2002-11-17 23:09:06 +01:00
|
|
|
${ECHO_CMD} bin/${MOZILLA} >> ${PLIST}
|
2002-10-23 18:13:29 +02:00
|
|
|
if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \
|
2003-11-15 03:18:30 +01:00
|
|
|
for jpi in ${JPI_LIST}; do \
|
|
|
|
if [ -f $${jpi} ]; then \
|
|
|
|
${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST} ; \
|
|
|
|
break; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
2002-10-23 06:26:25 +02:00
|
|
|
fi
|
2004-12-11 03:11:23 +01:00
|
|
|
${ECHO_CMD} lib/browser_plugins/.${PORTNAME}.keep >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@unexec ${RMDIR} %D/lib/browser_plugins 2>/dev/null || ${TRUE}" >> ${PLIST}
|
2004-10-12 02:07:10 +02:00
|
|
|
${ECHO_CMD} lib/${MOZILLA}/mozilla >> ${PLIST}
|
|
|
|
${ECHO_CMD} lib/${MOZILLA}/mozilla-config >> ${PLIST}
|
2005-02-28 02:43:57 +01:00
|
|
|
.for ii in ${MOZ_PIS_SCRIPTS}
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/moz_pis_${ii} ${MOZ_PIS_DIR}/${ii}
|
|
|
|
.endfor
|
2004-11-10 12:59:14 +01:00
|
|
|
.if !defined(WITHOUT_MAILNEWS)
|
2004-11-09 08:48:41 +01:00
|
|
|
@${CP} -RL ${WRKSRC}/dist/bin/defaults/isp ${FAKEDIR}/lib/${MOZILLA}/defaults
|
2005-03-20 23:02:59 +01:00
|
|
|
.endif
|
2005-04-26 21:30:55 +02:00
|
|
|
${ECHO_CMD} share/applications/mozilla-devel.desktop >> ${PLIST}
|
2005-04-29 00:46:30 +02:00
|
|
|
${ECHO_CMD} "@unexec ${RMDIR} %D/share/applications 2>/dev/nulll || ${TRUE}" >> ${PLIST}
|
2004-10-12 02:07:10 +02:00
|
|
|
cd ${FAKEDIR}/lib/${MOZILLA} && ${FIND} -s * -type f -o -type l | \
|
2002-11-17 23:09:06 +01:00
|
|
|
${SED} -e 's:^:lib/${MOZILLA}/:' >> ${PLIST} \
|
2003-11-11 05:10:19 +01:00
|
|
|
&& ${FIND} -d * -type d | \
|
|
|
|
${SED} -e 's:^:@dirrm lib/${MOZILLA}/:' >> ${PLIST}
|
2002-11-17 23:09:06 +01:00
|
|
|
${ECHO_CMD} @dirrm lib/${MOZILLA} >> ${PLIST}
|
|
|
|
for pcfile in ${PKGCONFIG_FILES}; do \
|
2004-10-24 04:35:07 +02:00
|
|
|
${ECHO_CMD} libdata/pkgconfig/$${pcfile}${MOZ_SUFX}.pc >> ${PLIST} ; \
|
2002-11-17 23:09:06 +01:00
|
|
|
done
|
2004-10-12 02:07:10 +02:00
|
|
|
cd ${FAKEDIR}/include/${MOZILLA} && ${FIND} -s * -type f -o -type l | \
|
2004-02-27 08:49:33 +01:00
|
|
|
${SED} -e 's:^:include/${MOZILLA}/:' >> ${PLIST} \
|
2004-01-18 08:27:03 +01:00
|
|
|
&& ${FIND} -d * -type d | \
|
2004-02-27 08:49:33 +01:00
|
|
|
${SED} -e 's:^:@dirrm include/${MOZILLA}/:' >> ${PLIST}
|
|
|
|
${ECHO_CMD} @dirrm include/${MOZILLA} >> ${PLIST}
|
2005-04-26 21:30:55 +02:00
|
|
|
${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST}
|
2002-10-22 05:42:24 +02:00
|
|
|
|
1997-04-09 17:12:15 +02:00
|
|
|
do-install:
|
2002-11-17 23:09:06 +01:00
|
|
|
${MKDIR} ${PREFIX}/lib/${MOZILLA}
|
|
|
|
${CHMOD} 755 ${PREFIX}/lib/${MOZILLA}
|
2004-10-12 02:07:10 +02:00
|
|
|
${INSTALL_SCRIPT} ${FAKEDIR}/bin/mozilla ${PREFIX}/lib/${MOZILLA}
|
|
|
|
${INSTALL_SCRIPT} ${FAKEDIR}/bin/mozilla-config ${PREFIX}/lib/${MOZILLA}
|
|
|
|
cd ${FAKEDIR}/lib/${MOZILLA} && ${FIND} . | \
|
2004-01-22 13:18:43 +01:00
|
|
|
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${MOZILLA}
|
2005-02-28 02:43:57 +01:00
|
|
|
for pcfile in ${PKGCONFIG_FILES}; do \
|
|
|
|
${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/build/unix/$${pcfile}.pc; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/build/unix/$${pcfile}.pc \
|
|
|
|
${PREFIX}/libdata/pkgconfig/$${pcfile}${MOZ_SUFX}.pc ; \
|
|
|
|
done
|
2002-11-17 23:09:06 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${MOZILLA} ${PREFIX}/bin
|
2002-10-23 18:13:29 +02:00
|
|
|
if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozilla ]; then \
|
2003-11-11 05:10:19 +01:00
|
|
|
${LN} -sf ${PREFIX}/bin/${MOZILLA} ${PREFIX}/bin/mozilla ; \
|
2002-10-23 06:26:25 +02:00
|
|
|
fi
|
2002-10-23 18:13:29 +02:00
|
|
|
if [ ! -d ${PREFIX}/lib/browser_plugins ]; then \
|
2003-11-11 05:10:19 +01:00
|
|
|
${MKDIR} ${PREFIX}/lib/browser_plugins ; \
|
2002-10-23 06:26:25 +02:00
|
|
|
fi
|
2004-12-11 03:11:23 +01:00
|
|
|
${TOUCH} -f ${PREFIX}/lib/browser_plugins/.${PORTNAME}.keep
|
2002-10-23 20:20:20 +02:00
|
|
|
if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \
|
2003-11-11 05:10:19 +01:00
|
|
|
for jpi in ${JPI_LIST}; do \
|
|
|
|
if [ -f $${jpi} ]; then \
|
|
|
|
${LN} -sf $${jpi} \
|
|
|
|
${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ; \
|
2003-11-15 03:18:30 +01:00
|
|
|
break; \
|
2003-11-11 05:10:19 +01:00
|
|
|
fi; \
|
|
|
|
done; \
|
2002-10-23 06:26:25 +02:00
|
|
|
fi
|
2004-02-27 08:49:33 +01:00
|
|
|
-${RM} -fr ${PREFIX}/include/${MOZILLA}
|
|
|
|
${MKDIR} ${PREFIX}/include/${MOZILLA}
|
|
|
|
${CHMOD} 755 ${PREFIX}/include/${MOZILLA}
|
2004-10-12 02:07:10 +02:00
|
|
|
cd ${FAKEDIR}/include/${MOZILLA} && ${FIND} . | \
|
2004-02-27 08:49:33 +01:00
|
|
|
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/${MOZILLA}
|
2005-04-26 21:30:55 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
2005-03-20 23:02:59 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mozilla-devel.desktop \
|
|
|
|
${PREFIX}/share/gnome/applications
|
2005-04-26 21:30:55 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@-update-desktop-database
|
2002-10-22 05:42:24 +02:00
|
|
|
|
2002-04-26 06:17:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|