summaryrefslogtreecommitdiff
path: root/graphics/netpbm
diff options
context:
space:
mode:
authoragc <agc>1997-10-16 12:43:24 +0000
committeragc <agc>1997-10-16 12:43:24 +0000
commit9c994a217af69682e5b0a819fe1a89ac93d10587 (patch)
treee2e45f11f9644372295ebccbc006f0bcdddfd0f5 /graphics/netpbm
parent11d287c5137e15d88ec63004fec1388c91b74c26 (diff)
downloadpkgsrc-9c994a217af69682e5b0a819fe1a89ac93d10587.tar.gz
+ set MANCOMPRESSED as the package installs its man pages gzipped
+ define COMPRESSMANCMD as imake seems to expect this to be defined (FreeBSD define this in {$X11BASE}/lib/X11/config/FreeBSD.cf) + when preprocessing to set the correct prefix, use LOCALBASE rather than PREFIX, as USE_IMAKE will set PREFIX by default + eliminate an unnecessary temporary file when preprocessing to set the correct prefix.
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index fdaadbd74f8..f6fb9e6ca1f 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1997/10/15 17:11:46 agc Exp $
+# $NetBSD: Makefile,v 1.4 1997/10/16 12:43:24 agc Exp $
# New ports collection makefile for: netpbm
# Version required: 1mar1994
# Date created: ?
@@ -19,17 +19,17 @@ LIB_DEPENDS= tiff\\.3\\.:${PORTSDIR}/graphics/tiff
USE_IMAKE= yes
-.if defined(MANZ)
-MAKE_ENV += "COMPRESSMANCMD=${GZIP_CMD}"
-.else
-MAKE_ENV += COMPRESSMANCMD=:
-.endif
+OPSYS!= uname -s
+
+.if (${OPSYS} == "NetBSD")
+
+MAKE_ENV += COMPRESSMANCMD="${GZIP_CMD}"
+MANCOMPRESSED= yes
pre-configure:
- find ${WRKDIR} -type f -print|xargs grep -l '/usr/local' > ${WRKDIR}/prefix-list
- for f in `cat ${WRKDIR}/prefix-list`; do \
- ${SED} -e 's:/usr/local:'${PREFIX}':g' < $$f > $$f.pdone && mv $$f.pdone $$f; \
+ for f in `find ${WRKDIR} -type f -print|xargs grep -l '/usr/local'`; do \
+ ${SED} -e 's:/usr/local:'${LOCALBASE}':g' < $$f > $$f.pdone && mv $$f.pdone $$f; \
done
- rm ${WRKDIR}/prefix-list
+.endif
.include <bsd.port.mk>