diff options
author | agc <agc> | 1997-10-16 12:43:24 +0000 |
---|---|---|
committer | agc <agc> | 1997-10-16 12:43:24 +0000 |
commit | 212bc2b17ff3e65d174ede823df0a1964af4aec5 (patch) | |
tree | e2e45f11f9644372295ebccbc006f0bcdddfd0f5 /graphics/netpbm/Makefile | |
parent | 6f58782ab450391b7f332c714a3816c48167d67a (diff) | |
download | pkgsrc-212bc2b17ff3e65d174ede823df0a1964af4aec5.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/Makefile')
-rw-r--r-- | graphics/netpbm/Makefile | 20 |
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> |