distribution/packages/games/libretro/pcsx_rearmed/package.mk
2022-03-02 20:10:23 -05:00

35 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020 Trond Haugland (trondah@gmail.com)
PKG_NAME="pcsx_rearmed"
PKG_VERSION="40b19b536c6af2474d679d7ec1a529fcbe17a87c"
PKG_SHA256="05ef261b4ca8a116090be1505881bfd3bb3f51f75de5ca512a32db1839c01278"
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_BUILD_FLAGS="+speed -gold"
PKG_PATCH_DIRS+="${DEVICE}"
make_target() {
cd ${PKG_BUILD}
if [ ! "${ARCH}" = "aarch64" ]; then
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=rpi3
fi
}
makeinstall_target() {
INSTALLTO="/usr/lib/libretro/"
mkdir -p ${INSTALL}${INSTALLTO}
cd ${PKG_BUILD}
if [ "${ARCH}" = "aarch64" ]; then
cp -vP ${PKG_BUILD}/../../build.${DISTRO}-${DEVICE}.arm/pcsx_rearmed-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}${INSTALLTO}
else
cp pcsx_rearmed_libretro.so ${INSTALL}${INSTALLTO}
fi
}