package/sdl2: fix build with kmsdrm
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 21 Aug 2021 09:39:08 +0000 (11:39 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 23 Aug 2021 21:36:00 +0000 (23:36 +0200)
commit9aae755440d072ce91be6cc222570c40617e80ed
tree5e05f180352af25f09bb7c6a830d8895e93bd217
parent5bb4e281c0c9fdd867eb7471f4e1ae82028d596d
package/sdl2: fix build with kmsdrm

Build with kmsdrm is broken since bump to version 2.0.14 in commit
5e0da5c40da82d90c3f6ca037170838a6689b65b. Indeed, first patch was
already applied in this version:
https://github.com/libsdl-org/SDL/commit/9354aea19834ada7ffb90d379600a242a7aa820f
but upstream made other changes that requires EGL so add an upstream
patch to fix the build failure

Moreover, run autogen.sh instead of autoreconf as it breaks the build
and is not recommended by upstream:
https://github.com/libsdl-org/SDL/pull/4214

Fixes:
 - http://autobuild.buildroot.org/results/355c7e5092e7641d8b04ecb550e2671d70720bd2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Arnout: add dependency on host-autoconf]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/sdl2/0001-Buildsystem-Add-guards-for-not-building-with-KMSDRM-support-if-EGL.patch [new file with mode: 0644]
package/sdl2/0001-src-video-kmsdrm-SDL_kmsdrmvideo.c-fix-build.patch [deleted file]
package/sdl2/sdl2.mk