git: cf23a14535c2 - 2024Q4 - math/sundials: unbreak on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 26 Dec 2024 10:49:02 UTC
The branch 2024Q4 has been updated by fuz:

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

commit cf23a14535c244837add5202657d1dd91649b81a
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-12-24 09:48:27 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-12-26 10:48:19 +0000

    math/sundials: unbreak on armv7
    
    No OpenMP support on armv7 unfortunately.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2024Q4
    
    (cherry picked from commit 5ab1315a1675d0813b5920f0ab01368b006b683f)
---
 math/sundials/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/sundials/Makefile b/math/sundials/Makefile
index 2844ca90e308..598a41cb2c44 100644
--- a/math/sundials/Makefile
+++ b/math/sundials/Makefile
@@ -25,6 +25,10 @@ FCFLAGS:=		${FFLAGS} # project checks that these flags are equal
 
 OPTIONS_DEFINE=		BLAS EXAMPLES KLU LAPACK MPI OPENMP
 OPTIONS_DEFAULT=	KLU LAPACK MPI OPENMP
+# no OpenMP on armv7
+.if !exists(/usr/include/omp.h)
+OPTIONS_EXCLUDE=	OPENMP
+.endif
 OPTIONS_GROUP=		VECTORS
 OPTIONS_GROUP_VECTORS=	HYPRE PETSC
 VECTORS_DESC=		Alternative vector libraries