2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020 Trond Haugland (trondah@gmail.com)
|
|
|
|
|
|
|
|
PKG_NAME="pcsx_rearmed"
|
2022-04-03 00:31:13 +00:00
|
|
|
PKG_VERSION="861f92d714211167fb72583f921c992ada90f0fa"
|
|
|
|
PKG_SHA256="e24a41a58bd8b43b26dd8d26b465264150dd05fc406f0cadd67788029874c66f"
|
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"
|
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
|
|
|
|
2022-03-23 16:05:56 +00:00
|
|
|
if [ "${ARCH}" = "arm" ]
|
|
|
|
then
|
2022-03-25 18:58:28 +00:00
|
|
|
make_target() {
|
|
|
|
cd ${PKG_BUILD}
|
2022-03-26 23:25:21 +00:00
|
|
|
if [[ "${DEVICE}" =~ RG351 ]]
|
|
|
|
then
|
2022-03-27 00:37:11 +00:00
|
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=RG351x
|
|
|
|
else
|
|
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=${DEVICE}
|
2022-03-26 23:25:21 +00:00
|
|
|
fi
|
2022-03-25 18:58:28 +00:00
|
|
|
}
|
2022-03-23 16:05:56 +00:00
|
|
|
else
|
|
|
|
make_target() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
INSTALLTO="/usr/lib/libretro/"
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}${INSTALLTO}
|
|
|
|
cd ${PKG_BUILD}
|
|
|
|
if [ "${ARCH}" = "aarch64" ]; then
|
|
|
|
cp -vP ${PKG_BUILD}/../../build.${DISTRO}-${DEVICE}.arm/pcsx_rearmed-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}${INSTALLTO}
|
|
|
|
else
|
|
|
|
cp pcsx_rearmed_libretro.so ${INSTALL}${INSTALLTO}
|
|
|
|
fi
|
|
|
|
}
|