xref: /OK3568_Linux_fs/buildroot/package/gnupg2/gnupg2.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# gnupg2
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunGNUPG2_VERSION = 2.2.32
8*4882a593SmuzhiyunGNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
9*4882a593SmuzhiyunGNUPG2_SITE = https://gnupg.org/ftp/gcrypt/gnupg
10*4882a593SmuzhiyunGNUPG2_LICENSE = GPL-3.0+
11*4882a593SmuzhiyunGNUPG2_LICENSE_FILES = COPYING
12*4882a593SmuzhiyunGNUPG2_CPE_ID_VENDOR = gnupg
13*4882a593SmuzhiyunGNUPG2_CPE_ID_PRODUCT = gnupg
14*4882a593SmuzhiyunGNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libnpth \
15*4882a593Smuzhiyun	$(if $(BR2_PACKAGE_LIBICONV),libiconv) host-pkgconf
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunGNUPG2_CONF_OPTS = \
18*4882a593Smuzhiyun	--disable-rpath --disable-regex \
19*4882a593Smuzhiyun	--with-libgpg-error-prefix=$(STAGING_DIR)/usr \
20*4882a593Smuzhiyun	--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
21*4882a593Smuzhiyun	--with-libassuan-prefix=$(STAGING_DIR)/usr \
22*4882a593Smuzhiyun	--with-ksba-prefix=$(STAGING_DIR)/usr \
23*4882a593Smuzhiyun	--with-npth-prefix=$(STAGING_DIR)/usr
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunifneq ($(BR2_PACKAGE_GNUPG2_GPGV),y)
26*4882a593Smuzhiyundefine GNUPG2_REMOVE_GPGV
27*4882a593Smuzhiyun	rm -f $(TARGET_DIR)/usr/bin/gpgv
28*4882a593Smuzhiyunendef
29*4882a593SmuzhiyunGNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV
30*4882a593Smuzhiyunendif
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BZIP2),y)
33*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
34*4882a593SmuzhiyunGNUPG2_DEPENDENCIES += bzip2
35*4882a593Smuzhiyunelse
36*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --disable-bzip2
37*4882a593Smuzhiyunendif
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GNUTLS),y)
40*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --enable-gnutls
41*4882a593SmuzhiyunGNUPG2_DEPENDENCIES += gnutls
42*4882a593Smuzhiyunelse
43*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --disable-gnutls
44*4882a593Smuzhiyunendif
45*4882a593Smuzhiyun
46*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBUSB),y)
47*4882a593SmuzhiyunGNUPG2_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/libusb-1.0"
48*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --enable-ccid-driver
49*4882a593SmuzhiyunGNUPG2_DEPENDENCIES += libusb
50*4882a593Smuzhiyunelse
51*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --disable-ccid-driver
52*4882a593Smuzhiyunendif
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_READLINE),y)
55*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR)
56*4882a593SmuzhiyunGNUPG2_DEPENDENCIES += readline
57*4882a593Smuzhiyunelse
58*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --without-readline
59*4882a593Smuzhiyunendif
60*4882a593Smuzhiyun
61*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SQLITE),y)
62*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --enable-sqlite
63*4882a593SmuzhiyunGNUPG2_DEPENDENCIES += sqlite
64*4882a593Smuzhiyunelse
65*4882a593SmuzhiyunGNUPG2_CONF_OPTS += --disable-sqlite
66*4882a593Smuzhiyunendif
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun$(eval $(autotools-package))
69