diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-06-09 15:24:57 -0400 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-07-24 09:07:10 +0200 |
| commit | 06fb0e414fb08fa79030893b3b30c4e96171664e (patch) | |
| tree | eebbf72855dd0edb6a41c43ec82fac970ba3af70 | |
| parent | b96b576a7f4ffe197adc424420fdbc3669a69f93 (diff) | |
gnu: warzone2100: Unbundle libplum.
* gnu/packages/patches/warzone2100-unbundle-libs.patch: Adapt to use system libplum.
* gnu/packages/games.scm (warzone2100)[source]<snippet>: Delete
“3rdparty/libplum”.
[inputs]: Add libplum.
Change-Id: Ibe3948ffd20c3dc96bf49837c13cc0a4d67878d1
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
| -rw-r--r-- | gnu/packages/games.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/patches/warzone2100-unbundle-libs.patch | 43 |
2 files changed, 39 insertions, 6 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 46ceaaa8491..0098aac6b09 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm | |||
| @@ -7420,6 +7420,7 @@ fighting over what remains.") | |||
| 7420 | "fmt" | 7420 | "fmt" |
| 7421 | "GameNetworkingSockets" | 7421 | "GameNetworkingSockets" |
| 7422 | "inih" | 7422 | "inih" |
| 7423 | "libplum" | ||
| 7423 | "re2" | 7424 | "re2" |
| 7424 | "readerwriterqueue" | 7425 | "readerwriterqueue" |
| 7425 | "SQLiteCpp" | 7426 | "SQLiteCpp" |
| @@ -7520,6 +7521,7 @@ fighting over what remains.") | |||
| 7520 | libinih | 7521 | libinih |
| 7521 | libjpeg-turbo | 7522 | libjpeg-turbo |
| 7522 | libogg | 7523 | libogg |
| 7524 | libplum | ||
| 7523 | libpng | 7525 | libpng |
| 7524 | libsodium | 7526 | libsodium |
| 7525 | libtheora | 7527 | libtheora |
diff --git a/gnu/packages/patches/warzone2100-unbundle-libs.patch b/gnu/packages/patches/warzone2100-unbundle-libs.patch index ee2160db841..7beeadd2a37 100644 --- a/gnu/packages/patches/warzone2100-unbundle-libs.patch +++ b/gnu/packages/patches/warzone2100-unbundle-libs.patch | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | Unbundles fmt and re2 dependencies. | 1 | Unbundles fmt, re2, libplum dependencies. |
| 2 | 2 | ||
| 3 | patch by Lilah Tascheter <lilah@lunabee.space> | 3 | patch by Lilah Tascheter <lilah@lunabee.space> and bdunahu <bdunahu@operationnull.com>. |
| 4 | 4 | ||
| 5 | diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt | 5 | diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt |
| 6 | index 46c0c26e1..0afbdf480 100644 | 6 | index 46c0c26e1..04aff5355 100644 |
| 7 | --- a/3rdparty/CMakeLists.txt | 7 | --- a/3rdparty/CMakeLists.txt |
| 8 | +++ b/3rdparty/CMakeLists.txt | 8 | +++ b/3rdparty/CMakeLists.txt |
| 9 | @@ -20,13 +20,13 @@ endif() | 9 | @@ -20,13 +20,13 @@ endif() |
| @@ -49,6 +49,29 @@ index 46c0c26e1..0afbdf480 100644 | |||
| 49 | 49 | ||
| 50 | add_subdirectory(EmbeddedJSONSignature EXCLUDE_FROM_ALL) | 50 | add_subdirectory(EmbeddedJSONSignature EXCLUDE_FROM_ALL) |
| 51 | set_property(TARGET EmbeddedJSONSignature PROPERTY FOLDER "3rdparty") | 51 | set_property(TARGET EmbeddedJSONSignature PROPERTY FOLDER "3rdparty") |
| 52 | @@ -268,22 +266,6 @@ if (WZ_PROFILING_NVTX) | ||
| 53 | |||
| 54 | endif () | ||
| 55 | |||
| 56 | -set(PLUM_NO_EXAMPLE ON CACHE BOOL "Disable example build" FORCE) | ||
| 57 | -add_subdirectory(libplum EXCLUDE_FROM_ALL) | ||
| 58 | -set_target_properties(plum plum-static PROPERTIES FOLDER "3rdparty") | ||
| 59 | -if(NOT MSVC) | ||
| 60 | - set(_supported_libplum_c_compiler_flags "") | ||
| 61 | - | ||
| 62 | - # -Wshadow | ||
| 63 | - check_compiler_flags_output("-Werror -Wno-shadow -Wno-error=cpp" COMPILER_TYPE C OUTPUT_FLAGS "-Wno-shadow" OUTPUT_VARIABLE _supported_libplum_c_compiler_flags APPEND) | ||
| 64 | - | ||
| 65 | - if (NOT _supported_libplum_c_compiler_flags STREQUAL "") | ||
| 66 | - string(REPLACE " " ";" _supported_libplum_c_compiler_flags "${_supported_libplum_c_compiler_flags}") | ||
| 67 | - target_compile_options(plum PRIVATE ${_supported_libplum_c_compiler_flags}) | ||
| 68 | - target_compile_options(plum-static PRIVATE ${_supported_libplum_c_compiler_flags}) | ||
| 69 | - endif() | ||
| 70 | -endif() | ||
| 71 | - | ||
| 72 | set(EXPECTED_BUILD_TESTS OFF) | ||
| 73 | add_subdirectory(expected EXCLUDE_FROM_ALL) | ||
| 74 | # There isn't any release note or established CMake policy about this behavior, | ||
| 52 | diff --git a/lib/ivis_opengl/CMakeLists.txt b/lib/ivis_opengl/CMakeLists.txt | 75 | diff --git a/lib/ivis_opengl/CMakeLists.txt b/lib/ivis_opengl/CMakeLists.txt |
| 53 | index fd2d62a2c..72e9c7544 100644 | 76 | index fd2d62a2c..72e9c7544 100644 |
| 54 | --- a/lib/ivis_opengl/CMakeLists.txt | 77 | --- a/lib/ivis_opengl/CMakeLists.txt |
| @@ -63,15 +86,23 @@ index fd2d62a2c..72e9c7544 100644 | |||
| 63 | # We should be using the Emscripten port linker flags for FreeType & Harfbuzz | 86 | # We should be using the Emscripten port linker flags for FreeType & Harfbuzz |
| 64 | else() | 87 | else() |
| 65 | diff --git a/lib/netplay/CMakeLists.txt b/lib/netplay/CMakeLists.txt | 88 | diff --git a/lib/netplay/CMakeLists.txt b/lib/netplay/CMakeLists.txt |
| 66 | index 511ac7b89..9379143a3 100644 | 89 | index 511ac7b89..7b56e1b9d 100644 |
| 67 | --- a/lib/netplay/CMakeLists.txt | 90 | --- a/lib/netplay/CMakeLists.txt |
| 68 | +++ b/lib/netplay/CMakeLists.txt | 91 | +++ b/lib/netplay/CMakeLists.txt |
| 69 | @@ -113,7 +113,7 @@ set_property(TARGET netplay PROPERTY FOLDER "lib") | 92 | @@ -84,6 +84,7 @@ if(MSVC AND CMAKE_VERSION VERSION_GREATER 3.7) |
| 93 | source_group(TREE "${CMAKE_CURRENT_LIST_DIR}" PREFIX "Headers" FILES ${HEADERS}) | ||
| 94 | endif() | ||
| 95 | |||
| 96 | +find_package (LibPlum REQUIRED) | ||
| 97 | find_package (Threads REQUIRED) | ||
| 98 | find_package (ZLIB REQUIRED) | ||
| 99 | |||
| 100 | @@ -113,7 +114,7 @@ set_property(TARGET netplay PROPERTY FOLDER "lib") | ||
| 70 | include(WZTargetConfiguration) | 101 | include(WZTargetConfiguration) |
| 71 | WZ_TARGET_CONFIGURATION(netplay) | 102 | WZ_TARGET_CONFIGURATION(netplay) |
| 72 | target_link_libraries(netplay | 103 | target_link_libraries(netplay |
| 73 | - PRIVATE framework re2::re2 nlohmann_json plum-static Threads::Threads ZLIB::ZLIB fmt::fmt | 104 | - PRIVATE framework re2::re2 nlohmann_json plum-static Threads::Threads ZLIB::ZLIB fmt::fmt |
| 74 | + PRIVATE framework re2 nlohmann_json plum-static Threads::Threads ZLIB::ZLIB fmt | 105 | + PRIVATE framework re2 nlohmann_json plum Threads::Threads ZLIB::ZLIB fmt |
| 75 | PUBLIC tl::expected) | 106 | PUBLIC tl::expected) |
| 76 | 107 | ||
| 77 | if(WZ_USE_IMPORTED_MINIUPNPC) | 108 | if(WZ_USE_IMPORTED_MINIUPNPC) |
