Skip to content

Commit

Permalink
libretro-desmume: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
HiassofT committed Sep 2, 2019
1 parent 23434e1 commit b615639
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions packages/emulation/libretro-desmume/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,20 @@ PKG_SHA256="13713a32e2e797308f6a677a0a8e65c628339519bd9a8a10b8a495c5120aa1d6"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/desmume"
PKG_URL="https://github.com/libretro/desmume/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain kodi-platform"
PKG_DEPENDS_TARGET="toolchain kodi-platform libpcap"
PKG_LONGDESC="libretro wrapper for desmume NDS emulator."
PKG_TOOLCHAIN="make"

PKG_LIBNAME="desmume_libretro.so"
PKG_LIBPATH="desmume/$PKG_LIBNAME"
PKG_LIBPATH="desmume/src/frontend/libretro/${PKG_LIBNAME}"
PKG_LIBVAR="DESMUME_LIB"

make_target() {
case $TARGET_CPU in
arm1176jzf-s)
make -C desmume -f Makefile.libretro platform=armv6-hardfloat-$TARGET_CPU
;;
cortex-a7|cortex-a9)
make -C desmume -f Makefile.libretro platform=armv7-neon-hardfloat-$TARGET_CPU
;;
x86-64)
make -C desmume -f Makefile.libretro
;;
esac
PKG_MAKE_OPTS_TARGET="-C desmume/src/frontend/libretro GIT_VERSION=${PKG_VERSION:0:7}"

pre_configure_target() {
if [ "${ARCH}" = "arm" ]; then
PKG_MAKE_OPTS_TARGET+=" platform=armv-${TARGET_FLOAT}float-${TARGET_CPU}"
fi
}

makeinstall_target() {
Expand Down

0 comments on commit b615639

Please sign in to comment.