void-packages/srcpkgs/SLADE/patches/system-libraries.patch

49 lines
1.4 KiB
Diff

--- a/src/Audio/ModMusic.cpp 2022-05-13 15:08:51.000000000 +0200
+++ - 2023-01-02 14:13:21.643696778 +0100
@@ -32,7 +32,7 @@
// -----------------------------------------------------------------------------
#include "Main.h"
#include "ModMusic.h"
-#include "thirdparty/dumb/dumb.h"
+#include <dumb.h>
using namespace slade;
using namespace audio;
--- a/src/Application/App.cpp 2022-05-13 15:08:51.000000000 +0200
+++ - 2023-01-02 14:13:44.631508582 +0100
@@ -60,7 +60,7 @@
#include "UI/WxUtils.h"
#include "Utility/StringUtils.h"
#include "Utility/Tokenizer.h"
-#include "thirdparty/dumb/dumb.h"
+#include <dumb.h>
#include <filesystem>
using namespace slade;
--- a/thirdparty/CMakeLists.txt 2022-05-13 15:08:51.000000000 +0200
+++ - 2023-01-02 14:14:00.580831197 +0100
@@ -10,7 +10,6 @@
set(EXTERNAL_SOURCES
)
file(GLOB_RECURSE EXTERNAL_SOURCES
- dumb/*.c
lzma/C/LzmaDec.c
mus2mid/mus2mid.cpp
zreaders/*.cpp
@@ -30,4 +29,4 @@
add_library(external STATIC ${EXTERNAL_SOURCES})
target_link_libraries(external ${ZLIB_LIBRARY} lunasvg fmt ${CMAKE_DL_LIBS})
-set(EXTERNAL_LIBRARIES external PARENT_SCOPE)
+set(EXTERNAL_LIBRARIES external dumb PARENT_SCOPE)
--- a/src/CMakeLists.txt 2022-05-13 15:08:51.000000000 +0200
+++ - 2023-01-02 14:17:00.363717559 +0100
@@ -116,7 +116,6 @@
${MPG123_INCLUDE_DIR}
.
..
- ../thirdparty/dumb
../thirdparty/glad/include
./Application
)