From 19498b3b74fb5e0b8da29fb4acf9898b8f93a5e3 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Wed, 28 Nov 2018 03:11:16 +0100 Subject: [PATCH] Add scummvm recipe --- recipes/scummvm/01_redox.patch | 24 ++++++++++++++++++ recipes/scummvm/recipe.sh | 46 ++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 recipes/scummvm/01_redox.patch create mode 100644 recipes/scummvm/recipe.sh diff --git a/recipes/scummvm/01_redox.patch b/recipes/scummvm/01_redox.patch new file mode 100644 index 000000000..47e55dc2e --- /dev/null +++ b/recipes/scummvm/01_redox.patch @@ -0,0 +1,24 @@ +diff -rupNw source-original/common/stream.cpp source/common/stream.cpp +--- source-original/common/stream.cpp 2017-12-08 23:21:10.000000000 +0100 ++++ source/common/stream.cpp 2018-11-28 00:36:53.474637267 +0100 +@@ -95,7 +95,7 @@ bool MemoryReadStream::seek(int32 offs, + break; + } + // Post-Condition +- assert(_pos <= _size); ++ //assert(_pos <= _size); + + // Reset end-of-stream flag on a successful seek + _eos = false; +diff -rupNw source-original/configure source/configure +--- source-original/configure 2017-12-08 23:21:13.000000000 +0100 ++++ source/configure 2018-11-28 00:35:33.000000000 +0100 +@@ -3610,7 +3610,7 @@ case $_host_os in + amigaos* | cygwin* | dreamcast | ds | gamecube | mingw* | n64 | ps2 | ps3 | psp2 | psp | wii | wince) + _posix=no + ;; +- 3ds | android | androidsdl | beos* | bsd* | darwin* | freebsd* | gnu* | gph-linux | haiku* | hpux* | iphone | ios7 | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | riscos | solaris* | sunos* | uclinux* | webos) ++ 3ds | android | androidsdl | beos* | bsd* | darwin* | freebsd* | gnu* | gph-linux | haiku* | hpux* | iphone | ios7 | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | riscos | redox* | solaris* | sunos* | uclinux* | webos) + _posix=yes + ;; + os2-emx*) diff --git a/recipes/scummvm/recipe.sh b/recipes/scummvm/recipe.sh new file mode 100644 index 000000000..d5f5ff085 --- /dev/null +++ b/recipes/scummvm/recipe.sh @@ -0,0 +1,46 @@ +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="${PWD}/../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 + 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 +}