summaryrefslogtreecommitdiff
path: root/graphics/py-ming
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-10-16 10:42:36 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-10-16 10:42:36 +0000
commit8c1d88671382d9f5b6df3dd52514da9acaf5d103 (patch)
treeafd21ab4683d0cafd663f7fa5d15c5c62e51ed23 /graphics/py-ming
parentInstall the executables with version numbers, to allow SWIG-dependent (diff)
Add py-ming, Python module for the Ming library which allows you to
create Flash (TM) movies.
Notes
Notes: svn path=/head/; revision=33890
Diffstat (limited to 'graphics/py-ming')
-rw-r--r--graphics/py-ming/Makefile37
-rw-r--r--graphics/py-ming/files/patch-Makefile19
-rw-r--r--graphics/py-ming/pkg-comment1
-rw-r--r--graphics/py-ming/pkg-descr5
-rw-r--r--graphics/py-ming/pkg-plist5
5 files changed, 67 insertions, 0 deletions
diff --git a/graphics/py-ming/Makefile b/graphics/py-ming/Makefile
new file mode 100644
index 000000000000..c774aee1cdc5
--- /dev/null
+++ b/graphics/py-ming/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: Python/Ming
+# Date created: 16 Oct 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ming
+PORTVERSION= 0.0.2e
+CATEGORIES= graphics python
+MASTER_SITES= http://www.opaque.net/ming/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= swig1.3:${PORTSDIR}/devel/SWIG-devel
+LIB_DEPENDS= ming.0:${PORTSDIR}/graphics/ming
+
+USE_PYTHON= yes
+
+MD5_FILE= ${PORTSDIR}/graphics/ming/distinfo
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/py_ext
+MAKE_ARGS= PYTHON_VERSION="${PYTHON_VERSION}"
+
+EXAMPLES= shape.py test.py
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/${PYTHON_VERSION}/ming
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/${PYTHON_VERSION}/ming/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/py-ming/files/patch-Makefile b/graphics/py-ming/files/patch-Makefile
new file mode 100644
index 000000000000..84e230b7958b
--- /dev/null
+++ b/graphics/py-ming/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig Fri Oct 13 15:26:29 2000
++++ Makefile Mon Oct 16 19:08:12 2000
+@@ -1,11 +1,11 @@
+ all:
+- swig -python ming.i
+- gcc -I .. -I /usr/include/python1.5/ -fpic -c ming_wrap.c
+- gcc -L .. -shared -o mingcmodule.so ming_wrap.o -lming
++ swig1.3 -python ming.i
++ gcc -I${LOCALBASE}/include/ming -I${LOCALBASE}/include/${PYTHON_VERSION} -fpic -c ming_wrap.c
++ gcc -L${LOCALBASE}/lib -shared -o mingcmodule.so ming_wrap.o -lming
+
+ clean:
+ rm -f mingcmodule.so core *~ *.o ming_wrap*
+
+ install:
+- cp mingcmodule.so ming.py /usr/lib/python1.5/site-packages
+- chmod 755 /usr/lib/python1.5/site-packages/mingcmodule.so
++ cp mingcmodule.so ming.py ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages
++ chmod 755 ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/mingcmodule.so
diff --git a/graphics/py-ming/pkg-comment b/graphics/py-ming/pkg-comment
new file mode 100644
index 000000000000..838d8b217b0e
--- /dev/null
+++ b/graphics/py-ming/pkg-comment
@@ -0,0 +1 @@
+Python module for the Ming library which allows you to create Flash (TM) movies
diff --git a/graphics/py-ming/pkg-descr b/graphics/py-ming/pkg-descr
new file mode 100644
index 000000000000..6c66e42bfd19
--- /dev/null
+++ b/graphics/py-ming/pkg-descr
@@ -0,0 +1,5 @@
+This is a Python module for the Ming.
+Ming allows you to create Flash (TM) movies.
+
+Author: Roberto Raggi <roberto@elecomsolutions.com> (author)
+ Fiore Basile <fiore@elecomsolutions.com> (contact)
diff --git a/graphics/py-ming/pkg-plist b/graphics/py-ming/pkg-plist
new file mode 100644
index 000000000000..419fb152dcc2
--- /dev/null
+++ b/graphics/py-ming/pkg-plist
@@ -0,0 +1,5 @@
+lib/%%PYTHON_VERSION%%/site-packages/mingcmodule.so
+lib/%%PYTHON_VERSION%%/site-packages/ming.py
+share/examples/%%PYTHON_VERSION%%/ming/shape.py
+share/examples/%%PYTHON_VERSION%%/ming/test.py
+@dirrm share/examples/%%PYTHON_VERSION%%/ming