ports/graphics/openxr/files/patch-src_CMakeLists.txt
Vladimir Druzenko c3d51eebc9 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
2024-02-28 00:25:48 +03:00

11 lines
420 B
Text

--- 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)