git: edaa8d6eaf22 - main - graphics/py-pandana: Broken on systems where OpenMP isn't enabled

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 24 Jul 2022 01:33:08 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=edaa8d6eaf225fbb0217798536ad1555d261240a

commit edaa8d6eaf225fbb0217798536ad1555d261240a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 01:32:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 01:32:22 +0000

    graphics/py-pandana: Broken on systems where OpenMP isn't enabled
    
     Reported by:   fallout
    Approved by:    portmgr (blanket)
---
 graphics/py-pandana/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/graphics/py-pandana/Makefile b/graphics/py-pandana/Makefile
index 94e45edaeac1..e9f6b43eb3c5 100644
--- a/graphics/py-pandana/Makefile
+++ b/graphics/py-pandana/Makefile
@@ -11,6 +11,10 @@ COMMENT=	Python library for network analysis
 LICENSE=	AGPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cython>=0.25.2:lang/cython@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=1.8,1:math/py-numpy@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.8,1:math/py-numpy@${PY_FLAVOR} \