distribution/packages/games/libretro/pcsx_rearmed/package.mk

41 lines
1.3 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020 Trond Haugland (trondah@gmail.com)
# Copyright (C) 2022-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME="pcsx_rearmed"
2022-09-10 17:09:00 +00:00
PKG_VERSION="e884777a544661da5bad2413bdb3755b3c32ddb2"
PKG_SHA256="5718a1f5957147e197b15f38df2ab747e7ef344260cdbbe383cfab377d75bb3a"
2022-02-05 14:23:32 +00:00
PKG_REV="1"
2022-08-31 23:11:02 +00:00
PKG_ARCH="arm aarch64"
2022-02-05 14:23:32 +00:00
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}"
2022-02-05 14:23:32 +00:00
make_target() {
2022-02-05 14:23:32 +00:00
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
2022-02-05 14:23:32 +00:00
else
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=${DEVICE}
2022-02-05 14:23:32 +00:00
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
}