diff options
author | Diane Bruce <db@FreeBSD.org> | 2020-03-25 09:00:13 +0800 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2020-03-25 09:00:13 +0800 |
commit | f52733af6ed2c99b374926da466f9b3d1985e847 (patch) | |
tree | 50d3458a8f23f92100ca67dce1c5d2a493f5404c /math | |
parent | 9676d6bc1e8d026cda70e6f8f82d611f4bd626bf (diff) | |
download | freebsd-ports-gnome-f52733af6ed2c99b374926da466f9b3d1985e847.tar.gz freebsd-ports-gnome-f52733af6ed2c99b374926da466f9b3d1985e847.tar.zst freebsd-ports-gnome-f52733af6ed2c99b374926da466f9b3d1985e847.zip |
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
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/py-python_fcl/Makefile | 31 | ||||
-rw-r--r-- | math/py-python_fcl/distinfo | 3 | ||||
-rw-r--r-- | math/py-python_fcl/files/patch-setup.py | 33 | ||||
-rw-r--r-- | math/py-python_fcl/pkg-descr | 6 |
5 files changed, 74 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 1ac83ae0b7a7..669772ae1e35 100644 --- a/math/Makefile +++ b/math/Makefile @@ -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 diff --git a/math/py-python_fcl/Makefile b/math/py-python_fcl/Makefile new file mode 100644 index 000000000000..266e2393c3a9 --- /dev/null +++ b/math/py-python_fcl/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= python-fcl +PORTVERSION= 0.0.12 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= db@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> diff --git a/math/py-python_fcl/distinfo b/math/py-python_fcl/distinfo new file mode 100644 index 000000000000..64523c990796 --- /dev/null +++ b/math/py-python_fcl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1584798153 +SHA256 (python-fcl-0.0.12.tar.gz) = f5e60c4f2f43f72f0029435dd4bac61a7e5867c53cf14adc54afe67dc8ad3510 +SIZE (python-fcl-0.0.12.tar.gz) = 17204 diff --git a/math/py-python_fcl/files/patch-setup.py b/math/py-python_fcl/files/patch-setup.py new file mode 100644 index 000000000000..8d1b75c3a11b --- /dev/null +++ b/math/py-python_fcl/files/patch-setup.py @@ -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'] + )] + ) diff --git a/math/py-python_fcl/pkg-descr b/math/py-python_fcl/pkg-descr new file mode 100644 index 000000000000..643aaf48bc19 --- /dev/null +++ b/math/py-python_fcl/pkg-descr @@ -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 |