summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-05-22 23:18:09 +0000
committeradam <adam@pkgsrc.org>2020-05-22 23:18:09 +0000
commit06917d078d8e1a994851fe7e799a10e519af8011 (patch)
tree9b6381c6544abccb5f1e237187aca6646bf007be /devel
parent4910ed14d41d09bd82398f6983bdd03665728d89 (diff)
downloadpkgsrc-06917d078d8e1a994851fe7e799a10e519af8011.tar.gz
SDL2: use platform-dependend shared library suffix in cmake config files (fixes builds on Darwin)
Diffstat (limited to 'devel')
-rw-r--r--devel/SDL2/distinfo3
-rw-r--r--devel/SDL2/patches/patch-sdl2-config.cmake.in15
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/SDL2/distinfo b/devel/SDL2/distinfo
index d5026cf5023..15e342e53e9 100644
--- a/devel/SDL2/distinfo
+++ b/devel/SDL2/distinfo
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.42 2020/04/16 04:16:13 nia Exp $
+$NetBSD: distinfo,v 1.43 2020/05/22 23:18:09 adam Exp $
SHA1 (SDL2-2.0.12.tar.gz) = e8ba91bf5eb438dbcf1fedf0530a1bcbe30d3bb6
RMD160 (SDL2-2.0.12.tar.gz) = 0f2c979da6151b622a6445e7fc8d4e3ea8987105
SHA512 (SDL2-2.0.12.tar.gz) = 3f1f04af0f3d9dda9c84a2e9274ae8d83ea0da3fc367970a820036cc4dc1dbf990cfc37e4975ae05f0b45a4ffa739c6c19e470c00bf3f2bce9b8b63717b8b317
Size (SDL2-2.0.12.tar.gz) = 5720162 bytes
SHA1 (patch-configure) = 3038dc62450f6b64197ee4aa42d8ec9518a608bd
+SHA1 (patch-sdl2-config.cmake.in) = c0f07237a70614d85708e8ca368797894b45ce36
SHA1 (patch-src_audio_netbsd_SDL__netbsdaudio.c) = 4daf296544ff1df802f835be0370f80d62fac716
SHA1 (patch-src_video_wayland_SDL__waylandevents.c) = 57e42371e072048e5b377aeb58bb1ffce72784f0
SHA1 (patch-src_video_wayland_SDL__waylandevents__c.h) = 3a723a81f05052bd50e8cb1592ba747b5f59ea1a
diff --git a/devel/SDL2/patches/patch-sdl2-config.cmake.in b/devel/SDL2/patches/patch-sdl2-config.cmake.in
new file mode 100644
index 00000000000..413dcb924b4
--- /dev/null
+++ b/devel/SDL2/patches/patch-sdl2-config.cmake.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-sdl2-config.cmake.in,v 1.1 2020/05/22 23:18:09 adam Exp $
+
+Use correct shared library suffix.
+
+--- sdl2-config.cmake.in.orig 2020-05-22 23:10:38.000000000 +0000
++++ sdl2-config.cmake.in
+@@ -22,7 +22,7 @@ if(NOT TARGET SDL2::SDL2)
+ set_target_properties(SDL2::SDL2 PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
+- IMPORTED_LOCATION "@libdir@/libSDL2.so"
++ IMPORTED_LOCATION "@libdir@/libSDL2${CMAKE_SHARED_LIBRARY_SUFFIX}"
+ INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS}")
+
+ add_library(SDL2::SDL2-static STATIC IMPORTED)