git: 7d2a34875a54 - main - graphics/vulkan-loader: simplify plist updates

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 19 Jun 2024 18:43:07 UTC
The branch main has been updated by jbeich:

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

commit 7d2a34875a545a79f15e24c268fa2c55cfa6dca7
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-06-19 18:28:45 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-06-19 18:42:14 +0000

    graphics/vulkan-loader: simplify plist updates
---
 graphics/vulkan-loader/Makefile  | 1 +
 graphics/vulkan-loader/pkg-plist | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/graphics/vulkan-loader/Makefile b/graphics/vulkan-loader/Makefile
index 0dd9bc90c17a..c319a4447939 100644
--- a/graphics/vulkan-loader/Makefile
+++ b/graphics/vulkan-loader/Makefile
@@ -18,6 +18,7 @@ GH_ACCOUNT=	KhronosGroup
 GH_PROJECT=	Vulkan-Loader
 CMAKE_ON=	CMAKE_SKIP_RPATH
 CMAKE_OFF=	BUILD_TESTS
+PLIST_SUB=	VERSION=${DISTVERSION:C/-.*//}
 
 OPTIONS_DEFINE=	WAYLAND XCB XLIB
 OPTIONS_DEFAULT=WAYLAND XCB XLIB
diff --git a/graphics/vulkan-loader/pkg-plist b/graphics/vulkan-loader/pkg-plist
index d744d300e45b..1b77b649b798 100644
--- a/graphics/vulkan-loader/pkg-plist
+++ b/graphics/vulkan-loader/pkg-plist
@@ -3,5 +3,5 @@ lib/cmake/VulkanLoader/VulkanLoaderConfig.cmake
 lib/cmake/VulkanLoader/VulkanLoaderConfigVersion.cmake
 lib/libvulkan.so
 lib/libvulkan.so.1
-lib/libvulkan.so.1.3.288
+lib/libvulkan.so.%%VERSION%%
 libdata/pkgconfig/vulkan.pc