[build] type = "cmake" [alternatives] provides = [ "sdl2" ] [build.flags] build_dir = "build" configure = ["-G Ninja"] post_install = [ 'ln -s sdl2-compat.pc "$DESTDIR/usr/lib/pkgconfig/sdl2.pc"' ] no-delete-static = true [dependencies] build = [ "cmake", "ninja", ] runtime = [ "sdl3", "glibc", ] [package] description = "An SDL2 compatibility layer that uses SDL3 behind the scenes" homepage = "https://github.com/libsdl-org/sdl2-compat" license = "Zlib" name = "sdl2-compat" version = "2.32.64" [[source]] extract_dir = "$name-$version" sha256 = "b2fa522e7bb08113534904b3dc2d2f7ff7b0c259224d86c12374d5b4a4027930" url = "https://github.com/libsdl-org/sdl2-compat/releases/download/release-$version/sdl2-compat-$version.tar.gz"