git: 64dc70d08a58 - main - science/tblite: Broken on systems where OpenMP isn't enabled

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

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

commit 64dc70d08a580878dd0e7eebfd60bcd34eb19c46
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 10:24:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 10:24:22 +0000

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

diff --git a/science/tblite/Makefile b/science/tblite/Makefile
index fddfbac47557..a4fc0c97b56d 100644
--- a/science/tblite/Makefile
+++ b/science/tblite/Makefile
@@ -9,6 +9,10 @@ COMMENT=	Light-weight tight-binding framework
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	mstore>0:science/mstore # unclear if this is really needed
 LIB_DEPENDS=	libdftd4.so:science/dftd4 \
 		libmctc-lib.so:science/mctc-lib \