git: 6020312829ae - main - science/openmx: Broken where OpenMP isn't available

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

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

commit 6020312829ae40199e1a13482365641598bb9a02
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-01-04 09:18:26 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-01-04 09:18:26 +0000

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

diff --git a/science/openmx/Makefile b/science/openmx/Makefile
index dd23335b19b2..ac468bd573ad 100644
--- a/science/openmx/Makefile
+++ b/science/openmx/Makefile
@@ -14,6 +14,10 @@ WWW=		https://www.openmx-square.org/
 
 LICENSE=	GPLv2
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BROKEN_i386=	undefined reference to `__atomic_load', see bug#229605 and https://reviews.llvm.org/D42154
 
 LIB_DEPENDS=	libblas.so:math/blas \