2020-05-25 22:55:15 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
2020-05-29 15:25:21 +01:00
|
|
|
# gnuboy
|
2020-05-25 22:55:15 +01:00
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-06-18 19:18:36 +01:00
|
|
|
GNUBOY_VERSION = gnuboy-FunKey-1.2.2
|
2020-05-25 22:55:15 +01:00
|
|
|
GNUBOY_SITE_METHOD = git
|
2020-11-16 12:58:36 +00:00
|
|
|
GNUBOY_SITE = https://github.com/FunKey-Project/gnuboy.git
|
2020-05-25 22:55:15 +01:00
|
|
|
GNUBOY_LICENSE = GPL-2.0
|
|
|
|
GNUBOY_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
GNUBOY_DEPENDENCIES = sdl sdl_image sdl_mixer sdl_ttf zlib
|
|
|
|
|
2020-12-25 14:46:52 +00:00
|
|
|
GNUBOY_CFLAGS = $(TARGET_CFLAGS) $(subst $\",,$(BR2_TARGET_OPTIMIZATION)) -mfloat-abi=hard -ffast-math -funsafe-math-optimizations
|
2020-05-25 22:55:15 +01:00
|
|
|
|
|
|
|
GNUBOY_CFLAGS += -ggdb -O3
|
|
|
|
|
|
|
|
GNUBOY_CONF_OPTS += CFLAGS="$(GNUBOY_CFLAGS)"
|
|
|
|
GNUBOY_CONF_OPTS += --prefix=$(TARGET_DIR)/usr/local --bindir=$(TARGET_DIR)/usr/games
|
|
|
|
GNUBOY_CONF_OPTS += --without-fb \
|
|
|
|
--without-svgalib \
|
|
|
|
--without-x \
|
|
|
|
--with-sdl
|
|
|
|
|
|
|
|
GNUBOY_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
|
|
|
|
|
2020-12-11 22:37:33 +00:00
|
|
|
define GNUBOY_CREATE_OPK
|
2021-03-11 23:12:17 +00:00
|
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
|
|
|
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gb $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
|
|
|
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gbc $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
2020-12-11 22:37:33 +00:00
|
|
|
endef
|
|
|
|
GNUBOY_POST_INSTALL_TARGET_HOOKS += GNUBOY_CREATE_OPK
|
|
|
|
|
2020-05-25 22:55:15 +01:00
|
|
|
$(eval $(autotools-package))
|