xref: /OK3568_Linux_fs/buildroot/package/gnupg/gnupg.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# gnupg
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunGNUPG_VERSION = 1.4.23
8*4882a593SmuzhiyunGNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2
9*4882a593SmuzhiyunGNUPG_SITE = https://gnupg.org/ftp/gcrypt/gnupg
10*4882a593SmuzhiyunGNUPG_LICENSE = GPL-3.0+
11*4882a593SmuzhiyunGNUPG_LICENSE_FILES = COPYING
12*4882a593SmuzhiyunGNUPG_DEPENDENCIES = zlib $(if $(BR2_PACKAGE_LIBICONV),libiconv)
13*4882a593SmuzhiyunGNUPG_CPE_ID_VENDOR = gnupg
14*4882a593SmuzhiyunGNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
15*4882a593SmuzhiyunGNUPG_CONF_OPTS = \
16*4882a593Smuzhiyun	--disable-rpath \
17*4882a593Smuzhiyun	--enable-minimal \
18*4882a593Smuzhiyun	--disable-regex \
19*4882a593Smuzhiyun	--enable-sha256 \
20*4882a593Smuzhiyun	--enable-sha512
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunHOST_GNUPG_DEPENDENCIES = host-zlib
23*4882a593SmuzhiyunHOST_GNUPG_CONF_OPTS = \
24*4882a593Smuzhiyun	--disable-rpath \
25*4882a593Smuzhiyun	--enable-minimal \
26*4882a593Smuzhiyun	--disable-regex \
27*4882a593Smuzhiyun	--enable-sha256 \
28*4882a593Smuzhiyun	--enable-sha512 \
29*4882a593Smuzhiyun	--enable-aes \
30*4882a593Smuzhiyun	--enable-rsa \
31*4882a593Smuzhiyun	--without-libcurl \
32*4882a593Smuzhiyun	--without-readline
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun# gnupg doesn't support assembly for coldfire
35*4882a593Smuzhiyunifeq ($(BR2_m68k_cf),y)
36*4882a593SmuzhiyunGNUPG_CONF_OPTS += --disable-asm
37*4882a593Smuzhiyunendif
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BZIP2),y)
40*4882a593SmuzhiyunGNUPG_CONF_OPTS += --enable-bzip2
41*4882a593SmuzhiyunGNUPG_DEPENDENCIES += bzip2
42*4882a593Smuzhiyunendif
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBCURL),y)
45*4882a593SmuzhiyunGNUPG_CONF_ENV += ac_cv_path__libcurl_config=$(STAGING_DIR)/usr/bin/curl-config
46*4882a593SmuzhiyunGNUPG_DEPENDENCIES += libcurl
47*4882a593Smuzhiyunelse
48*4882a593SmuzhiyunGNUPG_CONF_OPTS += --without-libcurl
49*4882a593Smuzhiyunendif
50*4882a593Smuzhiyun
51*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_READLINE),y)
52*4882a593SmuzhiyunGNUPG_DEPENDENCIES += readline
53*4882a593Smuzhiyunelse
54*4882a593SmuzhiyunGNUPG_CONF_OPTS += --without-readline
55*4882a593Smuzhiyunendif
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GNUPG_AES),y)
58*4882a593SmuzhiyunGNUPG_CONF_OPTS += --enable-aes
59*4882a593Smuzhiyunelse
60*4882a593SmuzhiyunGNUPG_CONF_OPTS += --disable-aes
61*4882a593Smuzhiyunendif
62*4882a593Smuzhiyun
63*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
64*4882a593SmuzhiyunGNUPG_CONF_OPTS += --enable-rsa
65*4882a593Smuzhiyunelse
66*4882a593SmuzhiyunGNUPG_CONF_OPTS += --disable-rsa
67*4882a593Smuzhiyunendif
68*4882a593Smuzhiyun
69*4882a593Smuzhiyunifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
70*4882a593Smuzhiyundefine GNUPG_REMOVE_GPGV
71*4882a593Smuzhiyun	rm -f $(TARGET_DIR)/usr/bin/gpgv
72*4882a593Smuzhiyunendef
73*4882a593SmuzhiyunGNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGV
74*4882a593Smuzhiyunendif
75*4882a593Smuzhiyun
76*4882a593Smuzhiyunifneq ($(BR2_PACKAGE_GNUPG_GPGSPLIT),y)
77*4882a593Smuzhiyundefine GNUPG_REMOVE_GPGSPLIT
78*4882a593Smuzhiyun	rm -f $(TARGET_DIR)/usr/bin/gpgsplit
79*4882a593Smuzhiyunendef
80*4882a593SmuzhiyunGNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_REMOVE_GPGSPLIT
81*4882a593Smuzhiyunendif
82*4882a593Smuzhiyun
83*4882a593Smuzhiyundefine GNUPG_FIXUP_GPG_ZIP
84*4882a593Smuzhiyun	test -f $(TARGET_DIR)/usr/bin/gpg-zip && \
85*4882a593Smuzhiyun		$(SED) 's%^TAR=.*%TAR=/bin/tar%' $(TARGET_DIR)/usr/bin/gpg-zip
86*4882a593Smuzhiyunendef
87*4882a593SmuzhiyunGNUPG_POST_INSTALL_TARGET_HOOKS += GNUPG_FIXUP_GPG_ZIP
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun$(eval $(autotools-package))
90*4882a593Smuzhiyun$(eval $(host-autotools-package))
91