distribution/packages/virtual/emulators/package.mk

840 lines
25 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022 - Fewtarius
PKG_NAME="emulators"
PKG_LICENSE="Apache-2.0"
PKG_SITE="www.jelos.org"
2023-06-04 00:16:57 +00:00
PKG_SECTION="emulation" # Do not change to virtual or makeinstall_target will not execute.
PKG_LONGDESC="Emulation metapackage."
2023-06-04 00:16:57 +00:00
PKG_TOOLCHAIN="manual"
2023-05-15 21:06:18 +00:00
PKG_EMUS="flycast-sa hatarisa hypseus-singe hypseus-singe moonlight openbor pico-8 ppsspp-sa
vice-sa"
2023-03-17 21:06:43 +00:00
PKG_RETROARCH="core-info libretro-database retroarch retroarch-assets retroarch-joypads retroarch-overlays \
slang-shaders"
2023-03-17 21:06:43 +00:00
LIBRETRO_CORES="2048-lr 81-lr a5200-lr atari800-lr beetle-gba-lr beetle-lynx-lr beetle-ngp-lr beetle-pce-lr \
beetle-pce-fast-lr beetle-pcfx-lr bsnes-lr bsnes-mercury-performance-lr beetle-supafaust-lr \
beetle-supergrafx-lr beetle-vb-lr beetle-wswan-lr beetle-saturn-lr bluemsx-lr cannonball-lr \
cap32-lr crocods-lr daphne-lr dinothawr-lr dosbox-svn-lr dosbox-pure-lr duckstation-lr \
easyrpg-lr fake08-lr fbalpha2012-lr fbalpha2019-lr fbneo-lr fceumm-lr flycast2021-lr fmsx-lr \
2023-03-17 21:06:43 +00:00
freechaf-lr freeintv-lr freej2me-lr fuse-lr gambatte-lr gearboy-lr gearcoleco-lr gearsystem-lr \
genesis-plus-gx-lr genesis-plus-gx-wide-lr gme-lr gw-lr handy-lr hatari-lr mame2000-lr \
mame2003-plus-lr mame2010-lr mame2015-lr melonds-lr meowpc98-lr mesen-lr mgba-lr mrboom-lr \
mupen64plus-lr mupen64plus-nx-lr neocd_lr nestopia-lr np2kai-lr nxengine-lr o2em-lr opera-lr \
parallel-n64-lr pcsx_rearmed-lr picodrive-lr pokemini-lr potator-lr prboom-lr prosystem-lr \
ppsspp-lr puae-lr px68k-lr quasi88-lr quicknes-lr race-lr reminiscence-lr sameboy-lr \
sameduck-lr scummvm-lr smsplus-gx-lr snes9x-lr snes9x2002-lr snes9x2005_plus-lr snes9x2010-lr \
stella-lr stella-2014-lr swanstation-lr tic80-lr tgbdual-lr tyrquake-lr uzem-lr vba-next-lr \
2023-03-17 21:06:43 +00:00
vbam-lr vecx-lr vice-lr yabasanshiro-lr virtualjaguar-lr xmil-lr xrick-lr"
### Emulators or cores for specific devices
case "${DEVICE}" in
AMD64)
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="lutris-wine"
2023-05-15 21:06:18 +00:00
PKG_EMUS+=" cemu-sa citra-sa dolphin-sa duckstation-sa melonds-sa minivmacsa mupen64plus-sa pcsx2-sa \
2023-06-12 11:18:01 +00:00
primehack rpcs3-sa ryujinx-sa scummvmsa xemu-sa yuzu-sa"
LIBRETRO_CORES+=" beetle-psx-lr bsnes-hd-lr citra-lr desmume-lr dolphin-lr flycast-lr lrps2-lr mame-lr \
2023-06-04 00:16:57 +00:00
minivmac-lr play-lr"
2023-01-08 22:49:32 +00:00
;;
RK358*)
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="box86 flycast-lr pcsx_rearmed-lr"
2023-05-15 21:06:18 +00:00
PKG_EMUS+=" aethersx2-sa duckstation-sa pcsx_rearmed-lr box64 scummvmsa yabasanshiro-sa box64 portmaster"
2023-05-09 16:30:48 +00:00
LIBRETRO_CORES+=" beetle-psx-lr bsnes-hd-lr citra-lr dolphin-lr mame-lr"
PKG_RETROARCH+=" retropie-shaders"
;;
RK356*)
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="box86 flycast-lr pcsx_rearmed-lr"
2023-05-15 21:06:18 +00:00
PKG_DEPENDS_TARGET+=" common-shaders duckstation-sa glsl-shaders mupen64plus-sa scummvmsa box64 portmaster"
2023-04-14 21:20:18 +00:00
PKG_EMUS+=" dolphin-sa drastic-sa yabasanshiro-sa"
PKG_RETROARCH+=" retropie-shaders"
2023-02-13 22:43:44 +00:00
;;
2023-04-29 13:32:09 +00:00
S922X*)
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="box86 flycast-lr pcsx_rearmed-lr"
PKG_EMUS+=" aethersx2-sa citra-sa dolphin-sa duckstation-sa drastic-sa mupen64plus-sa yabasanshiro-sa \
2023-06-04 00:16:57 +00:00
box64 portmaster"
LIBRETRO_CORES+=" beetle-psx-lr bsnes-hd-lr dolphin-lr flycast-lr mame-lr"
PKG_RETROARCH+=" retropie-shaders"
;;
2023-05-04 18:06:54 +00:00
RK3326*)
2023-05-08 22:47:28 +00:00
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="flycast-lr pcsx_rearmed-lr"
2023-05-15 21:06:18 +00:00
PKG_DEPENDS_TARGET+=" common-shaders glsl-shaders"
PKG_EMUS+=" drastic-sa mupen64plus-sa scummvmsa yabasanshiro-sa portmaster"
2023-05-08 22:47:28 +00:00
LIBRETRO_CORES+=" flycast-lr"
2023-05-04 18:06:54 +00:00
PKG_RETROARCH+=" retropie-shaders"
;;
esac
PKG_DEPENDS_TARGET+=" ${PKG_EMUS} ${EMUS_32BIT} ${PKG_RETROARCH} ${LIBRETRO_CORES}"
2023-06-04 00:16:57 +00:00
makeinstall_target() {
### README BEFORE EDITING
###
### When adding new emulators to this package, it is now necessary to add
### your emulator below for it to appear in EmulationStation as es_systems.cfg
### is now automatically generated when this package is built.
###
### Add your cores BEFORE calling the function to add a new system, when the
### system is generated and added to ES the cores need to already be defined.
###
### Only ONE core per system can be set as the default, setting multiple cores
### will result in a build failure.
###
### add_emu_core schema:
###
### System | Emulator | Core | Default
### 3do retroarch opera true
###
### Flush cache from previous builds
clean_es_cache
2023-06-04 10:35:22 +00:00
### Panasonic 3DO
add_emu_core 3do retroarch opera true
add_es_system 3do
### Nintendo 3DS
case ${DEVICE} in
AMD64)
add_emu_core 3ds retroarch citra true
add_emu_core 3ds citra citra-sa false
add_es_system 3ds
;;
S922X*)
add_emu_core 3ds citra citra-sa true
add_es_system 3ds
;;
esac
2023-06-04 10:35:22 +00:00
### Commodore Amiga
add_emu_core amiga retroarch puae true
case ${TARGET_ARCH} in
aarch64)
add_emu_core amiga amiberry false
;;
esac
add_es_system amiga
### Commodore Amiga CD32
add_emu_core amigacd32 retroarch puae true
case ${TARGET_ARCH} in
aarch64)
add_emu_core amigacd32 retroarch uae4arm false
;;
esac
add_es_system amigacd32
2023-06-04 11:35:48 +00:00
### Amstrad CPC
add_emu_core amstradcpc retroarch crocods true
add_emu_core amstradcpc retroarch cap32 false
add_es_system amstradcpc
### Arcade
add_emu_core arcade retroarch mame2003_plus true
add_emu_core arcade retroarch mame2000 false
add_emu_core arcade retroarch mame2010 false
add_emu_core arcade retroarch mame2015 false
add_emu_core arcade retroarch fbneo false
add_emu_core arcade retroarch fbalpha2012 false
add_emu_core arcade retroarch fbalpha2019 false
case ${DEVICE} in
AMD64|RK3588|S922X)
add_emu_core arcade retroarch mame false
;;
esac
2023-06-04 11:35:48 +00:00
add_es_system arcade
2023-06-04 00:16:57 +00:00
### Atari 2600 Libretro
add_emu_core atari2600 retroarch stella true
add_es_system atari2600
### Atari 5200 Libretro
add_emu_core atari5200 retroarch a5200 true
add_emu_core atari5200 retroarch atari800 false
add_es_system atari5200
2023-06-04 11:35:48 +00:00
### Atari 7800
add_emu_core atari7800 retroarch prosystem true
add_es_system atari7800
## Atari 800
add_emu_core atari800 retroarch atari800 true
add_es_system atari800
## Atari ST
add_emu_core atarist retroarch hatari true
add_emu_core atarist hatarisa hatarisa false
add_es_system atarist
## Sammy Atomiswave
add_emu_core atomiswave retroarch flycast2021 false
add_emu_core atomiswave flycast flycast-sa false
case ${DEVICE} in
RK3*)
add_emu_core atomiswave retroarch flycast32 true
2023-06-08 10:41:09 +00:00
add_emu_core atomiswave retroarch flycast false
;;
*)
add_emu_core atomiswave retroarch flycast true
;;
esac
2023-06-04 11:35:48 +00:00
add_es_system atomiswave
### Fairchild Channel F
add_emu_core channelf retroarch freechaf true
add_es_system channelf
### ColecoVision
add_emu_core colecovision retroarch bluemsx true
add_emu_core colecovision retroarch gearcoleco false
add_emu_core colecovision retroarch smsplus false
add_es_system colecovision
### Commodore 128
add_emu_core c128 retroarch vice_x128 true
add_emu_core c128 vicesa x128 false
add_es_system c128
### Commodore 16
add_emu_core c16 retroarch vice_xplus4 true
add_emu_core c16 vicesa xplus4 false
add_es_system c16
### Commodore 64
add_emu_core c64 retroarch vice_x64 true
add_emu_core c64 vicesa x64sc false
add_es_system c64
### Commodore PET
add_emu_core pet retroarch vice_xpet true
add_es_system pet
### Commodore VIC-20
2023-06-04 15:10:50 +00:00
add_emu_core vic20 retroarch vice_xvic true
2023-06-04 11:35:48 +00:00
add_emu_core vic20 vicesa vice_xvic false
add_es_system vic20
### Capcom Playsystem 1
add_emu_core cps1 retroarch fbneo true
add_emu_core cps1 retroarch mame2003_plus false
add_emu_core cps1 retroarch mame2010 false
add_emu_core cps1 retroarch fbalpha2012 false
add_emu_core cps1 retroarch mba_mini false
case ${TARGET_ARCH} in
aarch64)
add_emu_core cps1 AdvanceMame AdvanceMame false
;;
esac
add_es_system cps1
### Capcom Playsystem 2
add_emu_core cps2 retroarch fbneo true
add_emu_core cps2 retroarch mame2003_plus false
add_emu_core cps2 retroarch mame2010 false
add_emu_core cps2 retroarch fbalpha2012 false
add_emu_core cps2 retroarch mba_mini false
case ${TARGET_ARCH} in
aarch64)
add_emu_core cps2 AdvanceMame AdvanceMame false
;;
esac
add_es_system cps2
### Capcom Playsystem 3
add_emu_core cps3 retroarch fbneo true
add_emu_core cps3 retroarch mame2003_plus false
add_emu_core cps3 retroarch mame2010 false
add_emu_core cps3 retroarch fbalpha2012 false
add_emu_core cps3 retroarch mba_mini false
case ${TARGET_ARCH} in
aarch64)
add_emu_core cps3 AdvanceMame AdvanceMame false
;;
esac
add_es_system cps3
### Daphne
add_emu_core daphne hypseus hypseus true
add_emu_core daphne retroarch daphne false
add_es_system daphne
2023-06-04 15:10:50 +00:00
### Sega Dreamcast
add_emu_core dreamcast retroarch flycast2021 false
add_emu_core dreamcast flycast flycast-sa false
case ${DEVICE} in
RK3*)
add_emu_core dreamcast retroarch flycast32 true
2023-06-08 10:41:09 +00:00
add_emu_core dreamcast retroarch flycast false
;;
*)
add_emu_core dreamcast retroarch flycast true
;;
esac
2023-06-04 15:10:50 +00:00
add_es_system dreamcast
### EasyRPG
add_emu_core easyrpg retroarch easyrpg true
add_es_system easyrpg
### Nintendo Famicom
add_emu_core famicom retroarch nestopia true
add_emu_core famicom retroarch fceumm false
add_emu_core famicom retroarch quicknes false
add_emu_core famicom retroarch mesen false
add_es_system famicom
### Nintendo Famicom Disk System
add_emu_core fds retroarch nestopia true
add_emu_core fds retroarch fceumm false
add_emu_core fds retroarch quicknes false
add_es_system fds
### Final Burn Neo
add_emu_core fbn retroarch fbneo true
add_emu_core fbn retroarch mame2003_plus false
add_emu_core fbn retroarch mame2010 false
add_emu_core fbn retroarch mame2015 false
add_emu_core fbn retroarch mame false
add_emu_core fbn retroarch fbalpha2012 false
add_emu_core fbn retroarch fbalpha2019 false
add_es_system fbn
### Nintendo Game and Watch
add_emu_core gameandwatch retroarch gw
add_es_system gameandwatch
### Nintendo GameBoy
add_emu_core gb retroarch gambatte true
add_emu_core gb retroarch sameboy false
add_emu_core gb retroarch gearboy false
add_emu_core gb retroarch tgbdual false
add_emu_core gb retroarch mgba false
add_emu_core gb retroarch vbam false
add_es_system gb
### Nintendo GameBoy Hacks
add_emu_core gbh retroarch gambatte true
add_emu_core gbh retroarch sameboy false
add_emu_core gbh retroarch gearboy false
add_emu_core gbh retroarch tgbdual false
add_emu_core gbh retroarch mgba false
add_emu_core gbh retroarch vbam false
add_es_system gbh
### Nintendo GameBoy Advance
add_emu_core gba retroarch mgba true
add_emu_core gba retroarch gbsp false
add_emu_core gba retroarch vbam false
add_emu_core gba retroarch vba_next false
add_emu_core gba retroarch beetle_gba false
add_es_system gba
### Nintendo GameBoy Advance Hacks
add_emu_core gbah retroarch mgba true
add_emu_core gbah retroarch gbsp false
add_emu_core gbah retroarch vbam false
add_emu_core gbah retroarch vba_next false
add_emu_core gbah retroarch beetle_gba false
add_es_system gbah
### Nintendo GameBoy Color
add_emu_core gbc retroarch gambatte true
add_emu_core gbc retroarch sameboy false
add_emu_core gbc retroarch gearboy false
add_emu_core gbc retroarch tgbdual false
add_emu_core gbc retroarch mgba false
add_emu_core gbc retroarch vbam false
add_es_system gbc
### Nintendo GameCube
case ${DEVICE} in
AMD64|RK358*|RK356*|S922X*)
add_emu_core gamecube dolphin dolphin-sa-gc true
add_emu_core gamecube primehack primehack false
add_emu_core gamecube retroarch dolphin false
add_es_system gamecube
;;
esac
### Nintendo Wii
case ${DEVICE} in
AMD64|RK358*|RK356*|S922X*)
add_emu_core wii dolphin dolphin-sa-wii true
2023-06-04 15:10:50 +00:00
add_emu_core wii primehack primehack false
add_emu_core wii retroarch dolphin false
add_es_system wii
;;
esac
### Nintendo Wii U
case ${DEVICE} in
AMD64)
add_emu_core wiiu cemu cemu-sa true
add_es_system wiiu
;;
esac
### Nintendo Switch
case ${DEVICE} in
AMD64)
add_emu_core switch yuzu yuzu-sa true
add_emu_core switch ryujinx ryujinx-sa false
add_es_system switch
;;
esac
### Sega GameGear
add_emu_core gamegear retroarch gearsystem true
add_emu_core gamegear retroarch genesis_plus_gx false
add_emu_core gamegear retroarch picodrive false
add_emu_core gamegear retroarch smsplus false
add_es_system gamegear
### Sega GameGear Hacks
add_emu_core ggh retroarch gearsystem true
add_emu_core ggh retroarch genesis_plus_gx false
add_emu_core ggh retroarch picodrive false
add_emu_core ggh retroarch smsplus false
add_es_system ggh
### Intellivision
add_emu_core intellivision retroarch freeintv true
add_es_system intellivision
### Sun Microsystems J2ME
add_emu_core j2me retroarch freej2me true
add_es_system j2me
### Atari Jaguar
add_emu_core atarijaguar retroarch virtualjaguar true
2023-06-04 17:55:09 +00:00
add_es_system atarijaguar
2023-06-04 15:10:50 +00:00
### Atari Lynx
add_emu_core atarilynx retroarch handy true
add_emu_core atarilynx retroarch beetle_lynx false
add_es_system atarilynx
### Arcade (MAME)
add_emu_core mame retroarch mame2003_plus true
add_emu_core mame retroarch mame2010 false
add_emu_core mame retroarch mame2015 false
add_emu_core mame retroarch mame false
add_emu_core mame retroarch fbneo false
add_emu_core mame retroarch fbalpha2012 false
add_emu_core mame retroarch fbalpha2019 false
add_es_system mame
### Sega MegaDrive
add_emu_core megadrive-japan retroarch genesis_plus_gx true
add_emu_core megadrive-japan retroarch genesis_plus_gx_wide false
add_emu_core megadrive-japan retroarch picodrive
add_es_system megadrive-japan
### Microsoft MS-DOS
add_emu_core pc retroarch dosbox_pure
add_emu_core pc retroarch dosbox_svn
add_es_system pc
### Nintendo MSU-1
add_emu_core snesmsu1 retroarch snes9x true
add_emu_core snesmsu1 retroarch beetle_supafaust false
add_es_system snesmsu1
### Microsoft MSX
add_emu_core msx retroarch bluemsx true
add_emu_core msx retroarch fmsx false
add_es_system msx
### Microsoft MSX 2
add_emu_core msx2 retroarch bluemsx true
add_emu_core msx2 retroarch fmsx false
add_es_system msx2
### Sega Naomi
add_emu_core naomi retroarch flucast2021 false
add_emu_core naomi flycast flycast-sa false
case ${DEVICE} in
RK3*)
add_emu_core naomi retroarch flycast32 true
2023-06-08 10:41:09 +00:00
add_emu_core naomi retroarch flycast false
;;
*)
add_emu_core naomi retroarch flycast true
;;
esac
2023-06-04 15:10:50 +00:00
add_es_system naomi
### SNK NeoGeo
add_emu_core neogeo retroarch fbneo true
add_emu_core neogeo retroarch mame2003_plus false
add_emu_core neogeo retroarch fbalpha2012 false
add_emu_core neogeo retroarch fbalpha2019 false
add_emu_core neogeo retroarch mame2010 false
add_emu_core neogeo retroarch mame2015 false
add_emu_core neogeo retroarch mame false
add_es_system neogeo
### SNK NeoCD
add_emu_core neocd retroarch neocd true
add_emu_core neocd retroarch fbneo false
add_es_system neocd
### SNK NeoGeo Pocket
add_emu_core ngp retroarch beetle_ngp true
add_emu_core ngp retroarch race false
add_es_system ngp
### SNK NeoGeo Pocket Color
2023-06-04 17:55:09 +00:00
add_emu_core ngpc retroarch beetle_ngp true
add_emu_core ngpc retroarch race false
add_es_system ngpc
2023-06-04 15:10:50 +00:00
### Nintendo 64
add_emu_core n64 retroarch mupen64plus_next true
add_emu_core n64 retroarch mupen64plus false
add_emu_core n64 retroarch parallel_n64 false
add_emu_core n64 mupen64plus-sa m64p_gliden64 false
add_emu_core n64 mupen64plus-sa m64p_gl64mk2 false
add_emu_core n64 mupen64plus-sa m64p_rice false
add_es_system n64
### Nintendo DS
2023-06-04 15:31:59 +00:00
case ${TARGET_ARCH} in
x86_64)
add_emu_core nds retroarch melonds true
add_emu_core nds retroarch desmume false
add_emu_core nds melonds melonds-sa false
;;
aarch64)
add_emu_core nds drastic drastic-sa true
add_emu_core nds retroarch melonds false
;;
esac
2023-06-04 15:10:50 +00:00
add_es_system nds
2023-06-04 15:31:59 +00:00
### Nintendo NES
add_emu_core nes retroarch nestopia true
add_emu_core nes retroarch fceumm false
add_emu_core nes retroarch quicknes false
add_emu_core nes retroarch mesen false
add_es_system nes
### Nintendo NES Hacks
add_emu_core nesh retroarch nestopia true
add_emu_core nesh retroarch fceumm false
add_emu_core nesh retroarch quicknes false
add_emu_core nesh retroarch mesen false
add_es_system nesh
### Magnavox Odyssey
add_emu_core odyssey2 retroarch o2em true
add_es_system odyssey2
### OpenBOR
add_emu_core openbor OpenBOR OpenBOR true
add_es_system openbor
### NEC PC-8800
add_emu_core pc-8800 retroarch quasi88 true
add_es_system pc-8800
### NEC PC-9800
add_emu_core pc-9800 retroarch np2kai true
add_es_system pc-9800
### NEC PC Engine
add_emu_core pcengine retroarch beetle_pce_fast true
add_emu_core pcengine retroarch beetle_pce false
add_emu_core pcengine retroarch beetle_supergrafx false
add_es_system pcengine
### NEC PC Engine CD
add_emu_core pcenginecd retroarch beetle_pce_fast true
add_emu_core pcenginecd retroarch beetle_pce false
add_emu_core pcenginecd retroarch beetle_supergrafx false
add_es_system pcenginecd
### NEC PC-FX
add_emu_core pcfx retroarch beetle_pcfx true
add_es_system pcfx
### Lexaloffle PICO-8
add_emu_core pico-8 pico-8 pico8 true
add_emu_core pico-8 retroarch fake08 false
add_es_system pico-8
### Sony Playstation
case ${DEVICE} in
AMD64)
2023-06-04 15:31:59 +00:00
add_emu_core psx retroarch beetle_psx true
add_emu_core psx Duckstation duckstation-sa false
;;
S922X*)
add_emu_core psx retroarch pcsx_rearmed true
add_emu_core psx retroarch beetle_psx false
add_emu_core psx Duckstation duckstation-sa false
;;
RK3*)
2023-06-04 15:31:59 +00:00
add_emu_core psx retroarch pcsx_rearmed32 true
add_emu_core psx retroarch pcsx_rearmed false
add_emu_core psx retroarch beetle_psx false
add_emu_core psx Duckstation duckstation-sa false
2023-06-04 15:31:59 +00:00
;;
esac
add_emu_core psx retroarch duckstation false
add_emu_core psx retroarch swanstation false
add_es_system psx
### Sony Playstation 2
case ${DEVICE} in
AMD64)
2023-06-04 17:55:09 +00:00
add_emu_core ps2 retroarch pcsx2 true
add_emu_core ps2 pcsx2 pcsx2-sa false
add_es_system ps2
2023-06-04 15:31:59 +00:00
;;
2023-06-08 10:41:09 +00:00
RK3588|S922X)
add_emu_core ps2 aethersx2 aethersx2-sa true
add_es_system ps2
;;
2023-06-04 15:31:59 +00:00
esac
### Sony Playstation 3
case ${TARGET_ARCH} in
x86_64)
add_emu_core ps3 rpcs3 rpcs3-sa true
add_es_system ps3
;;
esac
### Sony Playstation Portable
add_emu_core psp ppsspp ppsspp-sa true
add_emu_core psp retroarch ppsspp false
add_es_system psp
### Sony Playstation Portable Minis
add_emu_core pspminis ppsspp ppsspp-sa true
add_emu_core pspminis retroarch ppsspp false
add_es_system pspminis
### Nintendo Pokemon Mini
add_emu_core pokemini retroarch pokemini true
add_es_system pokemini
### ScummVM
case ${DEVICE} in
S922X*)
add_emu_core scummvm retroarch scummvm true
;;
*)
add_emu_core scummvm scummvmsa scummvm true
add_emu_core scummvm retroarch scummvm false
;;
esac
2023-06-04 15:31:59 +00:00
add_es_system scummvm
2023-06-04 15:51:07 +00:00
### Sega 32X
add_emu_core sega32x retroarch picodrive true
add_es_system sega32x
### Sega CD
add_emu_core segacd retroarch genesis_plus_gx true
add_emu_core segacd retroarch picodrive false
add_es_system segacd
### Sega Mega-CD
add_emu_core megacd retroarch genesis_plus_gx true
add_emu_core megacd retroarch picodrive false
add_es_system megacd
### Sega Genesis
add_emu_core genesis retroarch genesis_plus_gx true
add_emu_core genesis retroarch genesis_plus_gx_wide false
add_emu_core genesis retroarch picodrive false
add_es_system genesis
### Sega Genesis Hacks
add_emu_core genh retroarch genesis_plus_gx true
add_emu_core genh retroarch genesis_plus_gx_wide false
add_emu_core genh retroarch picodrive false
add_es_system genh
### Sega MasterSystem
add_emu_core mastersystem retroarch gearsystem true
add_emu_core mastersystem retroarch genesis_plus_gx false
add_emu_core mastersystem retroarch picodrive false
add_emu_core mastersystem retroarch smsplus false
add_es_system mastersystem
### Sega MegaDrive
add_emu_core megadrive retroarch genesis_plus_gx true
add_emu_core megadrive retroarch genesis_plus_gx_wide false
add_emu_core megadrive retroarch picodrive false
add_es_system megadrive
### Welback Holdings Mega Duck
add_emu_core megaduck retroarch sameduck true
add_es_system megaduck
### Sega Saturn
case ${TARGET_ARCH} in
aarch64)
add_emu_core saturn yabasanshiro yabasanshiro-sa true
add_emu_core saturn retroarch yabasanshiro false
;;
x86_64)
add_emu_core saturn retroarch yabasanshiro true
;;
esac
add_emu_core saturn retroarch beetle_saturn false
add_es_system saturn
### Sega SG-1000
add_emu_core sg-1000 retroarch gearsystem true
add_emu_core sg-1000 retroarch genesis_plus_gx false
add_emu_core sg-1000 retroarch picodrive false
add_es_system sg-1000
### Sharp X1
add_emu_core x1 retroarch x1 true
add_es_system x1
### Microsoft XBox
case ${TARGET_ARCH} in
x86_64)
add_emu_core xbox xemu xemu-sa true
add_es_system xbox
;;
esac
### Sinclair ZX Spectrum
add_emu_core zxspectrum retroarch fuse
add_es_system zxspectrum
### Sinclair ZX81
add_emu_core zx81 retroarch 81 true
add_es_system zx81
### NEC Super Grafx
add_emu_core supergrafx retroarch beetle_supergrafx
add_emu_core supergrafx retroarch beetle_pce
add_es_system supergrafx
### Nintendo SNES
add_emu_core snes retroarch snes9x true
add_emu_core snes retroarch snes9x2010 false
add_emu_core snes retroarch snes9x2002 false
add_emu_core snes retroarch snes9x2005_plus false
add_emu_core snes retroarch beetle_supafaust false
add_emu_core snes retroarch bsnes false
add_emu_core snes retroarch bsnes_mercury_performance false
add_emu_core snes retroarch bsnes_hd_beta false
add_es_system snes
### Nintendo SNES Hacks
add_emu_core snesh retroarch snes9x true
add_emu_core snesh retroarch snes9x2010 false
add_emu_core snesh retroarch snes9x2002 false
add_emu_core snesh retroarch snes9x2005_plus false
add_emu_core snesh retroarch beetle_supafaust false
add_emu_core snesh retroarch bsnes false
add_emu_core snesh retroarch bsnes_mercury_performance false
add_emu_core snesh retroarch bsnes_hd_beta false
add_es_system snesh
### Nintendo Super Famicom
add_emu_core sfc retroarch snes9x true
add_emu_core sfc retroarch snes9x2010 false
add_emu_core sfc retroarch snes9x2002 false
add_emu_core sfc retroarch snes9x2005_plus false
add_emu_core sfc retroarch beetle_supafaust false
add_emu_core sfc retroarch bsnes false
add_emu_core sfc retroarch bsnes_mercury_performance false
add_emu_core sfc retroarch bsnes_hd_beta false
add_es_system sfc
### Nintendo Stellaview
add_emu_core satellaview retroarch snes9x true
add_emu_core satellaview retroarch snes9x2010 false
add_emu_core satellaview retroarch snes9x2002 false
add_emu_core satellaview retroarch snes9x2005_plus false
add_es_system satellaview
### Bandai SuFami Turbo
add_emu_core sufami retroarch snes9x true
add_es_system sufami
### Watara Supervision
add_emu_core supervision retroarch potator true
add_es_system supervision
2023-06-04 15:31:59 +00:00
### Nesbox TIC-80
add_emu_core tic-80 retroarch tic80 true
add_es_system tic-80
### NEC TurboGrafx 16
add_emu_core tg16 retroarch beetle_pce_fast true
add_emu_core tg16 retroarch beetle_pce false
add_emu_core tg16 retroarch beetle_supergrafx false
add_es_system tg16
### NEC TurboGrafx CD
add_emu_core tg16cd retroarch beetle_pce_fast true
add_emu_core tg16cd retroarch beetle_pce false
add_emu_core tg16cd retroarch beetle_supergrafx false
add_es_system tg16cd
### Belogic Uzebox
add_emu_core uzebox retroarch uzem true
add_es_system uzebox
### Milton Bradley Vectrex
add_emu_core vectrex retroarch vecx true
add_es_system vectrex
### Philips Videopac
add_emu_core videopac retroarch o2em true
add_es_system videopac
### Nintendo VirtualBoy
add_emu_core virtualboy retroarch beetle_vb true
add_es_system virtualboy
### Bandai Wonderswan
add_emu_core wonderswan retroarch beetle_wswan true
add_es_system wonderswan
### Bandai Wonderswan Color
add_emu_core wonderswancolor retroarch beetle_wswan true
add_es_system wonderswancolor
### Sharp x68000
add_emu_core x68000 retroarch px68k true
add_es_system x68000
### PC Ports
add_es_system ports
### Media Player
add_emu_core mpv mpv true
add_es_system mplayer
### Moonlight
add_es_system moonlight
### Tools
add_es_system tools
### Screenshots
add_es_system imageviewer
### Create es_systems
mk_es_systems
2023-06-04 11:35:48 +00:00
mkdir -p ${INSTALL}/usr/config/emulationstation
cp -f ${ESTMP}/es_systems.cfg ${INSTALL}/usr/config/emulationstation
mkdir -p ${INSTALL}/usr/lib/tmpfiles.d
cp -f ${ESTMP}/${DISTRO}-system-dirs.conf ${INSTALL}/usr/lib/tmpfiles.d
2023-06-04 00:16:57 +00:00
}