From 895fd8d1f9ce94be83afe4830048c241ea4e2608 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 11 Apr 2020 17:57:10 -0400 Subject: games/scummvm: Updated for version 2.1.2, fix build. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/scummvm/fix-fluidsynth2-build.diff | 27 +++++++++++++++++++++++++++ games/scummvm/scummvm.SlackBuild | 7 ++++++- games/scummvm/scummvm.info | 6 +++--- 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 games/scummvm/fix-fluidsynth2-build.diff (limited to 'games') diff --git a/games/scummvm/fix-fluidsynth2-build.diff b/games/scummvm/fix-fluidsynth2-build.diff new file mode 100644 index 0000000000..db7edcd335 --- /dev/null +++ b/games/scummvm/fix-fluidsynth2-build.diff @@ -0,0 +1,27 @@ +diff -Naur scummvm-2.1.2/audio/softsynth/fluidsynth.cpp scummvm-2.1.2.patched/audio/softsynth/fluidsynth.cpp +--- scummvm-2.1.2/audio/softsynth/fluidsynth.cpp 2020-03-30 18:32:51.000000000 -0400 ++++ scummvm-2.1.2.patched/audio/softsynth/fluidsynth.cpp 2020-04-11 17:40:39.247407731 -0400 +@@ -20,10 +20,13 @@ + * + */ + +-#include "common/scummsys.h" ++#include "config.h" + + #ifdef USE_FLUIDSYNTH + ++#include ++ ++#include "common/scummsys.h" + #include "common/config-manager.h" + #include "common/error.h" + #include "common/system.h" +@@ -35,8 +38,6 @@ + #include "backends/platform/ios7/ios7_common.h" + #endif + +-#include +- + class MidiDriver_FluidSynth : public MidiDriver_Emulated { + private: + MidiChannel_MPU401 _midiChannels[16]; diff --git a/games/scummvm/scummvm.SlackBuild b/games/scummvm/scummvm.SlackBuild index 1a54e58fe9..c0a8a400f7 100644 --- a/games/scummvm/scummvm.SlackBuild +++ b/games/scummvm/scummvm.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=scummvm -VERSION=${VERSION:-2.1.1} +VERSION=${VERSION:-2.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,8 +72,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# 20200411 bkw: This is necessary for fluidsynth-2.x. Based on upstream's +# git commit 68758a87. +patch -p1 < $CWD/fix-fluidsynth2-build.diff + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="-fuse-ld=gold" \ ./configure \ --prefix=/usr \ --bindir=/usr/games \ diff --git a/games/scummvm/scummvm.info b/games/scummvm/scummvm.info index afe8aaddfc..dbc0117305 100644 --- a/games/scummvm/scummvm.info +++ b/games/scummvm/scummvm.info @@ -1,8 +1,8 @@ PRGNAM="scummvm" -VERSION="2.1.1" +VERSION="2.1.2" HOMEPAGE="https://www.scummvm.org/" -DOWNLOAD="https://www.scummvm.org/frs/scummvm/2.1.1/scummvm-2.1.1.tar.xz" -MD5SUM="d75fec6358f7814b47d6aca5e18c9863" +DOWNLOAD="https://www.scummvm.org/frs/scummvm/2.1.2/scummvm-2.1.2.tar.xz" +MD5SUM="dd680a1f0f3a6745bf3a8033167ee778" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3