./devel/SDL2, Simple DirectMedia Layer is a cross-platform multimedia library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 2.0.5nb4, Package name: SDL2-2.0.5nb4, Maintainer: pkgsrc-users

Simple DirectMedia Layer is a cross-platform development library designed to
provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog and many
Humble Bundle games.

SDL officially supports Windows, Mac OS X, Linux, iOS, and Android. Support for
other platforms may be found in the source code.

SDL is written in C, works natively with C++, and there are bindings available
for several other languages, including C# and Python.

SDL 2.0 is distributed under the zlib license. This license allows you to use
SDL freely in any software.

Required to run:
[graphics/MesaLib] [devel/libusb] [x11/libXScrnSaver] [x11/xcursor] [x11/liboldXrandr]

Required to build:
[pkgtools/x11-links] [x11/scrnsaverproto] [x11/glproto] [x11/renderproto] [x11/xproto] [x11/xf86vidmodeproto] [x11/xf86driproto] [x11/damageproto] [x11/inputproto] [x11/xextproto] [x11/randrproto] [x11/dri2proto] [x11/fixesproto4] [pkgtools/cwrappers]

Package options: opengl, oss, x11

Master sites:

SHA1: c4f87580630387796df4ac87c362b4f9a721457e
RMD160: 91283ce74bd451e83651910259cf226cae70e4bb
Filesize: 4110.695 KB

Version history: (Expand)

CVS history: (Expand)

   2017-01-26 04:46:20 by Nathanial Sloss | Files touched by this commit (6)
Log message:
For bsd audio backend, use correct prinfo for play and record.
Inform upper layer of blocksize in bsd audio backend.

   2017-01-21 21:06:55 by Ryo ONODERA | Files touched by this commit (157)
Log message:
Recursive revbump from audio/pulseaudio-10.0
   2016-12-11 20:42:46 by Sebastian Wiedenroth | Files touched by this commit (3)
Log message:
add patch to work around -Werror=declaration-after-statement on SunOS
   2016-10-30 19:10:21 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
--enable-new-dtags in sdl2-config output broke packages
using SDL2. Remove it.

   2016-10-30 11:37:17 by Thomas Klausner | Files touched by this commit (3)
Log message:
Fix compilation on NetBSD.
   2016-10-28 21:13:44 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
Changes 2.0.5:

* Implemented audio capture support for some platforms
* Added SDL_DequeueAudio() to retrieve audio when buffer queuing is turned on \ 
for audio capture
* Added events for dragging and dropping text
* Added events for dragging and dropping multiple items
* By default the click raising a window will not be delivered to the SDL \ 
application. You can set the hint SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to \ 
"1" to allow that click through to the window.
* Saving a surface with an alpha channel as a BMP will use a newer BMP format \ 
that supports alpha information. You can set the hint \ 
SDL_HINT_BMP_SAVE_LEGACY_FORMAT to "1" to use the old format.
* Added SDL_GetHintBoolean() to get the boolean value of a hint
* Added SDL_RenderSetIntegerScale() to set whether to smoothly scale or use \ 
integral multiples of the viewport size when scaling the rendering output
* Added SDL_CreateRGBSurfaceWithFormat() and \ 
SDL_CreateRGBSurfaceWithFormatFrom() to create an SDL surface with a specific \ 
pixel format
* Added SDL_GetDisplayUsableBounds() which returns the area usable for windows. \ 
For example, on Mac OS X, this subtracts the area occupied by the menu bar and \ 
* Added SDL_GetWindowBordersSize() which returns the size of the window's \ 
borders around the client area
* Added a window event SDL_WINDOWEVENT_HIT_TEST when a window had a hit test \ 
that wasn't SDL_HITTEST_NORMAL (e.g. in the title bar or window frame)
* Added SDL_SetWindowResizable() to change whether a window is resizable
* Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity() to affect the window \ 
* Added SDL_SetWindowModalFor() to set a window as modal for another window
* Added support for AUDIO_U16LSB and AUDIO_U16MSB to SDL_MixAudioFormat()
* Fixed flipped images when reading back from target textures when using the \ 
OpenGL renderer
* Fixed texture color modulation with SDL_BLENDMODE_NONE when using the OpenGL \ 
* Fixed bug where the alpha value of colorkeys was ignored when blitting in some \ 

