distribution/packages/games/libretro/parallel-n64/package.mk
2022-12-27 15:07:53 -08:00

43 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="parallel-n64"
PKG_VERSION="a03fdcba6b2e9993f050b50112f597ce2f44fa2c"
PKG_REV="2"
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
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
case ${DEVICE} in
RG351P|RG351V|RG351MP|RGB20S)
PKG_MAKE_OPTS_TARGET=" platform=unix_RK3326"
;;
RG503|RG353P)
PKG_MAKE_OPTS_TARGET+=" platform=unix_RK3566"
;;
RG552)
PKG_MAKE_OPTS_TARGET=" platform=unix_RK3399"
;;
esac
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/
}