f6229d3901
- C++17 is mandatory since version 6.5 andfe2b4d630e
- Update hash of Copyright.txt, year updated:21438a82cc
https://github.com/stella-emu/stella/blob/6.6/Changes.txt Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# stella
|
|
#
|
|
################################################################################
|
|
|
|
STELLA_VERSION = 6.6
|
|
STELLA_SOURCE = stella-$(STELLA_VERSION)-src.tar.xz
|
|
STELLA_SITE = https://github.com/stella-emu/stella/releases/download/$(STELLA_VERSION)
|
|
STELLA_LICENSE = GPL-2.0+
|
|
STELLA_LICENSE_FILES = Copyright.txt License.txt
|
|
|
|
STELLA_DEPENDENCIES = sdl2
|
|
|
|
STELLA_CONF_OPTS = \
|
|
--host=$(GNU_TARGET_NAME) \
|
|
--prefix=/usr \
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
STELLA_CONF_OPTS += --enable-png
|
|
STELLA_DEPENDENCIES += libpng
|
|
else
|
|
STELLA_CONF_OPTS += --disable-png
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
STELLA_CONF_OPTS += --enable-zip
|
|
STELLA_DEPENDENCIES += zlib
|
|
else
|
|
STELLA_CONF_OPTS += --disable-zip
|
|
endif
|
|
|
|
# The configure script is not autoconf based, so we use the
|
|
# generic-package infrastructure
|
|
define STELLA_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
./configure $(STELLA_CONF_OPTS) \
|
|
)
|
|
endef
|
|
|
|
define STELLA_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define STELLA_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|