summaryrefslogtreecommitdiff
path: root/graphics/py-gdchart/Makefile
diff options
context:
space:
mode:
authordarcy <darcy>2001-10-18 11:14:39 +0000
committerdarcy <darcy>2001-10-18 11:14:39 +0000
commit2a6031611197060afd06dcfa523c9165a3d78a63 (patch)
treee390169e01ac8f179c60b56543ebc21e8e1cacca /graphics/py-gdchart/Makefile
parent723cf577b1d467b9abd51318191c5d6587dc7944 (diff)
downloadpkgsrc-2a6031611197060afd06dcfa523c9165a3d78a63.tar.gz
Adding py-gdchart to packages.
This is a simple python interface to gdchart which is excellent for creating charts and graphs in PNG, JPEG, and GIF format. WWW: http://athani.pair.com/msteed/software/gdchart/
Diffstat (limited to 'graphics/py-gdchart/Makefile')
-rw-r--r--graphics/py-gdchart/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/graphics/py-gdchart/Makefile b/graphics/py-gdchart/Makefile
new file mode 100644
index 00000000000..79d04fc6379
--- /dev/null
+++ b/graphics/py-gdchart/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2001/10/18 11:14:39 darcy Exp $
+# FreeBSD Id: ports/graphics/py-gdchart/Makefile,v 1.2 2001/09/16 17:27:58 kevlo Exp
+
+DISTNAME= gdchart-py-0.6
+PKGNAME= py-gdchart-0.6
+WRKSRC= ${WRKDIR}/${DISTNAME}
+CATEGORIES= graphics python
+MASTER_SITES= http://athani.pair.com/msteed/software/gdchart/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://athani.pair.com/msteed/software/gdchart/
+COMMENT= Python interface to GDChart
+
+BUILD_DEPENDS= gdchart-0.10.1*:../../graphics/gdchart
+
+USE_PYTHON= yes
+USE_GMAKE= yes
+MAKE_ENV= GD_INCLUDE=${LOCALBASE}/include \
+ GDCHART_INCLUDE=${LOCALBASE}/include \
+ PYTHON_INCLUDE=${LOCALBASE}/include/python2.0 \
+ LOCALBASE=${LOCALBASE}
+PLIST_SUBST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \
+ EXAMPLE_DIR=${EXAMPLE_DIR:S/^${LOCALBASE}\///g}
+MODULE_FILES= chart.py gdchart.so
+EXAMPLE_FILES= test.html test.py CHANGES
+EXAMPLE_DIR= ${PREFIX}/share/examples/py-gdchart
+
+do-install:
+.for f in ${MODULE_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/python2.0/site-packages
+.endfor
+.if !defined(NO_PKGDOCS)
+ #${MKDIR} ${EXAMPLE_DIR}
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-gdchart
+.for f in ${EXAMPLE_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLE_DIR}
+.endfor
+.endif
+
+.include "../../mk/bsd.pkg.mk"