2023-02-21 10:45:50 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020 Trond Haugland (trondah@gmail.com)
|
|
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="pcsx_rearmed-lr"
|
2023-09-07 10:27:54 +00:00
|
|
|
PKG_VERSION="1b591888c4aec568da64ea2897e9ad8bbf33cea1"
|
2023-02-21 10:45:50 +00:00
|
|
|
PKG_ARCH="arm aarch64"
|
|
|
|
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+="${TARGET_ARCH}/${DEVICE}"
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
cd ${PKG_BUILD}
|
|
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=${DEVICE}
|
|
|
|
}
|
|
|
|
|
2023-04-05 21:09:40 +00:00
|
|
|
makeinstall_target32() {
|
|
|
|
case ${ARCH} in
|
|
|
|
aarch64)
|
|
|
|
if [ "${ENABLE_32BIT}" == "true" ]
|
|
|
|
then
|
|
|
|
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/${PKG_NAME}-*/.install_pkg/usr/lib/libretro/${1}_libretro.so ${INSTALL}/usr/lib/libretro/${1}32_libretro.so
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2023-02-21 10:45:50 +00:00
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/
|
2023-05-24 23:56:55 +00:00
|
|
|
case ${TARGET_ARCH} in
|
|
|
|
aarch64)
|
|
|
|
makeinstall_target32 pcsx_rearmed
|
|
|
|
;;
|
|
|
|
esac
|
2023-02-21 10:45:50 +00:00
|
|
|
}
|