2014-06-06 15:44:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gnupg2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-09-11 14:45:32 +02:00
|
|
|
GNUPG2_VERSION = 2.0.29
|
2014-06-06 15:44:27 +02:00
|
|
|
GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
|
|
|
|
GNUPG2_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
|
|
|
|
GNUPG2_LICENSE = GPLv3+
|
|
|
|
GNUPG2_LICENSE_FILES = COPYING
|
2014-08-14 14:16:12 +02:00
|
|
|
GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libpthsem \
|
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2015-12-16 22:44:30 +01:00
|
|
|
|
|
|
|
# Patching configure.ac and m4 macros, as well as Makefile.am
|
|
|
|
GNUPG2_AUTORECONF = YES
|
|
|
|
|
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 \
|
|
|
|
--with-pth-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
|
|
|
|
|
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
|
|
|
|
|
2014-06-06 15:44:27 +02:00
|
|
|
$(eval $(autotools-package))
|