2022-09-25 13:00:58 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 13:59:09 +00:00
|
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
2022-09-25 13:00:58 +00:00
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="desmume-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="cf0fcc6ea4a85b7491bdf9adc7bf09748b4be7da"
|
2022-09-25 13:00:58 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://git.libretro.com/libretro/desmume"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-09-25 13:00:58 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libpcap"
|
|
|
|
PKG_SHORTDESC="DeSmuME - Nintendo DS libretro"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
2023-07-23 14:22:51 +00:00
|
|
|
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
2022-09-25 13:00:58 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
|
2023-07-23 14:22:51 +00:00
|
|
|
elif [ "${OPENGLES_SUPPORT}" = yes ]; then
|
2022-09-25 13:00:58 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
2023-07-23 14:22:51 +00:00
|
|
|
PKG_PATCH_DIRS+=" gles"
|
2022-09-25 13:00:58 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
cd ${PKG_BUILD}/desmume/src/frontend/libretro
|
|
|
|
}
|
|
|
|
|
2023-07-20 13:23:03 +00:00
|
|
|
if [ "${ARCH}" = "arm" ]
|
|
|
|
then
|
|
|
|
make_target() {
|
|
|
|
make CC=${CC} platform=armv-unix-${TARGET_FLOAT}float-${TARGET_CPU}
|
|
|
|
}
|
|
|
|
elif [ "${ARCH}" = "x86_64" ]
|
|
|
|
then
|
|
|
|
make_target() {
|
|
|
|
make CC=${CC} platform=unix
|
|
|
|
}
|
|
|
|
else
|
|
|
|
make_target() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2022-09-25 13:00:58 +00:00
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
2023-07-20 13:23:03 +00:00
|
|
|
if [ "${ARCH}" = "aarch64" ]
|
|
|
|
then
|
|
|
|
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/desmume-*/.install_pkg/usr/lib/libretro/desmume_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
|
|
else
|
|
|
|
cp desmume_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
|
|
fi
|
2022-09-25 13:00:58 +00:00
|
|
|
}
|