mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
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
11 lines
420 B
Text
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)
|