summaryrefslogtreecommitdiff
path: root/graphics/netpbm/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-10-15 17:11:46 +0000
committeragc <agc@pkgsrc.org>1997-10-15 17:11:46 +0000
commit85fe2d3925880869b08bbce1ff254885d9b31c81 (patch)
treedd6b0a7d28823b3c730dc443934af73663040782 /graphics/netpbm/Makefile
parent2a938855f872d4dc5395e06fc06de06079869a1d (diff)
downloadpkgsrc-85fe2d3925880869b08bbce1ff254885d9b31c81.tar.gz
Add definition for COMPRESSMANCMD which is in the X11 tree for FreeBSD.
Add a pre-process stage (at pre-configure time) to change hard-coded /usr/local into ${PREFIX}. Revert the patches I'd previously changed to the default ${PREFIX} to be /usr/local once again, so that the pre-processing will work.
Diffstat (limited to 'graphics/netpbm/Makefile')
-rw-r--r--graphics/netpbm/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index fcbb8d0b4d9..fdaadbd74f8 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1997/10/15 15:37:17 agc Exp $
+# $NetBSD: Makefile,v 1.3 1997/10/15 17:11:46 agc Exp $
# New ports collection makefile for: netpbm
# Version required: 1mar1994
# Date created: ?
@@ -19,4 +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
+
+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; \
+ done
+ rm ${WRKDIR}/prefix-list
+
.include <bsd.port.mk>