2024-11-27 17:03:11 +01:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2020-06-22 21:16:10.343429323 +0200
|
|
|
|
|
|
|
|
Make use of the clzma library in openSUSE.
|
2024-11-27 19:03:40 +01:00
|
|
|
[openSUSE-specific patch. I was under the impression that Debian and/or Ubuntu shipped
|
|
|
|
lzma-sdk-dev too, but, upon checking, do not do so (anymore) as of 2024-11-27.]
|
2024-11-27 17:03:11 +01:00
|
|
|
---
|
2024-11-27 19:03:40 +01:00
|
|
|
thirdparty/CMakeLists.txt | 3 +--
|
2024-11-27 17:03:11 +01:00
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
2024-11-27 19:03:40 +01:00
|
|
|
Index: SLADE-3.2.6/thirdparty/CMakeLists.txt
|
2024-11-27 17:03:11 +01:00
|
|
|
===================================================================
|
2024-11-27 19:03:40 +01:00
|
|
|
--- SLADE-3.2.6.orig/thirdparty/CMakeLists.txt
|
|
|
|
+++ SLADE-3.2.6/thirdparty/CMakeLists.txt
|
|
|
|
@@ -17,7 +17,6 @@ endif()
|
|
|
|
set(EXTERNAL_SOURCES
|
|
|
|
)
|
|
|
|
file(GLOB_RECURSE EXTERNAL_SOURCES
|
2024-11-27 17:03:11 +01:00
|
|
|
- lzma/C/LzmaDec.c
|
2024-11-27 19:03:40 +01:00
|
|
|
mus2mid/mus2mid.cpp
|
|
|
|
zreaders/*.cpp
|
|
|
|
glad/src/*.c
|
|
|
|
@@ -43,7 +42,7 @@ add_subdirectory(lunasvg/3rdparty/softwa
|
|
|
|
add_subdirectory(lunasvg/3rdparty/plutovg)
|
2024-11-27 17:03:11 +01:00
|
|
|
|
|
|
|
add_library(external STATIC ${EXTERNAL_SOURCES})
|
2024-11-27 19:03:40 +01:00
|
|
|
-target_link_libraries(external ${ZLIB_LIBRARY} lunasvg fmt::fmt ${CMAKE_DL_LIBS})
|
|
|
|
+target_link_libraries(external ${ZLIB_LIBRARY} -lclzma lunasvg fmt::fmt ${CMAKE_DL_LIBS})
|
2024-11-27 17:03:11 +01:00
|
|
|
set(EXTERNAL_LIBRARIES external PARENT_SCOPE)
|
2024-11-27 19:03:40 +01:00
|
|
|
|
|
|
|
if(USE_SYSTEM_DUMB)
|