diff options
Diffstat (limited to 'main/sdl2')
-rw-r--r-- | main/sdl2/APKBUILD | 8 | ||||
-rw-r--r-- | main/sdl2/directfb-cflags.patch | 12 |
2 files changed, 17 insertions, 3 deletions
diff --git a/main/sdl2/APKBUILD b/main/sdl2/APKBUILD index 9230065499..f1d5c5110f 100644 --- a/main/sdl2/APKBUILD +++ b/main/sdl2/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: August Klein <amatcoder@gmail.com> pkgname=sdl2 pkgver=2.0.9 -pkgrel=1 +pkgrel=2 pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics" url="https://www.libsdl.org" arch="all" @@ -12,7 +12,8 @@ makedepends="cmake alsa-lib-dev directfb-dev libxcursor-dev libxrandr-dev libxre libxscrnsaver-dev libxi-dev libx11-dev libxext-dev libusb-dev libxkbcommon-dev wayland-dev wayland-protocols" subpackages="$pkgname-dev" -source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz" +source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz + directfb-cflags.patch" options="!check" # No good way to run the available tests builddir="$srcdir/SDL2-$pkgver" @@ -48,4 +49,5 @@ package() { DESTDIR="$pkgdir" make install } -sha512sums="a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10 SDL2-2.0.9.tar.gz" +sha512sums="a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10 SDL2-2.0.9.tar.gz +e4e946a3bd51e011be1aa7d0c9a22182b1c00f277f4ae758dbe54f4ab1e4edb27f56f4324f9ace8d09f337a2f65b64b72e51326449ab2327632ff8b5fb57414b directfb-cflags.patch" diff --git a/main/sdl2/directfb-cflags.patch b/main/sdl2/directfb-cflags.patch new file mode 100644 index 0000000000..77f2398201 --- /dev/null +++ b/main/sdl2/directfb-cflags.patch @@ -0,0 +1,12 @@ +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") |