1 ################################################################################
5 ################################################################################
7 GNUPG2_VERSION = 2.0.27
8 GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
9 GNUPG2_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
10 GNUPG2_LICENSE = GPLv3+
11 GNUPG2_LICENSE_FILES = COPYING
12 GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libpthsem \
13 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
15 --disable-rpath --disable-regex --disable-doc \
16 --with-libgpg-error-prefix=$(STAGING_DIR)/usr \
17 --with-libgcrypt-prefix=$(STAGING_DIR)/usr \
18 --with-libassuan-prefix=$(STAGING_DIR)/usr \
19 --with-ksba-prefix=$(STAGING_DIR)/usr \
20 --with-pth-prefix=$(STAGING_DIR)/usr
21 GNUPG2_CONF_ENV = gl_cv_header_working_stdint_h=yes
23 ifneq ($(BR2_PACKAGE_GNUPG2_GPGV2),y)
24 define GNUPG2_REMOVE_GPGV2
25 rm -f $(TARGET_DIR)/usr/bin/gpgv2
27 GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
30 ifeq ($(BR2_PACKAGE_BZIP2),y)
31 GNUPG2_CONF_OPTS += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
32 GNUPG2_DEPENDENCIES += bzip2
34 GNUPG2_CONF_OPTS += --disable-bzip2
37 ifeq ($(BR2_PACKAGE_READLINE),y)
38 GNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR)
39 GNUPG2_DEPENDENCIES += readline
41 GNUPG2_CONF_OPTS += --without-readline
44 $(eval $(autotools-package))