2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
|
|
|
2022-03-23 16:34:41 +00:00
|
|
|
PKG_NAME="parallel-n64_rice"
|
2022-02-07 01:09:44 +00:00
|
|
|
PKG_VERSION="28c4572c9a09447b3bf5ed5fbd3594a558bc210d"
|
|
|
|
PKG_SHA256="03ebfd3b27f8d6d2846d180c2dba6ae5dd36f1f1ebea79db8c41817525ce38d2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_REV="2"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/parallel-n64"
|
2022-03-18 23:47:11 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-03-23 16:34:41 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain ${OPENGLES} core-info"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="Optimized/rewritten Nintendo 64 emulator made specifically for Libretro. Originally based on Mupen64 Plus."
|
|
|
|
PKG_LONGDESC="Optimized/rewritten Nintendo 64 emulator made specifically for Libretro. Originally based on Mupen64 Plus."
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_BUILD_FLAGS="-lto"
|
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
|
|
|
|
2022-02-12 23:19:57 +00:00
|
|
|
if [ "${ARCH}" = "arm" ]
|
|
|
|
then
|
2022-03-18 23:47:11 +00:00
|
|
|
PKG_MAKE_OPTS_TARGET=" platform=rg552"
|
2022-02-12 23:19:57 +00:00
|
|
|
else
|
2022-03-18 23:47:11 +00:00
|
|
|
make_target() {
|
|
|
|
:
|
|
|
|
}
|
2022-02-12 23:19:57 +00:00
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
pre_configure_target() {
|
2022-03-23 16:34:41 +00:00
|
|
|
sed -i 's/info->library_name = "ParaLLEl N64";/info->library_name = "ParaLLEl N64 Rice";/g' ${PKG_BUILD}/libretro/libretro.c
|
2022-03-18 23:47:11 +00:00
|
|
|
sed -i 's/"GFX Plugin; auto|glide64|gln64|rice/"GFX Plugin; rice|auto|glide64|gln64/g' ${PKG_BUILD}/libretro/libretro.c
|
|
|
|
#sed -i 's/"Resolution (restart); 320x240|640x480|960x720/"Resolution (restart); 640x480|320x240|960x720/g' ${PKG_BUILD}/libretro/libretro.c
|
|
|
|
sed -i 's/"Framerate (restart); original|fullspeed"/"Framerate (restart); fullspeed|original"/g' ${PKG_BUILD}/libretro/libretro.c
|
|
|
|
sed -i 's/"GFX Accuracy (restart); veryhigh|high|medium|low"/"GFX Accuracy (restart); low|veryhigh|high|medium"/g' ${PKG_BUILD}/libretro/libretro.c
|
|
|
|
sed -i 's/"(Glide64) Texture Filtering; automatic|N64 3-point|bilinear|nearest"/"(Glide64) Texture Filtering; nearest|automatic|N64 3-point|bilinear"/g' ${PKG_BUILD}/libretro/libretro.c
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-03-18 23:47:11 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
if [[ "${ARCH}" == "aarch64" ]]
|
2022-02-13 00:20:28 +00:00
|
|
|
then
|
2022-03-23 16:34:41 +00:00
|
|
|
cp -vP ${PKG_BUILD}/../../build.${DISTRO}-${DEVICE}.arm/parallel-n64_rice-*/.install_pkg/usr/lib/libretro/parallel_n64_rice_libretro.so ${INSTALL}/usr/lib/libretro/parallel_n64_rice_libretro.so
|
|
|
|
cp -vP ${PKG_BUILD}/../core-info-*/parallel_n64_libretro.info ${INSTALL}/usr/lib/libretro/parallel_n64_rice_libretro.info
|
|
|
|
sed -i 's/ParaLLEl N64/ParaLLEl N64 Rice/g' ${INSTALL}/usr/lib/libretro/parallel_n64_rice_libretro.info
|
2022-02-13 00:20:28 +00:00
|
|
|
else
|
2022-03-23 16:34:41 +00:00
|
|
|
cp parallel_n64_libretro.so ${INSTALL}/usr/lib/libretro/parallel_n64_rice_libretro.so
|
2022-02-13 00:20:28 +00:00
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|