1################################################################################ 2# 3# stella 4# 5################################################################################ 6 7STELLA_VERSION = 6.7.1 8STELLA_SOURCE = stella-$(STELLA_VERSION)-src.tar.xz 9STELLA_SITE = https://github.com/stella-emu/stella/releases/download/$(STELLA_VERSION) 10STELLA_LICENSE = GPL-2.0+ 11STELLA_LICENSE_FILES = Copyright.txt License.txt 12 13STELLA_DEPENDENCIES = sdl2 14 15STELLA_CONF_OPTS = \ 16 --host=$(GNU_TARGET_NAME) \ 17 --prefix=/usr \ 18 --with-sdl-prefix=$(STAGING_DIR)/usr 19 20ifeq ($(BR2_PACKAGE_LIBPNG),y) 21STELLA_CONF_OPTS += --enable-png 22STELLA_DEPENDENCIES += libpng 23else 24STELLA_CONF_OPTS += --disable-png 25endif 26 27ifeq ($(BR2_PACKAGE_ZLIB),y) 28STELLA_CONF_OPTS += --enable-zip 29STELLA_DEPENDENCIES += zlib 30else 31STELLA_CONF_OPTS += --disable-zip 32endif 33 34# The configure script is not autoconf based, so we use the 35# generic-package infrastructure 36define STELLA_CONFIGURE_CMDS 37 (cd $(@D); \ 38 $(TARGET_CONFIGURE_OPTS) \ 39 $(TARGET_CONFIGURE_ARGS) \ 40 ./configure $(STELLA_CONF_OPTS) \ 41 ) 42endef 43 44define STELLA_BUILD_CMDS 45 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) 46endef 47 48define STELLA_INSTALL_TARGET_CMDS 49 $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install 50endef 51 52$(eval $(generic-package)) 53