git: 35c6fe4c6e0d - 2022Q3 - science/gbtolib: Broken on systems where OpenMP isn't enabled

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 30 Jul 2022 07:35:21 UTC
The branch 2022Q3 has been updated by yuri:

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

commit 35c6fe4c6e0d85b0900585610669ea5d99065157
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-30 07:33:26 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-30 07:35:18 +0000

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

diff --git a/science/gbtolib/Makefile b/science/gbtolib/Makefile
index ec8fcdbf995f..055f95696e3b 100644
--- a/science/gbtolib/Makefile
+++ b/science/gbtolib/Makefile
@@ -10,6 +10,10 @@ COMMENT=	High-performance library for evaluation of molecular integrals
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 LIB_DEPENDS=	libopenblas.so:math/openblas
 
 USES=		cmake fortran zip