From 27a4a0c4bca268448e7d396e5680c56f8ccb96ba Mon Sep 17 00:00:00 2001 From: brooksytech Date: Sun, 11 Sep 2022 06:19:44 -0700 Subject: [PATCH] Add dolphin libretro core for the RG552 and X86 builds --- packages/games/libretro/dolphin/package.mk | 36 +++++++++++++++++++ .../config/common/es_systems.cfg | 5 +++ packages/virtual/emulators/package.mk | 4 +-- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 packages/games/libretro/dolphin/package.mk diff --git a/packages/games/libretro/dolphin/package.mk b/packages/games/libretro/dolphin/package.mk new file mode 100644 index 000000000..2f2155ab3 --- /dev/null +++ b/packages/games/libretro/dolphin/package.mk @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech) + +PKG_NAME="dolphin" +PKG_VERSION="016a5926aeda89087a073b1e6d245396da4b2256" +PKG_ARCH="any" +PKG_LICENSE="GPLv2" +PKG_DEPENDS_TARGET="toolchain libevdev libdrm ffmpeg zlib libpng lzo libusb" +PKG_SITE="https://github.com/libretro/dolphin" +PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_SECTION="libretro" +PKG_SHORTDESC="Dolphin Libretro, a Gamecube & Wii emulator core for Retroarch" +PKG_TOOLCHAIN="cmake" + +pre_configure_target() { + PKG_CMAKE_OPTS_TARGET+=" -DENABLE_EGL=ON \ + -DUSE_SHARED_ENET=OFF \ + -DUSE_UPNP=ON \ + -DENABLE_NOGUI=ON \ + -DENABLE_QT=OFF \ + -DENABLE_LTO=ON \ + -DENABLE_GENERIC=OFF \ + -DENABLE_HEADLESS=ON \ + -DENABLE_ALSA=ALSA \ + -DENABLE_PULSEAUDIO=ON \ + -DENABLE_LLVM=OFF \ + -DENABLE_TESTS=OFF \ + -DUSE_DISCORD_PRESENCE=OFF \ + -DLIBRETRO=ON" + } + +makeinstall_target() { + mkdir -p $INSTALL/usr/lib/libretro + cp $PKG_BUILD/.$TARGET_NAME/dolphin_libretro.so $INSTALL/usr/lib/libretro/ +} diff --git a/packages/ui/emulationstation/config/common/es_systems.cfg b/packages/ui/emulationstation/config/common/es_systems.cfg index 5c7bad8fc..18c7b2b39 100644 --- a/packages/ui/emulationstation/config/common/es_systems.cfg +++ b/packages/ui/emulationstation/config/common/es_systems.cfg @@ -789,6 +789,11 @@ dolphinsa + + + dolphin + + diff --git a/packages/virtual/emulators/package.mk b/packages/virtual/emulators/package.mk index b927f3a37..aa1fbcebc 100644 --- a/packages/virtual/emulators/package.mk +++ b/packages/virtual/emulators/package.mk @@ -36,12 +36,12 @@ PKG_DEPENDS_TARGET="${PKG_EMUS} ${PKG_RETROARCH} ${LIBRETRO_CORES}" ### Emulators or cores for specific devices case "${DEVICE}" in RG552) - PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa" + PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin" ;; RG503|RG353P) PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa" ;; handheld) - PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa pcsx2" + PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin pcsx2" ;; esac