0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-24 13:52:41 +00:00
Files
termux-packages/packages/openxr/build.sh
Termux Github Actions 6eecd4ac27 bump(main/openxr): 1.1.50
This commit has been automatically submitted by Github Actions.
2025-07-30 00:15:21 +00:00

28 lines
1.3 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.khronos.org/openxr/
TERMUX_PKG_DESCRIPTION="Open standard that provides a common set of APIs for developing XR applications"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.1.50"
TERMUX_PKG_SRCURL="https://github.com/KhronosGroup/OpenXR-SDK-Source/releases/download/release-$TERMUX_PKG_VERSION/OpenXR-SDK-Source-release-$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=999bd93316f0bf935425439f1ca8c137ebf177f21d09e0c241426bbfb6848f78
# configuration error if jsoncpp and jsoncpp-static are not both installed simultaneously
TERMUX_PKG_DEPENDS="jsoncpp, libc++, libx11, vulkan-icd, libxrandr, libxxf86vm, opengl"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+.\d+.\d+"
TERMUX_PKG_BUILD_DEPENDS="jsoncpp-static, vulkan-headers"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DCMAKE_SYSTEM_NAME=Linux
-DPRESENTATION_BACKEND=xlib
-DDYNAMIC_LOADER=ON
"
termux_step_pre_configure() {
# This software has a SurfaceFlinger(ANativeWindow[For building an APK]) configuration
# aggressively connected to its __ANDROID__ blocks, so use the same 'treat Android as Linux'
# strategy here that is used in the sdl2 package.
find "$TERMUX_PKG_SRCDIR" -type f | \
xargs -n 1 sed -i \
-e 's/\([^A-Za-z0-9_]__ANDROID\)\(__[^A-Za-z0-9_]\)/\1_NO_TERMUX\2/g' \
-e 's/\([^A-Za-z0-9_]__ANDROID\)__$/\1_NO_TERMUX__/g'
}