diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/sdl2 | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/sdl2')
-rw-r--r-- | repo/sdl2/directfb-cflags.patch | 10 | ||||
-rw-r--r-- | repo/sdl2/sdl2.xibuild | 38 |
2 files changed, 48 insertions, 0 deletions
diff --git a/repo/sdl2/directfb-cflags.patch b/repo/sdl2/directfb-cflags.patch new file mode 100644 index 0000000..037667d --- /dev/null +++ b/repo/sdl2/directfb-cflags.patch @@ -0,0 +1,10 @@ +--- a/cmake/sdlchecks.cmake ++++ b/cmake/sdlchecks.cmake +@@ -745,6 +745,7 @@ + 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(SDL_DIRECTFB_SHARED AND NOT HAVE_SDL_LOADSO) + message_warn("You must have SDL_LoadObject() support for dynamic DirectFB loading") + endif() diff --git a/repo/sdl2/sdl2.xibuild b/repo/sdl2/sdl2.xibuild new file mode 100644 index 0000000..0f0778f --- /dev/null +++ b/repo/sdl2/sdl2.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="sdl2" +DESC="development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics" + +MAKEDEPS="cmake " +DEPS="alsa-lib eudev libx11 libxext libxcursor libxi libxkbcommon libxrender libxscrnsaver libusb pulseaudio wayland " + +PKG_VER=2.0.20 +SOURCE="https://www.libsdl.org/release/SDL2-$PKG_VER.tar.gz" +ADDITIONAL="directfb-cflags.patch " + +build () { + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DBUILD_STATIC_LIBS=OFF \ + -DSDL_TEST=OFF \ + -DSDL_ALSA=ON \ + -DSDL_CLOCK_GETTIME=ON \ + -DSDL_ARTS=OFF \ + -DSDL_ESD=OFF \ + -DSDL_NAS=OFF \ + -DSDL_RPATH=OFF \ + -DSDL_X11=ON \ + -DSDL_DIRECTFB=ON \ + -DSDL_WAYLAND=ON \ + -DSDL_STATIC=OFF \ + -DSDL_SHARED=ON \ + -DSDL_PIPEWIRE_SHARED=ON \ + -DSDL_PULSEAUDIO_SHARED=ON + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} |