Commit 8c3bcdd0 authored by Bkg2k's avatar Bkg2k

feat(n64): add nx and parallel packages

parent 6d3624ba
config BR2_PACKAGE_LIBRETRO_MUPEN64_NX
bool "libretro-mupen64-nx"
depends on BR2_PACKAGE_RETROARCH
depends on BR2_INSTALL_LIBSTDCPP
help
A libretro N64 emulator core for ARM.
http://www.libretro.com
comment "LIBRETRO_MUPEN64_NX needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
################################################################################
#
# MUPEN64PLUS NX
#
################################################################################
LIBRETRO_MUPEN64_NX_VERSION = 374f8bb31ce8e54c815cf5b38dc645ff6d8637cb
LIBRETRO_MUPEN64_NX_SITE = $(call github,libretro,mupen64plus-libretro-nx,$(LIBRETRO_MUPEN64_NX_VERSION))
LIBRETRO_MUPEN64_NX_DEPENDENCIES = rpi-userland
ifeq ($(BR2_cortex_a7),y)
LIBRETRO_MUPEN64_NX_PLATFORM=rpi2
else
LIBRETRO_MUPEN64_NX_PLATFORM=rpi3
endif
define LIBRETRO_MUPEN64_NX_BUILD_CMDS
$(SED) "s|-O2|-O3|g" $(@D)/Makefile
CFLAGS="$(TARGET_CFLAGS) $(COMPILER_COMMONS_CFLAGS_SO)" \
CXXFLAGS="$(TARGET_CXXFLAGS) $(COMPILER_COMMONS_CXXFLAGS_SO) -fpermissive" \
LDFLAGS="$(TARGET_LDFLAGS) $(COMPILER_COMMONS_LDFLAGS_SO)" \
$(MAKE) CXX="$(TARGET_CXX)" CC="$(TARGET_CC)" -C $(@D)/ -f Makefile platform="$(LIBRETRO_MUPEN64_NX_PLATFORM)" WITH_DYNAREC=arm
endef
define LIBRETRO_MUPEN64_NX_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/mupen64plus_libretro.so \
$(TARGET_DIR)/usr/lib/libretro/mupen64plusnx_libretro.so
endef
$(eval $(generic-package))
config BR2_PACKAGE_LIBRETRO_PARALLEL64
bool "libretro-parallel64"
depends on BR2_PACKAGE_RETROARCH
depends on BR2_INSTALL_LIBSTDCPP
help
A libretro N64 emulator core for ARM.
http://www.libretro.com
comment "LIBRETRO_PARALLEL64 needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
################################################################################
#
# MUPEN64PLUS
#
################################################################################
LIBRETRO_PARALLEL64_VERSION = ab155da18068f638e5ace2e5e6f7387bddc3511b
LIBRETRO_PARALLEL64_SITE = $(call github,libretro,parallel-n64,$(LIBRETRO_PARALLEL64_VERSION))
LIBRETRO_PARALLEL64_DEPENDENCIES = rpi-userland
ifeq ($(BR2_cortex_a7),y)
LIBRETRO_PARALLEL64_PLATFORM=rpi2
else
LIBRETRO_PARALLEL64_PLATFORM=rpi3
endif
define LIBRETRO_PARALLEL64_BUILD_CMDS
$(SED) "s|-O2|-O3|g" $(@D)/Makefile
CFLAGS="$(TARGET_CFLAGS) $(COMPILER_COMMONS_CFLAGS_SO)" \
CXXFLAGS="$(TARGET_CXXFLAGS) $(COMPILER_COMMONS_CXXFLAGS_SO)" \
LDFLAGS="$(TARGET_LDFLAGS) $(COMPILER_COMMONS_LDFLAGS_SO)"
$(MAKE) CXX="$(TARGET_CXX)" CC="$(TARGET_CC)" -C $(@D)/ -f Makefile platform="$(LIBRETRO_PARALLEL64_PLATFORM)" WITH_DYNAREC=arm
endef
define LIBRETRO_PARALLEL64_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/parallel_n64_libretro.so \
$(TARGET_DIR)/usr/lib/libretro/parallel_n64_libretro.so
endef
$(eval $(generic-package))
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