From 4e2ba368f48f1e2950cff812a373cdc068538af8 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 28 Feb 2021 21:10:40 +1000 Subject: [PATCH] PPSSPP: fix build --- .../ppsspp/patches/ppsspp-1.11.2.patchset | 25 ++++++++++++++++++- games-emulation/ppsspp/ppsspp-1.11.2.recipe | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/games-emulation/ppsspp/patches/ppsspp-1.11.2.patchset b/games-emulation/ppsspp/patches/ppsspp-1.11.2.patchset index 9e92bce6f..a21221d6d 100644 --- a/games-emulation/ppsspp/patches/ppsspp-1.11.2.patchset +++ b/games-emulation/ppsspp/patches/ppsspp-1.11.2.patchset @@ -1,4 +1,4 @@ -From 52c8a1df7ba4f70c4d72664d058efe6fba54106c Mon Sep 17 00:00:00 2001 +From 046b349aca3f40dca346a7aae5a09c1752448ac0 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 28 Feb 2021 20:30:33 +1000 Subject: Fixes for Haiku @@ -310,3 +310,26 @@ index 16b4adb..92c723d 100644 -- 2.30.0 + +From 6a00c49d19d6bef87e6a201528a37bb1cba6ac0f Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Sun, 28 Feb 2021 21:05:19 +1000 +Subject: Disable mlock for haiku + + +diff --git a/Core/Instance.cpp b/Core/Instance.cpp +index 4353641..d611078 100644 +--- a/Core/Instance.cpp ++++ b/Core/Instance.cpp +@@ -79,7 +79,7 @@ static bool UpdateInstanceCounter(void (*callback)(volatile InstanceInfo *)) { + UnmapViewOfFile(buf); + + return result; +-#elif PPSSPP_PLATFORM(ANDROID) || defined(__LIBRETRO__) ++#elif PPSSPP_PLATFORM(ANDROID) || defined(__LIBRETRO__) || defined(__HAIKU__) + // TODO: replace shm_open & shm_unlink with ashmem or android-shmem + return false; + #else +-- +2.30.0 + diff --git a/games-emulation/ppsspp/ppsspp-1.11.2.recipe b/games-emulation/ppsspp/ppsspp-1.11.2.recipe index e473f4ada..09dd3a604 100644 --- a/games-emulation/ppsspp/ppsspp-1.11.2.recipe +++ b/games-emulation/ppsspp/ppsspp-1.11.2.recipe @@ -5,7 +5,7 @@ Android or PC device." HOMEPAGE="https://www.ppsspp.org/" COPYRIGHT="2012-2021 PPSSPP Project" LICENSE="GNU GPL v2" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/hrydgard/ppsspp/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="0b70e4ae8000b0f8b2ef5e6110d406f6d2cbf8e597c1f594a643b10ce940ee6c" SOURCE_FILENAME="ppsspp-$portVersion.tar.gz"