pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/SDL2 SDL2: update to 2.26.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d33c344c472
branches:  trunk
changeset: 388691:2d33c344c472
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Nov 25 09:51:02 2022 +0000

description:
SDL2: update to 2.26.0.

---------------------------------------------------------------------------
2.26.0:
---------------------------------------------------------------------------

General:
* Updated OpenGL headers to the latest API from The Khronos Group Inc.
* Added SDL_GetWindowSizeInPixels() to get the window size in pixels, which may differ from the window coordinate size for windows with high-DPI support
* Added simulated vsync synchronization for the software renderer
* Added the mouse position to SDL_MouseWheelEvent
* Added SDL_ResetHints() to reset all hints to their default values
* Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 to control whether the HIDAPI driver for XBox 360 controllers should be used
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control whether the HIDAPI driver for XBox 360 wireless controllers should be used
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE to control whether the HIDAPI driver for XBox One controllers should be used
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the XBox One guide button LED
* Added support for PS3 controllers to the HIDAPI driver, enabled by default on macOS, controlled by the SDL_HINT_JOYSTICK_HIDAPI_PS3 hint
* Added support for Nintendo Wii controllers to the HIDAPI driver, not enabled by default, controlled by the SDL_HINT_JOYSTICK_HIDAPI_WII hint
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS to control whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver
* Added access to the individual left and right gyro sensors of the combined Joy-Cons controller
* Added a microsecond timestamp to SDL_SensorEvent and SDL_ControllerSensorEvent, when the hardware provides that information
* Added SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp() to retrieve the last sensor data with the associated microsecond timestamp
* Added the hint SDL_HINT_HIDAPI_IGNORE_DEVICES to have the SDL HID API ignore specific devices
* SDL_GetRevision() now includes more information about the SDL build, including the git commit hash if available

Windows:
* Added the hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether the system mouse acceleration curve is used for relative mouse motion

macOS:
* Implemented vsync synchronization on macOS 12

Linux:
* Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard
* Added the hint SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP to control whether mouse pointer warp emulation is enabled under Wayland

Android:
* Enabled IME soft keyboard input
* Added version checking to make sure the SDL Java and C code are compatible

diffstat:

 devel/SDL2/Makefile                   |    5 +-
 devel/SDL2/distinfo                   |   10 +-
 devel/SDL2/patches/patch-configure    |  134 ----------------------------------
 devel/SDL2/patches/patch-configure.ac |   38 ---------
 4 files changed, 6 insertions(+), 181 deletions(-)

diffs (208 lines):

diff -r 6e1537043d0d -r 2d33c344c472 devel/SDL2/Makefile
--- a/devel/SDL2/Makefile       Fri Nov 25 09:46:59 2022 +0000
+++ b/devel/SDL2/Makefile       Fri Nov 25 09:51:02 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.70 2022/11/06 16:54:01 triaxx Exp $
+# $NetBSD: Makefile,v 1.71 2022/11/25 09:51:02 wiz Exp $
 
-DISTNAME=      SDL2-2.24.1
-PKGREVISION=   1
+DISTNAME=      SDL2-2.26.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libsdl-org/}
 GITHUB_PROJECT=        SDL
diff -r 6e1537043d0d -r 2d33c344c472 devel/SDL2/distinfo
--- a/devel/SDL2/distinfo       Fri Nov 25 09:46:59 2022 +0000
+++ b/devel/SDL2/distinfo       Fri Nov 25 09:51:02 2022 +0000
@@ -1,7 +1,5 @@
-$NetBSD: distinfo,v 1.54 2022/10/22 16:30:49 nia Exp $
+$NetBSD: distinfo,v 1.55 2022/11/25 09:51:02 wiz Exp $
 
