diff options
author | CRTS <crts [at] gmx [dot] net> | 2020-09-05 08:10:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-09-05 08:10:08 +0700 |
commit | b9efae64d8b709d45f1b9967bbd8aa48c72d7152 (patch) | |
tree | 4aa907c9be736a08513614bf32cd7161f060212f | |
parent | 84e8f4d2e2bfa31d6fb238bfbc4b201efdd4ea63 (diff) | |
download | slackbuilds-b9efae64d8b709d45f1b9967bbd8aa48c72d7152.tar.gz |
games/freedink: Patched for newer SDL2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/freedink/README | 3 | ||||
-rw-r--r-- | games/freedink/freedink.SlackBuild | 6 | ||||
-rw-r--r-- | games/freedink/patch_upgrade_sdl2-2.0.10 | 12 |
3 files changed, 19 insertions, 2 deletions
diff --git a/games/freedink/README b/games/freedink/README index d22be85d15..37eb59017f 100644 --- a/games/freedink/README +++ b/games/freedink/README @@ -5,6 +5,8 @@ You can install additional advanture through additional D-Mods which are available at https://www.dinknetwork.com. Known issues: +- Parallel compilation may result in a failed build. + - Freedink might start in a maximized, not resizable window. Parts of it may be outside the Desktop. If this happens then start the program from CLI in windowed mode: @@ -18,7 +20,6 @@ Known issues: https://www.dinknetwork.com/file/gnu_freedink/review/scratcher - Optional dependency: - upx If upx is installed on the system then it is automatically diff --git a/games/freedink/freedink.SlackBuild b/games/freedink/freedink.SlackBuild index 942030008c..28484cce1f 100644 --- a/games/freedink/freedink.SlackBuild +++ b/games/freedink/freedink.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=freedink PRGDATANAME=${PRGDATANAME:-$PRGNAM-data-*} PRGDATANAME=${PRGDATANAME%.tar.gz} VERSION=${VERSION:-109.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,6 +73,10 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION + +# patch for upgraded sdl2 +patch src/input.cpp < "$CWD/patch_upgrade_sdl2-2.0.10" + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ diff --git a/games/freedink/patch_upgrade_sdl2-2.0.10 b/games/freedink/patch_upgrade_sdl2-2.0.10 new file mode 100644 index 0000000000..71a9e7cc24 --- /dev/null +++ b/games/freedink/patch_upgrade_sdl2-2.0.10 @@ -0,0 +1,12 @@ +--- src/input.cpp 2020-09-04 17:04:11.132661873 +0200 ++++ ../b/src/input.cpp 2020-09-04 17:04:52.825140645 +0200 +@@ -91,7 +91,8 @@ + + // TODO: don't attempt to simulate mouse events from touch events - + // fake mouse events often are de-centered +- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0"); ++ SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1"); ++ SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "1"); + + /* Touch devices */ + { |