media-libs/opencomposite: drop patches, unbundle glm

Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
This commit is contained in:
Patrick Nicolas
2024-09-18 20:43:33 +02:00
parent 323829e29d
commit 98c281ad29
2 changed files with 2 additions and 25 deletions

View File

@@ -1,19 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5956a67..3f0fda1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -528,3 +528,11 @@ set_target_properties(OCOVR PROPERTIES
get_target_property(output_dir OCOVR LIBRARY_OUTPUT_DIRECTORY)
add_custom_command(TARGET OCOVR
PRE_LINK COMMAND ${CMAKE_COMMAND} -E make_directory ${output_dir})
+
+# Installation
+include(GNUInstallDirs)
+install(TARGETS OCOVR
+ LIBRARY
+ DESTINATION "${PROJECT_NAME}/${VRCLIENT_DIR}"
+ COMPONENT Runtime
+)
--
2.45.2

View File

@@ -22,15 +22,12 @@ SLOT="0"
DEPEND="
dev-lang/python
dev-util/vulkan-headers
media-libs/glm
media-libs/libglvnd[X]
media-libs/openxr-loader
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/0001-Add-install-target.patch"
)
src_configure()
{
# Installing to /usr would not work with Steam bacause pressure vessel
@@ -43,8 +40,7 @@ src_configure()
"-DCMAKE_INSTALL_PREFIX=/opt"
# Required for Proton: https://gitlab.com/znixian/OpenOVR/-/issues/416
"-DUSE_SYSTEM_OPENXR=OFF"
# FIXME: fails because GLM_ENABLE_EXPERIMENTAL is unset
"-DUSE_SYSTEM_GLM=OFF"
"-DUSE_SYSTEM_GLM=ON"
)
cmake_src_configure
}