git: ac1a59ade2bb - main - math/cosma: Broken on systems where OpenMP isn't enabled

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 04 Aug 2022 07:41:33 UTC
The branch main has been updated by yuri:

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

commit ac1a59ade2bb903f296bcb271736a9f15f0fb727
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-04 07:28:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-04 07:41:23 +0000

    math/cosma: Broken on systems where OpenMP isn't enabled
    
    Reported by:    fallout
---
 math/cosma/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/cosma/Makefile b/math/cosma/Makefile
index 2466996c868d..dea671256fb1 100644
--- a/math/cosma/Makefile
+++ b/math/cosma/Makefile
@@ -9,6 +9,10 @@ COMMENT=	Distributed communication-optimal matrix multiplication algorithm
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	openmpi>0:net/openmpi
 LIB_DEPENDS=	libopenblas.so:math/openblas
 RUN_DEPENDS=	openmpi>0:net/openmpi