From a17d70517b32fc9ce4a5d5d89bebb3c876d27094 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 31 Aug 2026 13:55:39 +0700 Subject: [PATCH] Update and fix SDL component shared lib --- recipes/libs/sdl2-image/recipe.toml | 35 ++++++++++------------- recipes/libs/sdl2-mixer/recipe.toml | 33 ++++++++------------- recipes/libs/sdl2-ttf/recipe.toml | 28 ++++-------------- recipes/wip/codecs/wavpack/recipe.toml | 8 ++++-- recipes/wip/libs/media/libxmp/recipe.toml | 2 +- 5 files changed, 40 insertions(+), 66 deletions(-) diff --git a/recipes/libs/sdl2-image/recipe.toml b/recipes/libs/sdl2-image/recipe.toml index 0fd67360e..010f1d09e 100644 --- a/recipes/libs/sdl2-image/recipe.toml +++ b/recipes/libs/sdl2-image/recipe.toml @@ -1,26 +1,21 @@ [source] -tar = "https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz" +tar = "https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.8.12.tar.gz" +blake3 = "7b1a9b8c37b5c2c80591ddb99cc7dda72db1759fbb32146841292bce83ce38f2" +script = """ +touch AUTHORS NEWS README ChangeLog +autotools_recursive_regenerate +""" [build] -template = "custom" +template = "configure" dependencies = [ - "libjpeg", - "liborbital", - "libpng", - "mesa", "sdl2", - "zlib", ] -script = """ -DYNAMIC_INIT -export SDL_LIBS="-lSDL2 -lorbital $("${TARGET}-pkg-config" --libs osmesa) -lstdc++" -COOKBOOK_CONFIGURE_FLAGS=( - --prefix=/usr - --host="${TARGET}" - --disable-sdltest - --enable-shared - --enable-png - --enable-jpg -) -cookbook_configure -""" +dev-dependencies = [ + "libstdcxx" +] +configureflags = [ + "--disable-sdltest", + "--enable-png", + "--enable-jpg", +] diff --git a/recipes/libs/sdl2-mixer/recipe.toml b/recipes/libs/sdl2-mixer/recipe.toml index 40470718f..c6a9f120a 100644 --- a/recipes/libs/sdl2-mixer/recipe.toml +++ b/recipes/libs/sdl2-mixer/recipe.toml @@ -1,29 +1,20 @@ [source] -tar = "https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.8.1.tar.gz" -blake3 = "fa0798ce7ffdb5f89545311292374e5b7af479df8bc99a4aacfb40d2ab2f8384" +tar = "https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.8.2.tar.gz" +blake3 = "5f762fe9c3f762ebcd999c657041490daed913e7ff7eca0e305856c598f5a7f1" [build] -template = "custom" +template = "cmake" dependencies = [ "sdl2", - "liborbital", - "mesa", - "zlib", "libogg", "libvorbis", + "opusfile", + "libxmp", + "wavpack", +] +dev-dependencies = [ + "libstdcxx" +] +cmakeflags = [ + "-DSDL2MIXER_MIDI=OFF", # fluidsynth ] -script = """ -DYNAMIC_INIT - -export SDL_LIBS="-lSDL2 -lorbital -lOSMesa -lvorbis -logg -lz -lm -lpthread -lstdc++" -COOKBOOK_CONFIGURE_FLAGS+=( - --disable-sdltest - --enable-music-ogg - --disable-music-cmd - --disable-music-mp3 - --disable-smpegtest - --disable-music-midi - --disable-music-mod -) -cookbook_configure -""" diff --git a/recipes/libs/sdl2-ttf/recipe.toml b/recipes/libs/sdl2-ttf/recipe.toml index d6252b3ea..9a84bb424 100644 --- a/recipes/libs/sdl2-ttf/recipe.toml +++ b/recipes/libs/sdl2-ttf/recipe.toml @@ -1,29 +1,13 @@ [source] -tar = "https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz" -blake3 = "9814a07f33a3501b414f0fc7fa962e7d7ffc56748406f3798b7698b8d7e7fe12" -script = """ -DYNAMIC_INIT -./autogen.sh -""" +tar = "https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.24.0.tar.gz" +blake3 = "5832e4e0312e145b4648127ee58558885c4aee0d6f91e020538d0f7b53eb939e" [build] dependencies = [ - "expat", "freetype2", - "libdrm", - "liborbital", - "libpng", - "mesa", "sdl2", - "zlib", ] -template = "custom" -script = """ -DYNAMIC_INIT -export SDL_LIBS="-lSDL2 -lorbital $("${PKG_CONFIG}" --libs osmesa) -lpng -lz -lm -lpthread -lstdc++" -COOKBOOK_CONFIGURE_FLAGS+=( - --disable-sdltest - --enable-opengl -) -cookbook_configure -""" +dev-dependencies = [ + "libstdcxx", +] +template = "cmake" diff --git a/recipes/wip/codecs/wavpack/recipe.toml b/recipes/wip/codecs/wavpack/recipe.toml index 865767897..11f91ccbd 100644 --- a/recipes/wip/codecs/wavpack/recipe.toml +++ b/recipes/wip/codecs/wavpack/recipe.toml @@ -1,8 +1,12 @@ -#TODO compilation error: missing header +#TODO compiled but not tested [source] tar = "https://github.com/dbry/WavPack/releases/download/5.9.0/wavpack-5.9.0.tar.xz" +blake3 = "162edba02265b2bf10e14d2f2b8a0ecf8f76a6f6b67f6d4c3354ac8931999ed8" [build] -template = "configure" +template = "cmake" dependencies = [ "libiconv", ] +cmakeflags = [ + "-DWAVPACK_ENABLE_THREADS=Off" +] \ No newline at end of file diff --git a/recipes/wip/libs/media/libxmp/recipe.toml b/recipes/wip/libs/media/libxmp/recipe.toml index b6c63d119..40a3faa03 100644 --- a/recipes/wip/libs/media/libxmp/recipe.toml +++ b/recipes/wip/libs/media/libxmp/recipe.toml @@ -3,4 +3,4 @@ [source] tar = "https://github.com/libxmp/libxmp/releases/download/libxmp-4.7.0/libxmp-4.7.0.tar.gz" [build] -template = "configure" +template = "cmake"