Browse Source

package/stella: zlib is optional, not mandatory

zlib is optional, not mandatory since version 6.1 and
https://github.com/stella-emu/stella/commit/00e464afc3a2581e2716b3eec9c516a36f895236

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fabrice Fontaine 3 years ago
parent
commit
671eb03b3b
2 changed files with 8 additions and 2 deletions
  1. 0 1
      package/stella/Config.in
  2. 8 1
      package/stella/stella.mk

+ 0 - 1
package/stella/Config.in

@@ -6,7 +6,6 @@ config BR2_PACKAGE_STELLA
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6 # C++14
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
 	select BR2_PACKAGE_SDL2
-	select BR2_PACKAGE_ZLIB
 	help
 	  Stella is a multi-platform Atari 2600 VCS emulator.
 

+ 8 - 1
package/stella/stella.mk

@@ -10,7 +10,7 @@ STELLA_SITE = https://github.com/stella-emu/stella/releases/download/$(STELLA_VE
 STELLA_LICENSE = GPL-2.0+
 STELLA_LICENSE_FILES = Copyright.txt License.txt
 
-STELLA_DEPENDENCIES = sdl2 zlib
+STELLA_DEPENDENCIES = sdl2
 
 STELLA_CONF_OPTS = \
 	--host=$(GNU_TARGET_NAME) \
@@ -24,6 +24,13 @@ 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