summaryrefslogtreecommitdiff
path: root/graphics/tkpiechart/Makefile
diff options
context:
space:
mode:
authorminskim <minskim>2004-04-09 20:42:59 +0000
committerminskim <minskim>2004-04-09 20:42:59 +0000
commitae2a5e0fc3d4f0549587ddeb77b41bab29bbe32d (patch)
treed5454d1ab7db679e8ce2919232e1d95a7cb5f494 /graphics/tkpiechart/Makefile
parentf8ca521552b0fbdffd5756c10d0e50572520caeb (diff)
downloadpkgsrc-ae2a5e0fc3d4f0549587ddeb77b41bab29bbe32d.tar.gz
Use subst.mk instead of sed and patches.
Diffstat (limited to 'graphics/tkpiechart/Makefile')
-rw-r--r--graphics/tkpiechart/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/graphics/tkpiechart/Makefile b/graphics/tkpiechart/Makefile
index eac03a3311f..5eea20178aa 100644
--- a/graphics/tkpiechart/Makefile
+++ b/graphics/tkpiechart/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/03/30 01:51:46 minskim Exp $
+# $NetBSD: Makefile,v 1.13 2004/04/09 20:42:59 minskim Exp $
DISTNAME= tkpiechart-5.4
CATEGORIES= graphics
@@ -16,11 +16,12 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
NO_CONFIGURE= yes
NO_BUILD= yes
-pre-patch:
- for f in source.tcl instapkg.tcl; do \
- ${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f-prepatch; \
- ${SED} -e '/Id/s|\$$||g' ${WRKSRC}/$$f-prepatch > ${WRKSRC}/$$f; \
- done
+SUBST_CLASSES+= patch
+SUBST_MESSAGE.patch= "Remove version numbers for required packages."
+SUBST_STAGE.patch= post-patch
+SUBST_FILES.patch= demo demo.tcl instapkg.tcl piechart.htm
+SUBST_SED.patch= -e '/require/s/stooop 3.7/stooop/g' \
+ -e '/require/s/switched 1.4/switched/g'
post-patch:
${CHMOD} a+x ${WRKSRC}/instapkg.tcl