Add RA cores beetle-saturn and Play! (PS2) to x86

This commit is contained in:
brooksytech 2022-12-09 06:18:56 -08:00
parent f0715e72ba
commit 8f2aa376b1
No known key found for this signature in database
GPG key ID: 45B78D3C7B40B188
5 changed files with 65 additions and 1 deletions

View file

@ -0,0 +1,41 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="play"
PKG_VERSION="38d3775a07d3b1041d3732e0bb05627fcb4fe492"
PKG_ARCH="x86_64"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/jpd002/Play-"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain libevdev"
PKG_LONGDESC="Play! is an attempt to create a PlayStation 2 emulator for Windows, macOS, UNIX, Android & iOS platforms."
PKG_TOOLCHAIN="cmake"
PKG_CMAKE_OPTS_TARGET="-DBUILD_LIBRETRO_CORE=yes \
-DBUILD_PLAY=off \
-DBUILD_TESTS=no \
-DENABLE_AMAZON_S3=no \
-DUSE_GLEW=no \
-DCMAKE_BUILD_TYPE=Release"
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu"
fi
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
if [ "${OPENGL_SUPPORT}" = "no" -a "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=yes"
fi
pre_make_target() {
find ${PKG_BUILD} -name flags.make -exec sed -i "s:isystem :I:g" \{} \;
find ${PKG_BUILD} -name build.ninja -exec sed -i "s:isystem :I:g" \{} \;
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp $PKG_BUILD/.$TARGET_NAME/Source/ui_libretro/play_libretro.so $INSTALL/usr/lib/libretro/
}

View file

@ -0,0 +1,20 @@
diff --git a/Source/ui_libretro/CMakeLists.txt b/Source/ui_libretro/CMakeLists.txt
index b84b0c40..d02a5f32 100644
--- a/Source/ui_libretro/CMakeLists.txt
+++ b/Source/ui_libretro/CMakeLists.txt
@@ -40,14 +40,6 @@ if(TARGET_PLATFORM_ANDROID)
list(APPEND PROJECT_LIBS android log GLESv3 EGL)
elseif(TARGET_PLATFORM_IOS)
list(APPEND PROJECT_LIBS "-ObjC -lsqlite3 -framework OpenGLES")
-elseif(TARGET_PLATFORM_UNIX)
- list(APPEND PROJECT_LIBS "-static-libgcc")
- list(APPEND PROJECT_LIBS "-static-libstdc++")
-endif()
-
-if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lstdc++fs")
- list(APPEND PROJECT_LIBS "libstdc++fs.a")
endif()
add_library(play_libretro SHARED ${SRC})

View file

@ -181,6 +181,7 @@
<core name="parallel_n64_rice" features="netplay, rewind, autosave, cheevos" />
<core name="pcsx_rearmed" features="netplay, rewind, autosave, cheevos" />
<core name="pcsx_rearmed32" features="netplay, rewind, autosave, cheevos" />
<core name="play" features="autosave" />
<core name="picodrive" features="decoration, netplay, rewind, autosave, cheevos" />
<core name="pokemini" features="decoration, netplay, rewind, autosave, cheevos" />
<core name="ppsspp" features="netplay, rewind, autosave, cheevos" />

View file

@ -1508,6 +1508,7 @@
<emulator name="retroarch">
<cores>
<core default="true">pcsx2</core>
<core>play</core>
</cores>
</emulator>
<emulator name="pcsx2sa">
@ -1822,6 +1823,7 @@
<emulator name="retroarch">
<cores>
<core default="true">yabasanshiro</core>
<core>beetle-saturn</core>
</cores>
</emulator>
</emulators>

View file

@ -44,6 +44,6 @@ case "${DEVICE}" in
PKG_DEPENDS_TARGET+=" duckstationsa common-shaders glsl-shaders"
;;
handheld)
PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin pcsx2sa pcsx2 desmume bsnes citra slang-shaders minivmac minivmacsa"
PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin pcsx2sa pcsx2 desmume bsnes citra slang-shaders minivmac minivmacsa play beetle-saturn"
;;
esac