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-03-03 01:10:23 +00:00
|
|
|
PKG_VERSION="6e9dcd2cd9d23d3e79eaf2349bf7e9f25ad45bf1"
|
|
|
|
PKG_SHA256="6f674ce910c85dc5f43e2c3685484d8da8f7e420d4da242f2b524b692da5909f"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/mupen64plus-libretro-nx"
|
|
|
|
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-02-27 23:34:12 +00:00
|
|
|
PKG_MAKE_OPTS_TARGET+=" platform=RK3399"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p $INSTALL/usr/lib/libretro
|
|
|
|
cp mupen64plus_next_libretro.so $INSTALL/usr/lib/libretro/
|
|
|
|
}
|