git: 6a6938ea1094 - main - biology/hyphy: Broken on systems where OpenMP isn't enabled

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

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

commit 6a6938ea1094011e9fd9121b2ed00d005ac4418f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-04 07:27:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-04 07:41:22 +0000

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

diff --git a/biology/hyphy/Makefile b/biology/hyphy/Makefile
index 7ee7c7bacef0..309fcb638219 100644
--- a/biology/hyphy/Makefile
+++ b/biology/hyphy/Makefile
@@ -8,6 +8,10 @@ COMMENT=	Hypothesis testing using Phylogenies
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 ONLY_FOR_ARCHS=	aarch64 amd64 armv7 i386 powerpc64le powerpc64 powerpc
 
 LIB_DEPENDS=	libcurl.so:ftp/curl