Files
buildroot/package/libretro-super/libretro-super.mk
T
tiopex b7a8ba56ec [PACKAGE/BOARD] Add Retroarch v1.16.0.3 (#50)
* Add retroarch package

* libretro cores as separate packages

* Add libretro-super package

* Add core resources, move retroarch bin to /mnt/emus/retroarch dir

* add NxEngine assets + correct indendt

* [BOARD] add cores appLinks

* [GENIMAGE] test -d before running cp to not stderr

* [BOARD] add "cores" section in gmenu2x with all appLinks

* add PRBOOM data *.wad file

* [GENIMAGE] generate cores' script links in genimage.sh

* Add scummvm core & downgrade

* [GENIMAGE] don't run cores in verbose

* resort `core links` and update their icons

---------

Co-authored-by: Apaczer <94932128+Apaczer@users.noreply.github.com>
2023-11-16 20:17:18 +01:00

47 lines
2.4 KiB
Makefile

LIBRETRO_SUPER_VERSION = origin/master
LIBRETRO_SUPER_SITE_METHOD = git
LIBRETRO_SUPER_SITE = https://github.com/libretro/libretro-super.git
LIBRETRO_SUPER_LICENSE = GPL-3.0
LIBRETRO_SUPER_LICENSE_FILES = COPYING
LIBRETRO_SUPER_DEPENDENCIES = host-pkgconf sdl sdl_image sdl_mixer sdl_sound sdl_ttf
ifeq ($(BR2_TOOLCHAIN_BUILDROOT_LIBC),"musl")
mgba_platform=unix
else
mgba_platform=miyoo
endif
define LIBRETRO_SUPER_CONFIGURE_CMDS
cd $(@D) && \
./libretro-fetch.sh 2048 81 a5200 arduous atari800 bk bluemsx cannonball cap32 chailove \
dinothawr ecwolf fceumm fmsx freechaf freeintv fuse gambatte gearboy gearcoleco gearsystem \
genesis_plus_gx genesis_plus_gx_wide gme gong gpsp gw handy jaxe jumpnbump lowresnx lutro \
mame2000 mame2003 mame2003_plus mednafen_pce_fast mednafen_wswan mgba minivmac mrboom numero \
nxengine o2em pcsx_rearmed picodrive pocketcdg pokemini potator prboom prosystem quasi88 \
quicknes race reminiscence retro8 smsplus snes9x2002 snes9x2005 stella2014 theodore tic80 \
tyrquake uw8 vaporspec vecx vemulator wasm4 x1 xrick
endef
define LIBRETRO_SUPER_BUILD_CMDS
cd $(@D) && \
platform=miyoo ARCH=arm CC=$(TARGET_CC) CXX=$(TARGET_CXX) STRIP=$(TARGET_STRIP) ./libretro-build.sh \
2048 81 a5200 arduous atari800 bk bluemsx cannonball cap32 chailove dinothawr ecwolf fceumm fmsx \
freechaf freeintv fuse gambatte gearboy gearcoleco gearsystem genesis_plus_gx genesis_plus_gx_wide \
gme gong gpsp gw handy jaxe jumpnbump lowresnx lutro mame2000 mame2003 mame2003_plus mednafen_pce_fast \
mednafen_wswan minivmac mrboom numero nxengine o2em pcsx_rearmed pocketcdg pokemini \
potator prboom prosystem quasi88 quicknes race reminiscence retro8 smsplus snes9x2002 snes9x2005 \
stella2014 theodore tic80 tyrquake uw8 vaporspec vecx vemulator wasm4 x1 xrick
cd $(@D) && \
platform=$(mgba_platform) ARCH=arm CC=$(TARGET_CC) CXX=$(TARGET_CXX) STRIP=$(TARGET_STRIP) ./libretro-build.sh mgba
cd $(@D) && \
TARGET_CC=$(TARGET_CC) platform=miyoo ARCH=arm ./libretro-build.sh picodrive
$(TARGET_STRIP) --strip-unneeded $(@D)/dist/unix/*
endef
define LIBRETRO_SUPER_INSTALL_TARGET_CMDS
mkdir -p "${BINARIES_DIR}/retroarch/core"
mkdir -p "${BINARIES_DIR}/retroarch/core_info"
$(INSTALL) -D -m 0644 $(@D)/dist/unix/* "${BINARIES_DIR}/retroarch/core"
$(INSTALL) -D -m 0644 $(@D)/dist/info/* "${BINARIES_DIR}/retroarch/core_info/"
endef
$(eval $(generic-package))