40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2020 Trond Haugland (trondah@gmail.com)
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
PKG_NAME="pcsx_rearmed"
|
|
PKG_VERSION="89d141837c31ce3fbb22494165004fd6f84397c8"
|
|
PKG_SHA256="858ec27f99f57da30a6cb90f8b84b5e9e52fb64ffcb68caba756416976b1f92e"
|
|
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+="${TARGET_ARCH}/${DEVICE}"
|
|
|
|
make_target() {
|
|
cd ${PKG_BUILD}
|
|
if [[ "${DEVICE}" =~ RG351 ]]
|
|
then
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=RG351x
|
|
elif [[ "${DEVICE}" =~ RG503 ]] || [[ "${DEVICE}" =~ RG353P ]]
|
|
then
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=RK3566
|
|
else
|
|
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=${DEVICE}
|
|
fi
|
|
}
|
|
|
|
makeinstall_target() {
|
|
## Install the 64bit core.
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
cp pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
if [ "${TARGET_ARCH}" = "aarch64" ]
|
|
then
|
|
## Install the 32bit core.
|
|
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/pcsx_rearmed-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/pcsx_rearmed32_libretro.so
|
|
fi
|
|
}
|