summaryrefslogtreecommitdiff
path: root/www/netscape48-communicator
diff options
context:
space:
mode:
authorSADA Kenji <sada@FreeBSD.org>2000-03-11 17:22:02 +0000
committerSADA Kenji <sada@FreeBSD.org>2000-03-11 17:22:02 +0000
commit516c38517fb7a683dce65ed0c52faafdc0446b97 (patch)
tree1ba74b7ed95098f8dc4a380c2974e4ac1c61740d /www/netscape48-communicator
parentActivate ude (diff)
Re-enable warning message with compat22 lib, for package users.
Approved by: Palle Girgensohn <girgen@partitur.se>
Notes
Notes: svn path=/head/; revision=26760
Diffstat (limited to 'www/netscape48-communicator')
-rw-r--r--www/netscape48-communicator/Makefile17
-rw-r--r--www/netscape48-communicator/pkg-req.aout30
2 files changed, 43 insertions, 4 deletions
diff --git a/www/netscape48-communicator/Makefile b/www/netscape48-communicator/Makefile
index a84cd1133a05..d8bd884bdf8a 100644
--- a/www/netscape48-communicator/Makefile
+++ b/www/netscape48-communicator/Makefile
@@ -13,8 +13,6 @@ DISTFILES?= communicator-v408-export.x86-unknown-freebsd.tar.gz
MAINTAINER?= sada@FreeBSD.org
-RUN_DEPENDS?= ${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs
-
Y2K= http://home.netscape.com/products/year2000/faq/client.html
.if !defined(INFILE_HEAD)
@@ -28,7 +26,6 @@ NO_FILTER_SHLIBS= yes
STRIP=
WRKSRC?= ${WRKDIR}/${BROWSER}-v408.x86-unknown-freebsd
PKGDIR= ${.CURDIR}/pkg
-PKGREQ?= ${MASTERDIR}/pkg/REQ
AUTOADMIN?= autoadmin-v408.x86-unknown-freebsd.tar.gz
BROWSER?= communicator
@@ -55,6 +52,16 @@ DISTFILES+= ${FORTIFY}.tar.gz
RESTRICTED= "Contains strong cryptography"
.endif
+.if !defined(_PREMKINCLUDED)
+.include <bsd.port.pre.mk>
+.endif
+
+.if (${ARCH} == "i386") && !defined(USE_LINUX_LIB)
+USE_AOUT_LIB= yes
+PKGREQ= ${MASTERDIR}/pkg/REQ.aout
+RUN_DEPENDS= ${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs
+.endif
+
.SILENT:
.if !defined(USE_128BIT) && !defined(NO_FORTIFY)
@@ -70,8 +77,10 @@ post-configure:
${CHMOD} +x ${WRKSRC}/netscape
${ECHO} -n ${INFILE_HEAD},${NDIR} >${WRKSRC}/infile
+.if defined(USE_AOUT_LIB)
pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
+.endif
do-install:
${MKDIR} ${NDIR}/java/classes
@@ -104,7 +113,7 @@ post-install:
${CAT} ${PKGDIR}/DESCR
# hack to allow slave ports to include bsd.port.pre.mk and then this file
-.if defined(PRE_MK_INCLUDED)
+.if defined(_PREMKINCLUDED)
.include <bsd.port.post.mk>
.else
.include <bsd.port.mk>
diff --git a/www/netscape48-communicator/pkg-req.aout b/www/netscape48-communicator/pkg-req.aout
new file mode 100644
index 000000000000..2e5ef56fe552
--- /dev/null
+++ b/www/netscape48-communicator/pkg-req.aout
@@ -0,0 +1,30 @@
+#!/bin/sh
+env=/usr/bin/env
+fgrep=/usr/bin/fgrep
+ldconfig=/sbin/ldconfig
+ld_so=/usr/libexec/ld.so
+if [ x$2 = xINSTALL ]; then
+ $env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lc.3'
+ if [ $? -ne 0 -o ! -x $ld_so ]; then
+ cat <<END
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
++ There are no aout libs on this machine. +
++ 1. Install compat22 distribution, +
++ 2. restart your system, +
++ 3. then retry "make install" this port +
++ or "pkg_add" this package. +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
+END
+ exit 1
+ fi
+ $env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lX11.6'
+ if [ $? -ne 0 ]; then
+ cat <<END
++++++++++++++++++++++++++++++++++++++++++++++
++ There are no X aout libs on this machine. +
++++++++++++++++++++++++++++++++++++++++++++++
+END
+ exit 1
+ fi
+fi
+exit 0;