git: 450da15f935b - main - science/nlcglib: Broken where OpenMP isn't available

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 14 Feb 2025 10:30:57 UTC
The branch main has been updated by yuri:

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

commit 450da15f935b78cb17abb05024e215eb0fff6318
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-02-14 09:50:20 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-02-14 10:30:51 +0000

    science/nlcglib: Broken where OpenMP isn't available
    
    Reported by:    fallout
---
 science/nlcglib/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/science/nlcglib/Makefile b/science/nlcglib/Makefile
index 6fd8a974b7bd..43c6f0600133 100644
--- a/science/nlcglib/Makefile
+++ b/science/nlcglib/Makefile
@@ -16,6 +16,10 @@ LIB_DEPENDS=	libkokkoscore.so:devel/kokkos \
 		libopenblas.so:math/openblas
 TEST_DEPENDS=	googletest>0:devel/googletest
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 USES=		cmake:testing pkgconfig
 USE_LDCONFIG=	yes