git: 9e83c182267c - main - misc/urh: Broken on systems where OpenMP isn't enabled

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

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

commit 9e83c182267cdca874417bf3092ca12b21c000cb
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 10:20:13 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 10:20:13 +0000

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

diff --git a/misc/urh/Makefile b/misc/urh/Makefile
index 16734bff7ab5..0636d80b3a73 100644
--- a/misc/urh/Makefile
+++ b/misc/urh/Makefile
@@ -8,6 +8,10 @@ COMMENT=	Universal Radio Hacker: investigate wireless protocols like a boss
 
 LICENSE=	GPLv3
 
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
+
 BUILD_DEPENDS=	${PYNUMPY}
 RUN_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \