From 7329301194753d231f5a538bd6d22ef54ecd8d0d Mon Sep 17 00:00:00 2001 From: brooksytech Date: Tue, 29 Nov 2022 10:37:02 -0800 Subject: [PATCH] add beetle saturn to RG552 --- .../games/libretro/beetle-saturn/package.mk | 25 +++++++++++++++++++ .../config/common/es_systems.cfg | 1 + packages/virtual/emulators/package.mk | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 packages/games/libretro/beetle-saturn/package.mk diff --git a/packages/games/libretro/beetle-saturn/package.mk b/packages/games/libretro/beetle-saturn/package.mk new file mode 100644 index 000000000..3934146a2 --- /dev/null +++ b/packages/games/libretro/beetle-saturn/package.mk @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech) + +PKG_NAME="beetle-saturn" +PKG_VERSION="054862a4ccb9b2f1bad9e5b075fc3d1116dc8055" +PKG_LICENSE="GPLv2" +PKG_SITE="https://github.com/libretro/beetle-saturn-libretro" +PKG_URL="$PKG_SITE.git" +PKG_DEPENDS_TARGET="toolchain" +PKG_SECTION="libretro" +PKG_SHORTDESC="Beetle Saturn libretro, a fork from mednafen" +PKG_TOOLCHAIN="make" + +if [ ! "${OPENGL}" = "no" ]; then + PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd" +fi + +if [ "${OPENGLES_SUPPORT}" = yes ]; then + PKG_DEPENDS_TARGET+=" ${OPENGLES}" +fi + +makeinstall_target() { + mkdir -p $INSTALL/usr/lib/libretro + cp mednafen_saturn_libretro.so $INSTALL/usr/lib/libretro/beetle_saturn_libretro.so +} diff --git a/packages/ui/emulationstation/config/common/es_systems.cfg b/packages/ui/emulationstation/config/common/es_systems.cfg index b8009b8ae..b05c872a7 100644 --- a/packages/ui/emulationstation/config/common/es_systems.cfg +++ b/packages/ui/emulationstation/config/common/es_systems.cfg @@ -1768,6 +1768,7 @@ yabasanshiro + beetle_saturn diff --git a/packages/virtual/emulators/package.mk b/packages/virtual/emulators/package.mk index 0f85e411e..86459feb2 100644 --- a/packages/virtual/emulators/package.mk +++ b/packages/virtual/emulators/package.mk @@ -38,7 +38,7 @@ case "${DEVICE}" in PKG_DEPENDS_TARGET+=" common-shaders glsl-shaders" ;; RG552) - PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin slang-shaders" + PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin slang-shaders beetle-saturn" ;; RG503|RG353P) PKG_DEPENDS_TARGET+=" duckstationsa common-shaders glsl-shaders"