git: a2f3d9a20369 - main - graphics/vulkan-extension-layer: update to 1.3.248

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 26 Apr 2023 14:18:43 UTC
The branch main has been updated by jbeich:

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

commit a2f3d9a20369717abe4b128339fd678840f20e56
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-04-20 15:50:57 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-04-26 14:17:41 +0000

    graphics/vulkan-extension-layer: update to 1.3.248
    
    Changes:        https://github.com/KhronosGroup/Vulkan-ExtensionLayer/compare/v1.3.246...v1.3.248
    Reported by:    portscout
---
 graphics/vulkan-extension-layer/Makefile  | 11 ++++++++++-
 graphics/vulkan-extension-layer/distinfo  |  8 +++++---
 graphics/vulkan-extension-layer/pkg-plist |  3 ++-
 3 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/graphics/vulkan-extension-layer/Makefile b/graphics/vulkan-extension-layer/Makefile
index 8eb8c9e0d97c..26acfe0c732f 100644
--- a/graphics/vulkan-extension-layer/Makefile
+++ b/graphics/vulkan-extension-layer/Makefile
@@ -1,8 +1,11 @@
 PORTNAME=	vulkan-extension-layer
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.3.246
+DISTVERSION=	1.3.248
 CATEGORIES=	graphics
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+=	62c6b62d0766.patch:-p1 # https://github.com/KhronosGroup/Vulkan-ExtensionLayer/pull/207
+
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Layer providing Vulkan features when native support is unavailable
 WWW=		https://github.com/KhronosGroup/Vulkan-ExtensionLayer
@@ -18,4 +21,10 @@ GH_ACCOUNT=	KhronosGroup
 GH_PROJECT=	Vulkan-ExtensionLayer
 CMAKE_OFF=	BUILD_TESTS
 
+post-install:
+# https://github.com/KhronosGroup/Vulkan-ExtensionLayer/commit/bd02fcde74f1
+	@if [ `${CC} -dM -E -</dev/null | ${AWK} '/__SIZEOF_POINTER__/ { print $$3 }'` -eq 4 ]; then \
+		${REINPLACE_CMD} '/shader_object/d' ${TMPPLIST}; \
+	fi
+
 .include <bsd.port.mk>
diff --git a/graphics/vulkan-extension-layer/distinfo b/graphics/vulkan-extension-layer/distinfo
index f8fa7e560b2c..f9ae20805da4 100644
--- a/graphics/vulkan-extension-layer/distinfo
+++ b/graphics/vulkan-extension-layer/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1680275332
-SHA256 (KhronosGroup-Vulkan-ExtensionLayer-v1.3.246_GH0.tar.gz) = 6ce8e35dd56d46f308f4581a4d0cdfd660b9aa733a4271442365fda422d4227b
-SIZE (KhronosGroup-Vulkan-ExtensionLayer-v1.3.246_GH0.tar.gz) = 518322
+TIMESTAMP = 1682005857
+SHA256 (KhronosGroup-Vulkan-ExtensionLayer-v1.3.248_GH0.tar.gz) = aa41c89691a97ae7eee7f22d18dac897c9ddb3f876d9876cb6735fa54fcea3d4
+SIZE (KhronosGroup-Vulkan-ExtensionLayer-v1.3.248_GH0.tar.gz) = 573172
+SHA256 (62c6b62d0766.patch) = 846865312a5b585d7c1b5ab30eeccf1140aa0919e358ef1af1756ffb5449fde8
+SIZE (62c6b62d0766.patch) = 1247
diff --git a/graphics/vulkan-extension-layer/pkg-plist b/graphics/vulkan-extension-layer/pkg-plist
index 24f41e7b4407..c2cddb900d1c 100644
--- a/graphics/vulkan-extension-layer/pkg-plist
+++ b/graphics/vulkan-extension-layer/pkg-plist
@@ -1,5 +1,6 @@
-lib/libVkExtLayer_utils.a
+lib/libVkLayer_khronos_shader_object.so
 lib/libVkLayer_khronos_synchronization2.so
 lib/libVkLayer_khronos_timeline_semaphore.so
+share/vulkan/explicit_layer.d/VkLayer_khronos_shader_object.json
 share/vulkan/explicit_layer.d/VkLayer_khronos_synchronization2.json
 share/vulkan/explicit_layer.d/VkLayer_khronos_timeline_semaphore.json