configs/bananapro: bump Linux to 4.10.4
[buildroot-gz.git] / package / gnupg / gnupg.mk
blob182abd67097628422a665e0af737f086341799ea
1 ################################################################################
3 # gnupg
5 ################################################################################
7 GNUPG_VERSION = 1.4.21
8 GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2
9 GNUPG_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
10 GNUPG_LICENSE = GPLv3+
11 GNUPG_LICENSE_FILES = COPYING
12 GNUPG_DEPENDENCIES = zlib ncurses $(if $(BR2_PACKAGE_LIBICONV),libiconv)
13 GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
14 GNUPG_CONF_OPTS = --disable-rpath --enable-minimal --disable-regex
16 # gnupg doesn't support assembly for coldfire
17 ifeq ($(BR2_m68k_cf),y)
18 GNUPG_CONF_OPTS += --disable-asm
19 endif
21 ifeq ($(BR2_PACKAGE_BZIP2),y)
22 GNUPG_CONF_OPTS += --enable-bzip2
23 GNUPG_DEPENDENCIES += bzip2
24 endif
26 ifeq ($(BR2_PACKAGE_LIBCURL),y)
27 GNUPG_CONF_ENV += ac_cv_path__libcurl_config=$(STAGING_DIR)/usr/bin/curl-config
28 GNUPG_DEPENDENCIES += libcurl
29 else
30 GNUPG_CONF_OPTS += --without-libcurl
31 endif
33 ifeq ($(BR2_PACKAGE_READLINE),y)
34 GNUPG_DEPENDENCIES += readline
35 else
36 GNUPG_CONF_OPTS += --without-readline
37 endif
39 ifeq ($(BR2_PACKAGE_GNUPG_AES),y)
40 GNUPG_CONF_OPTS += --enable-aes
41 else
42 GNUPG_CONF_OPTS += --disable-aes
43 endif
45 ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
46 GNUPG_CONF_OPTS += --enable-rsa
47 else
48 GNUPG_CONF_OPTS += --disable-rsa
49 endif
51 ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
52 define GNUPG_REMOVE_GPGV
53 rm -f $(TARGET_DIR)/usr/bin/gpgv
54 endef
55 GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGV
56 endif
58 ifneq ($(BR2_PACKAGE_GNUPG_GPGSPLIT),y)
59 define GNUPG_REMOVE_GPGSPLIT
60 rm -f $(TARGET_DIR)/usr/bin/gpgsplit
61 endef
62 GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGSPLIT
63 endif
65 $(eval $(autotools-package))