git: 1144067c530d - main - devel/libflatarray: Broken on systems where OpenMP isn't enabled

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

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

commit 1144067c530de0a19250cec629bba6bbfc8775b6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-04 07:34:52 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-04 07:41:24 +0000

    devel/libflatarray: Broken on systems where OpenMP isn't enabled
    
    Reported by:    fallout
    Approved by:    portmgr (blanket)
---
 devel/libflatarray/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/libflatarray/Makefile b/devel/libflatarray/Makefile
index ed89666b2aca..20d77dabdde6 100644
--- a/devel/libflatarray/Makefile
+++ b/devel/libflatarray/Makefile
@@ -10,6 +10,10 @@ COMMENT=	Struct of arrays library with object oriented interface for C++
 LICENSE=	BSL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BROKEN_armv7=	test/estimate_optimum_short_vec_type_test.cpp:71:22: error: redefinition of 'expected_arity_for_double'
 
 BUILD_DEPENDS=	boost-libs>=1.48:devel/boost-libs