2022-09-25 13:00:58 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="desmume-lr"
|
2023-03-14 21:59:38 +00:00
|
|
|
PKG_VERSION="fbd368c8109f95650e1f81bca1facd6d4d8687d7"
|
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"
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
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
|
|
|
}
|