summaryrefslogtreecommitdiff
path: root/graphics/netpbm/Makefile
diff options
context:
space:
mode:
authoradam <adam>2010-11-04 10:57:50 +0000
committeradam <adam>2010-11-04 10:57:50 +0000
commit14a38e9903ee2697018c0e3a3e790ae34116bff6 (patch)
tree2b36bb4ac700d4c6a4e01a7ff4dfc4ddb32f6312 /graphics/netpbm/Makefile
parent9e124440e1470c5c6baa071d1f6b93a8711d3a17 (diff)
downloadpkgsrc-14a38e9903ee2697018c0e3a3e790ae34116bff6.tar.gz
Fix problem finding rgb.txt, PR#43934
Diffstat (limited to 'graphics/netpbm/Makefile')
-rw-r--r--graphics/netpbm/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index e45951c9571..e477974e1f8 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.169 2010/09/23 09:09:20 tron Exp $
+# $NetBSD: Makefile,v 1.170 2010/11/04 10:57:50 adam Exp $
DISTNAME= netpbm-10.35.77
CATEGORIES= graphics
@@ -33,7 +33,6 @@ WRAPPER_REORDER_CMDS+= reorder:l:rle:netpbm
# Several of the netpbm shell scripts use bashisms, so force using
# bash for all of the shell scripts.
-#
REPLACE_INTERPRETER+= bash
REPLACE.bash.old= .*/bin/sh
REPLACE.bash.new= ${TOOLS_PATH.bash}
@@ -47,6 +46,12 @@ REPLACE_FILES.bash+= editor/pnmmargin
REPLACE_FILES.bash+= editor/ppmquantall
REPLACE_FILES.bash+= other/ppmtomap
+SUBST_CLASSES+= rgb_txt
+SUBST_STAGE.rgb_txt= post-patch
+SUBST_MESSAGE.rgb_txt= Configure RGB_TXT
+SUBST_FILES.rgb_txt= pm_config.in.h
+SUBST_SED.rgb_txt+= -e 's,@@PREFIX@@,${PREFIX},'
+
.include "../../mk/bsd.prefs.mk"
# Fiasco fails to compile on Darwin-8.x.
@@ -69,11 +74,6 @@ MAKE_ENV+= NETPBMLIBTYPE="unixshared" NETPBMLIBSUFFIX="so"
CPPFLAGS+= -DSGI_IDO_CC
.endif
-.include "../../graphics/jasper/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/tiff/buildlink3.mk"
-.include "../../textproc/libxml2/buildlink3.mk"
-
pre-configure:
${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config
@@ -96,4 +96,8 @@ post-install:
${FIND} ${DESTDIR}${PREFIX}/share/doc/netpbm -type f -print | \
${XARGS} ${CHMOD} ${NONBINMODE}
+.include "../../graphics/jasper/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"