git: c166293d75ec - main - graphics/gmic: Broken on systems where OpenMP isn't enabled

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

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

commit c166293d75ec5e2ca2c5fc14bd774109171c339e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 01:34:53 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 01:34:53 +0000

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

diff --git a/graphics/gmic/Makefile b/graphics/gmic/Makefile
index 21d326cfc23a..9ce9802a45f9 100644
--- a/graphics/gmic/Makefile
+++ b/graphics/gmic/Makefile
@@ -14,6 +14,9 @@ LICENSE_FILE=	${WRKSRC}/../COPYING
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 BROKEN_i386=	error: "c++ crashes, clang-5 and 6 fail: undefined reference to `__atomic_load'"
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
 
 BUILD_DEPENDS=	gimptool-2.0:graphics/gimp-app
 LIB_DEPENDS=	libcurl.so:ftp/curl \