redox/recipes/scummvm/recipe.sh
2018-12-10 12:44:02 -07:00

47 lines
942 B
Bash

VERSION=2.0.0
TAR=https://www.scummvm.org/frs/scummvm/$VERSION/scummvm-$VERSION.tar.xz
BUILD_DEPENDS=(sdl liborbital freetype zlib libpng)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
sysroot="$(realpath ../sysroot)"
./configure \
--host=${HOST} \
--prefix='' \
--with-sdl-prefix="$sysroot" \
--with-freetype2-prefix="$sysroot" \
--with-png-prefix="$sysroot" \
--with-zlib-prefix="$sysroot" \
--disable-timidity \
--disable-mt32emu
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
}