summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorrillig <rillig>2008-02-28 11:25:37 +0000
committerrillig <rillig>2008-02-28 11:25:37 +0000
commit3314f23eceb63824679bc6d4e22e13c0639afa56 (patch)
treef3b390f7783c04318e43293329ab1756ebd1f84d /x11
parentc91f0b673326f3ca20ebb2899707773d889708ed (diff)
downloadpkgsrc-3314f23eceb63824679bc6d4e22e13c0639afa56.tar.gz
Fixed pkglint warnings by using SUBST.
Diffstat (limited to 'x11')
-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"