git: f71ed96330d8 - main - science/py-GPy: Broken on systems where OpenMP isn't enabled

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

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

commit f71ed96330d8323a5cc128d5aaf790e7b944f730
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:18:46 +0000

    science/py-GPy: Broken on systems where OpenMP isn't enabled
    
    Reported by:    fallout
---
 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} \