From d6b91adeba5668a57b81a911d8eddf78028e44dc Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 15:39:09 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- graphics/py-gdchart/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'graphics/py-gdchart') diff --git a/graphics/py-gdchart/Makefile b/graphics/py-gdchart/Makefile index f7ad6a09637..0c3427b87b5 100644 --- a/graphics/py-gdchart/Makefile +++ b/graphics/py-gdchart/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2006/04/17 13:46:35 wiz Exp $ +# $NetBSD: Makefile,v 1.23 2008/03/04 15:39:10 jlam Exp $ # DISTNAME= gdchart-py-0.6 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://athani.pair.com/msteed/software/gdchart/ COMMENT= Python interface to GDChart +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= gmake MAKE_ENV+= GD_INCLUDE=${LOCALBASE}/include \ GDCHART_INCLUDE=${LOCALBASE}/include \ @@ -28,11 +30,11 @@ INSTALLATION_DIRS= ${PYSITELIB:S/^${PREFIX}\///} do-install: .for f in ${MODULE_FILES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${PYSITELIB} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PYSITELIB} .endfor - ${INSTALL_DATA_DIR} ${EXAMPLE_DIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLE_DIR} .for f in ${EXAMPLE_FILES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLE_DIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EXAMPLE_DIR} .endfor .include "../../graphics/gdchart/buildlink3.mk" -- cgit v1.2.3