package/file: zlib is optional, not mandatory

zlib is optional since version 4.22 and
b950f1f426
and --enable-zlib has been fixed since version 5.37 and
8c6dcd7ef6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2020-02-01 12:04:26 +01:00 committed by Yann E. MORIN
parent 846a135fa7
commit 95cee16529
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,5 @@
config BR2_PACKAGE_FILE
bool "file"
select BR2_PACKAGE_ZLIB
help
Program to identify a file's format by scanning binary data
for known patterns.

View File

@ -6,7 +6,7 @@
FILE_VERSION = 5.38
FILE_SITE = ftp://ftp.astron.com/pub/file
FILE_DEPENDENCIES = host-file zlib
FILE_DEPENDENCIES = host-file
HOST_FILE_DEPENDENCIES = host-zlib
FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
FILE_INSTALL_STAGING = YES
@ -37,5 +37,12 @@ else
FILE_CONF_OPTS += --disable-xzlib
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
FILE_CONF_OPTS += --enable-zlib
FILE_DEPENDENCIES += zlib
else
FILE_CONF_OPTS += --disable-zlib
endif
$(eval $(autotools-package))
$(eval $(host-autotools-package))