aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-graphviz/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-graphviz/Makefile')
-rw-r--r--graphics/py-graphviz/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/graphics/py-graphviz/Makefile b/graphics/py-graphviz/Makefile
new file mode 100644
index 000000000000..d7fdce2c4315
--- /dev/null
+++ b/graphics/py-graphviz/Makefile
@@ -0,0 +1,45 @@
+# 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>