distribution/packages/emulators/libretro/pcsx_rearmed-lr/package.mk
fewtarius 207f8d8f69
* Update emulators, cores, and emulation support packages.
* box64, a5200-lr, atari800-lr, beetle-pce-fast-lr, beetle-pce-lr, beetle-psx-lr, bsnes-lr, package.mk, desmume-lr, dosbox-pure-lr, fbneo-lr, flycast-lr, genesis-plus-gx-lr, genesis-plus-gx-wide-lr, handy-lr, package.mk, mame-lr, mame2003-plus-lr, mupen64plus-nx-lr, opera-lr, pcsx_rearmed-lr, picodrive-lr, play-lr, ppsspp-lr, stella-lr, swanstation-lr, tic80-lr, cemu-sa, duckstation-sa, hatarisa, package.mk, ppsspp-sa, primehack, retroarch, scummvmsa, yuzu-sa, glsl-shaders, slang-shaders, and retroarch-joypads.
* Fix pipewire package oops.
2023-08-11 20:52:46 +00:00

40 lines
1.1 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-lr"
PKG_VERSION="d6ecbd77ccd78166445518d8737ac833e1265aa2"
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}
}
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
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/
case ${TARGET_ARCH} in
aarch64)
makeinstall_target32 pcsx_rearmed
;;
esac
}