From: Fabrice Fontaine Date: Fri, 31 Jan 2020 18:05:44 +0000 (+0100) Subject: package/file: add bzip2 optional dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adf8751a4836d1bfba18776ced2dbfd57c6506b9;p=buildroot.git package/file: add bzip2 optional dependency bzip2 is an optional dependency since version 5.38 and https://github.com/file/file/commit/b259a07ea95827f565faa20f0316e5b2704064f7 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- diff --git a/package/file/file.mk b/package/file/file.mk index 8d0968e6b2..ffa8b8b905 100644 --- a/package/file/file.mk +++ b/package/file/file.mk @@ -14,6 +14,13 @@ FILE_LICENSE = BSD-2-Clause, BSD-4-Clause (one file), BSD-3-Clause (one file) FILE_LICENSE_FILES = COPYING src/mygetopt.h src/vasprintf.c HOST_FILE_CONF_OPTS = --disable-libseccomp +ifeq ($(BR2_PACKAGE_BZIP2),y) +FILE_CONF_OPTS += --enable-bzlib +FILE_DEPENDENCIES += bzip2 +else +FILE_CONF_OPTS += --disable-bzlib +endif + ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) FILE_CONF_OPTS += --enable-libseccomp FILE_DEPENDENCIES += libseccomp