From nobody Tue Feb 27 21:26:16 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkrBx15Brz5CSHT; Tue, 27 Feb 2024 21:26:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TkrBx0D1wz46Qt; Tue, 27 Feb 2024 21:26:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709069177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pmBkY4rQGQ7eogW/waUH0MaS0N3JIVoyxAgBPyYvdHE=; b=nP5BhYS2dCELVJ8sp0HcTQ6j6mKw/QTsq+qRi8blVsTe4NbxjeyGEqXU4fVqe9pm0P9EoV 4BDTZS0s6q84gd7N2DgO6ORVLT4RRyJom06lTINw3RIT+xOXANY6kPqDTVzblbVwIY8+u9 6jf88tUY1VOYxElHh93WoZ+UCFThGtFAhEfQGTIA/v4Ngrr9zMUO/sCVSsn8ni4cxg6m3j P1cHOwv13cSJXlQ4RYyyUtWy0gOt0qmYqLDSnsMluS4zXj4h8mvfhCpQfEBJllcw0JrqSo mgeKMayBWK32HRJSyvJWGeL5idcA89gzVN4n3KswZeISlCyumB20q5YyfnF7qQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709069177; a=rsa-sha256; cv=none; b=dAXwzgo5i5XtjzM0+/Vfc1riwyPwjwoCGk/PNm8UWy2t627MN7W5WqeSxaykTbyEFKD4Y5 R+dtW+L5Fb4nLWSpXCNHG7o6bg39O997eBEyMJKOA4qahSpBSodT2Xs6XJmB5eD7Y7OccF 9Q7RpocQocrVBxbXZRaErQC5XHZ/dIYyzApCqd2astksxZgG6w1/hIUslu4vEs+h5u2Fa5 Eiv9dqFnJBJo5m2AI5dAmWs3Rti92zoHXGtDoTmO4uRB3bnchgXQ3RrOJeBY+/IpBhTPAm 9WDi0TuVPc6UW3RPZRF7IyBxp02K23WEXl35M/Mf2P5lrUAuk/KWBYScxnZT+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709069177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pmBkY4rQGQ7eogW/waUH0MaS0N3JIVoyxAgBPyYvdHE=; b=cXM1XIk9SjONBuyA2AE3onue3rCYicZ7gEpLRItUZPIyJGBzX+xqQn9C930UGZZiBbOzeQ a9+5RHQRgxqgbqEm2/KurVdPUFFxyu9JMmTu1kcfzaSdN4UZ6lCw6yNg6sDiYqqPIP2VEu PXQNEpAaQ9YiIHLHp7V3SzB3mvuiv9hCc6vnqrDWSp8Y6fdmsjc8I1QX0/ws90Lmmv5NMk 0PMpFtpQPcwal9HCuRuAAfTXTXVp0miBwBeaEKsJpTbrSqTZlBQbNqAYZ4QtbAQ5n1wuN4 YsCiY+4YOHKrrJ3RKhyh9EeIs9k+Gb5YGrkkVQtUz5Hb6vlGrDRSDZaT5KiSEQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TkrBw6PCqzTxX; Tue, 27 Feb 2024 21:26:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41RLQG8D063239; Tue, 27 Feb 2024 21:26:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41RLQG7p063236; Tue, 27 Feb 2024 21:26:16 GMT (envelope-from git) Date: Tue, 27 Feb 2024 21:26:16 GMT Message-Id: <202402272126.41RLQG7p063236@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: c3d51eebc94b - main - graphics/openxr: new port - required for games/lwjgl3 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c3d51eebc94b491afe0e26b2bfbdd39b09c1090d Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3d51eebc94b491afe0e26b2bfbdd39b09c1090d commit c3d51eebc94b491afe0e26b2bfbdd39b09c1090d Author: Vladimir Druzenko AuthorDate: 2024-02-27 21:19:52 +0000 Commit: Vladimir Druzenko CommitDate: 2024-02-27 21:25:48 +0000 graphics/openxr: new port - required for games/lwjgl3 OpenXR provides access to Augmented and Virtual Reality (XR-platforms). This port required for build lwjgl 3, and lwjgl 3 required for Java Minecraft Client 1.20.x run on FreeBSD without linux compatibility layer. PR: 275279 269879 269900 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D44119 --- graphics/Makefile | 1 + graphics/openxr/Makefile | 20 ++++++++++++++++++++ graphics/openxr/distinfo | 3 +++ graphics/openxr/files/patch-src_CMakeLists.txt | 11 +++++++++++ graphics/openxr/pkg-descr | 3 +++ graphics/openxr/pkg-plist | 13 +++++++++++++ 6 files changed, 51 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 2886d06c1cf4..daf3c42c90b6 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -635,6 +635,7 @@ SUBDIR += openslide SUBDIR += opensubdiv SUBDIR += openvkl + SUBDIR += openxr SUBDIR += optar SUBDIR += optipng SUBDIR += osg diff --git a/graphics/openxr/Makefile b/graphics/openxr/Makefile new file mode 100644 index 000000000000..cfabf671b687 --- /dev/null +++ b/graphics/openxr/Makefile @@ -0,0 +1,20 @@ +PORTNAME= openxr +DISTVERSION= 1.0.34 +CATEGORIES= graphics + +MAINTAINER= vvd@FreeBSD.org +COMMENT= OpenXR provides access to Augmented and Virtual Reality (XR-platforms) +WWW= https://github.com/KhronosGroup/OpenXR-SDK + +LICENSE= APACHE20 + +LIB_DEPENDS= libjsoncpp.so:devel/jsoncpp + +USES= cmake compiler:c++11-lib python:build + +USE_GITHUB= yes +GH_ACCOUNT= KhronosGroup +GH_PROJECT= OpenXR-SDK +GH_TAGNAME= release-${DISTVERSION} + +.include diff --git a/graphics/openxr/distinfo b/graphics/openxr/distinfo new file mode 100644 index 000000000000..eb1cffcb4474 --- /dev/null +++ b/graphics/openxr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1709034417 +SHA256 (KhronosGroup-OpenXR-SDK-1.0.34-release-1.0.34_GH0.tar.gz) = 5fa2fac1b442a31e267ea522799a247e3aff6e6f5a418b1e31c337b8ca835b69 +SIZE (KhronosGroup-OpenXR-SDK-1.0.34-release-1.0.34_GH0.tar.gz) = 602123 diff --git a/graphics/openxr/files/patch-src_CMakeLists.txt b/graphics/openxr/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..9944e028c14e --- /dev/null +++ b/graphics/openxr/files/patch-src_CMakeLists.txt @@ -0,0 +1,11 @@ +--- src/CMakeLists.txt.orig 2024-02-17 20:48:29 UTC ++++ src/CMakeLists.txt +@@ -165,7 +165,7 @@ cmake_dependent_option( + if(WIN32) + add_definitions(-DXR_OS_WINDOWS) + add_definitions(-DNOMINMAX) +-elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") ++elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + add_definitions(-DXR_OS_LINUX) + elseif(ANDROID) + add_definitions(-DXR_OS_ANDROID) diff --git a/graphics/openxr/pkg-descr b/graphics/openxr/pkg-descr new file mode 100644 index 000000000000..754667154a07 --- /dev/null +++ b/graphics/openxr/pkg-descr @@ -0,0 +1,3 @@ +OpenXR is a royalty-free, open standard that provides high-performance access +to Augmented Reality (AR) and Virtual Reality (VR)-collectively known as +XR-platforms and devices. diff --git a/graphics/openxr/pkg-plist b/graphics/openxr/pkg-plist new file mode 100644 index 000000000000..a916ab72833d --- /dev/null +++ b/graphics/openxr/pkg-plist @@ -0,0 +1,13 @@ +include/openxr/openxr.h +include/openxr/openxr_loader_negotiation.h +include/openxr/openxr_platform.h +include/openxr/openxr_platform_defines.h +include/openxr/openxr_reflection.h +include/openxr/openxr_reflection_parent_structs.h +include/openxr/openxr_reflection_structs.h +lib/cmake/openxr/OpenXRConfig.cmake +lib/cmake/openxr/OpenXRConfigVersion.cmake +lib/cmake/openxr/OpenXRTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/openxr/OpenXRTargets.cmake +lib/libopenxr_loader.so +libdata/pkgconfig/openxr.pc