summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-03-27 08:31:02 +0000
committernia <nia@pkgsrc.org>2020-03-27 08:31:02 +0000
commitd35aa25acc46988abab084a7073c2be9acdc1903 (patch)
tree1408843cc121fe77af47c131e9131fa518a06ece /games
parentf6d74983321bfba95e2cea041dd14f27fb90719f (diff)
downloadpkgsrc-d35aa25acc46988abab084a7073c2be9acdc1903.tar.gz
warzone2100: Don't attempt to statically link SDL2
Diffstat (limited to 'games')
-rw-r--r--games/warzone2100/distinfo3
-rw-r--r--games/warzone2100/patches/patch-lib_sdl_CMakeLists.txt17
2 files changed, 19 insertions, 1 deletions
diff --git a/games/warzone2100/distinfo b/games/warzone2100/distinfo
index 2d6e8ac4ff7..eb067bcbe6a 100644
--- a/games/warzone2100/distinfo
+++ b/games/warzone2100/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2020/01/27 19:35:54 triaxx Exp $
+$NetBSD: distinfo,v 1.11 2020/03/27 08:31:02 nia Exp $
SHA1 (warzone2100-3.3.0_src.tar.xz) = 781ee178a9e2cf5204a4cb8fc29a5226f64d8229
RMD160 (warzone2100-3.3.0_src.tar.xz) = 28fa1a10af8df3f029ea8026cb76d59c883ffa1b
@@ -8,3 +8,4 @@ SHA1 (patch-build__tools_autorevision) = eabdeddd5e920467f7f05a0dbf1b4689da44477
SHA1 (patch-lib_exceptionhandler_exceptionhandler.cpp) = 4271efc90e2972ee196d6ced5ec254fe708c42f0
SHA1 (patch-lib_framework_string__ext.h) = 93a0e2e4acf298be49d5853f9084df187240309b
SHA1 (patch-lib_netplay_netplay.cpp) = 9152f24677a900e68e034c45154ad44e05a79bc1
+SHA1 (patch-lib_sdl_CMakeLists.txt) = 2034d69568dcb90784b9a26e920d632182dee794
diff --git a/games/warzone2100/patches/patch-lib_sdl_CMakeLists.txt b/games/warzone2100/patches/patch-lib_sdl_CMakeLists.txt
new file mode 100644
index 00000000000..158705946c1
--- /dev/null
+++ b/games/warzone2100/patches/patch-lib_sdl_CMakeLists.txt
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_sdl_CMakeLists.txt,v 1.1 2020/03/27 08:31:02 nia Exp $
+
+Don't statically link SDL2.
+
+--- lib/sdl/CMakeLists.txt.orig 2019-08-31 18:17:22.000000000 +0000
++++ lib/sdl/CMakeLists.txt
+@@ -19,9 +19,7 @@ set(_sdl2_main_library)
+ # - and is required to properly link with a static SDL2 library (at least on Windows and macOS)
+ find_package(SDL2 ${SDL2_MIN_VERSION} CONFIG QUIET)
+ if(SDL2_FOUND)
+- if (TARGET SDL2::SDL2-static)
+- set(_sdl2_library SDL2::SDL2-static)
+- elseif(TARGET SDL2::SDL2)
++ if(TARGET SDL2::SDL2)
+ set(_sdl2_library SDL2::SDL2)
+ else()
+ # Fall-back to FindSDL2 module (below)