2014-06-06 15:44:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gnupg2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-01-12 11:39:18 +01:00
|
|
|
GNUPG2_VERSION = 2.2.4
|
2014-06-06 15:44:27 +02:00
|
|
|
GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
|
2017-09-01 10:34:34 +02:00
|
|
|
GNUPG2_SITE = https://gnupg.org/ftp/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-06-06 15:44:27 +02:00
|
|
|
|
2017-11-14 13:02:38 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_GNUPG2_GPGV),y)
|
|
|
|
define GNUPG2_REMOVE_GPGV
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/gpgv
|
2014-06-06 15:44:27 +02:00
|
|
|
endef
|
2017-11-14 13:02:38 +01:00
|
|
|
GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV
|
2014-06-06 15:44:27 +02:00
|
|
|
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
|
|
|
|
|
2017-09-01 10:34:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),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
|
2017-09-01 10:34:32 +02:00
|
|
|
GNUPG2_DEPENDENCIES += libusb
|
2016-02-21 18:34:52 +01:00
|
|
|
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))
|