guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 996434d0979eefddb59c1d9ca7945cbd7d6210de
Author: bdunahu <[email protected]>
AuthorDate: Tue Jun 9 18:01:44 2026 -0400
gnu: warzone2100: Unbundle launchinfo.
* gnu/packages/patches/warzone2100-unbundle-launchinfo.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/games.scm (warzone2100)[source]<patches>: Apply it.
<snippet> Delete “3rdparty/launchinfo”.
[inputs]: Add launchinfo.
Change-Id: Ibe3948ffd20c3dc96bf49837c13cc0a4d67878d1
Signed-off-by: Liliana Marie Prikler <[email protected]>
---
gnu/local.mk | 1 +
gnu/packages/games.scm | 3 +++
.../patches/warzone2100-unbundle-launchinfo.patch | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 090e426b24..cc581b5a42 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2650,6 +2650,7 @@ dist_patch_DATA =
\
%D%/packages/patches/warsow-qfusion-fix-bool-return-type.patch \
%D%/packages/patches/warzone2100-unbundle-basis-universal.patch \
%D%/packages/patches/warzone2100-unbundle-embedded-json-signature.patch
\
+ %D%/packages/patches/warzone2100-unbundle-launchinfo.patch \
%D%/packages/patches/warzone2100-unbundle-libs.patch \
%D%/packages/patches/warzone2100-unbundle-quickjs-wz.patch \
%D%/packages/patches/warzone2100-unbundle-sqlitecpp.patch \
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4d94bf9c4a..2d3da19722 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -7421,6 +7421,7 @@ fighting over what remains.")
"fmt"
"GameNetworkingSockets"
"inih"
+ "launchinfo"
"libplum"
"quickjs-wz"
"re2"
@@ -7436,6 +7437,7 @@ fighting over what remains.")
"warzone2100-unbundle-embedded-json-signature.patch"
"warzone2100-unbundle-libs.patch"
"warzone2100-unbundle-inih.patch"
+ "warzone2100-unbundle-launchinfo.patch"
"warzone2100-unbundle-quickjs-wz.patch"
"warzone2100-unbundle-sqlitecpp.patch"
"warzone2100-unbundle-utfcpp.patch"))
@@ -7521,6 +7523,7 @@ fighting over what remains.")
fribidi
gnutls
harfbuzz
+ launchinfo
libexpected
libinih
libjpeg-turbo
diff --git a/gnu/packages/patches/warzone2100-unbundle-launchinfo.patch
b/gnu/packages/patches/warzone2100-unbundle-launchinfo.patch
new file mode 100644
index 0000000000..1c97b506a6
--- /dev/null
+++ b/gnu/packages/patches/warzone2100-unbundle-launchinfo.patch
@@ -0,0 +1,20 @@
+diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
+index 46c0c26e1..dc7a79e0d 100644
+--- a/3rdparty/CMakeLists.txt
++++ b/3rdparty/CMakeLists.txt
+@@ -17,8 +17,13 @@ if(NOT MSVC)
+ endif()
+ endif()
+
+-add_subdirectory(launchinfo EXCLUDE_FROM_ALL)
+-set_property(TARGET launchinfo PROPERTY FOLDER "3rdparty")
++find_path(LI_INC NAMES LaunchInfo.h REQUIRED)
++find_library(LI_LIB NAMES launchinfo REQUIRED)
++add_library(launchinfo UNKNOWN IMPORTED)
++set_target_properties(launchinfo PROPERTIES
++ IMPORTED_LOCATION "${LI_LIB}"
++ INTERFACE_INCLUDE_DIRECTORIES "${LI_INC}"
++)
+
+ SET(FMT_INSTALL OFF CACHE BOOL "Generate the install target" FORCE)
+ SET(FMT_SYSTEM_HEADERS ON CACHE BOOL "Expose headers with marking them as
system." FORCE)