aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-01-28 08:29:25 +0800
committermiwi <miwi@FreeBSD.org>2007-01-28 08:29:25 +0800
commita8328a353e4f37fe4e1764d445f657e98dc9d63e (patch)
treeec1ed85d683c13dcfafa4f230534dd01b0dd98d4 /devel
parentd7a8c9dd585c2dbb93a98a9eae5fbdaa6348ec21 (diff)
downloadfreebsd-ports-gnome-a8328a353e4f37fe4e1764d445f657e98dc9d63e.tar.gz
freebsd-ports-gnome-a8328a353e4f37fe4e1764d445f657e98dc9d63e.tar.zst
freebsd-ports-gnome-a8328a353e4f37fe4e1764d445f657e98dc9d63e.zip
PyODE is a set of open-source Python bindings for The Open Dynamics
Engine, an open-source physics engine. PyODE also includes an XODE parser. Like ODE, PyODE may be distributed under the terms of either the GNU Lesser General Public License or a BSD-style license. WWW: http://pyode.sourceforge.net PR: ports/108411 Submitted by: Dmitry Marakasov <amdmi3 at amdmi3.ru>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-ode/Makefile30
-rw-r--r--devel/py-ode/distinfo3
-rw-r--r--devel/py-ode/files/patch-setup.py27
-rw-r--r--devel/py-ode/pkg-descr6
-rw-r--r--devel/py-ode/pkg-plist26
6 files changed, 93 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 00cfaa4bdbcb..4341b6a97a55 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1770,6 +1770,7 @@
SUBDIR += py-notifier
SUBDIR += py-notify
SUBDIR += py-ocempgui
+ SUBDIR += py-ode
SUBDIR += py-omniorb
SUBDIR += py-optik
SUBDIR += py-orbit
diff --git a/devel/py-ode/Makefile b/devel/py-ode/Makefile
new file mode 100644
index 000000000000..d6e96fc5cf7d
--- /dev/null
+++ b/devel/py-ode/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: py-ode
+# Date created: 26 Jan 2007
+# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ode
+PORTVERSION= 1.1.0
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pyode
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= PyODE-${PORTVERSION}
+DIST_SUBDIR= python
+
+MAINTAINER= amdmi3@amdmi3.ru
+COMMENT= Python bindings for The Open Dynamics Engine
+
+BUILD_DEPENDS= ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode
+
+USE_BZIP2= yes
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+
+post-patch:
+ @${REINPLACE_CMD} -e '/^#ODE_BASE/ s|.*|ODE_BASE="${X11BASE}"|' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/devel/py-ode/distinfo b/devel/py-ode/distinfo
new file mode 100644
index 000000000000..2a17d10bffbc
--- /dev/null
+++ b/devel/py-ode/distinfo
@@ -0,0 +1,3 @@
+MD5 (python/PyODE-1.1.0.tar.bz2) = ad7873c0977e275a9061898ac2e611cd
+SHA256 (python/PyODE-1.1.0.tar.bz2) = 5811121e25f81e55d65d4235baec623726096ce5cfdb980ed223ffde91ec066a
+SIZE (python/PyODE-1.1.0.tar.bz2) = 140371
diff --git a/devel/py-ode/files/patch-setup.py b/devel/py-ode/files/patch-setup.py
new file mode 100644
index 000000000000..defcac1f7688
--- /dev/null
+++ b/devel/py-ode/files/patch-setup.py
@@ -0,0 +1,27 @@
+--- setup.py.orig Thu Jul 7 15:36:03 2005
++++ setup.py Fri Jan 26 22:54:51 2007
+@@ -150,22 +150,11 @@
+ script so that it points to the actual location of the ODE directory."""%ODE_BASE
+ sys.exit()
+
+-config = readODEConfig()
+-
+ generate('ode_trimesh.c', True)
+ generate('ode_notrimesh.c', False)
+
+-try:
+- wrap_trimesh = TRIMESH_SUPPORT_OVERRIDE
+-except NameError, e:
+- wrap_trimesh = config.get('OPCODE_DIRECTORY', '')
+-
+-if (wrap_trimesh):
+- print "Installing with trimesh support."
+- install = 'ode_trimesh.c'
+-else:
+- print "Installing without trimesh support."
+- install = 'ode_notrimesh.c'
++print "Installing without trimesh support."
++install = 'ode_notrimesh.c'
+
+ # Compile the module
+ setup(name = "PyODE",
diff --git a/devel/py-ode/pkg-descr b/devel/py-ode/pkg-descr
new file mode 100644
index 000000000000..1e4a397c8481
--- /dev/null
+++ b/devel/py-ode/pkg-descr
@@ -0,0 +1,6 @@
+PyODE is a set of open-source Python bindings for The Open Dynamics
+Engine, an open-source physics engine. PyODE also includes an XODE
+parser. Like ODE, PyODE may be distributed under the terms of either
+the GNU Lesser General Public License or a BSD-style license.
+
+WWW: http://pyode.sourceforge.net
diff --git a/devel/py-ode/pkg-plist b/devel/py-ode/pkg-plist
new file mode 100644
index 000000000000..d1908dad5131
--- /dev/null
+++ b/devel/py-ode/pkg-plist
@@ -0,0 +1,26 @@
+%%PYTHON_SITELIBDIR%%/ode.so
+%%PYTHON_SITELIBDIR%%/xode/__init__.py
+%%PYTHON_SITELIBDIR%%/xode/__init__.pyc
+%%PYTHON_SITELIBDIR%%/xode/__init__.pyo
+%%PYTHON_SITELIBDIR%%/xode/body.py
+%%PYTHON_SITELIBDIR%%/xode/body.pyc
+%%PYTHON_SITELIBDIR%%/xode/body.pyo
+%%PYTHON_SITELIBDIR%%/xode/errors.py
+%%PYTHON_SITELIBDIR%%/xode/errors.pyc
+%%PYTHON_SITELIBDIR%%/xode/errors.pyo
+%%PYTHON_SITELIBDIR%%/xode/geom.py
+%%PYTHON_SITELIBDIR%%/xode/geom.pyc
+%%PYTHON_SITELIBDIR%%/xode/geom.pyo
+%%PYTHON_SITELIBDIR%%/xode/joint.py
+%%PYTHON_SITELIBDIR%%/xode/joint.pyc
+%%PYTHON_SITELIBDIR%%/xode/joint.pyo
+%%PYTHON_SITELIBDIR%%/xode/node.py
+%%PYTHON_SITELIBDIR%%/xode/node.pyc
+%%PYTHON_SITELIBDIR%%/xode/node.pyo
+%%PYTHON_SITELIBDIR%%/xode/parser.py
+%%PYTHON_SITELIBDIR%%/xode/parser.pyc
+%%PYTHON_SITELIBDIR%%/xode/parser.pyo
+%%PYTHON_SITELIBDIR%%/xode/transform.py
+%%PYTHON_SITELIBDIR%%/xode/transform.pyc
+%%PYTHON_SITELIBDIR%%/xode/transform.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/xode