distribution/packages/emulators/libretro/pcsx_rearmed-lr/package.mk

30 lines
1 KiB
Makefile
Raw Normal View History

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-02-21 10:45:50 +00:00
PKG_VERSION="4373e29de72c917dbcd04ec2a5fb685e69d9def3"
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_target() {
## Install the 64bit core.
mkdir -p ${INSTALL}/usr/lib/libretro
cp pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/
2023-04-04 19:19:27 +00:00
if [ "${TARGET_ARCH}" = "aarch64" ] && [ ! ${DEVICE} = 'S922X' ]
2023-02-21 10:45:50 +00:00
then
2023-03-18 05:18:35 +00:00
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/pcsx_rearmed-lr-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/pcsx_rearmed32_libretro.so
2023-02-21 10:45:50 +00:00
fi
}