git: ebb4aa7f30df - main - science/xtb: Broken on systems where OpenMP isn't enabled

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

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

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

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

diff --git a/science/xtb/Makefile b/science/xtb/Makefile
index 567c13a675bc..154974264c77 100644
--- a/science/xtb/Makefile
+++ b/science/xtb/Makefile
@@ -9,6 +9,10 @@ COMMENT=	Semiempirical Extended Tight-Binding Program Package
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 USES=		fortran cmake blaslapack:openblas
 
 USE_GITHUB=	yes