git: d18cac5da57c - main - math/dbcsr: Broken on systems where OpenMP isn't enabled

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 25 Jul 2022 02:02:23 UTC
The branch main has been updated by yuri:

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

commit d18cac5da57cb43450eac29de673ff228e65791a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-25 02:01:34 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-25 02:02:21 +0000

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

diff --git a/math/dbcsr/Makefile b/math/dbcsr/Makefile
index 4942afd85abc..47bbedb3afca 100644
--- a/math/dbcsr/Makefile
+++ b/math/dbcsr/Makefile
@@ -9,6 +9,10 @@ COMMENT=	Distributed Block Compressed Sparse Row matrix library
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	fypp:devel/py-fypp@${PY_FLAVOR}
 
 USES=		blaslapack:openblas cmake:noninja compiler:c++14-lang fortran \