git: 8d288f66cb85 - main - graphics/blender: add missing dependencies for WAYLAND=on

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 02 Jan 2023 04:06:27 UTC
The branch main has been updated by jbeich:

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

commit 8d288f66cb850d65f4ff987fc010caf5ef2045a1
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-01-02 03:41:42 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-01-02 04:05:24 +0000

    graphics/blender: add missing dependencies for WAYLAND=on
    
    $ make clean all WITH=WAYLAND
    [...]
    -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
    -- wayland-client not found, disabling WITH_GHOST_WAYLAND
    [...]
    -- wayland-protocols not found, disabling WITH_GHOST_WAYLAND
    [...]
    
    $ env -u DISPLAY blender
    GHOST: failed to initialize display for back-end(s): ['X11']
    GHOST: unable to initialize, exiting!
---
 graphics/blender/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile
index bb531c07e9ea..ce43fef8a58e 100644
--- a/graphics/blender/Makefile
+++ b/graphics/blender/Makefile
@@ -178,6 +178,8 @@ TIFF_LIB_DEPENDS=		libtiff.so:graphics/tiff
 TRACE_CMAKE_BOOL=		WITH_POTRACE
 TRACE_LIB_DEPENDS=		libpotrace.so:graphics/libpotrace
 WAYLAND_CMAKE_BOOL=		WITH_GHOST_WAYLAND
+WAYLAND_USES=			pkgconfig
+WAYLAND_BUILD_DEPENDS=		wayland-protocols>=1.15:graphics/wayland-protocols
 WAYLAND_LIB_DEPENDS=		libdecor-0.so:x11-toolkits/libdecor \
 				libxkbcommon.so:x11/libxkbcommon
 WEBP_CMAKE_BOOL=		WITH_IMAGE_WEBP