diff options
author | minskim <minskim@pkgsrc.org> | 2004-04-09 20:42:59 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-04-09 20:42:59 +0000 |
commit | a5677169ecc6845ffa7e681776a1f68e2a2edff4 (patch) | |
tree | d5454d1ab7db679e8ce2919232e1d95a7cb5f494 /graphics/tkpiechart/Makefile | |
parent | 6a7bde98907de941b4baa4d1d22d5145f20455d7 (diff) | |
download | pkgsrc-a5677169ecc6845ffa7e681776a1f68e2a2edff4.tar.gz |
Use subst.mk instead of sed and patches.
Diffstat (limited to 'graphics/tkpiechart/Makefile')
-rw-r--r-- | graphics/tkpiechart/Makefile | 13 |
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 |