1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/lakka/libretro_cores/kronos/package.mk
2022-12-16 00:42:11 +02:00

36 lines
935 B
Makefile

PKG_NAME="kronos"
PKG_VERSION="869c46c1d3684d820f5a368bcae1cc95fe5a9888"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/yabause"
PKG_URL="${PKG_SITE}.git"
PKG_GIT_CLONE_BRANCH="kronos"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Port of Kronos to libretro."
PKG_TOOLCHAIN="make"
PKG_MAKE_OPTS_TARGET="-C yabause/src/libretro HAVE_CDROM=1"
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL}"
fi
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
PKG_MAKE_OPTS_TARGET+=" FORCE_GLES=1"
fi
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${VULKAN}"
fi
if [ "${ARCH}" = "arm" ]; then
PKG_MAKE_OPTS_TARGET+=" platform=armv"
elif [ "${ARCH}" = "aarch64" ]; then
PKG_MAKE_OPTS_TARGET+=" platform=arm64"
fi
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp -v yabause/src/libretro/kronos_libretro.so ${INSTALL}/usr/lib/libretro/
}