[packages/openvr] - added libdir patch (honour LIB_SUFFIX)
qboosh
qboosh at pld-linux.org
Fri Mar 31 19:18:33 CEST 2023
commit 7a517af6ba2b846b3867fdcfa18325d1be77b2fb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Mar 31 19:20:57 2023 +0200
- added libdir patch (honour LIB_SUFFIX)
openvr-libdir.patch | 11 +++++++++++
openvr.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/openvr.spec b/openvr.spec
index ea804bf..6994076 100644
--- a/openvr.spec
+++ b/openvr.spec
@@ -13,6 +13,7 @@ Group: Libraries
Source0: https://github.com/ValveSoftware/openvr/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 2dd6945040b63c9a2d1ce4ece00bda7e
Patch0: %{name}-pc.patch
+Patch1: %{name}-libdir.patch
URL: https://github.com/ValveSoftware/openvr
BuildRequires: cmake >= 2.8
BuildRequires: libstdc++-devel >= 6:4.7
@@ -61,6 +62,7 @@ Statyczna biblioteka OpenVR SDK.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# prebuilt binaries
%{__rm} -r bin lib
diff --git a/openvr-libdir.patch b/openvr-libdir.patch
new file mode 100644
index 0000000..b064910
--- /dev/null
+++ b/openvr-libdir.patch
@@ -0,0 +1,11 @@
+--- openvr-1.23.8/src/CMakeLists.txt.orig 2023-03-08 01:40:29.000000000 +0100
++++ openvr-1.23.8/src/CMakeLists.txt 2023-03-31 19:12:34.535135850 +0200
+@@ -103,7 +103,7 @@ endif()
+ target_link_libraries(${LIBNAME} ${EXTRA_LIBS} ${CMAKE_DL_LIBS})
+ target_include_directories(${LIBNAME} PUBLIC ${OPENVR_HEADER_DIR})
+
+-install(TARGETS ${LIBNAME} DESTINATION lib)
++install(TARGETS ${LIBNAME} DESTINATION lib${LIB_SUFFIX})
+ install(FILES ${PUBLIC_HEADER_FILES} DESTINATION include/openvr)
+
+ # Generate a .pc file for linux environments
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openvr.git/commitdiff/7a517af6ba2b846b3867fdcfa18325d1be77b2fb
More information about the pld-cvs-commit
mailing list