SDL2: update to 2.24.1 General Fixed shader compilation issues using the OpenGL ES2 renderer Fixed configure tests failing when using clang 15 macOS Fixed new windows setting the SDL_WINDOW_BORDERLESS flag incorrectly Fixed audio race condition on shutdown Fixed crash if there are no input devices available FreeBSD Fixed building with libusb not dynamically loaded, enabling HIDAPI supportdiff -r1.68 -r1.69 pkgsrc/devel/SDL2/Makefile
(nia)
@@ -1,42 +1,31 @@ | @@ -1,42 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.68 2022/09/11 12:51:05 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.69 2022/10/22 16:30:49 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= SDL2-2.24.0 | 3 | DISTNAME= SDL2-2.24.1 | |
4 | PKGREVISION= 2 | |||
5 | CATEGORIES= devel | 4 | CATEGORIES= devel | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=libsdl-org/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=libsdl-org/} | |
7 | GITHUB_PROJECT= SDL | 6 | GITHUB_PROJECT= SDL | |
8 | GITHUB_RELEASE= release-${PKGVERSION_NOREV} | 7 | GITHUB_RELEASE= release-${PKGVERSION_NOREV} | |
9 | 8 | |||
10 | MAINTAINER= nia@NetBSD.org | 9 | MAINTAINER= nia@NetBSD.org | |
11 | HOMEPAGE= https://www.libsdl.org/ | 10 | HOMEPAGE= https://www.libsdl.org/ | |
12 | COMMENT= Simple DirectMedia Layer - cross-platform multimedia library | 11 | COMMENT= Simple DirectMedia Layer - cross-platform multimedia library | |
13 | LICENSE= zlib | 12 | LICENSE= zlib | |
14 | 13 | |||
15 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
16 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= gmake pkg-config | 16 | USE_TOOLS+= gmake pkg-config | |
18 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
19 | 18 | |||
20 | .include "../../mk/bsd.prefs.mk" | |||
21 | .if ${OPSYS} == "NetBSD" | |||
22 | SUBST_CLASSES+= gsort | |||
23 | SUBST_STAGE.gsort= pre-configure | |||
24 | SUBST_MESSAGE.gsort= BSD sort has no -V option | |||
25 | SUBST_FILES.gsort+= configure | |||
26 | SUBST_FILES.gsort+= configure.ac | |||
27 | SUBST_SED.gsort+= -e 's,sort -V,sort,g' | |||
28 | .endif | |||
29 | ||||
30 | # Let pkgsrc handle the rpath. | 19 | # Let pkgsrc handle the rpath. | |
31 | CONFIGURE_ARGS+= --disable-rpath | 20 | CONFIGURE_ARGS+= --disable-rpath | |
32 | 21 | |||
33 | # Explicitly link against libraries. | 22 | # Explicitly link against libraries. | |
34 | CONFIGURE_ARGS+= --disable-alsa-shared | 23 | CONFIGURE_ARGS+= --disable-alsa-shared | |
35 | CONFIGURE_ARGS+= --disable-jack-shared | 24 | CONFIGURE_ARGS+= --disable-jack-shared | |
36 | CONFIGURE_ARGS+= --disable-pulseaudio-shared | 25 | CONFIGURE_ARGS+= --disable-pulseaudio-shared | |
37 | CONFIGURE_ARGS+= --disable-libsamplerate-shared | 26 | CONFIGURE_ARGS+= --disable-libsamplerate-shared | |
38 | CONFIGURE_ARGS+= --disable-wayland-shared | 27 | CONFIGURE_ARGS+= --disable-wayland-shared | |
39 | CONFIGURE_ARGS+= --disable-x11-shared | 28 | CONFIGURE_ARGS+= --disable-x11-shared | |
40 | 29 | |||
41 | # Deprecated, removed from pkgsrc. | 30 | # Deprecated, removed from pkgsrc. | |
42 | CONFIGURE_ARGS+= --disable-esd | 31 | CONFIGURE_ARGS+= --disable-esd |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.53 2022/08/24 13:09:34 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.54 2022/10/22 16:30:49 nia Exp $ | |
2 | 2 | |||
3 | BLAKE2s (SDL2-2.24.0.tar.gz) = 87aa504e5485612a5c5adedd1115ced216710258ec62122cd5f3c7539f50724d | 3 | BLAKE2s (SDL2-2.24.1.tar.gz) = 52bdf935c23a0ea10886033778ef5f79e79b03e13304daadd1d8e620dc986729 | |
4 | SHA512 (SDL2-2.24.0.tar.gz) = 5735bfc7b22f1780f80cc89f62a14ca809fe1280298d172f92dde74400db1f5378f8d3eae8834e886d3ca4f5ae6f1074d66c5c956613cf9e0cce961738514212 | 4 | SHA512 (SDL2-2.24.1.tar.gz) = 2af719bdbdd923ddd3845fe7fcaa9dd9e2b6db7bb47d59dbcd726e97291b1c232c8a2a95dbee9033142f00d53c7cf23248067846cfe5441b1a3bc7bf9eb93b9e | |
5 | Size (SDL2-2.24.0.tar.gz) = 7520541 bytes | 5 | Size (SDL2-2.24.1.tar.gz) = 7523849 bytes | |
6 | SHA1 (patch-configure) = 0eb358082bf3b61ee53c9887a6616b5f008ba8cc | 6 | SHA1 (patch-configure) = bcb8830c4fa46d2bb597ba6c769c4671b0aa35f2 | |
7 | SHA1 (patch-configure.ac) = 8681cc974c43353713c59dff85ae912910c88ae5 | 7 | SHA1 (patch-configure.ac) = f01a715d7854b36d430fb35e16bf11dfa4eaaccc |
@@ -1,20 +1,90 @@ | @@ -1,20 +1,90 @@ | |||
1 | $NetBSD: patch-configure,v 1.10 2022/08/24 13:09:34 ryoon Exp $ | 1 | $NetBSD: patch-configure,v 1.11 2022/10/22 16:30:49 nia Exp $ | |
2 | 2 | |||
3 | * Remove non-portable sort usage. | |||
3 | * Found iconv function in libc. Fix Libs.private=-liconv in sdl2.pc. | 4 | * Found iconv function in libc. Fix Libs.private=-liconv in sdl2.pc. | |
4 | 5 | |||
5 | --- configure.orig 2022-08-23 14:36:41.507122435 +0000 | 6 | --- configure.orig 2022-10-04 23:48:35.000000000 +0000 | |
6 | +++ configure | 7 | +++ configure | |
7 | @@ -20006,7 +20006,48 @@ then : | 8 | @@ -17902,59 +17902,6 @@ if test -z "$AWK" ; then | |
9 | as_fn_error $? "*** awk not found, aborting" "$LINENO" 5 | |||
10 | fi | |||
11 | ||||
12 | -for ac_prog in gsort sort | |||
13 | -do | |||
14 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |||
15 | -set dummy $ac_prog; ac_word=$2 | |||
16 | -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |||
17 | -printf %s "checking for $ac_word... " >&6; } | |||
18 | -if test ${ac_cv_prog_SORT+y} | |||
19 | -then : | |||
20 | - printf %s "(cached) " >&6 | |||
21 | -else $as_nop | |||
22 | - if test -n "$SORT"; then | |||
23 | - ac_cv_prog_SORT="$SORT" # Let the user override the test. | |||
24 | -else | |||
25 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |||
26 | -for as_dir in $PATH | |||
27 | -do | |||
28 | - IFS=$as_save_IFS | |||
29 | - case $as_dir in #((( | |||
30 | - '') as_dir=./ ;; | |||
31 | - */) ;; | |||
32 | - *) as_dir=$as_dir/ ;; | |||
33 | - esac | |||
34 | - for ac_exec_ext in '' $ac_executable_extensions; do | |||
35 | - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |||
36 | - ac_cv_prog_SORT="$ac_prog" | |||
37 | - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |||
38 | - break 2 | |||
39 | - fi | |||
40 | -done | |||
41 | - done | |||
42 | -IFS=$as_save_IFS | |||
43 | - | |||
44 | -fi | |||
45 | -fi | |||
46 | -SORT=$ac_cv_prog_SORT | |||
47 | -if test -n "$SORT"; then | |||
48 | - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 | |||
49 | -printf "%s\n" "$SORT" >&6; } | |||
50 | -else | |||
51 | - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |||
52 | -printf "%s\n" "no" >&6; } | |||
53 | -fi | |||
54 | - | |||
55 | - | |||
56 | - test -n "$SORT" && break | |||
57 | -done | |||
58 | -test -n "$SORT" || SORT="false" | |||
59 | - | |||
60 | -if ! "$SORT" -V </dev/null >/dev/null | |||
61 | -then : | |||
62 | - as_fn_error $? "GNU sort(1) is required" "$LINENO" 5 | |||
63 | -fi | |||
64 | - | |||
65 | # Check whether --enable-largefile was given. | |||
66 | if test ${enable_largefile+y} | |||
67 | then : | |||
68 | @@ -18284,7 +18231,7 @@ find_lib() | |||
69 | host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" | |||
70 | fi | |||
71 | for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do | |||
72 | - 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` | |||
73 | + 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` | |||
74 | if test x$lib != x; then | |||
75 | echo $lib | |||
76 | return | |||
77 | @@ -19883,7 +19830,48 @@ then : | |||
8 | fi | 78 | fi | |
9 | 79 | |||
10 | 80 | |||
11 | - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 | 81 | - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 | |
12 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -lc" >&5 | 82 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -lc" >&5 | |
13 | +printf %s "checking for iconv_open in -lc... " >&6; } | 83 | +printf %s "checking for iconv_open in -lc... " >&6; } | |
14 | +if test ${ac_cv_lib_c_iconv_open+y} | 84 | +if test ${ac_cv_lib_c_iconv_open+y} | |
15 | +then : | 85 | +then : | |
16 | + printf %s "(cached) " >&6 | 86 | + printf %s "(cached) " >&6 | |
17 | +else $as_nop | 87 | +else $as_nop | |
18 | + ac_check_lib_save_LIBS=$LIBS | 88 | + ac_check_lib_save_LIBS=$LIBS | |
19 | +LIBS="-lc $LIBS" | 89 | +LIBS="-lc $LIBS" | |
20 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 90 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
@@ -44,21 +114,21 @@ $NetBSD: patch-configure,v 1.10 2022/08/ | @@ -44,21 +114,21 @@ $NetBSD: patch-configure,v 1.10 2022/08/ | |||
44 | +fi | 114 | +fi | |
45 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_iconv_open" >&5 | 115 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_iconv_open" >&5 | |
46 | +printf "%s\n" "$ac_cv_lib_c_iconv_open" >&6; } | 116 | +printf "%s\n" "$ac_cv_lib_c_iconv_open" >&6; } | |
47 | +if test "x$ac_cv_lib_c_iconv_open" = xyes | 117 | +if test "x$ac_cv_lib_c_iconv_open" = xyes | |
48 | +then : | 118 | +then : | |
49 | + found_libc_iconv=yes | 119 | + found_libc_iconv=yes | |
50 | +fi | 120 | +fi | |
51 | + | 121 | + | |
52 | + if test x$found_libc_iconv != xyes; then | 122 | + if test x$found_libc_iconv != xyes; then | |
53 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 | 123 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 | |
54 | printf %s "checking for iconv_open in -liconv... " >&6; } | 124 | printf %s "checking for iconv_open in -liconv... " >&6; } | |
55 | if test ${ac_cv_lib_iconv_iconv_open+y} | 125 | if test ${ac_cv_lib_iconv_iconv_open+y} | |
56 | then : | 126 | then : | |
57 | @@ -20046,6 +20087,7 @@ then : | 127 | @@ -19923,6 +19911,7 @@ then : | |
58 | LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv" | 128 | LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv" | |
59 | fi | 129 | fi | |
60 | 130 | |||
61 | + fi | 131 | + fi | |
62 | ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" | 132 | ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" | |
63 | if test "x$ac_cv_func_iconv" = xyes | 133 | if test "x$ac_cv_func_iconv" = xyes | |
64 | then : | 134 | then : |
@@ -1,18 +1,38 @@ | @@ -1,18 +1,38 @@ | |||
1 | $NetBSD: patch-configure.ac,v 1.1 2022/08/24 13:09:34 ryoon Exp $ | 1 | $NetBSD: patch-configure.ac,v 1.2 2022/10/22 16:30:49 nia Exp $ | |
2 | 2 | |||
3 | * Remove non-portable sort usage. | |||
3 | * Found iconv function in libc. Fix Libs.private=-liconv in sdl2.pc. | 4 | * Found iconv function in libc. Fix Libs.private=-liconv in sdl2.pc. | |
4 | 5 | |||
5 | --- configure.ac.orig 2022-08-19 15:46:21.000000000 +0000 | 6 | --- configure.ac.orig 2022-10-04 23:48:35.000000000 +0000 | |
6 | +++ configure.ac | 7 | +++ configure.ac | |
7 | @@ -352,7 +352,10 @@ dnl Checks for library functions. | 8 | @@ -70,9 +70,6 @@ if [ test -z "$AWK" ]; then | |
9 | AC_MSG_ERROR([*** awk not found, aborting]) | |||
10 | fi | |||
11 | ||||
12 | -AC_CHECK_PROGS([SORT], [gsort sort], [false]) | |||
13 | -AS_IF([! "$SORT" -V </dev/null >/dev/null], [AC_MSG_ERROR([GNU sort(1) is required])]) | |||
14 | - | |||
15 | dnl 64-bit file offsets if possible unless --disable-largefile is specified | |||
16 | AC_SYS_LARGEFILE | |||
17 | ||||
18 | @@ -189,7 +186,7 @@ find_lib() | |||
19 | host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" | |||
20 | fi | |||
21 | for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do | |||
22 | - 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`] | |||
23 | + 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`] | |||
24 | if test x$lib != x; then | |||
25 | echo $lib | |||
26 | return | |||
27 | @@ -347,7 +344,10 @@ dnl Checks for library functions. | |||
8 | AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) | 28 | AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) | |
9 | 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) | 29 | 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) | |
10 | 30 | |||
11 | - AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) | 31 | - AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) | |
12 | + AC_CHECK_LIB(c, iconv_open, found_libc_iconv=yes) | 32 | + AC_CHECK_LIB(c, iconv_open, found_libc_iconv=yes) | |
13 | + if test x$found_libc_iconv != xyes; then | 33 | + if test x$found_libc_iconv != xyes; then | |
14 | + AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) | 34 | + AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) | |
15 | + fi | 35 | + fi | |
16 | AC_CHECK_FUNCS(iconv) | 36 | AC_CHECK_FUNCS(iconv) | |
17 | 37 | |||
18 | AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE([HAVE_SA_SIGACTION], 1, [ ])], ,[#include <signal.h>]) | 38 | AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE([HAVE_SA_SIGACTION], 1, [ ])], ,[#include <signal.h>]) |