77d68471ad
PR: 267994 Differential revision: D37518 Approved by: bapt
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
PORTNAME= pdal
|
|
DISTVERSION= 3.0.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= math python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:tu}-${DISTVERSION}
|
|
|
|
MAINTAINER= lbartoletti@FreeBSD.org
|
|
COMMENT= PDAL Python bindings
|
|
WWW= https://pypi.python.org/pypi/pdal
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \
|
|
${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 \
|
|
cmake:devel/cmake-core
|
|
LIB_DEPENDS= libpdal_base.so:math/pdal
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
|
|
${PYNUMPY}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= compiler:c++11-lang ninja:build python:3.6+
|
|
USE_PYTHON= autoplist cython distutils
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/libpdalpython*.so
|
|
${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && py.test -v test
|
|
|
|
.include <bsd.port.mk>
|