diff options
author | sada <sada@FreeBSD.org> | 2000-03-12 01:22:02 +0800 |
---|---|---|
committer | sada <sada@FreeBSD.org> | 2000-03-12 01:22:02 +0800 |
commit | 45af61c7ea63f41335e19c5a4f84b0f70ee0d3df (patch) | |
tree | f242aa73bff24e45629c9306fba7ed5c54d6803a /www/netscape48-communicator | |
parent | 554128b34baa8e290848be108ffc6a99e94ed885 (diff) | |
download | freebsd-ports-gnome-45af61c7ea63f41335e19c5a4f84b0f70ee0d3df.tar.gz freebsd-ports-gnome-45af61c7ea63f41335e19c5a4f84b0f70ee0d3df.tar.zst freebsd-ports-gnome-45af61c7ea63f41335e19c5a4f84b0f70ee0d3df.zip |
Re-enable warning message with compat22 lib, for package users.
Approved by: Palle Girgensohn <girgen@partitur.se>
Diffstat (limited to 'www/netscape48-communicator')
-rw-r--r-- | www/netscape48-communicator/Makefile | 17 | ||||
-rw-r--r-- | www/netscape48-communicator/pkg-req.aout | 30 |
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; |