2014-06-06 15:44:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gnupg2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-17 15:34:51 +02:00
|
|
|
GNUPG2_VERSION = 2.1.21
|
2014-06-06 15:44:27 +02:00
|
|
|
GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
|
|
|
|
GNUPG2_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
|
2017-03-30 15:43:33 +02:00
|
|
|
GNUPG2_LICENSE = GPL-3.0+
|
2014-06-06 15:44:27 +02:00
|
|
|
GNUPG2_LICENSE_FILES = COPYING
|
2017-03-12 12:33:26 +01:00
|
|
|
GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libnpth \
|
2017-03-12 12:33:27 +01:00
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) host-pkgconf
|
2015-12-16 22:44:30 +01:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG2_CONF_OPTS = \
|
2014-06-06 15:44:27 +02:00
|
|
|
--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 \
|
2017-03-12 12:33:26 +01:00
|
|
|
--with-npth-prefix=$(STAGING_DIR)/usr
|
2014-10-01 23:14:47 +02:00
|
|
|
GNUPG2_CONF_ENV = gl_cv_header_working_stdint_h=yes
|
2014-06-06 15:44:27 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-09-23 23:57:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG2_CONF_OPTS += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
|
2014-09-23 23:57:36 +02:00
|
|
|
GNUPG2_DEPENDENCIES += bzip2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG2_CONF_OPTS += --disable-bzip2
|
2014-09-23 23:57:36 +02:00
|
|
|
endif
|
|
|
|
|
2017-03-12 12:33:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
GNUPG2_CONF_OPTS += --enable-gnutls
|
|
|
|
GNUPG2_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
GNUPG2_CONF_OPTS += --disable-gnutls
|
|
|
|
endif
|
|
|
|
|
2016-02-21 18:34:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
|
2017-03-21 08:09:26 +01:00
|
|
|
GNUPG2_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/libusb-1.0"
|
2016-02-21 18:34:52 +01:00
|
|
|
GNUPG2_CONF_OPTS += --enable-ccid-driver
|
|
|
|
GNUPG2_DEPENDENCIES += libusb-compat
|
|
|
|
else
|
|
|
|
GNUPG2_CONF_OPTS += --disable-ccid-driver
|
|
|
|
endif
|
|
|
|
|
2014-09-23 23:57:37 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR)
|
2014-09-23 23:57:37 +02:00
|
|
|
GNUPG2_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GNUPG2_CONF_OPTS += --without-readline
|
2014-09-23 23:57:37 +02:00
|
|
|
endif
|
|
|
|
|
2017-03-12 12:33:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
GNUPG2_CONF_OPTS += --enable-sqlite
|
|
|
|
GNUPG2_DEPENDENCIES += sqlite
|
|
|
|
else
|
|
|
|
GNUPG2_CONF_OPTS += --disable-sqlite
|
|
|
|
endif
|
|
|
|
|
2014-06-06 15:44:27 +02:00
|
|
|
$(eval $(autotools-package))
|