# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS) PKG_NAME="beetle-psx-lr" PKG_VERSION="05fda4c7e4e98392aca86198644b0c0153369771" PKG_LICENSE="GPLv2" PKG_SITE="https://git.libretro.com/libretro/beetle-psx-libretro" PKG_URL="${PKG_SITE}.git" PKG_DEPENDS_TARGET="toolchain" PKG_SHORTDESC="Fork of Mednafen PSX" PKG_TOOLCHAIN="make" if [ ! "${OPENGL}" = "no" ]; then PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd" fi if [ "${OPENGLES_SUPPORT}" = yes ]; then PKG_DEPENDS_TARGET+=" ${OPENGLES}" fi if [ "${VULKAN_SUPPORT}" = "yes" ] then PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers" fi PKG_MAKE_OPTS_TARGET+=" LINK_STATIC_LIBCPLUSPLUS=0" case ${DEVICE} in AMD64) PKG_MAKE_OPTS_TARGET+=" HAVE_HW=1" ;; esac makeinstall_target() { mkdir -p ${INSTALL}/usr/lib/libretro case ${DEVICE} in AMD64) cp mednafen_psx_hw_libretro.so ${INSTALL}/usr/lib/libretro/beetle_psx_libretro.so cp -vP ${PKG_BUILD}/../core-info-*/beetle_psx_hw_libretro.info ${INSTALL}/usr/lib/libretro/beetle_psx_libretro.info sed -i 's/Beetle PSX HW/Beetle PSX/g' ${INSTALL}/usr/lib/libretro/beetle_psx_libretro.info ;; *) cp mednafen_psx_libretro.so ${INSTALL}/usr/lib/libretro/beetle_psx_libretro.so ;; esac }