summaryrefslogtreecommitdiff
path: root/graphics/gdk-pixbuf
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-26 16:30:55 +0000
committerjlam <jlam>2001-06-26 16:30:55 +0000
commitb667122bb758741804d3b24a50d5dad9122b7acf (patch)
tree385aed669fbba2270d809f19c7a03a64c0a65323 /graphics/gdk-pixbuf
parent3f5299f7926923d81d1a5eccc00afdedba1928e1 (diff)
downloadpkgsrc-b667122bb758741804d3b24a50d5dad9122b7acf.tar.gz
Use REPLACE_BUILDLINK instead of repeating the post-build same code over
and over again in the pkgsrc tree.
Diffstat (limited to 'graphics/gdk-pixbuf')
-rw-r--r--graphics/gdk-pixbuf/Makefile22
1 files changed, 6 insertions, 16 deletions
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 \