2018-03-02 07:14:15 +00:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mednafen
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-05-17 16:37:12 +01:00
|
|
|
#MEDNAFEN_VERSION = 0.9.48
|
|
|
|
#MEDNAFEN_SOURCE = mednafen-$(MEDNAFEN_VERSION).tar.xz
|
|
|
|
#MEDNAFEN_SITE = http://downloads.sourceforge.net/sourceforge/mednafen
|
2020-09-28 23:35:31 +01:00
|
|
|
MEDNAFEN_VERSION = 0dfc63c79bad6d9e8dca5020ce4aedfb7db0fb57
|
2020-05-17 16:37:12 +01:00
|
|
|
MEDNAFEN_SITE_METHOD = git
|
|
|
|
MEDNAFEN_SITE = ssh://git@fk/FunKey-Project/FunKey-Emulator-mednafen-0.9.48
|
2018-03-02 07:14:15 +00:00
|
|
|
MEDNAFEN_LICENSE = GPL-2.0+
|
|
|
|
MEDNAFEN_LICENSE_FILES = COPYING
|
|
|
|
|
2020-05-17 16:37:12 +01:00
|
|
|
MEDNAFEN_DEPENDENCIES = sdl sdl_image sdl_mixer sdl_ttf zlib
|
2018-03-02 07:14:15 +00:00
|
|
|
|
2020-05-25 07:02:56 +01:00
|
|
|
MEDNAFEN_CFLAGS = $(TARGET_CFLAGS)
|
2018-03-02 07:14:15 +00:00
|
|
|
|
2020-05-25 07:02:56 +01:00
|
|
|
ifeq ($(BR2_ARM_CPU_ARMV7A),y)
|
|
|
|
MEDNAFEN_CFLAGS += -march=armv7-a
|
2018-03-02 07:14:15 +00:00
|
|
|
endif
|
2020-05-25 07:02:56 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_GCC_TARGET_CPU),"cortex-a7")
|
|
|
|
MEDNAFEN_CFLAGS += -mtune=cortex-a7
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_GCC_TARGET_FLOAT_ABI),"hard")
|
|
|
|
MEDNAFEN_CFLAGS += -mfloat-abi=hard -ffast-math -funsafe-math-optimizations
|
|
|
|
else ifeq ($(BR2_GCC_TARGET_FLOAT_ABI),"soft")
|
|
|
|
MEDNAFEN_CFLAGS += -mfloat-abi=soft -ffast-math -funsafe-math-optimizations
|
|
|
|
endif
|
|
|
|
|
2018-03-02 07:14:15 +00:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
|
|
MEDNAFEN_CFLAGS += -D__ARM_NEON__ -mfpu=neon -mvectorize-with-neon-quad
|
|
|
|
endif
|
|
|
|
|
2020-05-25 07:02:56 +01:00
|
|
|
MEDNAFEN_CFLAGS += -ggdb -O3
|
|
|
|
|
2018-03-02 07:14:15 +00:00
|
|
|
MEDNAFEN_CONF_OPTS += CFLAGS="$(MEDNAFEN_CFLAGS)"
|
2020-05-17 21:57:20 +01:00
|
|
|
MEDNAFEN_CONF_OPTS += --prefix=/usr/local --bindir=/usr/games --without-libsndfile
|
2018-03-02 07:14:15 +00:00
|
|
|
|
|
|
|
MEDNAFEN_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|