pmaports/temp/sdl2/directfb-cflags.patch
Clayton Craft 1c5ce5f16f
temp/sdl2: fork from Alpine, upgrade to 2.0.15 (MR 1914)
2.0.15 is a development 'version' (it'll never be released), and will be
replaced by 2.0.16 when that is released. The reason for forking this
is because there are some issues that are resolved here that prevent
SDL2 from working on the Librem 5. The fixes cannot be easily
backported to 2.0.14, hence the fork and upgrade.

fixes #950
2021-02-02 17:00:26 +01:00

10 lines
437 B
Diff

--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -692,6 +692,7 @@ macro(CheckDirectFB)
set(SDL_VIDEO_DRIVER_DIRECTFB 1)
set(SDL_VIDEO_RENDER_DIRECTFB 1)
list(APPEND EXTRA_CFLAGS ${PKG_DIRECTFB_CFLAGS})
+ list(JOIN PKG_DIRECTFB_CFLAGS " " SDL_CFLAGS)
if(DIRECTFB_SHARED)
if(NOT HAVE_DLOPEN)
message_warn("You must have SDL_LoadObject() support for dynamic DirectFB loading")