2017-01-01 15:43:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.44 2017/01/01 14:43:42 wiz Exp $
|
2001-10-18 13:14:39 +02:00
|
|
|
|
|
|
|
DISTNAME= gdchart-py-0.6
|
2002-01-17 13:34:17 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-gdchart-0.6
|
2016-08-03 12:22:08 +02:00
|
|
|
PKGREVISION= 19
|
2001-10-18 13:14:39 +02:00
|
|
|
CATEGORIES= graphics python
|
2002-11-10 16:01:19 +01:00
|
|
|
MASTER_SITES= http://www.nullcube.com/software/pygdchart.html
|
2001-10-18 13:14:39 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2014-01-25 10:02:06 +01:00
|
|
|
HOMEPAGE= http://users.fred.net/brv/chart/
|
2001-10-18 13:14:39 +02:00
|
|
|
COMMENT= Python interface to GDChart
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= GD_INCLUDE=${LOCALBASE}/include \
|
2001-10-18 13:14:39 +02:00
|
|
|
GDCHART_INCLUDE=${LOCALBASE}/include \
|
2002-01-17 13:34:17 +01:00
|
|
|
PYTHON_INCLUDE=${LOCALBASE}/${PYINC} \
|
2003-07-02 20:43:12 +02:00
|
|
|
HAVE_LIBFREETYPE=1 \
|
2005-12-05 21:49:47 +01:00
|
|
|
LOCALBASE=${LOCALBASE:Q}
|
|
|
|
PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX:Q}
|
2001-10-18 13:14:39 +02:00
|
|
|
MODULE_FILES= chart.py gdchart.so
|
|
|
|
EXAMPLE_FILES= test.html test.py CHANGES
|
2002-01-17 13:34:17 +01:00
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/${PYPKGPREFIX}-gdchart
|
|
|
|
PY_PATCHPLIST= yes
|
2017-01-01 15:43:22 +01:00
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 0.6
|
2001-10-18 13:14:39 +02:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= ${PYSITELIB:S/^${PREFIX}\///}
|
|
|
|
|
2001-10-18 13:14:39 +02:00
|
|
|
do-install:
|
|
|
|
.for f in ${MODULE_FILES}
|
2008-03-04 16:39:09 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PYSITELIB}
|
2001-10-18 13:14:39 +02:00
|
|
|
.endfor
|
2008-03-04 16:39:09 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLE_DIR}
|
2001-10-18 13:14:39 +02:00
|
|
|
.for f in ${EXAMPLE_FILES}
|
2008-03-04 16:39:09 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EXAMPLE_DIR}
|
2001-10-18 13:14:39 +02:00
|
|
|
.endfor
|
|
|
|
|
2004-04-25 06:40:48 +02:00
|
|
|
.include "../../graphics/gdchart/buildlink3.mk"
|
2002-09-22 01:46:45 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
2001-10-18 13:14:39 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|