2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-15 09:19:55 +02:00
|
|
|
#
|
|
|
|
# gnupg
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-15 09:19:55 +02:00
|
|
|
|
2015-12-20 21:23:31 +01:00
|
|
|
GNUPG_VERSION = 1.4.20
|
2012-10-15 09:19:55 +02:00
|
|
|
GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2
|
|
|
|
GNUPG_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
|
|
|
|
GNUPG_LICENSE = GPLv3+
|
|
|
|
GNUPG_LICENSE_FILES = COPYING
|
2013-12-30 18:57:52 +01:00
|
|
|
GNUPG_DEPENDENCIES = zlib ncurses $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2012-10-16 22:05:19 +02:00
|
|
|
GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG_CONF_OPTS = --disable-rpath --enable-minimal --disable-regex
|
2012-10-15 09:19:55 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG_CONF_OPTS += --enable-bzip2
|
2012-10-15 09:19:55 +02:00
|
|
|
GNUPG_DEPENDENCIES += bzip2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
GNUPG_CONF_ENV += ac_cv_path__libcurl_config=$(STAGING_DIR)/usr/bin/curl-config
|
|
|
|
GNUPG_DEPENDENCIES += libcurl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG_CONF_OPTS += --without-libcurl
|
2012-10-15 09:19:55 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
GNUPG_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG_CONF_OPTS += --without-readline
|
2012-10-15 09:19:55 +02:00
|
|
|
endif
|
|
|
|
|
2015-07-02 17:30:24 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUPG_AES),y)
|
|
|
|
GNUPG_CONF_OPTS += --enable-aes
|
|
|
|
else
|
|
|
|
GNUPG_CONF_OPTS += --disable-aes
|
|
|
|
endif
|
|
|
|
|
2013-09-30 02:25:20 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG_CONF_OPTS += --enable-rsa
|
2013-09-30 02:25:20 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG_CONF_OPTS += --disable-rsa
|
2013-09-30 02:25:20 +02:00
|
|
|
endif
|
|
|
|
|
2012-10-15 09:19:55 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
|
|
|
|
define GNUPG_REMOVE_GPGV
|
2014-11-30 15:18:23 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/gpgv
|
2012-10-15 09:19:55 +02:00
|
|
|
endef
|
|
|
|
GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGV
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_GNUPG_GPGSPLIT),y)
|
|
|
|
define GNUPG_REMOVE_GPGSPLIT
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/gpgsplit
|
|
|
|
endef
|
|
|
|
GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGSPLIT
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|