mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
Add sdl_gfx recipe
This commit is contained in:
parent
ebd50fffb4
commit
2820faedb7
39
recipes/sdl_gfx/recipe.sh
Normal file
39
recipes/sdl_gfx/recipe.sh
Normal file
@ -0,0 +1,39 @@
|
||||
VERSION=2.0.25
|
||||
TAR=https://sourceforge.net/projects/sdlgfx/files/SDL_gfx-$VERSION.tar.gz
|
||||
BUILD_DEPENDS=(sdl liborbital libiconv)
|
||||
|
||||
export CFLAGS="-I$PWD/sysroot/include/"
|
||||
export LDFLAGS="-L$PWD/sysroot/lib/"
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./autogen.sh
|
||||
./configure --prefix=/ --host=${HOST} --disable-shared --disable-sdltest
|
||||
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)"
|
||||
make DESTDIR="$dest" install
|
||||
skip=1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user