pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/SDL2 Changes 2.0.1:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c7df80dbac8
branches:  trunk
changeset: 626150:9c7df80dbac8
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Nov 02 20:20:07 2013 +0000

description:
Changes 2.0.1:

General:
* Added an API to get common filesystem paths in SDL_filesystem.h:
    SDL_GetBasePath(), SDL_GetPrefPath()
* Added an API to do optimized YV12 and IYUV texture updates:
    SDL_UpdateYUVTexture()
* Added an API to get the amount of RAM on the system:
    SDL_GetSystemRAM()
* Added a macro to perform timestamp comparisons with SDL_GetTicks():
    SDL_TICKS_PASSED()
* Dramatically improved OpenGL ES 2.0 rendering performance
* Added OpenGL attribute SDL_GL_FRAMEBUFFER_SRGB_CAPABLE

Windows:
* Created a static library configuration for the Visual Studio 2010 project
* Added a hint to create the Direct3D device with support for multi-threading:
    SDL_HINT_RENDER_DIRECT3D_THREADSAFE
* Added a function to get the D3D9 adapter index for a display:
    SDL_Direct3D9GetAdapterIndex()
* Added a function to get the D3D9 device for a D3D9 renderer:
    SDL_RenderGetD3D9Device()
* Fixed building SDL with the mingw32 toolchain (mingw-w64 is preferred)
* Fixed crash when using two XInput controllers at the same time
* Fixed detecting a mixture of XInput and DirectInput controllers
* Fixed clearing a D3D render target larger than the window
* Improved support for format specifiers in SDL_snprintf()

Mac OS X:
* Added support for retina displays:
  Create your window with the SDL_WINDOW_ALLOW_HIGHDPI flag, and then use SDL_GL_GetDrawableSize() to find the actual drawable size. You are responsible for scaling mouse and drawing coordinates 
appropriately.
* Fixed mouse warping in fullscreen mode
* Right mouse click is emulated by holding the Ctrl key while left clicking

Linux:
* Fixed float audio support with the PulseAudio driver
* Fixed missing line endpoints in the OpenGL renderer on some drivers
* X11 symbols are no longer defined to avoid collisions when linking statically

iOS:
* Fixed status bar visibility on iOS 7
* Flipped the accelerometer Y axis to match expected values

Android:
IMPORTANT: You MUST get the updated SDLActivity.java to match C code
* Moved EGL initialization to native code
* Fixed the accelerometer axis rotation relative to the device rotation
* Fixed race conditions when handling the EGL context on pause/resume
* Touch devices are available for enumeration immediately after init

Raspberry Pi:
* Added support for the Raspberry Pi, see README-raspberrypi.txt for details

diffstat:

 devel/SDL2/Makefile                                |   4 ++--
 devel/SDL2/PLIST                                   |   7 ++++---
 devel/SDL2/distinfo                                |  11 ++++++-----
 devel/SDL2/patches/patch-CMakeLists.txt            |   4 ++--
 devel/SDL2/patches/patch-src_cpuinfo_SDL_cpuinfo.c |  15 +++++++++++++++
 5 files changed, 29 insertions(+), 12 deletions(-)

diffs (93 lines):

diff -r f8b0bd15b3d5 -r 9c7df80dbac8 devel/SDL2/Makefile
--- a/devel/SDL2/Makefile       Sat Nov 02 18:58:27 2013 +0000
+++ b/devel/SDL2/Makefile       Sat Nov 02 20:20:07 2013 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2013/08/15 10:26:16 adam Exp $
+# $NetBSD: Makefile,v 1.2 2013/11/02 20:20:07 adam Exp $
 
-DISTNAME=      SDL2-2.0.0
+DISTNAME=      SDL2-2.0.1
 CATEGORIES=    devel
 MASTER_SITES=  http://www.libsdl.org/release/
 
diff -r f8b0bd15b3d5 -r 9c7df80dbac8 devel/SDL2/PLIST
--- a/devel/SDL2/PLIST  Sat Nov 02 18:58:27 2013 +0000
+++ b/devel/SDL2/PLIST  Sat Nov 02 20:20:07 2013 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2013/08/15 10:26:16 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2013/11/02 20:20:07 adam Exp $
 bin/sdl2-config
 include/SDL2/SDL.h
 include/SDL2/SDL_assert.h
