svn commit: r508175 - in head/games/julius: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Aug 5 14:19:53 UTC 2019
Author: pkubaj
Date: Mon Aug 5 14:19:52 2019
New Revision: 508175
URL: https://svnweb.freebsd.org/changeset/ports/508175
Log:
games/julius: fix build with SDL 2.0.10
SDL 2.0.10 removed SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH and introduced SDL_HINT_MOUSE_TOUCH_EVENTS and SDL_HINT_TOUCH_MOUSE_EVENTS.
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D21148
Added:
head/games/julius/files/patch-src_platform_julius.c (contents, props changed)
Modified:
head/games/julius/Makefile
Modified: head/games/julius/Makefile
==============================================================================
--- head/games/julius/Makefile Mon Aug 5 14:19:52 2019 (r508174)
+++ head/games/julius/Makefile Mon Aug 5 14:19:52 2019 (r508175)
@@ -13,8 +13,6 @@ COMMENT= Open source re-implementation of Caesar III
LICENSE= GPLv3
-BROKEN= use of undeclared identifier 'SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH'
-
USES= cmake sdl
USE_GITHUB= yes
Added: head/games/julius/files/patch-src_platform_julius.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/julius/files/patch-src_platform_julius.c Mon Aug 5 14:19:52 2019 (r508175)
@@ -0,0 +1,12 @@
+--- src/platform/julius.c.orig 2019-08-03 16:50:03 UTC
++++ src/platform/julius.c
+@@ -369,7 +369,8 @@ static int init_sdl(void)
+ return 0;
+ }
+ #if SDL_VERSION_ATLEAST(2, 0, 4)
+- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1");
++ SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
++ SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
+ #endif
+ SDL_Log("SDL initialized");
+ return 1;
More information about the svn-ports-all
mailing list