package/tiff: add zstd optional dependency

zstd is an optional dependency which is enabled by default since version
4.0.10 and
62b9df5d2a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2022-12-29 10:30:27 +01:00 committed by Thomas Petazzoni
parent 80fa5672da
commit f934a00928
2 changed files with 11 additions and 0 deletions

View File

@ -72,4 +72,8 @@ config BR2_PACKAGE_TIFF_UTILITIES
help
Install all tiff utilities.
config BR2_PACKAGE_TIFF_ZSTD
bool "ZSTD compression"
select BR2_PACKAGE_ZSTD
endif

View File

@ -100,5 +100,12 @@ else
TIFF_CONF_OPTS += --disable-tools
endif
ifeq ($(BR2_PACKAGE_TIFF_ZSTD),y)
TIFF_CONF_OPTS += --enable-zstd
TIFF_DEPENDENCIES += zstd
else
TIFF_CONF_OPTS += --disable-zstd
endif
$(eval $(autotools-package))
$(eval $(host-autotools-package))