summaryrefslogtreecommitdiff
path: root/graphics/gdchart
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2007-05-16 15:33:59 +0000
committerheinz <heinz@pkgsrc.org>2007-05-16 15:33:59 +0000
commitaa95679e4fb8452fcff7878a1e889120ad3bc38b (patch)
tree51f94b29bdaa889b8ea8a6a9b3850fda8216655a /graphics/gdchart
parent55b61cefff00cb56867c4a3e3c6c9890d1392ebd (diff)
downloadpkgsrc-aa95679e4fb8452fcff7878a1e889120ad3bc38b.tar.gz
Added support for installation into DESTDIR.
Diffstat (limited to 'graphics/gdchart')
-rw-r--r--graphics/gdchart/Makefile30
1 files changed, 18 insertions, 12 deletions
diff --git a/graphics/gdchart/Makefile b/graphics/gdchart/Makefile
index 42bd50ee13e..88c0d22c116 100644
--- a/graphics/gdchart/Makefile
+++ b/graphics/gdchart/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2006/04/17 13:46:05 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2007/05/16 15:33:59 heinz Exp $
DISTNAME= gdchart0.11.5dev
PKGNAME= gdchart-0.11.5
@@ -11,6 +11,8 @@ MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://www.fred.net/brv/chart/
COMMENT= Easy to use, fast C API for creating charts and graphs
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LIBTOOL= yes
INSTALLATION_DIRS= include lib
@@ -25,18 +27,22 @@ post-patch:
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libgdchart.la \
- ${PREFIX}/lib
- ${LIBTOOL} -n --finish ${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/gdchart.h ${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/gdc.h ${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/gdcpie.h ${PREFIX}/include
- ${INSTALL_DATA_DIR} -d -m 0755 ${PREFIX}/share/doc/gdchart
- ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/gdchart
- ${INSTALL_DATA_DIR} -d -m 0755 ${PREFIX}/share/examples/gdchart
- ${INSTALL_DATA} ${WRKSRC}/gdc_samp1.c ${PREFIX}/share/examples/gdchart
- ${INSTALL_DATA} ${WRKSRC}/gdc_samp2.c ${PREFIX}/share/examples/gdchart
+ ${DESTDIR}${PREFIX}/lib
+ ${LIBTOOL} -n --finish ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/gdchart.h ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/gdc.h ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/gdcpie.h ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA_DIR} -d -m 0755 ${DESTDIR}${PREFIX}/share/doc/gdchart
+ ${INSTALL_DATA} ${WRKSRC}/README.txt \
+ ${DESTDIR}${PREFIX}/share/doc/gdchart
+ ${INSTALL_DATA_DIR} -d -m 0755 \
+ ${DESTDIR}${PREFIX}/share/examples/gdchart
+ ${INSTALL_DATA} ${WRKSRC}/gdc_samp1.c \
+ ${DESTDIR}${PREFIX}/share/examples/gdchart
+ ${INSTALL_DATA} ${WRKSRC}/gdc_samp2.c \
+ ${DESTDIR}${PREFIX}/share/examples/gdchart
${INSTALL_DATA} ${WRKSRC}/gdc_pie_samp.c \
- ${PREFIX}/share/examples/gdchart
+ ${DESTDIR}${PREFIX}/share/examples/gdchart
.include "../../graphics/gd/buildlink3.mk"