aboutsummaryrefslogtreecommitdiffstats
path: root/www/seamonkey2/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-10-23 12:26:25 +0800
committermarcus <marcus@FreeBSD.org>2002-10-23 12:26:25 +0800
commitfd4cbc9f7f00a152321ad7edb1842f11cc6c7289 (patch)
tree59e958bf51c6e7cd052ae05700c4380c33d37596 /www/seamonkey2/Makefile
parent8da9e921f350b40c4086c8d1261770de8d781a8c (diff)
downloadfreebsd-ports-graphics-fd4cbc9f7f00a152321ad7edb1842f11cc6c7289.tar.gz
freebsd-ports-graphics-fd4cbc9f7f00a152321ad7edb1842f11cc6c7289.tar.zst
freebsd-ports-graphics-fd4cbc9f7f00a152321ad7edb1842f11cc6c7289.zip
* Add a patch that fixes some localization issues [1]
* Fix a problem with plugins not actually loading * Hopefully correct some issues with installs erroring out with Error 1 * Conditionalize Xft support (by default it's enabled, but can be disabled by defined WITHOUT_XFT) Submitted by: Jung-uk Kim <jkim@niksun.com> [1] Obtained from: Mozilla's Bugzilla bug 174989 [1]
Diffstat (limited to 'www/seamonkey2/Makefile')
-rw-r--r--www/seamonkey2/Makefile39
1 files changed, 26 insertions, 13 deletions
diff --git a/www/seamonkey2/Makefile b/www/seamonkey2/Makefile
index ad8c0f61a1c..e4dd833c8f5 100644
--- a/www/seamonkey2/Makefile
+++ b/www/seamonkey2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.2b
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@@ -23,12 +24,16 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
mng.1:${PORTSDIR}/graphics/libmng \
- Xft2.2:${PORTSDIR}/x11-fonts/Xft
+ freetype.9:${PORTSDIR}/print/freetype2
WRKSRC= ${WRKDIR}/${PORTNAME}
WITHOUT_CHATZILLA= "Contains a buffer overflow reported at http://online.securityfocus.com/archive/1/270249"
+.if !defined(WITHOUT_XFT)
+LIB_DEPENDS+= Xft2.2:${PORTSDIR}/x11-fonts/Xft
+.endif
+
LATEST_LINK= mozilla-devel
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/* \
--exclude */macbuild/*\
@@ -64,7 +69,6 @@ CONFIGURE_ARGS= \
--disable-tests \
--disable-xterm-updates \
--enable-xinerama \
- --enable-xft \
--with-system-jpeg=${LOCALBASE} \
--with-system-mng=${LOCALBASE} \
--with-system-png=${LOCALBASE} \
@@ -90,6 +94,10 @@ CONFIGURE_ARGS+= --enable-extensions=default,xmlterm
.endif
CONFIGURE_ENV= MOZ_INTERNAL_LIBART_LGPL=1
+.if !defined(WITHOUT_XFT)
+CONFIGURE_ARGS+= --enable-xft
+.endif
+
.include <bsd.port.pre.mk>
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \
@@ -127,11 +135,13 @@ post-build:
pre-install:
${TOUCH} -f ${PLIST}
- ${TEST} ! -x ${PREFIX}/bin/mozilla && ${TEST} ! -L ${PREFIX}/bin/mozilla && \
- ${ECHO_CMD} bin/mozilla >> ${PLIST}
+ if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozilla ]; then
+ ${ECHO_CMD} bin/mozilla >> ${PLIST}
+ fi
${ECHO_CMD} bin/mozilla-devel >> ${PLIST}
- ${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \
- ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST}
+ if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then
+ ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST}
+ fi
cd ${WRKSRC}/dist/bin && ${FIND} -s * -type f -o -type l | \
${SED} -e 's:^:lib/mozilla-devel/:' >> ${PLIST} \
&& ${FIND} -d * -type d | \
@@ -144,13 +154,16 @@ do-install:
cd ${WRKSRC}/dist/bin && ${FIND} . | \
cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla-devel
${INSTALL_SCRIPT} ${WRKSRC}/mozilla-devel ${PREFIX}/bin
- ${TEST} ! -x ${PREFIX}/bin/mozilla && ${TEST} ! -L ${PREFIX}/bin/mozilla && \
- ${LN} -sf ${PREFIX}/bin/mozilla-devel ${PREFIX}/bin/mozilla
- ${TEST} ! -d ${PREFIX}/lib/browser_plugins && \
- ${MKDIR} ${PREFIX}/lib/browser_plugins
- ${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \
- ${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
- ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so
+ if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozilla ]; then
+ ${LN} -sf ${PREFIX}/bin/mozilla-devel ${PREFIX}/bin/mozilla
+ fi
+ if [ ! -d ${PREFIX}/lib/browser_plugins ]; then
+ ${MKDIR} ${PREFIX}/lib/browser_plugins
+ fi
+ if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then
+ ${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
+ ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so
+ fi
post-install:
@${CAT} ${PKGMESSAGE}