svn commit: r529069 - in head/math: . py-python_fcl py-python_fcl/files
Diane Bruce
db at FreeBSD.org
Wed Mar 25 01:00:26 UTC 2020
Author: db
Date: Wed Mar 25 01:00:13 2020
New Revision: 529069
URL: https://svnweb.freebsd.org/changeset/ports/529069
Log:
Python-FCL is an (unofficial) Python interface for the Flexible Collision
Library (FCL), an excellent C++ library for performing proximity and
collision queries on pairs of geometric models. Currently, this package
is targeted for FCL 0.5.0.
WWW: https://libraries.io/pypi/python-fcl
Added:
head/math/py-python_fcl/
head/math/py-python_fcl/Makefile (contents, props changed)
head/math/py-python_fcl/distinfo (contents, props changed)
head/math/py-python_fcl/files/
head/math/py-python_fcl/files/patch-setup.py (contents, props changed)
head/math/py-python_fcl/pkg-descr (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Wed Mar 25 00:47:14 2020 (r529068)
+++ head/math/Makefile Wed Mar 25 01:00:13 2020 (r529069)
@@ -788,6 +788,7 @@
SUBDIR += py-pystan
SUBDIR += py-pysym
SUBDIR += py-python-louvain
+ SUBDIR += py-python_fcl
SUBDIR += py-pyvtk
SUBDIR += py-quadprog
SUBDIR += py-random2
Added: head/math/py-python_fcl/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-python_fcl/Makefile Wed Mar 25 01:00:13 2020 (r529069)
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME= python-fcl
+PORTVERSION= 0.0.12
+CATEGORIES= math python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= db at FreeBSD.org
+COMMENT= Python bindings for the Flexible Collision Library
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+NEEDED_DEPENDS= ${PYNUMPY} \
+ eigen>0:math/eigen3
+LIB_DEPENDS= libfcl05.so:math/fcl05 \
+ liboctomap.so:math/octomap
+BUILD_DEPENDS= ${NEEDED_DEPENDS}
+RUN_DEPENDS= ${NEEDED_DEPENDS}
+
+USES= compiler:c++11-lang python
+
+USE_PYTHON= distutils autoplist concurrent cython
+
+PYDISTUTILS_BUILD_TARGET= build_ext
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fcl/fcl.so
+
+.include <bsd.port.mk>
Added: head/math/py-python_fcl/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-python_fcl/distinfo Wed Mar 25 01:00:13 2020 (r529069)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1584798153
+SHA256 (python-fcl-0.0.12.tar.gz) = f5e60c4f2f43f72f0029435dd4bac61a7e5867c53cf14adc54afe67dc8ad3510
+SIZE (python-fcl-0.0.12.tar.gz) = 17204
Added: head/math/py-python_fcl/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-python_fcl/files/patch-setup.py Wed Mar 25 01:00:13 2020 (r529069)
@@ -0,0 +1,33 @@
+--- setup.py.orig 2019-06-12 18:08:59 UTC
++++ setup.py
+@@ -18,12 +18,14 @@ platform_supported = False
+ for prefix in ['darwin', 'linux', 'bsd']:
+ if prefix in sys.platform:
+ platform_supported = True
+- include_dirs = ['/usr/include',
++ include_dirs = [ '/usr/include',
++ '/usr/local/include/fcl05',
+ '/usr/local/include',
+ '/usr/include/eigen3']
+ lib_dirs = ['/usr/lib',
+- '/usr/local/lib']
+-
++ '/usr/local/lib/',
++ '/usr/local/lib/']
++
+ if 'CPATH' in os.environ:
+ include_dirs += os.environ['CPATH'].split(':')
+ if 'LD_LIBRARY_PATH' in os.environ:
+@@ -78,9 +80,10 @@ setup(
+ include_dirs = include_dirs,
+ library_dirs = lib_dirs,
+ libraries=[
+- "fcl","octomap"
++ "fcl05","octomap"
+ ],
+ language="c++",
+- extra_compile_args = ["-std=c++11"]
++ extra_compile_args = ["-std=c++11"],
++ extra_link_args = ['-Wl,-rpath, '+'/usr/local/lib/fcl05']
+ )]
+ )
Added: head/math/py-python_fcl/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-python_fcl/pkg-descr Wed Mar 25 01:00:13 2020 (r529069)
@@ -0,0 +1,6 @@
+Python-FCL is an (unofficial) Python interface for the Flexible Collision
+Library (FCL), an excellent C++ library for performing proximity and
+collision queries on pairs of geometric models. Currently, this package
+is targeted for FCL 0.5.0.
+
+WWW: https://libraries.io/pypi/python-fcl
More information about the svn-ports-all
mailing list