diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-26 16:30:55 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-26 16:30:55 +0000 |
commit | 31d1b3af609f42346967b9fb58a27994223eba51 (patch) | |
tree | 385aed669fbba2270d809f19c7a03a64c0a65323 /graphics | |
parent | ea0bbe8c3df1779150d21e5b46cfb88c524ecb35 (diff) | |
download | pkgsrc-31d1b3af609f42346967b9fb58a27994223eba51.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')
-rw-r--r-- | graphics/ImageMagick/Makefile | 18 | ||||
-rw-r--r-- | graphics/gdk-pixbuf-gnome/Makefile | 16 | ||||
-rw-r--r-- | graphics/gdk-pixbuf/Makefile | 22 |
3 files changed, 12 insertions, 44 deletions
diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile index 94bd6d2402e..d356b30ec28 100644 --- a/graphics/ImageMagick/Makefile +++ b/graphics/ImageMagick/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.72 2001/06/21 22:53:30 jlam Exp $ +# $NetBSD: Makefile,v 1.73 2001/06/26 16:30:57 jlam Exp $ DISTNAME= ImageMagick-5.2.8 CATEGORIES= graphics @@ -16,6 +16,9 @@ DEPENDS+= mpeg2codec-1.2:../../graphics/mpeg2codec NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL USE_BUILDLINK_ONLY= YES +REPLACE_BUILDLINK= Magick++/bin/Magick++-config +REPLACE_BUILDLINK+= magick/Magick-config + GNU_CONFIGURE= YES USE_X11= YES USE_LIBTOOL= YES @@ -40,19 +43,6 @@ CONFIGURE_ARGS+= --without-perl --without-dps --without-fpx \ --without-hdf --without-jbig --without-threads \ --without-ttf --without-wmf --without-xml -# Fix config scripts by removing buildlink directory references. -post-build: - @cd ${WRKSRC}; \ - config_scripts="Magick++/bin/Magick++-config magick/Magick-config"; \ - 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: ${INSTALL_DATA} ${WRKSRC}/Copyright.txt ${WRKSRC}/QuickStart.txt \ ${PREFIX}/share/ImageMagick diff --git a/graphics/gdk-pixbuf-gnome/Makefile b/graphics/gdk-pixbuf-gnome/Makefile index 55a66c2c7c6..c4667857a78 100644 --- a/graphics/gdk-pixbuf-gnome/Makefile +++ b/graphics/gdk-pixbuf-gnome/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2001/06/23 19:26:55 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2001/06/26 16:30:57 jlam Exp $ .include "../gdk-pixbuf/Makefile.common" @@ -8,19 +8,7 @@ COMMENT= the GNOME image loading library GNOME canvas support add-on CONFLICTS+= gdk-pixbuf<0.10.1 BUILDLINK_DEPENDS.gdk-pixbuf= gdk-pixbuf>=0.10.1 - -# Fix config scripts by removing buildlink directory references. -post-build: - @cd ${WRKSRC}; \ - config_scripts="gnomecanvaspixbufConf.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 +REPLACE_BUILDLINK= gnomecanvaspixbufConf.sh do-install: ${INSTALL_DATA} ${WRKSRC}/gdk-pixbuf/gnome-canvas-pixbuf.h \ 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 \ |