Update and fix SDL component shared lib

This commit is contained in:
Wildan M 2026-08-31 13:55:39 +07:00
parent 6f5aae29b3
commit a17d70517b
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
5 changed files with 40 additions and 66 deletions

View File

@ -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",
]

View File

@ -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
"""

View File

@ -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"

View File

@ -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"
]

View File

@ -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"