49881c1ba9
--------------------------------------------------------------------------- 2.0.18: --------------------------------------------------------------------------- General: * The SDL wiki documentation and development headers are automatically kept in sync * Each function has information about in which version of SDL it was introduced * Added the hint SDL_HINT_APP_NAME to let SDL know the name of your application for various places it might show up in system information * Added SDL_RenderGeometry() and SDL_RenderGeometryRaw() to allow rendering of arbitrary shapes using the SDL 2D render API * Added SDL_SetTextureUserData() and SDL_GetTextureUserData() to associate application data with an SDL texture * Added SDL_RenderWindowToLogical() and SDL_RenderLogicalToWindow() to convert between window coordinates and logical render coordinates * Added SDL_RenderSetVSync() to change whether a renderer present is synchronized with vblank at runtime * Added SDL_PremultiplyAlpha() to premultiply alpha on a block of SDL_PIXELFORMAT_ARGB8888 pixels * Added a window event SDL_WINDOWEVENT_DISPLAY_CHANGED which is sent when a window changes what display it's centered on * Added SDL_GetWindowICCProfile() to query a window's ICC profile, and a window event SDL_WINDOWEVENT_ICCPROF_CHANGED that is sent when it changes * Added the hint SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY to allow EGL windows to be transparent instead of opaque * SDL_WaitEvent() has been redesigned to use less CPU in most cases * Added SDL_SetWindowMouseRect() and SDL_GetWindowMouseRect() to confine the mouse cursor to an area of a window * You can now read precise mouse wheel motion using 'preciseX' and 'preciseY' event fields * Added SDL_GameControllerHasRumble() and SDL_GameControllerHasRumbleTriggers() to query whether a game controller supports rumble * Added SDL_JoystickHasRumble() and SDL_JoystickHasRumbleTriggers() to query whether a joystick supports rumble * SDL's hidapi implementation is now available as a public API in SDL_hidapi.h Linux: * Added the hint SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME to set the activity that's displayed by the system when the screensaver is disabled * Added the hint SDL_HINT_LINUX_JOYSTICK_CLASSIC to control whether /dev/input/js* or /dev/input/event* are used as joystick devices * Added the hint SDL_HINT_JOYSTICK_DEVICE to allow the user to specify devices that will be opened in addition to the normal joystick detection * Added SDL_LinuxSetThreadPriorityAndPolicy() for more control over a thread priority on Linux
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.60 2021/12/07 20:31:27 wiz Exp $
|
|
|
|
DISTNAME= SDL2-2.0.18
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://www.libsdl.org/release/
|
|
|
|
MAINTAINER= nia@NetBSD.org
|
|
HOMEPAGE= https://www.libsdl.org/
|
|
COMMENT= Simple DirectMedia Layer - cross-platform multimedia library
|
|
LICENSE= zlib
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
GNU_CONFIGURE= yes
|
|
|
|
# Let pkgsrc handle the rpath.
|
|
CONFIGURE_ARGS+= --disable-rpath
|
|
|
|
# Explicitly link against libraries.
|
|
CONFIGURE_ARGS+= --disable-alsa-shared
|
|
CONFIGURE_ARGS+= --disable-jack-shared
|
|
CONFIGURE_ARGS+= --disable-libsamplerate-shared
|
|
CONFIGURE_ARGS+= --disable-wayland-shared
|
|
CONFIGURE_ARGS+= --disable-x11-shared
|
|
|
|
# Deprecated, removed from pkgsrc.
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
# SDL has native audio(4) support, avoid building ossaudio(4) support.
|
|
CONFIGURE_ARGS.NetBSD+= --disable-oss
|
|
|
|
PKGCONFIG_OVERRIDE+= sdl2.pc.in
|
|
|
|
CHECK_PORTABILITY_SKIP+= build-scripts/androidbuildlibs.sh
|
|
CHECK_PORTABILITY_SKIP+= build-scripts/iosbuild.sh
|
|
|
|
.include "options.mk"
|
|
.include "../../audio/libsamplerate/buildlink3.mk"
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|