Fix cmake install files path

This commit is contained in:
Andrey Bondrov 2017-11-17 12:28:51 +10:00
parent 35182db7ee
commit dd5194d744
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -urN SDL2-2.0.7/CMakeLists.txt SDL2-2.0.7-patched/CMakeLists.txt
--- SDL2-2.0.7/CMakeLists.txt 2017-11-17 12:09:51.064776019 +1000
+++ SDL2-2.0.7-patched/CMakeLists.txt 2017-11-17 12:27:57.151796060 +1000
@@ -1750,7 +1750,7 @@
elseif (WINDOWS)
set(PKG_PREFIX "cmake")
else ()
- set(PKG_PREFIX "lib/cmake/SDL2")
+ set(PKG_PREFIX "lib${LIB_SUFFIX}/cmake/SDL2")
endif ()
include(CMakePackageConfigHelpers)

View file

@ -15,6 +15,7 @@ Url: http://www.libsdl.org/
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
Patch0: SDL2-2.0.3-cmake.patch
Patch1: SDL2-2.0.7-soversion.patch
Patch2: SDL2-2.0.7-cmake-libdir.patch
BuildRequires: cmake
BuildRequires: wayland-doc
BuildRequires: nas-devel