git: fc10e359ce37 - 2022Q3 - science/py-GPy: Broken on systems where OpenMP isn't enabled

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

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

commit fc10e359ce372d54fa94baa08108c37537f7f1f2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 01:17:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 01:19:33 +0000

    science/py-GPy: Broken on systems where OpenMP isn't enabled
    
    Reported by:    fallout
    
    (cherry picked from commit f71ed96330d8323a5cc128d5aaf790e7b944f730)
---
 science/py-GPy/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/science/py-GPy/Makefile b/science/py-GPy/Makefile
index b128352a3649..92b226407488 100644
--- a/science/py-GPy/Makefile
+++ b/science/py-GPy/Makefile
@@ -10,6 +10,10 @@ COMMENT=	Gaussian process toolbox
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	${PYNUMPY}
 RUN_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=1.3.0:science/py-scipy@${PY_FLAVOR} \