package/libxslt: fix static build
[buildroot-gz.git] / package / gnupg / gnupg.mk
blob8893a1cc687e7f04dc4642def94f46a7a385a132
1 ################################################################################
3 # gnupg
5 ################################################################################
7 GNUPG_VERSION = 1.4.20
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 ifeq ($(BR2_PACKAGE_BZIP2),y)
17 GNUPG_CONF_OPTS += --enable-bzip2
18 GNUPG_DEPENDENCIES += bzip2
19 endif
21 ifeq ($(BR2_PACKAGE_LIBCURL),y)
22 GNUPG_CONF_ENV += ac_cv_path__libcurl_config=$(STAGING_DIR)/usr/bin/curl-config
23 GNUPG_DEPENDENCIES += libcurl
24 else
25 GNUPG_CONF_OPTS += --without-libcurl
26 endif
28 ifeq ($(BR2_PACKAGE_READLINE),y)
29 GNUPG_DEPENDENCIES += readline
30 else
31 GNUPG_CONF_OPTS += --without-readline
32 endif
34 ifeq ($(BR2_PACKAGE_GNUPG_AES),y)
35 GNUPG_CONF_OPTS += --enable-aes
36 else
37 GNUPG_CONF_OPTS += --disable-aes
38 endif
40 ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
41 GNUPG_CONF_OPTS += --enable-rsa
42 else
43 GNUPG_CONF_OPTS += --disable-rsa
44 endif
46 ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
47 define GNUPG_REMOVE_GPGV
48 rm -f $(TARGET_DIR)/usr/bin/gpgv
49 endef
50 GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGV
51 endif
53 ifneq ($(BR2_PACKAGE_GNUPG_GPGSPLIT),y)
54 define GNUPG_REMOVE_GPGSPLIT
55 rm -f $(TARGET_DIR)/usr/bin/gpgsplit
56 endef
57 GNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGSPLIT
58 endif
60 $(eval $(autotools-package))