2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020 Trond Haugland (trondah@gmail.com)
|
2022-04-20 21:25:52 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="pcsx_rearmed"
|
2022-06-06 14:56:59 +00:00
|
|
|
PKG_VERSION="9723f27f9d28d90c8f54a9cd9e7203a87cc41b29"
|
|
|
|
PKG_SHA256="cba3f7fb43b0770f177ce4258486ec056f5180ec647e68b1937c7ec4f7a1d8ae"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_REV="1"
|
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/pcsx_rearmed"
|
|
|
|
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_SHORTDESC="ARM optimized PCSX fork"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
2022-04-20 21:25:52 +00:00
|
|
|
PKG_PATCH_DIRS+="${TARGET_ARCH}/${DEVICE}"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-20 16:27:48 +00:00
|
|
|
make_target() {
|
2022-02-05 14:23:32 +00:00
|
|
|
cd ${PKG_BUILD}
|
2022-04-20 16:27:48 +00:00
|
|
|
if [[ "${DEVICE}" =~ RG351 ]]
|
|
|
|
then
|
|
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=RG351x
|
2022-06-18 15:30:15 +00:00
|
|
|
elif [[ "${DEVICE}" =~ RG503 ]] || [[ "${DEVICE}" =~ RG353P ]]
|
|
|
|
then
|
2022-06-18 15:36:52 +00:00
|
|
|
PKG_MAKE_OPTS_TARGET+=" platform=RK3566"
|
2022-02-05 14:23:32 +00:00
|
|
|
else
|
2022-04-20 16:27:48 +00:00
|
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=${DEVICE}
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
|
|
|
}
|
2022-04-20 16:27:48 +00:00
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-04-20 21:25:52 +00:00
|
|
|
## Install the 64bit core.
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
|
|
## Install the 32bit core.
|
|
|
|
cp -vP ${PKG_BUILD}/../../build.${DISTRO}-${DEVICE}.arm/pcsx_rearmed-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/pcsx_rearmed32_libretro.so
|
2022-04-20 16:27:48 +00:00
|
|
|
}
|