git: dd150ab78214 - 2024Q4 - graphics/mesa-devel: enable Vulkan screenshot layer after da55103f9c3f

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 02 Nov 2024 00:41:13 UTC
The branch 2024Q4 has been updated by jbeich:

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

commit dd150ab78214cd00ee1ebbadb0f17fbe05ac4c7f
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-11-01 23:46:17 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-11-02 00:41:06 +0000

    graphics/mesa-devel: enable Vulkan screenshot layer after da55103f9c3f
    
    https://gitlab.freedesktop.org/mesa/mesa/-/commit/eda55c7c2f6
    (cherry picked from commit bcefcbb9f67102fc01d5fbfc6cf544798f7c19ec)
---
 graphics/mesa-devel/Makefile  | 6 ++++--
 graphics/mesa-devel/pkg-plist | 3 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/graphics/mesa-devel/Makefile b/graphics/mesa-devel/Makefile
index 21b6744f6db6..6b0b26f867f8 100644
--- a/graphics/mesa-devel/Makefile
+++ b/graphics/mesa-devel/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	mesa
 DISTVERSION=	24.2-branchpoint-4926
 DISTVERSIONSUFFIX=	-ge474d4ebeef
+PORTREVISION=	1
 CATEGORIES=	graphics
 PKGNAMESUFFIX=	-devel
 
@@ -33,7 +34,7 @@ USE_GITLAB=	yes
 USE_LDCONFIG=	yes
 GL_SITE=	https://gitlab.freedesktop.org
 BINARY_ALIAS=	python=${PYTHON_CMD}
-SHEBANG_FILES=	src/vulkan/overlay-layer/${PORTNAME}-overlay-control.py
+SHEBANG_FILES=	src/vulkan/*/*control.py
 MESON_ARGS=	-Dgallium-xa=disabled \
 		-Dandroid-libbacktrace=disabled \
 		-Dlibunwind=disabled \
@@ -131,7 +132,8 @@ VDPAU_IMPLIES=		X11
 
 VKLAYERS_DESC=		Vulkan layers: ${VKLAYERS_MESON_ON:C/.*=//} (implies ${VKLAYERS_IMPLIES})
 VKLAYERS_BUILD_DEPENDS=	glslangValidator:graphics/glslang
-VKLAYERS_MESON_ON=	-Dvulkan-layers=device-select,overlay
+VKLAYERS_LIB_DEPENDS=	libpng.so:graphics/png
+VKLAYERS_MESON_ON=	-Dvulkan-layers=device-select,overlay,screenshot
 VKLAYERS_IMPLIES=	${"${PORT_OPTIONS:Manv}":?anv:radv} # any from OPTIONS_GROUP_VULKAN
 
 WAYLAND_BUILD_DEPENDS=	wayland-protocols>0:graphics/wayland-protocols
diff --git a/graphics/mesa-devel/pkg-plist b/graphics/mesa-devel/pkg-plist
index f08d7bbb85db..3a64fd337ef2 100644
--- a/graphics/mesa-devel/pkg-plist
+++ b/graphics/mesa-devel/pkg-plist
@@ -1,4 +1,5 @@
 %%VKLAYERS%%bin/mesa-overlay-control.py
+%%VKLAYERS%%bin/mesa-screenshot-control.py
 %%NO_COINST%%%%OPENCL%%etc/OpenCL/vendors/mesa.icd
 %%OPENCL%%etc/OpenCL/vendors/rusticl.icd
 %%COINST%%etc/libmap.d/mesa%%SUFFIX%%.conf
@@ -34,6 +35,7 @@ lib/libEGL_mesa%%SUFFIX%%.so.0.0.0
 %%OPENCL%%lib/libRusticlOpenCL.so.1.0.0
 %%VKLAYERS%%lib/libVkLayer_MESA_device_select.so
 %%VKLAYERS%%lib/libVkLayer_MESA_overlay.so
+%%VKLAYERS%%lib/libVkLayer_MESA_screenshot.so
 lib/libgallium_dri%%SUFFIX%%.so
 %%NO_COINST%%lib/libgbm%%SUFFIX%%.so
 lib/libgbm%%SUFFIX%%.so.1
@@ -58,6 +60,7 @@ share/drirc.d/00-mesa%%SUFFIX%%-defaults.conf
 %%radv%%share/drirc.d/00-radv%%SUFFIX%%-defaults.conf
 %%NO_COINST%%share/glvnd/egl_vendor.d/50_mesa.json
 %%VKLAYERS%%share/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json
+%%VKLAYERS%%share/vulkan/explicit_layer.d/VkLayer_MESA_screenshot.json
 %%anv%%%%NO_COINST%%share/vulkan/icd.d/intel_icd.%%ARCH%%.json
 %%hasvk%%share/vulkan/icd.d/intel_hasvk_icd.%%ARCH%%.json
 %%radv%%%%NO_COINST%%share/vulkan/icd.d/radeon_icd.%%ARCH%%.json