2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="mupen64plus-nx"
|
2022-05-04 00:57:37 +00:00
|
|
|
PKG_VERSION="9f0849454dee17e66099ef8cdf8d53a86a3ade02"
|
|
|
|
PKG_SHA256="7fe742f5dd47bc5b0c354630b33f81981e76dc0f6d4f2a746b298fc3ac440502"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/mupen64plus-libretro-nx"
|
2022-05-27 22:33:28 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-02-27 23:34:12 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain nasm:host ${OPENGLES}"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="mupen64plus NX"
|
|
|
|
PKG_LONGDESC="mupen64plus NX"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_BUILD_FLAGS="-lto"
|
|
|
|
|
2022-02-27 23:34:12 +00:00
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
sed -e "s|^GIT_VERSION ?.*$|GIT_VERSION := \" ${PKG_VERSION:0:7}\"|" -i Makefile
|
2022-03-26 22:05:17 +00:00
|
|
|
if [[ "${DEVICE}" =~ RG351 ]]
|
|
|
|
then
|
|
|
|
PKG_MAKE_OPTS_TARGET=" platform=RK3326"
|
|
|
|
elif [[ "${DEVICE}" =~ RG552 ]]
|
|
|
|
then
|
|
|
|
PKG_MAKE_OPTS_TARGET=" platform=RK3399"
|
2022-05-27 22:33:28 +00:00
|
|
|
elif [[ "${DEVICE}" =~ RG503 ]]
|
|
|
|
then
|
|
|
|
PKG_MAKE_OPTS_TARGET=" platform=RK3566"
|
2022-03-26 22:05:17 +00:00
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-05-27 22:33:28 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp mupen64plus_next_libretro.so ${INSTALL}/usr/lib/libretro/
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|