git: 6a4fe14a1fd5 - main - math/clad: Only available where OpenMP is available

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 13 Jan 2025 18:22:48 UTC
The branch main has been updated by yuri:

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

commit 6a4fe14a1fd56d086dfa2e7c580672cf94724dcc
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-01-13 15:29:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-01-13 18:22:43 +0000

    math/clad: Only available where OpenMP is available
    
    The build on armv7 failed because of this.
    
    Reported by:    fallout
---
 math/clad/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/clad/Makefile b/math/clad/Makefile
index c3b541390e63..018a2b30221d 100644
--- a/math/clad/Makefile
+++ b/math/clad/Makefile
@@ -10,6 +10,10 @@ WWW=		https://github.com/vgvassilev/clad
 LICENSE=	LGPL3
 LICENSE_FILE=	${WRKSRC}/License.txt
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 TEST_DEPENDS=	kokkos>0:devel/kokkos
 
 USES=		cmake:testing llvm:16,build,run localbase