mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-libs/libsdl3: disable openvr
On second thought, think would prefer to skip this given the code is somewhat large and is off-by-default upstream. If it ever gets packaged we can add proper dependencies with a USE=openvr. Not worth a revbump. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
Not looked into what led to this "Fixed build" commit[1] (maybe compatibility
|
||||
with another compiler due to that scoped declaration higher up), but it instead
|
||||
breaks it for us with both gcc and clang. Quick revert for now.
|
||||
|
||||
SDL_openvrvideo.c:1543:5: error: 'hint' undeclared (first use in this function)
|
||||
|
||||
[1] https://github.com/libsdl-org/SDL/commit/08c82a37814386be38bec7524ec57ff0e548be0b
|
||||
--- a/src/video/openvr/SDL_openvrvideo.c
|
||||
+++ b/src/video/openvr/SDL_openvrvideo.c
|
||||
@@ -1541,5 +1541,5 @@
|
||||
}
|
||||
|
||||
- hint = SDL_GetHint("SDL_OPENVR_INPUT_PROFILE");
|
||||
+ const char *hint = SDL_GetHint("SDL_OPENVR_INPUT_PROFILE");
|
||||
char *loadpath = 0;
|
||||
EVRInputError err;
|
||||
@@ -80,10 +80,6 @@ BDEPEND="
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-openvr.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
@@ -123,8 +119,7 @@ src_configure() {
|
||||
-DSDL_KMSDRM=$(usex kms)
|
||||
-DSDL_OPENGL=$(usex opengl)
|
||||
-DSDL_OPENGLES=$(usex opengl)
|
||||
# openvr is not packaged, but support only needs libglvnd (dlopen)
|
||||
-DSDL_OPENVR=$(usex opengl)
|
||||
-DSDL_OPENVR=no # not packaged, note needs opengl REQUIRED_USE if added
|
||||
-DSDL_ROCKCHIP=no
|
||||
-DSDL_RPI=no
|
||||
-DSDL_VIVANTE=no
|
||||
|
||||
Reference in New Issue
Block a user