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>
(cherry picked from commit f934a00928)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022.11.x
Fabrice Fontaine 2022-12-29 10:30:27 +01:00 committed by Peter Korsgaard
parent 7f1b0cd321
commit b11cdaff45
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))