git: ce22f921feb5 - main - science/hypre: Broken where OpenMP isn't available

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

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

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

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

diff --git a/science/hypre/Makefile b/science/hypre/Makefile
index 8e6b610b6e63..1e35b84597e2 100644
--- a/science/hypre/Makefile
+++ b/science/hypre/Makefile
@@ -12,6 +12,10 @@ LICENSE_COMB=	dual
 LICENSE_FILE_APACHE20=	${WRKSRC}/../LICENSE-APACHE
 LICENSE_FILE_MIT=	${WRKSRC}/../LICENSE-MIT
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 LIB_DEPENDS=	libsuperlu.so:math/superlu
 
 USES=		blaslapack:openblas cmake:testing fortran localbase