[Buildroot] [PATCH 1/2] package/stella: libpng is optional, not mandatory
Arnout Vandecappelle
arnout at mind.be
Sun Dec 12 12:19:38 UTC 2021
On 07/12/2021 22:54, Fabrice Fontaine wrote:
> libpng is optional, not mandatory since version 6.1 and
> https://github.com/stella-emu/stella/commit/eb13d515fb6385df6c653c5d295d97979b140031
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Both applied to master, thanks.
Regards,
Arnout
> ---
> package/stella/Config.in | 1 -
> package/stella/stella.mk | 9 ++++++++-
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/package/stella/Config.in b/package/stella/Config.in
> index 7031f8d31e..22507edd60 100644
> --- a/package/stella/Config.in
> +++ b/package/stella/Config.in
> @@ -5,7 +5,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_LIBPNG
> select BR2_PACKAGE_ZLIB
> help
> Stella is a multi-platform Atari 2600 VCS emulator.
> diff --git a/package/stella/stella.mk b/package/stella/stella.mk
> index 2dcfbeaccd..e7b0082e7e 100644
> --- a/package/stella/stella.mk
> +++ b/package/stella/stella.mk
> @@ -10,13 +10,20 @@ 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 libpng zlib
> +STELLA_DEPENDENCIES = sdl2 zlib
>
> 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
> +
> # The configure script is not autoconf based, so we use the
> # generic-package infrastructure
> define STELLA_CONFIGURE_CMDS
>
More information about the buildroot
mailing list