mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 06:44:18 +08:00
Add sdl-player
This commit is contained in:
parent
ea74ee1869
commit
649e1c70f8
37
recipes/sdl-player/recipe.sh
Normal file
37
recipes/sdl-player/recipe.sh
Normal file
@ -0,0 +1,37 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/sdl-player.git
|
||||
BUILD_DEPENDS=(ffmpeg liborbital sdl zlib)
|
||||
|
||||
function recipe_version {
|
||||
echo "1.0.0"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_test {
|
||||
echo "skipping test"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
make clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
mkdir -pv "$dest/bin"
|
||||
cp -v "player" "$dest/bin/sdl-player"
|
||||
skip=1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user