Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/SDL2 SDL2: use platform-dependend shared library...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9dd50321c451
branches:  trunk
changeset: 432522:9dd50321c451
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri May 22 23:18:09 2020 +0000

description:
SDL2: use platform-dependend shared library suffix in cmake config files (fixes builds on Darwin)

diffstat:

 devel/SDL2/distinfo                           |   3 ++-
 devel/SDL2/patches/patch-sdl2-config.cmake.in |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 1bf15ed0e271 -r 9dd50321c451 devel/SDL2/distinfo
--- a/devel/SDL2/distinfo       Fri May 22 22:28:04 2020 +0000
+++ b/devel/SDL2/distinfo       Fri May 22 23:18:09 2020 +0000
@@ -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 -r 1bf15ed0e271 -r 9dd50321c451 devel/SDL2/patches/patch-sdl2-config.cmake.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/SDL2/patches/patch-sdl2-config.cmake.in     Fri May 22 23:18:09 2020 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index