2022-09-11 13:19:44 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
|
|
|
|
PKG_NAME="dolphin"
|
2022-12-22 22:02:45 +00:00
|
|
|
PKG_VERSION="2f4b0f7902257d40a054f60b2c670d6e314f2a04"
|
2022-09-11 13:19:44 +00:00
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain libevdev libdrm ffmpeg zlib libpng lzo libusb"
|
|
|
|
PKG_SITE="https://github.com/libretro/dolphin"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-09-11 13:19:44 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="Dolphin Libretro, a Gamecube & Wii emulator core for Retroarch"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
|
2022-09-13 11:10:05 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET+=" -DENABLE_X11=OFF \
|
|
|
|
-DENABLE_EGL=ON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET+=" -DENABLE_X11=OFF \
|
|
|
|
-DENABLE_EGL=ON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${DISPLAYSERVER}" = "wl" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" wayland ${WINDOWMANAGER} xorg-server xrandr libXi"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET+=" -DENABLE_X11=ON \
|
|
|
|
-DENABLE_EGL=ON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
|
|
|
then
|
|
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET+=" -DENABLE_VULKAN=ON"
|
|
|
|
fi
|
|
|
|
|
2022-09-11 13:19:44 +00:00
|
|
|
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() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/dolphin_libretro.so ${INSTALL}/usr/lib/libretro/
|
2022-09-11 13:19:44 +00:00
|
|
|
}
|