git: eb9650e1cc09 - main - science/libnegf: Broken where OpenMP isn't available

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 04 Jan 2025 09:22:06 UTC
The branch main has been updated by yuri:

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

commit eb9650e1cc097a965b9c63ef91d000db6e913e92
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-01-04 09:21:44 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-01-04 09:21:44 +0000

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

diff --git a/science/libnegf/Makefile b/science/libnegf/Makefile
index 9359a42592b1..804a1876ea89 100644
--- a/science/libnegf/Makefile
+++ b/science/libnegf/Makefile
@@ -10,6 +10,10 @@ WWW=		https://github.com/libnegf/libnegf
 
 LICENSE=	GPLv3
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 LIB_DEPENDS=	libmpi.so:net/mpich \
 		libopenblas.so:math/openblas