git: 80e74486d657 - main - math/curv: Broken on systems where OpenMP isn't enabled

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 24 Jul 2022 10:27:33 UTC
The branch main has been updated by yuri:

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

commit 80e74486d6571bfbce9c248649f51cde53b9cd75
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 10:27:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 10:27:01 +0000

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

diff --git a/math/curv/Makefile b/math/curv/Makefile
index 8bf33c29bbeb..72ef848617f4 100644
--- a/math/curv/Makefile
+++ b/math/curv/Makefile
@@ -9,6 +9,10 @@ COMMENT=	Language for making art using mathematics
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	glm>0:math/glm
 LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
 		libdouble-conversion.so:devel/double-conversion \