1################################################################################ 2# 3# gnupg 4# 5################################################################################ 6 7GNUPG_VERSION = 1.4.23 8GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2 9GNUPG_SITE = https://gnupg.org/ftp/gcrypt/gnupg 10GNUPG_LICENSE = GPL-3.0+ 11GNUPG_LICENSE_FILES = COPYING 12GNUPG_DEPENDENCIES = zlib $(if $(BR2_PACKAGE_LIBICONV),libiconv) 13GNUPG_CPE_ID_VENDOR = gnupg 14GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no 15GNUPG_CONF_OPTS = \ 16 --disable-rpath \ 17 --enable-minimal \ 18 --disable-regex \ 19 --enable-sha256 \ 20 --enable-sha512 21 22HOST_GNUPG_DEPENDENCIES = host-zlib 23HOST_GNUPG_CONF_OPTS = \ 24 --disable-rpath \ 25 --enable-minimal \ 26 --disable-regex \ 27 --enable-sha256 \ 28 --enable-sha512 \ 29 --enable-aes \ 30 --enable-rsa \ 31 --without-libcurl \ 32 --without-readline 33 34# gnupg doesn't support assembly for coldfire 35ifeq ($(BR2_m68k_cf),y) 36GNUPG_CONF_OPTS += --disable-asm 37endif 38 39ifeq ($(BR2_PACKAGE_BZIP2),y) 40GNUPG_CONF_OPTS += --enable-bzip2 41GNUPG_DEPENDENCIES += bzip2 42endif 43 44ifeq ($(BR2_PACKAGE_LIBCURL),y) 45GNUPG_CONF_ENV += ac_cv_path__libcurl_config=$(STAGING_DIR)/usr/bin/curl-config 46GNUPG_DEPENDENCIES += libcurl 47else 48GNUPG_CONF_OPTS += --without-libcurl 49endif 50 51ifeq ($(BR2_PACKAGE_READLINE),y) 52GNUPG_DEPENDENCIES += readline 53else 54GNUPG_CONF_OPTS += --without-readline 55endif 56 57ifeq ($(BR2_PACKAGE_GNUPG_AES),y) 58GNUPG_CONF_OPTS += --enable-aes 59else 60GNUPG_CONF_OPTS += --disable-aes 61endif 62 63ifeq ($(BR2_PACKAGE_GNUPG_RSA),y) 64GNUPG_CONF_OPTS += --enable-rsa 65else 66GNUPG_CONF_OPTS += --disable-rsa 67endif 68 69ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y) 70define GNUPG_REMOVE_GPGV 71 rm -f $(TARGET_DIR)/usr/bin/gpgv 72endef 73GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGV 74endif 75 76ifneq ($(BR2_PACKAGE_GNUPG_GPGSPLIT),y) 77define GNUPG_REMOVE_GPGSPLIT 78 rm -f $(TARGET_DIR)/usr/bin/gpgsplit 79endef 80GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGSPLIT 81endif 82 83define GNUPG_FIXUP_GPG_ZIP 84 test -f $(TARGET_DIR)/usr/bin/gpg-zip && \ 85 $(SED) 's%^TAR=.*%TAR=/bin/tar%' $(TARGET_DIR)/usr/bin/gpg-zip 86endef 87GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_FIXUP_GPG_ZIP 88 89$(eval $(autotools-package)) 90$(eval $(host-autotools-package)) 91