summaryrefslogtreecommitdiff
path: root/graphics/py-gdchart
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 15:39:09 +0000
committerjlam <jlam>2008-03-04 15:39:09 +0000
commitd6b91adeba5668a57b81a911d8eddf78028e44dc (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/py-gdchart
parent6dad5f5dc8c5cabc58dcc1203ff3621136e16ddf (diff)
downloadpkgsrc-d6b91adeba5668a57b81a911d8eddf78028e44dc.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/py-gdchart')
-rw-r--r--graphics/py-gdchart/Makefile10
1 files changed, 6 insertions, 4 deletions
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"