2022-12-27 16:13:10 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="parallel-n64-lr"
|
2023-09-16 13:10:57 +00:00
|
|
|
PKG_VERSION="49eadb4da85f7e3bd59b60f61e8fd5dbfb9f07d5"
|
2023-01-17 16:36:11 +00:00
|
|
|
PKG_ARCH="any"
|
2022-12-27 16:13:10 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/parallel-n64"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain core-info"
|
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="Optimized/rewritten Nintendo 64 emulator made specifically for Libretro. Originally based on Mupen64 Plus."
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_BUILD_FLAGS="-lto"
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
2022-12-30 12:37:38 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
2022-12-27 16:13:10 +00:00
|
|
|
fi
|
|
|
|
|
2023-09-21 14:37:26 +00:00
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
|
|
|
|
PKG_MAKE_OPTS_TARGET+=" HAVE_PARALLEL=1"
|
|
|
|
fi
|
|
|
|
|
2023-01-08 22:49:32 +00:00
|
|
|
case ${DEVICE} in
|
2023-05-04 18:06:54 +00:00
|
|
|
RK3*|S922X*)
|
2023-09-21 14:37:26 +00:00
|
|
|
PKG_MAKE_OPTS_TARGET+=" platform=${DEVICE}"
|
2023-01-08 22:49:32 +00:00
|
|
|
;;
|
2023-09-21 14:37:26 +00:00
|
|
|
AMD64)
|
|
|
|
PKG_MAKE_OPTS_TARGET+=" HAVE_PARALLEL_RSP=1"
|
2023-01-08 22:49:32 +00:00
|
|
|
esac
|
|
|
|
|
2022-12-27 16:13:10 +00:00
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp parallel_n64_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/config/retroarch
|
|
|
|
cp -rf ${PKG_DIR}/config/* ${INSTALL}/usr/config/retroarch/
|
|
|
|
}
|
|
|
|
|