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

38 lines
1.1 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)
PKG_NAME="pcsx_rearmed"
2022-03-17 11:34:49 +00:00
PKG_VERSION="75d5614bce62f7c2b3ca196574cf28bc9d050cdb"
PKG_SHA256="c8eedaafa1977d1f6d429541681bbf133c9e8aa04e09c7015bf582cc4e146ab5"
2022-02-05 14:23:32 +00:00
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"
2022-03-23 16:35:14 +00:00
PKG_TOOLCHAIN="make"
2022-02-05 14:23:32 +00:00
PKG_BUILD_FLAGS="+speed -gold"
PKG_PATCH_DIRS+="${DEVICE}"
2022-03-23 16:05:56 +00:00
if [ "${ARCH}" = "arm" ]
then
2022-03-23 16:19:51 +00:00
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} PKG_MAKE_OPTS_TARGET+=" platform=rg552"
2022-03-23 16:05:56 +00:00
else
make_target() {
:
}
fi
2022-02-05 14:23:32 +00:00
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
}