Commit a4dec3f5 authored by Bkg2k's avatar Bkg2k

feat(core): add mame2015 core

parent e3d8cd2f
......@@ -130,6 +130,7 @@ menu "Libretro Cores"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-beetle-psx/Config.in"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-beetle-psx-hw/Config.in"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-mame2010/Config.in"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-mame2015/Config.in"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-desmume/Config.in"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-melonds/Config.in"
source "$BR2_EXTERNAL_RECALBOX_PATH/package/libretro-px68k/Config.in"
......
......@@ -280,6 +280,7 @@ BR2_PACKAGE_LIBRETRO_SNES9X=y
BR2_PACKAGE_LIBRETRO_VICE=y
BR2_PACKAGE_LIBRETRO_HANDY=y
BR2_PACKAGE_LIBRETRO_MAME2010=y
BR2_PACKAGE_LIBRETRO_MAME2015=y
BR2_PACKAGE_LIBRETRO_PX68K=y
BR2_PACKAGE_LIBRETRO_THEODORE=y
BR2_PACKAGE_LIBRETRO_ATARI800=y
......
......@@ -293,6 +293,7 @@ BR2_PACKAGE_LIBRETRO_SNES9X=y
BR2_PACKAGE_LIBRETRO_VICE=y
BR2_PACKAGE_LIBRETRO_HANDY=y
BR2_PACKAGE_LIBRETRO_MAME2010=y
BR2_PACKAGE_LIBRETRO_MAME2015=y
BR2_PACKAGE_LIBRETRO_PX68K=y
BR2_PACKAGE_LIBRETRO_THEODORE=y
BR2_PACKAGE_LIBRETRO_ATARI800=y
......
......@@ -303,6 +303,7 @@ BR2_PACKAGE_LIBRETRO_SNES9X=y
BR2_PACKAGE_LIBRETRO_VICE=y
BR2_PACKAGE_LIBRETRO_HANDY=y
BR2_PACKAGE_LIBRETRO_MAME2010=y
BR2_PACKAGE_LIBRETRO_MAME2015=y
BR2_PACKAGE_LIBRETRO_PX68K=y
BR2_PACKAGE_LIBRETRO_THEODORE=y
BR2_PACKAGE_LIBRETRO_ATARI800=y
......
......@@ -349,6 +349,7 @@ BR2_PACKAGE_LIBRETRO_HANDY=y
BR2_PACKAGE_LIBRETRO_BEETLE_PSX=y
BR2_PACKAGE_LIBRETRO_BEETLE_PSX_HW=y
BR2_PACKAGE_LIBRETRO_MAME2010=y
BR2_PACKAGE_LIBRETRO_MAME2015=y
BR2_PACKAGE_LIBRETRO_DESMUME=y
BR2_PACKAGE_LIBRETRO_MELONDS=y
BR2_PACKAGE_LIBRETRO_PX68K=y
......
......@@ -350,6 +350,7 @@ BR2_PACKAGE_LIBRETRO_HANDY=y
BR2_PACKAGE_LIBRETRO_BEETLE_PSX=y
BR2_PACKAGE_LIBRETRO_BEETLE_PSX_HW=y
BR2_PACKAGE_LIBRETRO_MAME2010=y
BR2_PACKAGE_LIBRETRO_MAME2015=y
BR2_PACKAGE_LIBRETRO_DESMUME=y
BR2_PACKAGE_LIBRETRO_MELONDS=y
BR2_PACKAGE_LIBRETRO_PX68K=y
......
config BR2_PACKAGE_LIBRETRO_MAME2015
bool "libretro-mame2015"
depends on BR2_PACKAGE_RETROARCH
depends on BR2_INSTALL_LIBSTDCPP
select BR2_PACKAGE_ZLIB
select BR2_PACKAGE_RECALBOX_ROMFS_MAME
select BR2_PACKAGE_RECALBOX_ROMFS_NEOGEO
help
A libretro mame2015 core for ARM - Based on MAME 0.139.
http://www.libretro.com
comment "LIBRETRO_MAME2015 needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
################################################################################
#
# MAME2015
#
################################################################################
LIBRETRO_MAME2015_VERSION = 80a2e82cf96ddcc900286c5e1d877bb99700bd6b
LIBRETRO_MAME2015_SITE = $(call github,libretro,mame2015-libretro,$(LIBRETRO_MAME2015_VERSION))
LIBRETRO_MAME2015_LICENSE = MAME
define LIBRETRO_MAME2015_BUILD_CMDS
$(SED) "s|^CONLYFLAGS =|CONLYFLAGS = $(COMPILER_COMMONS_CFLAGS_SO)|g" $(@D)/Makefile
$(SED) "s|^CPPONLYFLAGS =|CPPONLYFLAGS = $(COMPILER_COMMONS_CXXFLAGS_SO)|g" $(@D)/Makefile
$(SED) "s|^LDFLAGS =|LDFLAGS = $(COMPILER_COMMONS_LDFLAGS_SO) -lm|g" $(@D)/Makefile
$(SED) "s|-O2|-O3|g" $(@D)/Makefile
$(SED) "s|-O0|-O3|g" $(@D)/src/lib/lib.mak
$(MAKE) REALCC="$(TARGET_CC)" CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" LD="$(TARGET_CC)" AR="$(TARGET_CC)-ar" \
-C $(@D)/ -f Makefile platform="$(RETROARCH_LIBRETRO_PLATFORM)"
endef
define LIBRETRO_MAME2015_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/mame2015_libretro.so \
$(TARGET_DIR)/usr/lib/libretro/mame2015_libretro.so
mkdir -p $(TARGET_DIR)/recalbox/share_init/bios/mame2015/samples
cp -R $(@D)/metadata/* $(TARGET_DIR)/recalbox/share_init/bios/mame2015
endef
$(eval $(generic-package))
......@@ -5,6 +5,7 @@ config BR2_PACKAGE_RECALBOX_ROMFS_MAME
|| BR2_PACKAGE_LIBRETRO_MAME2000 \
|| BR2_PACKAGE_ADVANCEMAME \
|| BR2_PACKAGE_LIBRETRO_MAME2010 \
|| BR2_PACKAGE_LIBRETRO_MAME2015 \
|| BR2_PACKAGE_LIBRETRO_MAME2003_PLUS
help
share_init/roms and xml for mame
......@@ -5,7 +5,7 @@
################################################################################
# Package generated with :
# ./scripts/linux/empack.py --system mame --extension '.zip .ZIP' --fullname 'Mame' --platform arcade --theme mame libretro:mame2003:BR2_PACKAGE_LIBRETRO_MAME2003 libretro:mame2000:BR2_PACKAGE_LIBRETRO_MAME2000 advancemame:advancemame:BR2_PACKAGE_ADVANCEMAME libretro:mame2010:BR2_PACKAGE_LIBRETRO_MAME2010 libretro:mame2003_plus:BR2_PACKAGE_LIBRETRO_MAME2003_PLUS
# ./scripts/linux/empack.py --system mame --extension '.zip .ZIP' --fullname 'Mame' --platform arcade --theme mame libretro:mame2003:BR2_PACKAGE_LIBRETRO_MAME2003 libretro:mame2000:BR2_PACKAGE_LIBRETRO_MAME2000 advancemame:advancemame:BR2_PACKAGE_ADVANCEMAME libretro:mame2010:BR2_PACKAGE_LIBRETRO_MAME2010 libretro:mame2010:BR2_PACKAGE_LIBRETRO_MAME2015 libretro:mame2003_plus:BR2_PACKAGE_LIBRETRO_MAME2003_PLUS
# Name the 3 vars as the package requires
RECALBOX_ROMFS_MAME_SOURCE =
......@@ -21,15 +21,22 @@ SOURCE_ROMDIR_MAME = $(RECALBOX_ROMFS_MAME_PKGDIR)/roms
# variables are global across buildroot
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_ADVANCEMAME)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2003_PLUS),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_ADVANCEMAME)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015)$(BR2_PACKAGE_LIBRETRO_MAME2003_PLUS),)
define CONFIGURE_MAIN_MAME_START
$(call RECALBOX_ROMFS_CALL_ADD_SYSTEM,$(SYSTEM_XML_MAME),Mame,$(SYSTEM_NAME_MAME),.zip .ZIP,arcade,mame)
endef
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_ADVANCEMAME)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2003_PLUS),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_ADVANCEMAME)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015)$(BR2_PACKAGE_LIBRETRO_MAME2003_PLUS),)
define CONFIGURE_MAME_LIBRETRO_START
$(call RECALBOX_ROMFS_CALL_START_EMULATOR,$(SYSTEM_XML_MAME),libretro)
endef
ifeq ($(BR2_PACKAGE_LIBRETRO_MAME2015),y)
define CONFIGURE_MAME_LIBRETRO_MAME2015_DEF
$(call RECALBOX_ROMFS_CALL_ADD_CORE,$(SYSTEM_XML_MAME),mame2015)
endef
endif
ifeq ($(BR2_PACKAGE_LIBRETRO_MAME2010),y)
define CONFIGURE_MAME_LIBRETRO_MAME2010_DEF
$(call RECALBOX_ROMFS_CALL_ADD_CORE,$(SYSTEM_XML_MAME),mame2010)
......@@ -74,6 +81,7 @@ endif
define CONFIGURE_MAIN_MAME_END
$(call RECALBOX_ROMFS_CALL_END_SYSTEM,$(SYSTEM_XML_MAME),$(SOURCE_ROMDIR_MAME),$(@D))
endef
endif
define RECALBOX_ROMFS_MAME_CONFIGURE_CMDS
......
......@@ -5,6 +5,7 @@ config BR2_PACKAGE_RECALBOX_ROMFS_NEOGEO
|| BR2_PACKAGE_LIBRETRO_MAME2000 \
|| BR2_PACKAGE_LIBRETRO_FBALPHA \
|| BR2_PACKAGE_PIFBA \
|| BR2_PACKAGE_LIBRETRO_MAME2015 \
|| BR2_PACKAGE_LIBRETRO_MAME2010
help
share_init/roms and xml for neogeo
\ No newline at end of file
......@@ -5,7 +5,7 @@
################################################################################
# Package generated with :
# ./scripts/linux/empack.py --system neogeo --extension '.zip .ZIP .7z .7Z' --fullname 'Neo-Geo' --platform neogeo --theme neogeo libretro:mame2003:BR2_PACKAGE_LIBRETRO_MAME2003 libretro:mame2000:BR2_PACKAGE_LIBRETRO_MAME2000 libretro:fbalpha:BR2_PACKAGE_LIBRETRO_FBALPHA fba2x:fba2x:BR2_PACKAGE_PIFBA libretro:mame2010:BR2_PACKAGE_LIBRETRO_MAME2010
# ./scripts/linux/empack.py --system neogeo --extension '.zip .ZIP .7z .7Z' --fullname 'Neo-Geo' --platform neogeo --theme neogeo libretro:mame2003:BR2_PACKAGE_LIBRETRO_MAME2003 libretro:mame2000:BR2_PACKAGE_LIBRETRO_MAME2000 libretro:fbalpha:BR2_PACKAGE_LIBRETRO_FBALPHA fba2x:fba2x:BR2_PACKAGE_PIFBA libretro:mame2010:BR2_PACKAGE_LIBRETRO_MAME2010 libretro:mame2010:BR2_PACKAGE_LIBRETRO_MAME2015
# Name the 3 vars as the package requires
RECALBOX_ROMFS_NEOGEO_SOURCE =
......@@ -21,15 +21,22 @@ SOURCE_ROMDIR_NEOGEO = $(RECALBOX_ROMFS_NEOGEO_PKGDIR)/roms
# variables are global across buildroot
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015),)
define CONFIGURE_MAIN_NEOGEO_START
$(call RECALBOX_ROMFS_CALL_ADD_SYSTEM,$(SYSTEM_XML_NEOGEO),Neo-Geo,$(SYSTEM_NAME_NEOGEO),.zip .ZIP .7z .7Z,neogeo,neogeo)
endef
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015),)
define CONFIGURE_NEOGEO_LIBRETRO_START
$(call RECALBOX_ROMFS_CALL_START_EMULATOR,$(SYSTEM_XML_NEOGEO),libretro)
endef
ifeq ($(BR2_PACKAGE_LIBRETRO_MAME2015),y)
define CONFIGURE_NEOGEO_LIBRETRO_MAME2015_DEF
$(call RECALBOX_ROMFS_CALL_ADD_CORE,$(SYSTEM_XML_NEOGEO),mame2015)
endef
endif
ifeq ($(BR2_PACKAGE_LIBRETRO_MAME2010),y)
define CONFIGURE_NEOGEO_LIBRETRO_MAME2010_DEF
$(call RECALBOX_ROMFS_CALL_ADD_CORE,$(SYSTEM_XML_NEOGEO),mame2010)
......@@ -59,7 +66,7 @@ define CONFIGURE_NEOGEO_LIBRETRO_END
endef
endif
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015),)
define CONFIGURE_NEOGEO_FBA2X_START
$(call RECALBOX_ROMFS_CALL_START_EMULATOR,$(SYSTEM_XML_NEOGEO),fba2x)
endef
......@@ -74,16 +81,16 @@ define CONFIGURE_NEOGEO_FBA2X_END
endef
endif
define CONFIGURE_MAIN_NEOGEO_END
$(call RECALBOX_ROMFS_CALL_END_SYSTEM,$(SYSTEM_XML_NEOGEO),$(SOURCE_ROMDIR_NEOGEO),$(@D))
endef
endif
define RECALBOX_ROMFS_NEOGEO_CONFIGURE_CMDS
$(CONFIGURE_MAIN_NEOGEO_START)
$(CONFIGURE_NEOGEO_LIBRETRO_START)
$(CONFIGURE_NEOGEO_LIBRETRO_MAME2015_DEF)
$(CONFIGURE_NEOGEO_LIBRETRO_MAME2010_DEF)
$(CONFIGURE_NEOGEO_LIBRETRO_FBALPHA_DEF)
$(CONFIGURE_NEOGEO_LIBRETRO_MAME2003_DEF)
......
......@@ -295,7 +295,7 @@ ifneq ($(BR2_PACKAGE_LIBRETRO_MINIVMAC),)
endif
# System: mame
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_ADVANCEMAME)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2003_PLUS),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_ADVANCEMAME)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015)$(BR2_PACKAGE_LIBRETRO_MAME2003_PLUS),)
RECALBOX_ROMFS_DEPENDENCIES += recalbox-romfs-mame
endif
......@@ -340,7 +340,7 @@ ifneq ($(BR2_PACKAGE_LIBRETRO_DESMUME)$(BR2_PACKAGE_LIBRETRO_MELONDS),)
endif
# System: neogeo
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010),)
ifneq ($(BR2_PACKAGE_LIBRETRO_MAME2003)$(BR2_PACKAGE_LIBRETRO_MAME2000)$(BR2_PACKAGE_LIBRETRO_FBALPHA)$(BR2_PACKAGE_PIFBA)$(BR2_PACKAGE_LIBRETRO_MAME2010)$(BR2_PACKAGE_LIBRETRO_MAME2015),)
RECALBOX_ROMFS_DEPENDENCIES += recalbox-romfs-neogeo
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment