2014-06-06 21:44:27 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gnupg2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-12-14 06:21:20 +08:00
|
|
|
GNUPG2_VERSION = 2.2.25
|
2014-06-06 21:44:27 +08:00
|
|
|
GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
|
2017-09-01 16:34:34 +08:00
|
|
|
GNUPG2_SITE = https://gnupg.org/ftp/gcrypt/gnupg
|
2017-03-30 21:43:33 +08:00
|
|
|
GNUPG2_LICENSE = GPL-3.0+
|
2014-06-06 21:44:27 +08:00
|
|
|
GNUPG2_LICENSE_FILES = COPYING
|
2017-03-12 19:33:26 +08:00
|
|
|
GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libnpth \
|
2017-03-12 19:33:27 +08:00
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) host-pkgconf
|
2015-12-17 05:44:30 +08:00
|
|
|
|
2014-09-28 03:32:44 +08:00
|
|
|
GNUPG2_CONF_OPTS = \
|
2018-04-17 17:37:12 +08:00
|
|
|
--disable-rpath --disable-regex \
|
2014-06-06 21:44:27 +08:00
|
|
|
--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 19:33:26 +08:00
|
|
|
--with-npth-prefix=$(STAGING_DIR)/usr
|
2014-06-06 21:44:27 +08:00
|
|
|
|
2017-11-14 20:02:38 +08:00
|
|
|
ifneq ($(BR2_PACKAGE_GNUPG2_GPGV),y)
|
|
|
|
define GNUPG2_REMOVE_GPGV
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/gpgv
|
2014-06-06 21:44:27 +08:00
|
|
|
endef
|
2017-11-14 20:02:38 +08:00
|
|
|
GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV
|
2014-06-06 21:44:27 +08:00
|
|
|
endif
|
|
|
|
|
2014-09-24 05:57:36 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
GNUPG2_CONF_OPTS += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
|
2014-09-24 05:57:36 +08:00
|
|
|
GNUPG2_DEPENDENCIES += bzip2
|
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
GNUPG2_CONF_OPTS += --disable-bzip2
|
2014-09-24 05:57:36 +08:00
|
|
|
endif
|
|
|
|
|
2017-03-12 19:33:28 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
GNUPG2_CONF_OPTS += --enable-gnutls
|
|
|
|
GNUPG2_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
GNUPG2_CONF_OPTS += --disable-gnutls
|
|
|
|
endif
|
|
|
|
|
2017-09-01 16:34:32 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
2017-03-21 15:09:26 +08:00
|
|
|
GNUPG2_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/libusb-1.0"
|
2016-02-22 01:34:52 +08:00
|
|
|
GNUPG2_CONF_OPTS += --enable-ccid-driver
|
2017-09-01 16:34:32 +08:00
|
|
|
GNUPG2_DEPENDENCIES += libusb
|
2016-02-22 01:34:52 +08:00
|
|
|
else
|
|
|
|
GNUPG2_CONF_OPTS += --disable-ccid-driver
|
|
|
|
endif
|
|
|
|
|
2014-09-24 05:57:37 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
GNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR)
|
2014-09-24 05:57:37 +08:00
|
|
|
GNUPG2_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
GNUPG2_CONF_OPTS += --without-readline
|
2014-09-24 05:57:37 +08:00
|
|
|
endif
|
|
|
|
|
2017-03-12 19:33:27 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
GNUPG2_CONF_OPTS += --enable-sqlite
|
|
|
|
GNUPG2_DEPENDENCIES += sqlite
|
|
|
|
else
|
|
|
|
GNUPG2_CONF_OPTS += --disable-sqlite
|
|
|
|
endif
|
|
|
|
|
2014-06-06 21:44:27 +08:00
|
|
|
$(eval $(autotools-package))
|