mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-29 04:21:37 +01:00
make sure the directfb CFLAGS are included in the .pc. This fixes the
following compiler error:
/usr/include/SDL2/SDL_syswm.h:77:10: fatal error: directfb.h: No such
file or directory
#include <directfb.h>
^~~~~~~~~~~~
We don't add the directfb pkg-config file as a dependency because
directfb will not be directly linked to sdl, instead sdl will dlopen it.
We do need the headers though, so we simply add the directfb CFLAGS.
This is also what the autotools configure script does.
13 lines
526 B
Diff
13 lines
526 B
Diff
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
|
|
index 4a2c3ed..c863d38 100644
|
|
--- a/cmake/sdlchecks.cmake
|
|
+++ b/cmake/sdlchecks.cmake
|
|
@@ -732,6 +732,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")
|