48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
PKG_NAME="beetle-psx-lr"
|
|
PKG_VERSION="fd812d4cf8f65644faef1ea8597f826ddc37c0a0"
|
|
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
|
|
}
|