summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-02-28 11:25:37 +0000
committerrillig <rillig@pkgsrc.org>2008-02-28 11:25:37 +0000
commitc2da5622fcf9a5d67f9c213cec6b9074268865e3 (patch)
treef3b390f7783c04318e43293329ab1756ebd1f84d
parent2832eab101549b8361b33f39a7f565399a0860a7 (diff)
downloadpkgsrc-c2da5622fcf9a5d67f9c213cec6b9074268865e3.tar.gz
Fixed pkglint warnings by using SUBST.
-rw-r--r--x11/gtk2-sharp/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/x11/gtk2-sharp/Makefile b/x11/gtk2-sharp/Makefile
index b3c2f10a506..68183d0cf66 100644
--- a/x11/gtk2-sharp/Makefile
+++ b/x11/gtk2-sharp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/02/20 18:44:27 drochner Exp $
+# $NetBSD: Makefile,v 1.12 2008/02/28 11:25:37 rillig Exp $
#
DISTNAME= gtk-sharp-2.10.3
@@ -21,15 +21,11 @@ PKGCONFIG_OVERRIDE+= glib/glib-sharp-2.0.pc.in
PKGCONFIG_OVERRIDE+= parser/gapi-2.0.pc.in
PKGCONFIG_OVERRIDE+= glade/glade-sharp-2.0.pc.in
-post-patch: substpcprefix
-# replace relative prefix in pkgconfig files
-substpcprefix:
-.for f in ${PKGCONFIG_OVERRIDE}
- (cd ${WRKSRC}; \
- ${SED} 's|$${pcfiledir}/../..|@prefix@|g' <$f >$f.tmp; \
- ${MV} $f.tmp $f \
- )
-.endfor
+SUBST_CLASSES+= relprefix
+SUBST_MESSAGE.relprefix=Replacing relative prefix in pkg-config files.
+SUBST_STAGE.relprefix= post-patch
+SUBST_FILES.relprefix= ${PKGCONFIG_OVERRIDE}
+SUBST_SED.relprefix= -e 's|$${pcfiledir}/../..|@prefix@|g'
.include "../../devel/libglade/buildlink3.mk"
.include "../../lang/mono/buildlink3.mk"