mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
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:
parent
090cb71aea
commit
da44aa7d3a
@ -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
|
||||
}
|
||||
20
recipes/video/sdl-player/recipe.toml
Normal file
20
recipes/video/sdl-player/recipe.toml
Normal 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"
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user