package/gnupg2: add bzip2 optional dependency

This is to improve build reproducibility.

[Thomas: add --enable-bzip2 --with-bzip options.]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Romain Naour 2014-09-23 23:57:36 +02:00 committed by Thomas Petazzoni
parent ad58c88c10
commit b39e3e39eb
1 changed files with 7 additions and 0 deletions

View File

@ -26,4 +26,11 @@ endef
GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
endif
ifeq ($(BR2_PACKAGE_BZIP2),y)
GNUPG2_CONF_OPT += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
GNUPG2_DEPENDENCIES += bzip2
else
GNUPG2_CONF_OPT += --disable-bzip2
endif
$(eval $(autotools-package))