1 ################################################################################
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
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
31 GNUPG2_POST_INSTALL_TARGET_HOOKS
+= GNUPG2_REMOVE_GPGV2
34 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
35 GNUPG2_CONF_OPTS
+= --enable-bzip2
--with-bzip2
=$(STAGING_DIR
)
36 GNUPG2_DEPENDENCIES
+= bzip2
38 GNUPG2_CONF_OPTS
+= --disable-bzip2
41 ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT
),y
)
42 GNUPG2_CONF_OPTS
+= --enable-ccid-driver
43 GNUPG2_DEPENDENCIES
+= libusb-compat
45 GNUPG2_CONF_OPTS
+= --disable-ccid-driver
48 ifeq ($(BR2_PACKAGE_READLINE
),y
)
49 GNUPG2_CONF_OPTS
+= --with-readline
=$(STAGING_DIR
)
50 GNUPG2_DEPENDENCIES
+= readline
52 GNUPG2_CONF_OPTS
+= --without-readline
55 $(eval
$(autotools-package
))