From b667122bb758741804d3b24a50d5dad9122b7acf Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 26 Jun 2001 16:30:55 +0000 Subject: Use REPLACE_BUILDLINK instead of repeating the post-build same code over and over again in the pkgsrc tree. --- graphics/gdk-pixbuf/Makefile | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'graphics/gdk-pixbuf') diff --git a/graphics/gdk-pixbuf/Makefile b/graphics/gdk-pixbuf/Makefile index b1b99d7b618..0934eeed97a 100644 --- a/graphics/gdk-pixbuf/Makefile +++ b/graphics/gdk-pixbuf/Makefile @@ -1,11 +1,14 @@ -# $NetBSD: Makefile,v 1.15 2001/06/18 20:49:01 jlam Exp $ +# $NetBSD: Makefile,v 1.16 2001/06/26 16:30:57 jlam Exp $ # -.include "Makefile.common" PKGNAME= ${DISTNAME} - COMMENT= the GNOME image loading library +REPLACE_BUILDLINK= gdk_pixbufConf.sh +REPLACE_BUILDLINK+= gdk_pixbuf_xlibConf.sh + +.include "Makefile.common" + post-patch: ${SED} -e 's/BUILD_CANVAS=yes/BUILD_CANVAS=no/g' \ ${WRKSRC}/configure.in >${WRKSRC}/.tmp && \ @@ -15,19 +18,6 @@ post-configure: ${SED} -e 's/ doc$$//' ${WRKSRC}/Makefile >${WRKSRC}/.tmp && \ ${MV} ${WRKSRC}/.tmp ${WRKSRC}/Makefile -# Fix config scripts by removing buildlink directory references. -post-build: - @cd ${WRKSRC}; \ - config_scripts="gdk_pixbufConf.sh gdk_pixbuf_xlibConf.sh"; \ - for file in $${config_scripts}; do \ - ${MV} -f $${file} $${file}.fixme; \ - ${SED} -e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \ - -e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \ - $${file}.fixme > $${file}; \ - ${RM} -f $${file}.fixme; \ - ${CHMOD} +x $${file}; \ - done - post-install: ${TEST} ${PREFIX} = ${LOCALBASE} || \ ${LN} -fs ${PREFIX}/share/aclocal/gdk-pixbuf.m4 \ -- cgit v1.2.3