diff --git a/recipes/schismtracker/01_redox.patch b/recipes/schismtracker/01_redox.patch new file mode 100644 index 0000000000000000000000000000000000000000..0850319ad4329ddd82d02437778fac31ff1270aa --- /dev/null +++ b/recipes/schismtracker/01_redox.patch @@ -0,0 +1,24 @@ +diff -rupNw source-original/Makefile.am source/Makefile.am +--- source-original/Makefile.am 2018-08-10 07:04:54.000000000 +0200 ++++ source/Makefile.am 2018-12-30 23:18:07.957244170 +0100 +@@ -223,7 +223,7 @@ files_macosx = \ + endif + + if USE_NETWORK +-cflags_network=-DUSE_NETWORK ++#cflags_network=-DUSE_NETWORK + endif + + +diff -rupNw source-original/schism/main.c source/schism/main.c +--- source-original/schism/main.c 2018-08-10 07:04:54.000000000 +0200 ++++ source/schism/main.c 2018-12-30 23:19:24.954046191 +0100 +@@ -1033,7 +1033,7 @@ int main(int argc, char **argv) + + video_fullscreen(0); + +- tzset(); // localtime_r wants this ++ //tzset(); // localtime_r wants this + srand(time(NULL)); + parse_options(argc, argv); /* shouldn't this be like, first? */ + diff --git a/recipes/schismtracker/recipe.sh b/recipes/schismtracker/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9fa3a28382042b43385254d700da35fd0b3e167 --- /dev/null +++ b/recipes/schismtracker/recipe.sh @@ -0,0 +1,41 @@ +VERSION=20181223 +TAR=https://github.com/schismtracker/schismtracker/archive/$VERSION.tar.gz +TAR_SHA256=fc32930c611fdb78face87dbe8a3c62e70088fd8d4ad803140e0b9a0b2e72ad7 +BUILD_DEPENDS=(sdl liborbital libiconv) + +function recipe_version { + echo "$VERSION" + skip=1 +} + +function recipe_update { + echo "skipping update" + skip=1 +} + +function recipe_build { + sysroot="${PWD}/../sysroot" + export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL" + export LDFLAGS="-L$sysroot/lib" + export SDL_CONFIG="$sysroot/bin/sdl-config" + autoreconf -i + ./configure --host=${HOST} --prefix='' + 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 +} diff --git a/recipes/scummvm/01_redox.patch b/recipes/scummvm/01_redox.patch index 04d441492a175b473fc43b5e88e02598dda69045..153b7f5e8c80f8ded0483a873eeea2858d658719 100644 --- a/recipes/scummvm/01_redox.patch +++ b/recipes/scummvm/01_redox.patch @@ -1,17 +1,3 @@ -diff -rupNw source-original/audio/mixer.cpp source/audio/mixer.cpp ---- source-original/audio/mixer.cpp 2017-12-08 23:21:10.000000000 +0100 -+++ source/audio/mixer.cpp 2018-12-06 02:03:37.151198853 +0100 -@@ -237,7 +237,9 @@ void MixerImpl::playStream( - } - - -- assert(_mixerReady); -+ if (autofreeStream == DisposeAfterUse::YES) -+ delete stream; -+ return; - - // Prevent duplicate sounds - if (id != -1) { 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-12-06 02:01:50.454108198 +0100 diff --git a/recipes/scummvm/recipe.sh b/recipes/scummvm/recipe.sh index 6d5ca82b5434ef1f48791166f36bd19ffadfcb40..582a42d5d92afdd683fd63d5686713add1089fad 100644 --- a/recipes/scummvm/recipe.sh +++ b/recipes/scummvm/recipe.sh @@ -1,5 +1,6 @@ VERSION=2.0.0 TAR=https://www.scummvm.org/frs/scummvm/$VERSION/scummvm-$VERSION.tar.xz +TAR_SHA256=9784418d555ba75822d229514a05cf226b8ce1a751eec425432e6b7e128fca60 BUILD_DEPENDS=(sdl liborbital freetype zlib libpng) function recipe_version {