mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 22:34:18 +08:00
Add scummvm recipe
This commit is contained in:
parent
80742537b0
commit
19498b3b74
24
recipes/scummvm/01_redox.patch
Normal file
24
recipes/scummvm/01_redox.patch
Normal file
@ -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*)
|
||||
46
recipes/scummvm/recipe.sh
Normal file
46
recipes/scummvm/recipe.sh
Normal file
@ -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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user