mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 03:26:19 +00:00
57 lines
1.8 KiB
Makefile
57 lines
1.8 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-pcsx-rearmed"
|
|
PKG_VERSION="4373e29de72c917dbcd04ec2a5fb685e69d9def3"
|
|
PKG_SHA256="85560938cdad30be5994e935d35b0b4b8a12f6d2ca39c0034bfaa3d98cbcb11a"
|
|
PKG_LICENSE="GPLv2"
|
|
PKG_SITE="https://github.com/libretro/pcsx_rearmed"
|
|
PKG_URL="https://github.com/libretro/pcsx_rearmed/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="ARM optimized PCSX fork"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_LIBNAME="pcsx_rearmed_libretro.so"
|
|
PKG_LIBPATH="../${PKG_LIBNAME}"
|
|
PKG_LIBVAR="PCSX-REARMED_LIB"
|
|
|
|
PKG_MAKE_OPTS_TARGET="-f Makefile.libretro -C ../"
|
|
|
|
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL}"
|
|
fi
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
fi
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${VULKAN}"
|
|
fi
|
|
|
|
if [ "${ARCH}" = "arm" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" DYNAREC=ari64"
|
|
if target_has_feature neon ; then
|
|
PKG_MAKE_OPTS_TARGET+=" HAVE_NEON_ASM=1 BUILTIN_GPU=neon"
|
|
else
|
|
PKG_MAKE_OPTS_TARGET+=" HAVE_NEON_ASM=0 BUILTIN_GPU=unai"
|
|
fi
|
|
if [ "${DEVICE}" = "OdroidGoAdvance" ]; then
|
|
sed -e "s|armv8-a|armv8-a+crc|" \
|
|
-i ../Makefile.libretro
|
|
PKG_MAKE_OPTS_TARGET+=" platfrom=classic_armv8_a35"
|
|
else
|
|
PKG_MAKE_OPTS_TARGET+=" platform=unix"
|
|
fi
|
|
elif [ "${ARCH}" = "aarch64" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" platform=unix DYNAREC=ari64"
|
|
else
|
|
PKG_MAKE_OPTS_TARGET+=" platform=unix DYNAREC=none"
|
|
fi
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}
|
|
cp ${PKG_LIBPATH} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME}
|
|
echo "set(${PKG_LIBVAR} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME})" > ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}/${PKG_NAME}-config.cmake
|
|
}
|