* Added a hint SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING to prevent SDL from \ 
raising a debugger exception to name threads. This exception can cause problems \ 
with .NET applications when running under a debugger.
* The hint SDL_HINT_THREAD_STACK_SIZE is now supported on Windows
* Fixed XBox controller triggers automatically being pulled at startup
* The first icon from the executable is used as the default window icon at runtime
* Fixed SDL log messages being printed twice if SDL was built with C library support
* Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL \ 
applications don't affect text input into other applications.

Mac OS X:
* Fixed selecting the dummy video driver
* The caps lock key now generates a pressed event when pressed and a released \ 
event when released, instead of a press/release event pair when pressed.
* Fixed mouse wheel events on Mac OS X 10.12
* The audio driver has been updated to use AVFoundation for better compatibility \ 
with newer versions of Mac OS X

* Added support for the Fcitx IME
* Added a window event SDL_WINDOWEVENT_TAKE_FOCUS when a window manager asks the \ 
SDL window whether it wants to take focus.
* Refresh rates are now rounded instead of truncated, e.g. 59.94 Hz is rounded \ 
up to 60 Hz instead of 59.
* Added initial support for touchscreens on Raspberry Pi

* SDL_GetBasePath() is now implemented on OpenBSD

* Added support for dynamically loaded objects on iOS 8 and newer

* Added support for Apple TV
* Added a hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION to control whether he \ 
Apple TV remote's joystick axes will automatically match the rotation of the \ 

* Fixed SDL not resizing window when Android screen resolution changes
* Corrected the joystick Z axis reporting for the accelerometer

Emscripten (running in a web browser):
* Many bug fixes and improvements
   2016-08-04 19:03:41 by Ryo ONODERA | Files touched by this commit (145)
Log message:
Recursive revbump from audio/pulseaudio
   2016-01-03 12:15:12 by Thomas Klausner | Files touched by this commit (8) | Package updated
Log message:
Update to 2.0.4.

Many pkgsrc patches merged upstream.


* Added support for web applications using Emscripten, see \ 
docs/README-emscripten.md for more information
* Added support for web applications using Native Client (NaCl), see \ 
docs/README-nacl.md for more information
* Added an API to queue audio instead of using the audio callback:
    SDL_QueueAudio(), SDL_GetQueuedAudioSize(), SDL_ClearQueuedAudio()
* Added events for audio device hot plug support:
* Added SDL_PointInRect()
* Added SDL_HasAVX2() to detect CPUs with AVX2 support
* Added SDL_SetWindowHitTest() to let apps treat parts of their SDL window like \ 
traditional window decorations (drag areas, resize areas)
* Added SDL_GetGrabbedWindow() to get the window that currently has input grab, \ 
if any
* Added SDL_RenderIsClipEnabled() to tell whether clipping is currently enabled \ 
in a renderer
* Added SDL_CaptureMouse() to capture the mouse to get events while the mouse is \ 
not in your window
* Added SDL_WarpMouseGlobal() to warp the mouse cursor in global screen space
* Added SDL_GetGlobalMouseState() to get the current mouse state outside of an \ 
SDL window
* Added a direction field to mouse wheel events to tell whether they are flipped \ 
(natural) or not
* Added GL_CONTEXT_RELEASE_BEHAVIOR GL attribute (maps to \ 
[WGL|GLX]_ARB_context_flush_control extension)
* Added EGL_KHR_create_context support to allow OpenGL ES version selection on \ 
some platforms
* Added NV12 and NV21 YUV texture support for OpenGL and OpenGL ES 2.0 renderers
* Added a Vivante video driver that is used on various SoC platforms
* Added an event SDL_RENDER_DEVICE_RESET that is sent from the D3D renderers \ 
when the D3D device is lost, and from Android's event loop when the GLES context \ 
had to be recreated
* Added a hint SDL_HINT_NO_SIGNAL_HANDLERS to disable SDL's built in signal handling
* Added a hint SDL_HINT_THREAD_STACK_SIZE to set the stack size of SDL's threads
* Added SDL_sqrtf(), SDL_tan(), and SDL_tanf() to the stdlib routines
* Improved support for WAV and BMP files with unusual chunks in them
* Renamed SDL_assert_data to SDL_AssertData and SDL_assert_state to SDL_AssertState
window interaction while cursor is hidden
* Added SDL_GetDisplayDPI() to get the DPI information for a display
* Added SDL_JoystickCurrentPowerLevel() to get the battery level of a joystick
* Added SDL_JoystickFromInstanceID(), as a helper function, to get the \ 
SDL_Joystick* that an event is referring to.
* Added SDL_GameControllerFromInstanceID(), as a helper function, to get the \ 
SDL_GameController* that an event is referring to.

