git: 0f109bd911c3 - main - devel/py-pykdtree: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 May 2025 00:47:43 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0f109bd911c36aac9ad6ca57b737a0e0124190d1
commit 0f109bd911c36aac9ad6ca57b737a0e0124190d1
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-05-22 10:03:22 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-05-25 00:47:04 +0000
devel/py-pykdtree: fix build on armv7
No OpenMP on armv7, so disable its use there.
Approved by: portmgr (build fix blanket)
MFH: 2025Q2
---
devel/py-pykdtree/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devel/py-pykdtree/Makefile b/devel/py-pykdtree/Makefile
index e72d7b52ed05..a468abe2eb26 100644
--- a/devel/py-pykdtree/Makefile
+++ b/devel/py-pykdtree/Makefile
@@ -19,6 +19,10 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
USES= python:3.9+
USE_PYTHON= autoplist concurrent cython3 pep517
+.if !exists(/usr/include/omp.h)
+MAKE_ENV+= USE_OMP=0
+.endif
+
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +