-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kodi-binary-addons: add SwanStation game add-on
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv) | ||
|
||
PKG_NAME="libretro-swanstation" | ||
PKG_VERSION="6a8c32bb17df77e512a434f622ece1957f391ad8" | ||
PKG_SHA256="8ef44b88e057159c3b5fded06824494f4d3f5a5eea11e2e6f930ec42b15c3485" | ||
PKG_LICENSE="GPL-3.0-or-later" | ||
PKG_SITE="https://github.com/libretro/swanstation" | ||
PKG_URL="https://github.com/libretro/swanstation/archive/${PKG_VERSION}.tar.gz" | ||
PKG_DEPENDS_TARGET="toolchain" | ||
PKG_LONGDESC="SwanStation is a Libretro core implementation of DuckStation, which is an emulator of the Sony PlayStation console." | ||
PKG_TOOLCHAIN="cmake" | ||
|
||
PKG_LIBNAME="swanstation_libretro.so" | ||
PKG_LIBPATH="./${PKG_LIBNAME}" | ||
PKG_LIBVAR="SWANSTATION_LIB" | ||
|
||
if [ "${OPENGL_SUPPORT}" = "yes" ]; then | ||
PKG_DEPENDS_TARGET+=" ${OPENGL}" | ||
fi | ||
|
||
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then | ||
PKG_DEPENDS_TARGET+=" ${OPENGLES}" | ||
fi | ||
|
||
if [ "${VULKAN_SUPPORT}" = "yes" ]; then | ||
PKG_DEPENDS_TARGET+=" ${VULKAN}" | ||
fi | ||
|
||
PKG_CMAKE_OPTS_TARGET="-DBUILD_NOGUI_FRONTEND=OFF \ | ||
-DBUILD_QT_FRONTEND=OFF \ | ||
-DBUILD_LIBRETRO_CORE=ON \ | ||
-DENABLE_DISCORD_PRESENCE=OFF \ | ||
-DUSE_DRMKMS=ON" | ||
|
||
makeinstall_target() { | ||
mkdir -p ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME} | ||
cp ${PKG_LIBPATH} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME} | ||
echo "set(${PKG_LIBVAR} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME})" > ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}/${PKG_NAME}-config.cmake | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/mediacenter/kodi-binary-addons/game.libretro.swanstation/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv) | ||
|
||
PKG_NAME="game.libretro.swanstation" | ||
PKG_VERSION="1.0.0.27-Nexus" | ||
PKG_SHA256="05c497cf6862680694fb430ca311afebdeea63ef6f8ae94eae7194ecc25ad20c" | ||
PKG_REV="1" | ||
PKG_ARCH="any" | ||
PKG_LICENSE="GPL" | ||
PKG_SITE="https://github.com/kodi-game/game.libretro.swanstation" | ||
PKG_URL="https://github.com/kodi-game/game.libretro.swanstation/archive/${PKG_VERSION}.tar.gz" | ||
PKG_DEPENDS_TARGET="toolchain kodi-platform libretro-swanstation" | ||
PKG_SECTION="" | ||
PKG_LONGDESC="game.libretro.swanstation: SwanStation for Kodi" | ||
|
||
PKG_IS_ADDON="yes" | ||
PKG_ADDON_TYPE="kodi.gameclient" |