From e4367778541760e0b8bc7ee907302340808fff12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Thu, 30 Jul 2020 19:55:18 +0000 Subject: [NEW PORT] math/py-pdal: PDAL Python bindings Description: PDAL Python support allows you to process data with PDAL into Numpy arrays. It supports embedding Python in PDAL pipelines with the readers.numpy and filters.python stages, and it provides a PDAL extension module to control Python interaction with PDAL. Additionally, you can use it to fetch schema and metadata from PDAL operations. Context: Python plugin is removed from math/pdal and is available at https://pypi.org/project/PDAL/ Approved by: tcberner (mentor) --- math/py-pdal/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 math/py-pdal/Makefile (limited to 'math/py-pdal/Makefile') diff --git a/math/py-pdal/Makefile b/math/py-pdal/Makefile new file mode 100644 index 000000000000..782859a3ed60 --- /dev/null +++ b/math/py-pdal/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= pdal +DISTVERSION= 2.3.3 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:tu}-${DISTVERSION} + +MAINTAINER= lbartoletti@FreeBSD.org +COMMENT= PDAL Python bindings + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ + ${LOCALBASE}/bin/cmake:devel/cmake \ + ${LOCALBASE}/bin/ninja:devel/ninja +LIB_DEPENDS= libpdal_base.so:math/pdal +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYNUMPY} + +USES= python +USE_PYTHON= autoplist cython distutils + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpdal_plugin_filter_python.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/libpdalpython.so + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpdal_plugin_reader_numpy.so + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include -- cgit v1.2.3