pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/SDL2 SDL2: updated to 2.0.9



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9e9b81c24665
branches:  trunk
changeset: 324895:9e9b81c24665
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Nov 01 21:08:28 2018 +0000

description:
SDL2: updated to 2.0.9

2.0.9:

General:
* Added a new sensor API, initialized by passing SDL_INIT_SENSOR to SDL_Init(), and defined in SDL_sensor.h
* Added an event SDL_SENSORUPDATE which is sent when a sensor is updated
* Added SDL_GetDisplayOrientation() to return the current display orientation
* Added an event SDL_DISPLAYEVENT which is sent when the display orientation changes
* Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms. (Thanks to Valve for contributing the PS4 and Nintendo Switch 
Pro controller support)
* Added support for many other popular game controllers
* Added SDL_JoystickGetDevicePlayerIndex(), SDL_JoystickGetPlayerIndex(), and SDL_GameControllerGetPlayerIndex() to get the player index for a controller. For XInput controllers this returns the 
XInput index for the controller.
* Added SDL_GameControllerRumble() and SDL_JoystickRumble() which allow simple rumble without using the haptics API
* Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
* Added the hint SDL_HINT_MOUSE_DOUBLE_CLICK_TIME to control the mouse double-click time
* Added the hint SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to control the mouse double-click radius, in pixels
* Added SDL_HasColorKey() to return whether a surface has a colorkey active
* Added SDL_HasAVX512F() to return whether the CPU has AVX-512F features
* Added SDL_IsTablet() to return whether the application is running on a tablet
* Added SDL_THREAD_PRIORITY_TIME_CRITICAL for threads that must run at the highest priority

Mac OS X:
* Fixed black screen at start on Mac OS X Mojave

Linux:
* Added SDL_LinuxSetThreadPriority() to allow adjusting the thread priority of native threads using RealtimeKit if available.

iOS:
* Fixed Asian IME input

