1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/math/py-pdal/Makefile
Bram Ton e37fa74b91 math/pdal: Update to 2.6.3
Use libpdalcpp instead of libpdal_base

Release notes:
 - https://github.com/PDAL/PDAL/releases/tag/2.6.2
 - https://github.com/PDAL/PDAL/releases/tag/2.6.3

PR:		276752
Reported by:	Bram Ton <bram@cbbg.nl>
2024-02-24 06:23:52 +01:00

36 lines
1.1 KiB
Makefile

PORTNAME= pdal
DISTVERSION= 3.0.2
PORTREVISION= 3
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= libpdalcpp.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
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>