2021-06-06 20:58:51 +02:00
PKG_NAME = "swanstation"
2025-02-14 09:59:55 +01:00
PKG_VERSION = "10af0c78ba0e3516e70f4ed7c6020827bdb2647e"
2022-04-12 08:09:12 +02:00
PKG_GIT_CLONE_BRANCH = "main"
2021-09-29 13:38:53 +02:00
PKG_LICENSE = "GPL-3.0-or-later"
2021-06-06 20:58:51 +02:00
PKG_SITE = "https://github.com/libretro/swanstation"
2021-04-05 01:17:08 +02:00
PKG_URL = " ${ PKG_SITE } .git "
PKG_DEPENDS_TARGET = "toolchain"
2021-09-29 13:38:53 +02:00
PKG_LONGDESC = "SwanStation(DuckStation) is an simulator/emulator of the Sony PlayStation(TM) console, focusing on playability, speed, and long-term maintainability."
2021-04-05 01:17:08 +02:00
PKG_TOOLCHAIN = "cmake"
i f [ "${OPENGL_SUPPORT}" = "yes" ] ; t h e n
PKG_DEPENDS_TARGET += " ${ OPENGL } "
f i
i f [ "${OPENGLES_SUPPORT}" = "yes" ] ; t h e n
PKG_DEPENDS_TARGET += " ${ OPENGLES } "
f i
i f [ "${VULKAN_SUPPORT}" = "yes" ] ; t h e n
PKG_DEPENDS_TARGET += " ${ VULKAN } "
f i
2024-02-07 22:30:02 +02:00
PKG_CMAKE_OPTS_TARGET = "-DCMAKE_BUILD_TYPE=Release"
2022-02-25 15:00:00 +01:00
i f [ "${PROJECT}" = "Amlogic" ] ; t h e n
PKG_CMAKE_OPTS_TARGET += " -DUSE_FBDEV=ON"
e l s e
PKG_CMAKE_OPTS_TARGET += " -DUSE_DRMKMS=ON"
f i
2021-04-05 01:17:08 +02:00
m a k e i n s t a l l _ t a r g e t ( ) {
mkdir -p ${ INSTALL } /usr/lib/libretro
2021-06-06 20:58:51 +02:00
cp -v swanstation_libretro.so ${ INSTALL } /usr/lib/libretro/
2021-04-05 01:17:08 +02:00
}