Android:
* Updated required Android SDK to API 26, to match Google's new App Store requirements
* Added support for wired USB Xbox, PS4, and Nintendo Switch Pro controllers
* Added support for relative mouse mode on Android 7.0 and newer (except where it's broken, on Chromebooks and when in DeX mode with Samsung Experience 9.0)
* Added support for custom mouse cursors on Android 7.0 and newer
* Added the hint SDL_HINT_ANDROID_TRAP_BACK_BUTTON to control whether the back button will back out of the app (the default) or be passed to the application as SDL_SCANCODE_AC_BACK
* Added SDL_AndroidBackButton() to trigger the Android system back button behavior when handling the back button in the application
* Added SDL_IsChromebook() to return whether the app is running in the Chromebook Android runtime
* Added SDL_IsDeXMode() to return whether the app is running while docked in the Samsung DeX

diffstat:

 devel/SDL2/Makefile      |   5 ++---
 devel/SDL2/PLIST         |   3 ++-
 devel/SDL2/buildlink3.mk |  31 +++++++++++++++++++------------
 devel/SDL2/distinfo      |  10 +++++-----
 devel/SDL2/options.mk    |   7 ++++---
 5 files changed, 32 insertions(+), 24 deletions(-)

diffs (124 lines):

diff -r 96c4f0ebbe8f -r 9e9b81c24665 devel/SDL2/Makefile
--- a/devel/SDL2/Makefile       Thu Nov 01 18:12:49 2018 +0000
+++ b/devel/SDL2/Makefile       Thu Nov 01 21:08:28 2018 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2018/07/06 15:06:45 ryoon Exp $
+# $NetBSD: Makefile,v 1.31 2018/11/01 21:08:28 adam Exp $
 
-DISTNAME=      SDL2-2.0.8
-PKGREVISION=   1
+DISTNAME=      SDL2-2.0.9
 CATEGORIES=    devel
 MASTER_SITES=  http://www.libsdl.org/release/
 
diff -r 96c4f0ebbe8f -r 9e9b81c24665 devel/SDL2/PLIST
--- a/devel/SDL2/PLIST  Thu Nov 01 18:12:49 2018 +0000
+++ b/devel/SDL2/PLIST  Thu Nov 01 21:08:28 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2017/10/23 20:48:43 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2018/11/01 21:08:28 adam Exp $
 bin/sdl2-config
 include/SDL2/SDL.h
 include/SDL2/SDL_assert.h
@@ -45,6 +45,7 @@
 include/SDL2/SDL_revision.h
 include/SDL2/SDL_rwops.h
 include/SDL2/SDL_scancode.h
+include/SDL2/SDL_sensor.h
 include/SDL2/SDL_shape.h
 include/SDL2/SDL_stdinc.h
 include/SDL2/SDL_surface.h
diff -r 96c4f0ebbe8f -r 9e9b81c24665 devel/SDL2/buildlink3.mk
--- a/devel/SDL2/buildlink3.mk  Thu Nov 01 18:12:49 2018 +0000
+++ b/devel/SDL2/buildlink3.mk  Thu Nov 01 21:08:28 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.5 2018/03/07 11:57:29 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2018/11/01 21:08:28 adam Exp $
 
 BUILDLINK_TREE+=       SDL2
 
@@ -19,22 +19,29 @@
 
 .include "../../converters/libiconv/buildlink3.mk"
 
-.if !empty(PKG_BUILD_OPTIONS.SDL2:Mopengl) && empty(OPSYS:MDarwin)
+.if !empty(PKG_BUILD_OPTIONS.SDL2:Mopengl) && ${OPSYS} != "Darwin"
 .include "../../graphics/MesaLib/buildlink3.mk"
 .endif
 
-.if !empty(PKG_BUILD_OPTIONS.SDL2:Mx11)
-.include "../../x11/xorgproto/buildlink3.mk"
-.include "../../x11/libX11/buildlink3.mk"
-.endif
-
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
-.endif # SDL2_BUILDLINK3_MK
-
 .if !empty(PKG_BUILD_OPTIONS.SDL2:Mrpi)
 .include "../../misc/raspberrypi-userland/buildlink3.mk"
 .endif
 
+.if !empty(PKG_BUILD_OPTIONS.SDL2:Moss)
+.include "../../mk/oss.buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.SDL2:Mx11)
+.include "../../x11/libXcursor/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXScrnSaver/buildlink3.mk"
+.endif
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+.endif # SDL2_BUILDLINK3_MK
+
 BUILDLINK_TREE+=       -SDL2
diff -r 96c4f0ebbe8f -r 9e9b81c24665 devel/SDL2/distinfo
--- a/devel/SDL2/distinfo       Thu Nov 01 18:12:49 2018 +0000
+++ b/devel/SDL2/distinfo       Thu Nov 01 21:08:28 2018 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.29 2018/03/02 07:49:58 adam Exp $
+$NetBSD: distinfo,v 1.30 2018/11/01 21:08:28 adam Exp $
 
-SHA1 (SDL2-2.0.8.tar.gz) = 959ec6ded277821995d2e3cafd973f6ab9f48ab7
-RMD160 (SDL2-2.0.8.tar.gz) = 131abebf4e693df09b7ee09cba89809b539f7fe5
-SHA512 (SDL2-2.0.8.tar.gz) = 673c6058b8692a36b4a3594456b10ef6051efe79e4fb644421fc5c76b11fd68b895840a2c8b72413418c378733e2993d33f19767d0d7ed101eda6310bd70c869
-Size (SDL2-2.0.8.tar.gz) = 4909017 bytes
+SHA1 (SDL2-2.0.9.tar.gz) = 4354c6baad9a48486182656a7506abfb63e9bff5
+RMD160 (SDL2-2.0.9.tar.gz) = db2efabf55af41cddf015db0b5213b11ef22b9d0
+SHA512 (SDL2-2.0.9.tar.gz) = a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10
+Size (SDL2-2.0.9.tar.gz) = 5246942 bytes
 SHA1 (patch-configure) = 5637a66f8890586026034f5324829e61c94ac5be
 SHA1 (patch-src_audio_netbsd_SDL__netbsdaudio.c) = 7a1f32ea7029f8dc99aecfaead7c68f2fd6cb230
 SHA1 (patch-src_joystick_bsd_SDL__sysjoystick.c) = 152b5df76a91c7e7acde126b1464fdd464cf1ba2
diff -r 96c4f0ebbe8f -r 9e9b81c24665 devel/SDL2/options.mk
--- a/devel/SDL2/options.mk     Thu Nov 01 18:12:49 2018 +0000
+++ b/devel/SDL2/options.mk     Thu Nov 01 21:08:28 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2017/09/26 13:10:56 adam Exp $
+# $NetBSD: options.mk,v 1.7 2018/11/01 21:08:28 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.SDL2
 PKG_OPTIONS_REQUIRED_GROUPS=   gl
@@ -56,13 +56,14 @@
 .endif
 
 .if !empty(PKG_OPTIONS:Mx11)
+.include "../../x11/libXScrnSaver/buildlink3.mk"
 .include "../../x11/libXcursor/buildlink3.mk"
 .include "../../x11/libXi/buildlink3.mk"
 .include "../../x11/libXinerama/buildlink3.mk"
 .include "../../x11/libXrandr/buildlink3.mk"
-.include "../../x11/libXScrnSaver/buildlink3.mk"
 .else
-CONFIGURE_ARGS+=       --disable-video-x11 --disable-x11-shared
+CONFIGURE_ARGS+=       --disable-video-x11
+CONFIGURE_ARGS+=       --disable-x11-shared
 .endif
 
 .if !empty(PKG_OPTIONS:Mrpi)



Home | Main Index | Thread Index | Old Index