2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="mupen64plus-nx-lr"
|
* Update emulators, cores, and emulation support packages.
* box64, a5200-lr, atari800-lr, beetle-pce-fast-lr, beetle-pce-lr, beetle-psx-lr, bsnes-lr, package.mk, desmume-lr, dosbox-pure-lr, fbneo-lr, flycast-lr, genesis-plus-gx-lr, genesis-plus-gx-wide-lr, handy-lr, package.mk, mame-lr, mame2003-plus-lr, mupen64plus-nx-lr, opera-lr, pcsx_rearmed-lr, picodrive-lr, play-lr, ppsspp-lr, stella-lr, swanstation-lr, tic80-lr, cemu-sa, duckstation-sa, hatarisa, package.mk, ppsspp-sa, primehack, retroarch, scummvmsa, yuzu-sa, glsl-shaders, slang-shaders, and retroarch-joypads.
* Fix pipewire package oops.
2023-08-11 20:52:46 +00:00
|
|
|
PKG_VERSION="26fd1edd640ff3db49dd5ebb7e54f0de6600fc45"
|
2022-02-05 14:23:32 +00:00
|
|
|
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-07-20 23:02:00 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain nasm:host"
|
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-07-20 23:02:00 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
pre_configure_target() {
|
2022-09-01 00:32:15 +00:00
|
|
|
sed -e "s|^GIT_VERSION ?.*$|GIT_VERSION := \" ${PKG_VERSION:0:7}\"|" -i Makefile
|
2023-10-27 09:52:13 +00:00
|
|
|
sed -i 's/\-O[23]/-Ofast/' ${PKG_BUILD}/Makefile
|
2023-01-30 20:12:36 +00:00
|
|
|
case ${DEVICE} in
|
2023-06-02 17:13:27 +00:00
|
|
|
RK3*|S922X*)
|
2023-02-16 22:40:39 +00:00
|
|
|
PKG_MAKE_OPTS_TARGET=" platform=${DEVICE}"
|
2023-01-30 20:12:36 +00:00
|
|
|
;;
|
|
|
|
esac
|
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
|
|
|
}
|