@@ -21,6 +21,7 @@
 include/SDL2/SDL_endian.h
 include/SDL2/SDL_error.h
 include/SDL2/SDL_events.h
+include/SDL2/SDL_filesystem.h
 include/SDL2/SDL_gamecontroller.h
 include/SDL2/SDL_gesture.h
 include/SDL2/SDL_haptic.h
@@ -73,8 +74,8 @@
 include/SDL2/begin_code.h
 include/SDL2/close_code.h
 lib/libSDL2-2.0.so
-lib/libSDL2-2.0.so.0
-lib/libSDL2-2.0.so.0.0.0
+lib/libSDL2-2.0.so.1
+lib/libSDL2-2.0.so.1.0.1
 lib/libSDL2.a
 lib/libSDL2.so
 lib/libSDL2main.a
diff -r f8b0bd15b3d5 -r 9c7df80dbac8 devel/SDL2/distinfo
--- a/devel/SDL2/distinfo       Sat Nov 02 18:58:27 2013 +0000
+++ b/devel/SDL2/distinfo       Sat Nov 02 20:20:07 2013 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2013/08/15 10:26:16 adam Exp $
+$NetBSD: distinfo,v 1.2 2013/11/02 20:20:07 adam Exp $
 
-SHA1 (SDL2-2.0.0.tar.gz) = a907eb5203abad6649c1eae0120d96c0a1931350
-RMD160 (SDL2-2.0.0.tar.gz) = 3e29daa152eae2c1a473b8dd413e1b07ce35cd70
-Size (SDL2-2.0.0.tar.gz) = 3623960 bytes
-SHA1 (patch-CMakeLists.txt) = a82312d4063fd57af66bbc7600d1e84573bf5c4d
+SHA1 (SDL2-2.0.1.tar.gz) = e40051311b648e4e60ed1683f62a948d93a0a49f
+RMD160 (SDL2-2.0.1.tar.gz) = 35c3219f3dd38b7a742563689c574037824d6908
+Size (SDL2-2.0.1.tar.gz) = 3660224 bytes
+SHA1 (patch-CMakeLists.txt) = 7809461b484953351e4bf0e4cbbf4622b18ca583
+SHA1 (patch-src_cpuinfo_SDL_cpuinfo.c) = c39dc0286b323f980c9b9a2889223f5312deb3ce
diff -r f8b0bd15b3d5 -r 9c7df80dbac8 devel/SDL2/patches/patch-CMakeLists.txt
--- a/devel/SDL2/patches/patch-CMakeLists.txt   Sat Nov 02 18:58:27 2013 +0000
+++ b/devel/SDL2/patches/patch-CMakeLists.txt   Sat Nov 02 20:20:07 2013 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2013/08/15 10:26:16 adam Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2013/11/02 20:20:07 adam Exp $
 
 Allow in-tree build.
 Handle .dylib extension on Darwin.
@@ -12,7 +12,7 @@
  
  cmake_minimum_required(VERSION 2.6)
  project(SDL2 C)
-@@ -1185,10 +1182,15 @@ list(APPEND INCLUDE_FILES ${BIN_INCLUDE_
+@@ -1213,10 +1213,15 @@ list(APPEND INCLUDE_FILES ${BIN_INCLUDE_
  install(FILES ${INCLUDE_FILES} DESTINATION include/SDL2)
  
  if(SDL_SHARED)
diff -r f8b0bd15b3d5 -r 9c7df80dbac8 devel/SDL2/patches/patch-src_cpuinfo_SDL_cpuinfo.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/SDL2/patches/patch-src_cpuinfo_SDL_cpuinfo.c        Sat Nov 02 20:20:07 2013 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_cpuinfo_SDL_cpuinfo.c,v 1.1 2013/11/02 20:20:07 adam Exp $
+
+Fix building on NetBSD and OpenBSD.
+
+--- src/cpuinfo/SDL_cpuinfo.c.orig     2013-11-02 19:57:32.000000000 +0000
++++ src/cpuinfo/SDL_cpuinfo.c
+@@ -621,7 +621,7 @@ SDL_GetSystemRAM(void)
+ #endif
+ #ifdef HAVE_SYSCTLBYNAME
+         if (SDL_SystemRAM <= 0) {
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ #ifdef HW_REALMEM
+             int mib[2] = {CTL_HW, HW_REALMEM};
+ #else



Home | Main Index | Thread Index | Old Index