-BLAKE2s (SDL2-2.24.1.tar.gz) = 52bdf935c23a0ea10886033778ef5f79e79b03e13304daadd1d8e620dc986729
-SHA512 (SDL2-2.24.1.tar.gz) = 2af719bdbdd923ddd3845fe7fcaa9dd9e2b6db7bb47d59dbcd726e97291b1c232c8a2a95dbee9033142f00d53c7cf23248067846cfe5441b1a3bc7bf9eb93b9e
-Size (SDL2-2.24.1.tar.gz) = 7523849 bytes
-SHA1 (patch-configure) = bcb8830c4fa46d2bb597ba6c769c4671b0aa35f2
-SHA1 (patch-configure.ac) = f01a715d7854b36d430fb35e16bf11dfa4eaaccc
+BLAKE2s (SDL2-2.26.0.tar.gz) = 98f0139c837b38aec9a6d34b4767b9277a1d3937edeb1a95ba39ff5b72ebcd90
+SHA512 (SDL2-2.26.0.tar.gz) = b4379140399e2248b28c4fe36ba6bb142cd047014c3cfc6fd2c0fee7110ad28af6553f24ca4ccf4996165940de127aafe8d744b09bea9d5684ce8244697996bf
+Size (SDL2-2.26.0.tar.gz) = 8085459 bytes
diff -r 6e1537043d0d -r 2d33c344c472 devel/SDL2/patches/patch-configure
--- a/devel/SDL2/patches/patch-configure        Fri Nov 25 09:46:59 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-$NetBSD: patch-configure,v 1.11 2022/10/22 16:30:49 nia Exp $
-
-* Remove non-portable sort usage.
-* Found iconv function in libc. Fix Libs.private=-liconv in sdl2.pc.
-
---- configure.orig     2022-10-04 23:48:35.000000000 +0000
-+++ configure
-@@ -17902,59 +17902,6 @@ if  test -z "$AWK" ; then
-     as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
- fi
- 
--for ac_prog in gsort sort
--do
--  # Extract the first word of "$ac_prog", so it can be a program name with args.
--set dummy $ac_prog; ac_word=$2
--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
--printf %s "checking for $ac_word... " >&6; }
--if test ${ac_cv_prog_SORT+y}
--then :
--  printf %s "(cached) " >&6
--else $as_nop
--  if test -n "$SORT"; then
--  ac_cv_prog_SORT="$SORT" # Let the user override the test.
--else
--as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
--for as_dir in $PATH
--do
--  IFS=$as_save_IFS
--  case $as_dir in #(((
--    '') as_dir=./ ;;
--    */) ;;
--    *) as_dir=$as_dir/ ;;
--  esac
--    for ac_exec_ext in '' $ac_executable_extensions; do
--  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
--    ac_cv_prog_SORT="$ac_prog"
--    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
--    break 2
--  fi
--done
--  done
--IFS=$as_save_IFS
--
--fi
--fi
--SORT=$ac_cv_prog_SORT
--if test -n "$SORT"; then
--  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
--printf "%s\n" "$SORT" >&6; }
--else
--  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
--printf "%s\n" "no" >&6; }
--fi
--
--
--  test -n "$SORT" && break
--done
--test -n "$SORT" || SORT="false"
--
--if ! "$SORT" -V </dev/null >/dev/null
--then :
--  as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
--fi
--
- # Check whether --enable-largefile was given.
- if test ${enable_largefile+y}
- then :
-@@ -18284,7 +18231,7 @@ find_lib()
-         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
-     fi
-     for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
--        lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
-+        lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
-         if test x$lib != x; then
-             echo $lib
-             return
-@@ -19883,7 +19830,48 @@ then :
- fi
- 
- 
--    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
-+    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -lc" >&5
-+printf %s "checking for iconv_open in -lc... " >&6; }
-+if test ${ac_cv_lib_c_iconv_open+y}
-+then :
-+  printf %s "(cached) " >&6
-+else $as_nop
-+  ac_check_lib_save_LIBS=$LIBS
-+LIBS="-lc  $LIBS"
-+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h.  */
-+
-+/* Override any GCC internal prototype to avoid an error.
-+   Use char because int might match the return type of a GCC
-+   builtin and then its argument prototype would still apply.  */
-+char iconv_open ();
-+int
-+main (void)
-+{
-+return iconv_open ();
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+if ac_fn_c_try_link "$LINENO"
-+then :
-+  ac_cv_lib_c_iconv_open=yes
-+else $as_nop
-+  ac_cv_lib_c_iconv_open=no
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.beam \
-+    conftest$ac_exeext conftest.$ac_ext
-+LIBS=$ac_check_lib_save_LIBS
-+fi
-+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_iconv_open" >&5
-+printf "%s\n" "$ac_cv_lib_c_iconv_open" >&6; }
-+if test "x$ac_cv_lib_c_iconv_open" = xyes
-+then :
-+  found_libc_iconv=yes
-+fi
-+
-+    if test x$found_libc_iconv != xyes; then
-+      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
- printf %s "checking for iconv_open in -liconv... " >&6; }
- if test ${ac_cv_lib_iconv_iconv_open+y}
- then :
-@@ -19923,6 +19911,7 @@ then :
-   LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
- fi
- 
-+    fi
-     ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
- if test "x$ac_cv_func_iconv" = xyes
- then :
diff -r 6e1537043d0d -r 2d33c344c472 devel/SDL2/patches/patch-configure.ac
--- a/devel/SDL2/patches/patch-configure.ac     Fri Nov 25 09:46:59 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-$NetBSD: patch-configure.ac,v 1.2 2022/10/22 16:30:49 nia Exp $
-
-* Remove non-portable sort usage.
-* Found iconv function in libc. Fix Libs.private=-liconv in sdl2.pc.
-
---- configure.ac.orig  2022-10-04 23:48:35.000000000 +0000
-+++ configure.ac
-@@ -70,9 +70,6 @@ if [ test -z "$AWK" ]; then
-     AC_MSG_ERROR([*** awk not found, aborting])
- fi
- 
--AC_CHECK_PROGS([SORT], [gsort sort], [false])
--AS_IF([! "$SORT" -V </dev/null >/dev/null], [AC_MSG_ERROR([GNU sort(1) is required])])
--
- dnl 64-bit file offsets if possible unless --disable-largefile is specified
- AC_SYS_LARGEFILE
- 
-@@ -189,7 +186,7 @@ find_lib()
-         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
-     fi
-     for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
--        lib=[`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`]
-+        lib=[`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`]
-         if test x$lib != x; then
-             echo $lib
-             return
-@@ -347,7 +344,10 @@ dnl Checks for library functions.
-     AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
-     AC_CHECK_FUNCS(acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf 
pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf)
- 
--    AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
-+    AC_CHECK_LIB(c, iconv_open, found_libc_iconv=yes)
-+    if test x$found_libc_iconv != xyes; then
-+      AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
-+    fi
-     AC_CHECK_FUNCS(iconv)
- 
-     AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE([HAVE_SA_SIGACTION], 1, [ ])], ,[#include <signal.h>])



Home | Main Index | Thread Index | Old Index