freebsd-ports/graphics/py-graphviz/Makefile
Pete Fritchman 503cc7c219 Add py-graphviz 0.1, python interface to GraphViz agraph.
PR:		33159
Submitted by:	Hye-Shik Chang <perky@fallin.lv>
2002-03-19 06:35:34 +00:00

46 lines
1.2 KiB
Makefile

# New ports collection makefile for: py-graphviz
# Date created: 25 December 2001
# Whom: Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
PORTNAME= graphviz
PORTVERSION= 0.1
CATEGORIES= graphics python
MASTER_SITES= http://www.cs.brown.edu/~er/software/Agraph.py/ \
http://www.research.att.com/sw/tools/graphviz/dist/:gv
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= ${MODFILES} ${PORTNAME}-${GV_VERSION}.tgz:gv
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${GV_VERSION}.tgz
MAINTAINER= perky@fallin.lv
BUILD_DEPENDS= ${SWIG_CMD}:${PORTSDIR}/devel/SWIG
NO_CDROM= "Can't be included in a commercial product"
MODFILES= gv.i __init__.py
WRKSRC= ${WRKDIR}/graphviz-${GV_VERSION}/agraph
GV_VERSION?= 1.7.7
USE_PYTHON= yes
SWIG_CMD= ${LOCALBASE}/bin/swig
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g}
post-patch:
@${CP} ${DISTDIR}/graphviz/gv.i ${FILESDIR}/setup.py ${WRKSRC}
@${MKDIR} ${WRKSRC}/graphviz
@${CP} ${DISTDIR}/graphviz/__init__.py ${WRKSRC}/graphviz
do-build:
@cd ${WRKSRC} && ( \
${SWIG_CMD} -python gv.i; \
${PYTHON_CMD} setup.py build; \
)
do-install:
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py install
.include <bsd.port.mk>