pkgsrc/devel/SDL2/options.mk
adam 7051c89f38 SDL2: update to 2.0.6
Changes 2.0.6:

General:
* Added cross-platform Vulkan graphics support in SDL_vulkan.h
        SDL_Vulkan_LoadLibrary()
        SDL_Vulkan_GetVkGetInstanceProcAddr()
        SDL_Vulkan_GetInstanceExtensions()
        SDL_Vulkan_CreateSurface()
        SDL_Vulkan_GetDrawableSize()
        SDL_Vulkan_UnloadLibrary()
  This is all the platform-specific code you need to bring up Vulkan on all SDL platforms. You can look at an example in test/testvulkan.c
* Added SDL_ComposeCustomBlendMode() to create custom blend modes for 2D rendering
* Added SDL_HasNEON() which returns whether the CPU has NEON instruction support
* Added support for many game controllers, including the Nintendo Switch Pro Controller
* Added support for inverted axes and separate axis directions in game controller mappings
* Added functions to return information about a joystick before it's opened:
        SDL_JoystickGetDeviceVendor()
        SDL_JoystickGetDeviceProduct()
        SDL_JoystickGetDeviceProductVersion()
        SDL_JoystickGetDeviceType()
        SDL_JoystickGetDeviceInstanceID()
* Added functions to return information about an open joystick:
        SDL_JoystickGetVendor()
        SDL_JoystickGetProduct()
        SDL_JoystickGetProductVersion()
        SDL_JoystickGetType()
        SDL_JoystickGetAxisInitialState()
* Added functions to return information about an open game controller:
        SDL_GameControllerGetVendor()
        SDL_GameControllerGetProduct()
        SDL_GameControllerGetProductVersion()
* Added SDL_GameControllerNumMappings() and SDL_GameControllerMappingForIndex() to be able to enumerate the built-in game controller mappings
* Added SDL_LoadFile() and SDL_LoadFile_RW() to load a file into memory
* Added SDL_DuplicateSurface() to make a copy of a surface
* Added an experimental JACK audio driver
* Implemented non-power-of-two audio resampling, optionally using libsamplerate to perform the resampling
* Added the hint SDL_HINT_AUDIO_RESAMPLING_MODE to control the quality of resampling
* Added the hint SDL_HINT_RENDER_LOGICAL_SIZE_MODE to control the scaling policy for SDL_RenderSetLogicalSize():
        "0" or "letterbox" - Uses letterbox/sidebars to fit the entire rendering on screen (the default)
        "1" or "overscan"  - Will zoom the rendering so it fills the entire screen, allowing edges to be drawn offscreen
* Added the hints SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the mouse speed when being read from raw mouse input
* Added the hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether SDL will synthesize mouse events from touch events
2017-09-26 13:10:56 +00:00

71 lines
1.6 KiB
Makefile

# $NetBSD: options.mk,v 1.6 2017/09/26 13:10:56 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2
PKG_OPTIONS_REQUIRED_GROUPS= gl
PKG_SUPPORTED_OPTIONS= alsa dbus esound nas oss pulseaudio x11
PKG_OPTIONS_GROUP.gl= opengl
PKG_SUGGESTED_OPTIONS+= oss
.if ${OPSYS} != "Darwin"
PKG_SUGGESTED_OPTIONS+= x11
.endif
.include "../../mk/bsd.fast.prefs.mk"
.if !empty(MACHINE_ARCH:M*arm*)
PKG_OPTIONS_GROUP.gl+= rpi
PKG_SUGGESTED_OPTIONS+= rpi
.else
PKG_SUGGESTED_OPTIONS+= opengl
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Malsa)
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mesound)
.include "../../audio/esound/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mnas)
.include "../../audio/nas/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mopengl)
. if ${OPSYS} != "Darwin"
.include "../../graphics/MesaLib/buildlink3.mk"
. endif
.else
CONFIGURE_ARGS+= --disable-video-opengl
.endif
.if !empty(PKG_OPTIONS:Moss)
.include "../../mk/oss.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-oss
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
.include "../../audio/pulseaudio/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS: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"
.else
CONFIGURE_ARGS+= --disable-video-x11 --disable-x11-shared
.endif
.if !empty(PKG_OPTIONS:Mrpi)
LOWER_VENDOR= raspberry
.include "../../misc/raspberrypi-userland/buildlink3.mk"
.endif