37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
PKG_NAME="parallel-n64-lr"
|
|
PKG_VERSION="a03fdcba6b2e9993f050b50112f597ce2f44fa2c"
|
|
PKG_ARCH="any"
|
|
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
|
|
RK3*|S922X*)
|
|
PKG_MAKE_OPTS_TARGET=" platform=${DEVICE}"
|
|
;;
|
|
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/
|
|
}
|
|
|