sdl1-mixer: convert to toml

This commit is contained in:
Jeremy Soller 2023-12-13 15:53:23 -07:00
parent 7e696080e9
commit b16722b8bd
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975
2 changed files with 29 additions and 42 deletions

View File

@ -1,42 +0,0 @@
VERSION=1.2.12
TAR=https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-$VERSION.tar.gz
BUILD_DEPENDS=(sdl1 liborbital libogg libvorbis)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
export LIBS="-lvorbis -logg"
./autogen.sh
./configure \
--prefix=/ \
--build=${BUILD} \
--host=${HOST} \
--enable-music-ogg \
--enable-music-midi \
--disable-shared \
--disable-sdltest \
--disable-music-cmd \
--disable-music-mp3 \
--disable-smpegtest \
--disable-music-mod
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}

View File

@ -0,0 +1,29 @@
[source]
tar = "https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz"
blake3 = "ef23bab2d42250dfdc51ce6939ee7b393973ff11a0dd3481f32180b489d2661c"
patches = ["redox.patch"]
script = """
./autogen.sh
"""
[build]
dependencies = [
"libogg",
"liborbital",
"libvorbis",
"sdl1",
]
template = "custom"
script = """
export LIBS="-lvorbis -logg"
COOKBOOK_CONFIGURE_FLAGS+=(
--enable-music-ogg
--enable-music-midi
--disable-sdltest
--disable-music-cmd
--disable-music-mp3
--disable-smpegtest
--disable-music-mod
)
cookbook_configure
"""