1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/py-gdchart/Makefile
2005-09-30 18:02:20 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: py-gdchart
# Date created: 18 June 2001
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
PORTNAME= gdchart
PORTVERSION= 0.6.1
PORTREVISION= 2
CATEGORIES= graphics python
MASTER_SITES= http://www.nullcube.com/software/pygdchart/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pygdchart-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
COMMENT= Python interface to GDChart
LIB_DEPENDS= gdc.1:${PORTSDIR}/graphics/gdchart
CONFLICTS= ${PYTHON_PKGNAMEPREFIX}gdchart-2.*
USE_PYTHON= yes
USE_PYDISTUTILS=yes
EXAMPLE_FILES= test.html test.py
EXAMPLE_DIR= ${PREFIX}/share/examples/py-gdchart
post-extract:
${SED} -e 's,%%PORTVERSION%%,${PORTVERSION},g' \
-e 's,%%GD_INCLUDE%%,${LOCALBASE}/include/gd,g' \
-e 's,%%GDCHART_INCLUDE%%,${LOCALBASE}/include,g' \
-e 's,%%LOCALLIB%%,${LOCALBASE}/lib,g' \
${FILESDIR}/setup.py > ${WRKSRC}/setup.py
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLE_DIR}
.for file in ${EXAMPLE_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLE_DIR}
.endfor
.endif
.include <bsd.port.mk>