git: 8de255377cb1 - main - graphics/gegl: fix build without libomp

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 12 Aug 2023 01:38:16 UTC
The branch main has been updated by pkubaj:

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

commit 8de255377cb13b47cad3401dc14844c808700054
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-11 16:33:37 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-12 01:37:44 +0000

    graphics/gegl: fix build without libomp
    
    meson.build:413:12: ERROR: Dependency "openmp" not found, tried system
---
 graphics/gegl/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/graphics/gegl/Makefile b/graphics/gegl/Makefile
index 2e67b06036ae..29f922a356c3 100644
--- a/graphics/gegl/Makefile
+++ b/graphics/gegl/Makefile
@@ -23,8 +23,13 @@ LIB_DEPENDS=	libbabl-0.1.so:x11/babl \
 		libnsgif.so:graphics/libnsgif \
 		libpng.so:graphics/png
 
-USES=		compiler:c++14-lang cpe gettext gnome jpeg localbase \
-		meson pkgconfig shebangfix uniquefiles tar:xz
+USES=		cpe gettext gnome jpeg localbase meson pkgconfig shebangfix \
+		uniquefiles tar:xz
+.if !exists(/usr/include/omp.h)
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++14-lang
+.endif
 USE_GNOME=	glib20 introspection:build
 USE_LDCONFIG=	yes
 MESON_ARGS=	-Ddocs=false \