diff options
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gtk2-sharp/Makefile | 16 |
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" |