git: 46d024c4a8b5 - main - graphics/openxr: Update 1.1.40 → 1.1.41, improve port

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 28 Sep 2024 13:07:00 UTC
The branch main has been updated by vvd:

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

commit 46d024c4a8b5a42870fd6e5c8eacf8b58b87c34f
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-09-28 13:04:08 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-09-28 13:06:45 +0000

    graphics/openxr: Update 1.1.40 → 1.1.41, improve port
    
    Changelog:
    https://github.com/KhronosGroup/OpenXR-SDK/releases/tag/release-1.1.41
    
    Fix dependencies.
    
    Reported by:    portscout
---
 graphics/openxr/Makefile | 16 +++++++++++-----
 graphics/openxr/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/graphics/openxr/Makefile b/graphics/openxr/Makefile
index 46596fcc24ff..4683e9dd6882 100644
--- a/graphics/openxr/Makefile
+++ b/graphics/openxr/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	openxr
 DISTVERSIONPREFIX=	release-
-DISTVERSION=	1.1.40
-PORTREVISION=	1
+DISTVERSION=	1.1.41
 CATEGORIES=	graphics
 
 MAINTAINER=	vvd@FreeBSD.org
@@ -10,12 +9,19 @@ WWW=		https://github.com/KhronosGroup/OpenXR-SDK
 
 LICENSE=	APACHE20
 
-LIB_DEPENDS=	libjsoncpp.so:devel/jsoncpp
-
-USES=		cmake compiler:c++11-lib python:build
+BUILD_DEPENDS=	glslangValidator:graphics/glslang \
+		glslc:graphics/shaderc \
+		vulkan-headers>0:graphics/vulkan-headers \
+		${LOCALBASE}/lib/libvulkan.so:graphics/vulkan-loader \
+		${LOCALBASE}/lib/libjsoncpp.a:devel/jsoncpp
+RUN_DEPENDS=	vulkan-loader>0:graphics/vulkan-loader
 
+USES=		cmake compiler:c++14-lang gl python:build
 USE_GITHUB=	yes
 GH_ACCOUNT=	KhronosGroup
 GH_PROJECT=	OpenXR-SDK
+USE_GL=		opengl
+
+CMAKE_ON=	BUILD_ALL_EXTENSIONS BUILD_WITH_SYSTEM_JSONCPP
 
 .include <bsd.port.mk>
diff --git a/graphics/openxr/distinfo b/graphics/openxr/distinfo
index 17478b22b7df..0c3885d3c655 100644
--- a/graphics/openxr/distinfo
+++ b/graphics/openxr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724405450
-SHA256 (KhronosGroup-OpenXR-SDK-release-1.1.40_GH0.tar.gz) = 25caf384e6f4c3ccc958e6d1018c3ec448d534993b2a58907081c2182f9a7a2f
-SIZE (KhronosGroup-OpenXR-SDK-release-1.1.40_GH0.tar.gz) = 620341
+TIMESTAMP = 1727523597
+SHA256 (KhronosGroup-OpenXR-SDK-release-1.1.41_GH0.tar.gz) = a16b291fee4e319b167b84a8e26c0490a3ab4359190d8adf06e75c56ae4c7f3f
+SIZE (KhronosGroup-OpenXR-SDK-release-1.1.41_GH0.tar.gz) = 633615