aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-10-16 18:42:36 +0800
committerknu <knu@FreeBSD.org>2000-10-16 18:42:36 +0800
commit13be5d41f72499a09c2998856e8a8745b8342b4e (patch)
tree3c90ec111a270fb84fcbd2b7172c72152c2cb167 /graphics
parentd527fcd7e39c62bc1acfe442ce52da832d2cd06d (diff)
downloadfreebsd-ports-gnome-13be5d41f72499a09c2998856e8a8745b8342b4e.tar.gz
freebsd-ports-gnome-13be5d41f72499a09c2998856e8a8745b8342b4e.tar.zst
freebsd-ports-gnome-13be5d41f72499a09c2998856e8a8745b8342b4e.zip
Add py-ming, Python module for the Ming library which allows you to
create Flash (TM) movies.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-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
6 files changed, 68 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 565a553a5ca8..baa595a55735 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -149,6 +149,7 @@
SUBDIR += pvmpov
SUBDIR += py-imaging
SUBDIR += py-imaging-handbook
+ SUBDIR += py-ming
SUBDIR += py-opengl
SUBDIR += qcread
SUBDIR += qiv
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