summaryrefslogtreecommitdiffstats
path: root/package/sdl2
Commit message (Collapse)AuthorAgeFilesLines
* sdl2: fix build with --disable-threadsFabrice Fontaine2018-11-231-0/+63
| | | | | | | | | | | | | | | | | | | SDL_LinuxSetThreadPriority() has been added since version 2.0.9 and https://github.com/SDL-mirror/SDL/commit/f25a7fa870bdceb339e5105973f689606bcb9086 However, this function is used in src/dynapi/SDL_dynapi_procs.h even when SDL_THREADS_DISABLED However, when SDL_THREADS_DISABLED is set, SDL_LinuxSetThreadPriority is not defined because thread/pthread/SDL_systhread.c is not built So check SDL_THREADS_DISABLED in addition to __LINUX__ Fixes: - http://autobuild.buildroot.org/results/539cb9ab6c605dc6be73ebe90debab1a998f2451 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* sdl2: bump to version 2.0.9Fabrice Fontaine2018-11-173-45/+3
| | | | | | | Remove patch (already in version) Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sdl2: add upstream patch to fix DirectFB renderer handlingPeter Thompson2018-09-021-0/+42
| | | | | | | | | | The configure script enables the DirectFB video driver, but forgets to enable the renderer driver, causing SDL_CreateRenderer() to fail. Add an upstream patch to fix this. [Peter: reword/extend commit text, add git formatted patch from https://github.com/spurious/SDL-mirror] Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sdl2: update license file hashBaruch Siach2018-05-011-1/+1
| | | | | | | | | | | Copyright year update. Fixes: http://autobuild.buildroot.net/results/2c8/2c865463a4b7524114518c04dce9c94252433460/ Cc: Guillaume Gardet <guillaume.gardet@oliseo.fr> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sdl2: bump version to 2.0.8Peter Korsgaard2018-04-303-170/+3
| | | | | | | Drop now upstreamed patch. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* sdl2: rpi video support needs OpenGL ESPeter Seiderer2018-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes [1]: .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c: In function 'RPI_Create': .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c:126:39: error: 'RPI_GLES_DefaultProfileConfig' undeclared (first use in this function); did you mean 'RPI_GLES_DeleteContext'? device->GL_DefaultProfileConfig = RPI_GLES_DefaultProfileConfig; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RPI_GLES_DeleteContext .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c:126:39: note: each undeclared identifier is reported only once for each function it appears in .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c: In function 'RPI_CreateWindow': .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c:281:17: error: 'SDL_VideoDevice {aka struct SDL_VideoDevice}' has no member named 'egl_data'; did you mean 'gl_data'? if (!_this->egl_data) { ^~~~~~~~ gl_data .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c:286:10: error: 'SDL_WindowData {aka struct SDL_WindowData}' has no member named 'egl_surface' wdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) &wdata->dispman_window); ^~ .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c:286:26: warning: implicit declaration of function 'SDL_EGL_CreateSurface'; did you mean 'SDL_Vulkan_CreateSurface'? [-Wimplicit-function-declaration] wdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) &wdata->dispman_window); ^~~~~~~~~~~~~~~~~~~~~ SDL_Vulkan_CreateSurface .../build/sdl2-2.0.7/src/video/raspberry/SDL_rpivideo.c:288:14: error: 'SDL_WindowData {aka struct SDL_WindowData}' has no member named 'egl_surface' if (wdata->egl_surface == EGL_NO_SURFACE) { ^~ [1] http://autobuild.buildroot.net/results/9612d43b192bbb88214a11fe18f8b8da6ad10313 Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/sdl2: Remove trailing backslashGuillermo A. Amaral2018-01-221-1/+1
| | | | | | | Left over from 9f8a6fdf9 Signed-off-by: Guillermo A. Amaral <g@maral.me> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/sdl2: Fix Raspberry Pi support for SDL2Guillermo A. Amaral2018-01-182-1/+174
| | | | | | | Tweak build system to play well with Buildroot. Signed-off-by: Guillermo A. Amaral <g@maral.me> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* sdl2: security bump to version 2.0.7Peter Korsgaard2017-10-272-3/+5
| | | | | | | | | | | | | Fixes CVE-2017-2888 - An exploitable integer overflow vulnerability exists when creating a new RGB Surface in SDL 2.0.5. A specially crafted file can cause an integer overflow resulting in too little memory being allocated which can lead to a buffer overflow and potential code execution. An attacker can provide a specially crafted image file to trigger this vulnerability. Also add a hash for the license file while we're at it. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sdl2: explicitly disable raspberry pi video backendPeter Korsgaard2017-10-261-1/+2
| | | | | | | | | | | | | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/d59/d5992dcc9a49ee77afaebdcc9448ac1868fa7de1/ http://autobuild.buildroot.net/results/e89/e894f21ce1983ee3bd8d65a8e59e1adab9a62707/ The configure script automatically enables support for the raspberry pi video backend if it detects the rpi-userland package. Unfortunately it hardcodes a number of include/linker paths unsuitable for cross compilation, breaking the build: if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then .. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host" fi So explicitly disable it until the configure script is fixed. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sdl2: add KMS/DRM video driver supportOlivier Schonken2017-10-082-0/+14
| | | | | Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* sdl2: Bump version to 2.0.6Olivier Schonken2017-10-014-114/+3
| | | | | | | Bump version and remove patches that were merged upstream Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package makefiles: clean up backslash spacing.Adam Duskett2017-04-221-1/+1
| | | | | | | | | | The check-package script when ran gave warnings on only using one space before backslashes on all of these makefiles. This patch cleans up all warnings related to the one space before backslashes rule in the make files in the package directory. Signed-off-by: Adam Duskett <aduskett@codeblue.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Revert "package/sdl2: disable altivec built-in function for PowerPC"Romain Naour2017-04-151-10/+0
| | | | | | | | | | | The bug discovered while packaging supertux is now fixed by the previous patch but the issue can still be present in other C++11 package if -std=c++11 is used on PPC with Altivec vectorization. This reverts commit d2903aaf1314b50a8a10ce937d2b33c5c42e463e. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: use SPDX short identifier for zlib licenseRahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for zlib license is Zlib. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/zlib( )?(license)?/Zlib/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/sdl2: disable altivec built-in function for PowerPCRomain Naour2017-03-011-0/+10
| | | | | | | | | | | | | | As reported in this bug report [1], altivec support in SDL break arbitrary C++ code. Issue reported by test-pkg script while testing supertux package: error: could not convert 'true' from 'bool' to '__vector(4) __bool int' [1] https://bugs.debian.org/cgi-bin/bugreport.cgi/?bug=770670 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/sdl2: enable OpenGL ES supportRomain Naour2017-02-262-1/+14
| | | | | Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/sdl2: enable opengl supportRomain Naour2017-02-262-1/+18
| | | | | | | | | OpenGl support mean GLX so it require X11 support. Select automatically BR2_PACKAGE_SDL2_X11 to enable minimal X11 libraries support (libx11 and libxext). Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* sdl2: X11 support depends on MMU (fork)Guillaume GARDET2017-01-201-0/+2
| | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/2f7/2f738830bf98eb7284f99c11856a8694467b3daa Signed-off-by: Guillaume GARDET <guillaume.gardet@oliseo.fr> Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/sdl2: fix build with gcc6Bernd Kuhls2016-12-271-0/+64
| | | | | | | | | Fixes http://autobuild.buildroot.net/results/b99/b997c2b6307deb48a42e9b317715a00b65f90149/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/sdl2: fix build error on powerpc/powerpc64Bernd Kuhls2016-12-271-0/+47
| | | | | | | | | Fixes http://autobuild.buildroot.net/results/ffd/ffd689f1ba34ad43f52c38fe37da393a9d8b9d5e/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/sdl2: bump version to 2.0.5Bernd Kuhls2016-12-222-3/+3
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sdl2: new packageGuillaume GARDET2015-10-213-0/+151
[Romain: - Wrap Config.in help text at 72 columns. - Move sdl2 package after sdl modules in Config.in. (Arnout) - Explicitly disable dbus and wayland. - Remove double underscore (SDL2__*). - Unify autotools options to use --enable/--disable. - Use x-includes and x-libraries to avoid path poisoning. - Remove xlib_libXrender, xproto_inputproto and xproto_scrnsaverproto dependencies since the build system doesn't depend on them. - Add Xlib_libXi, xlib_libScrnSaver and xlib_libXxf86vm dependencies. - Handle autotools options (--enable/--disable) for each X11 dependencies.] [Thomas: - Minor tweaks to Config.in - Addition of hash file. - Addition of SDL2_CONFIG_SCRIPTS, as suggested by Vincent Stehlé.] Signed-off-by: Guillaume GARDET <guillaume.gardet@oliseo.fr> Signed-off-by: Romain Naour <romain.naour@openwide.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Romain Naour <romain.naour@openwide.fr> Cc: Yann E. Morin <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud