From b16722b8bd0caba24897a5c5bceeb6f469357088 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Wed, 13 Dec 2023 15:53:23 -0700 Subject: [PATCH] sdl1-mixer: convert to toml --- recipes/backends/sdl1-mixer/recipe.sh | 42 ------------------------- recipes/backends/sdl1-mixer/recipe.toml | 29 +++++++++++++++++ 2 files changed, 29 insertions(+), 42 deletions(-) delete mode 100644 recipes/backends/sdl1-mixer/recipe.sh create mode 100644 recipes/backends/sdl1-mixer/recipe.toml diff --git a/recipes/backends/sdl1-mixer/recipe.sh b/recipes/backends/sdl1-mixer/recipe.sh deleted file mode 100644 index 3213f3e81..000000000 --- a/recipes/backends/sdl1-mixer/recipe.sh +++ /dev/null @@ -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 -} diff --git a/recipes/backends/sdl1-mixer/recipe.toml b/recipes/backends/sdl1-mixer/recipe.toml new file mode 100644 index 000000000..3e19795a5 --- /dev/null +++ b/recipes/backends/sdl1-mixer/recipe.toml @@ -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 +""" -- GitLab