mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
sdl1-mixer: convert to toml
This commit is contained in:
parent
7e696080e9
commit
b16722b8bd
@ -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
|
||||
}
|
||||
29
recipes/backends/sdl1-mixer/recipe.toml
Normal file
29
recipes/backends/sdl1-mixer/recipe.toml
Normal 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
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user