redox/recipes/openjazz/recipe.sh
2019-06-21 21:06:46 -06:00

44 lines
912 B
Bash

VERSION=0.1
GIT=https://github.com/AlisterT/openjazz
BUILD_DEPENDS=(sdl liborbital zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include -UUSE_SOCKETS -UUSE_SDL_NET"
export CPPFLAGS="$CFLAGS"
export LDFLAGS="-L$sysroot/lib -static"
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
autoreconf -fvi
autoconf
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure --build=${BUILD} --host=${HOST} --prefix=''
make -j"$(nproc)" V=1
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
}