* Added support for Windows Phone 8.1 and Windows 10/UWP (Universal Windows Platform)
* Timer resolution is now 1 ms by default, adjustable with the \ 
* SDLmain no longer depends on the C runtime, so you can use the same .lib in \ 
both Debug and Release builds
* Added SDL_SetWindowsMessageHook() to set a function to be called for every \ 
windows message before TranslateMessage()
* Added a hint SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP to control whether \ 
SDL_PumpEvents() processes the Windows message loop
* You can distinguish between real mouse and touch events by looking for \ 
SDL_TOUCH_MOUSEID in the mouse event "which" field
* SDL_SysWMinfo now contains the window HDC
* Added support for Unicode command line options
* Prevent beeping when Alt-key combos are pressed
* SDL_SetTextInputRect() re-positions the OS-rendered IME
* Added a hint SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 to prevent generating \ 
SDL_WINDOWEVENT_CLOSE events when Alt-F4 is pressed
* Added a hint SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING to use the old axis and \ 
button mapping for XInput devices (deprecated)

Mac OS X:
* Implemented drag-and-drop support
* Improved joystick hot-plug detection
* The SDL_WINDOWEVENT_EXPOSED window event is triggered in the appropriate situations
* Fixed relative mouse mode when the application loses/regains focus
* Fixed bugs related to transitioning to and from Spaces-aware \ 
fullscreen-desktop mode
* Fixed the refresh rate of display modes
* SDL_SysWMInfo is now ARC-compatible
* Added a hint SDL_HINT_MAC_BACKGROUND_APP to prevent forcing the application to \ 
become a foreground process

* Enabled building with Mir and Wayland support by default.
* Added IBus IME support
* Added a hint SDL_HINT_IME_INTERNAL_EDITING to control whether IBus should \ 
handle text editing internally instead of sending SDL_TEXTEDITING events
* Added a hint SDL_HINT_VIDEO_X11_NET_WM_PING to allow disabling _NET_WM_PING \ 
protocol handling in SDL_CreateWindow()
* Added support for multiple audio devices when using Pulseaudio
* Fixed duplicate mouse events when using relative mouse motion

* Added support for iOS 8
* The SDL_WINDOW_ALLOW_HIGHDPI window flag now enables high-dpi support, and \ 
SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() gets the window \ 
resolution in pixels
* SDL_GetWindowSize() and display mode sizes are in the "DPI-independent \ 
points" / "screen coordinates" coordinate space rather than \ 
pixels (matches OS X behavior)
* Added native resolution support for the iPhone 6 Plus
* Added support for MFi game controllers
* Added support for the hint SDL_HINT_ACCELEROMETER_AS_JOYSTICK
* Added sRGB OpenGL ES context support on iOS 7+
* Added support for SDL_DisableScreenSaver(), SDL_EnableScreenSaver() and the \ 
* SDL_SysWMinfo now contains the OpenGL ES framebuffer and color renderbuffer \ 
objects used by the window's active GLES view
* Fixed various rotation and orientation issues
* Fixed memory leaks

* Added a hint SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH to prevent mouse events \ 
from being registered as touch events
* Added support for SDL_DisableScreenSaver(), SDL_EnableScreenSaver() and the \ 
* Added support for SDL_ShowMessageBox() and SDL_ShowSimpleMessageBox()

Raspberry Pi:
* Added support for the Raspberry Pi 2