c0da68a90c
gnupg2 needs a toolchain with locale support or a package which provides a suitable iconv implementation (libiconv). Otherwise it will fail at the configure phase with an error like this one: *** It is now required to build with support for iconv *** Please install a suitable iconv implementation. Fixes: http://autobuild.buildroot.net/results/8c9/8c93c28533dfebffa8b2e34b1421d3fa3cdeb278/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
958 B
Makefile
30 lines
958 B
Makefile
################################################################################
|
|
#
|
|
# gnupg2
|
|
#
|
|
################################################################################
|
|
|
|
GNUPG2_VERSION = 2.0.25
|
|
GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
|
|
GNUPG2_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
|
|
GNUPG2_LICENSE = GPLv3+
|
|
GNUPG2_LICENSE_FILES = COPYING
|
|
GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libpthsem \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
GNUPG2_CONF_OPT = \
|
|
--disable-rpath --disable-regex --disable-doc \
|
|
--with-libgpg-error-prefix=$(STAGING_DIR)/usr \
|
|
--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
|
|
--with-libassuan-prefix=$(STAGING_DIR)/usr \
|
|
--with-ksba-prefix=$(STAGING_DIR)/usr \
|
|
--with-pth-prefix=$(STAGING_DIR)/usr
|
|
|
|
ifneq ($(BR2_PACKAGE_GNUPG2_GPGV2),y)
|
|
define GNUPG2_REMOVE_GPGV2
|
|
rm -f $(TARGET_DIR)/usr/bin/gpgv2
|
|
endef
|
|
GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|