Use a recipe.toml file for sdl-player

Sdl-player currently doesn't build. Neither before nor after this change.
This commit is contained in:
bjorn3 2025-06-28 21:06:51 +02:00
parent 090cb71aea
commit da44aa7d3a
2 changed files with 20 additions and 27 deletions

View File

@ -1,27 +0,0 @@
GIT=https://gitlab.redox-os.org/redox-os/sdl-player.git
BUILD_DEPENDS=(ffmpeg6 liborbital sdl1 zlib)
function recipe_version {
echo "1.0.0"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CPPFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib -static"
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -pv "$dest/bin"
cp -v "player" "$dest/bin/sdl-player"
skip=1
}

View File

@ -0,0 +1,20 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/sdl-player.git"
[build]
template = "custom"
dependencies = [
"ffmpeg6",
"liborbital",
"sdl1",
"zlib"
]
script = """
rsync -av --delete --exclude='.git' "${COOKBOOK_SOURCE}/" ./
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
"${COOKBOOK_MAKE}" -j"$(${NPROC})"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "player" "${COOKBOOK_STAGE}/bin/sdl-player"
"""