diff options
Diffstat (limited to 'graphics/py-gdchart/Makefile')
-rw-r--r-- | graphics/py-gdchart/Makefile | 40 |
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" |