iperf3: bump to version 3.1.2
[buildroot-gz.git] / package / gnupg2 / gnupg2.mk
blob763e9454a95b88fa64d5c57cc6142c0546e070d7
1 ################################################################################
3 # gnupg2
5 ################################################################################
7 GNUPG2_VERSION = 2.0.30
8 GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
9 GNUPG2_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
10 GNUPG2_LICENSE = GPLv3+
11 GNUPG2_LICENSE_FILES = COPYING
12 GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libpthsem \
13 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
15 # Patching configure.ac and m4 macros, as well as Makefile.am
16 GNUPG2_AUTORECONF = YES
18 GNUPG2_CONF_OPTS = \
19 --disable-rpath --disable-regex --disable-doc \
20 --with-libgpg-error-prefix=$(STAGING_DIR)/usr \
21 --with-libgcrypt-prefix=$(STAGING_DIR)/usr \
22 --with-libassuan-prefix=$(STAGING_DIR)/usr \
23 --with-ksba-prefix=$(STAGING_DIR)/usr \
24 --with-pth-prefix=$(STAGING_DIR)/usr
25 GNUPG2_CONF_ENV = gl_cv_header_working_stdint_h=yes
27 ifneq ($(BR2_PACKAGE_GNUPG2_GPGV2),y)
28 define GNUPG2_REMOVE_GPGV2
29 rm -f $(TARGET_DIR)/usr/bin/gpgv2
30 endef
31 GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
32 endif
34 ifeq ($(BR2_PACKAGE_BZIP2),y)
35 GNUPG2_CONF_OPTS += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
36 GNUPG2_DEPENDENCIES += bzip2
37 else
38 GNUPG2_CONF_OPTS += --disable-bzip2
39 endif
41 ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
42 GNUPG2_CONF_OPTS += --enable-ccid-driver
43 GNUPG2_DEPENDENCIES += libusb-compat
44 else
45 GNUPG2_CONF_OPTS += --disable-ccid-driver
46 endif
48 ifeq ($(BR2_PACKAGE_READLINE),y)
49 GNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR)
50 GNUPG2_DEPENDENCIES += readline
51 else
52 GNUPG2_CONF_OPTS += --without-readline
53 endif
55 $(eval $(autotools-package))