2013-03-01 14:38:28 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libgpgme
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-07-05 06:32:12 +02:00
|
|
|
LIBGPGME_VERSION = 1.13.1
|
2017-12-13 21:23:49 +01:00
|
|
|
LIBGPGME_SITE = https://gnupg.org/ftp/gcrypt/gpgme
|
2013-03-01 14:38:28 +01:00
|
|
|
LIBGPGME_SOURCE = gpgme-$(LIBGPGME_VERSION).tar.bz2
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBGPGME_LICENSE = LGPL-2.1+
|
2013-03-01 14:38:28 +01:00
|
|
|
LIBGPGME_LICENSE_FILES = COPYING.LESSER
|
|
|
|
LIBGPGME_INSTALL_STAGING = YES
|
2013-07-31 20:59:46 +02:00
|
|
|
LIBGPGME_DEPENDENCIES = libassuan libgpg-error
|
2016-10-13 13:19:55 +02:00
|
|
|
LIBGPGME_LANGUAGE_BINDINGS = cl
|
2018-12-11 16:24:25 +01:00
|
|
|
LIBGPGME_CONFIG_SCRIPTS = gpgme-config
|
2013-03-01 14:38:28 +01:00
|
|
|
|
2017-04-21 15:25:44 +02:00
|
|
|
LIBGPGME_CONF_OPTS = \
|
2013-03-01 14:38:28 +01:00
|
|
|
--with-gpg-error-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--with-libassuan-prefix=$(STAGING_DIR)/usr \
|
2014-07-12 15:08:01 +02:00
|
|
|
--disable-gpgsm-test \
|
|
|
|
--disable-gpgconf-test \
|
|
|
|
--disable-g13-test \
|
2016-10-13 13:19:55 +02:00
|
|
|
--disable-gpg-test \
|
|
|
|
--enable-languages=$(LIBGPGME_LANGUAGE_BINDINGS)
|
|
|
|
|
2019-07-09 12:23:24 +02:00
|
|
|
# C++ bindings require a C++11 capable gcc, and -Wsuggest-override support
|
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_5),yy)
|
2016-10-13 13:19:55 +02:00
|
|
|
LIBGPGME_LANGUAGE_BINDINGS := $(LIBGPGME_LANGUAGE_BINDINGS),cpp
|
|
|
|
endif
|
2013-07-31 20:59:46 +02:00
|
|
|
|
|
|
|
# Handle argp-standalone or it errors out during build
|
2015-08-08 00:47:18 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
2016-05-24 14:30:17 +02:00
|
|
|
# musl libc does not define error_t in errno.h, but argp.h does.
|
|
|
|
# Assume we have error_t to avoid collision with the argp.h error_t.
|
|
|
|
LIBGPGME_CONF_ENV += LIBS="-largp" ac_cv_type_error_t=yes
|
2013-07-31 20:59:46 +02:00
|
|
|
LIBGPGME_DEPENDENCIES += argp-standalone
|
|
|
|
endif
|
2013-03-01 14:38:28 +01:00
|
|
|
|
2017-12-16 21:42:41 +01:00
|
|
|
# MIPS N64 (re)introduced getdents64 in kernel version 3.10
|
|
|
|
ifeq ($(BR2_MIPS_NABI64)x$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10),yx)
|
|
|
|
LIBGPGME_CONF_OPTS += --disable-linux-getdents
|
|
|
|
endif
|
|
|
|
|
2013-03-01 14:38:28 +01:00
|
|
|
$(eval $(autotools-package))
|