distribution/packages/emulators/libretro/desmume-lr/package.mk
fewtarius 207f8d8f69
* 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

50 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="desmume-lr"
PKG_VERSION="cf0fcc6ea4a85b7491bdf9adc7bf09748b4be7da"
PKG_LICENSE="GPLv2"
PKG_SITE="https://git.libretro.com/libretro/desmume"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain libpcap"
PKG_SHORTDESC="DeSmuME - Nintendo DS libretro"
PKG_TOOLCHAIN="make"
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
elif [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
PKG_PATCH_DIRS+=" gles"
fi
pre_configure_target() {
cd ${PKG_BUILD}/desmume/src/frontend/libretro
}
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
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
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
}