libgpgme.mk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ################################################################################
  2. #
  3. # libgpgme
  4. #
  5. ################################################################################
  6. LIBGPGME_VERSION = 1.23.2
  7. LIBGPGME_SITE = https://gnupg.org/ftp/gcrypt/gpgme
  8. LIBGPGME_SOURCE = gpgme-$(LIBGPGME_VERSION).tar.bz2
  9. LIBGPGME_LICENSE = LGPL-2.1+
  10. LIBGPGME_LICENSE_FILES = COPYING.LESSER
  11. LIBGPGME_CPE_ID_VENDOR = gnupg
  12. LIBGPGME_CPE_ID_PRODUCT = gpgme
  13. LIBGPGME_INSTALL_STAGING = YES
  14. LIBGPGME_DEPENDENCIES = libassuan libgpg-error
  15. LIBGPGME_CONFIG_SCRIPTS = gpgme-config
  16. LIBGPGME_LANGUAGE_BINDINGS = cl
  17. # C++ bindings require a C++11 capable gcc, and -Wsuggest-override support
  18. ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_5),yy)
  19. LIBGPGME_LANGUAGE_BINDINGS += cpp
  20. endif
  21. LIBGPGME_CONF_OPTS = \
  22. --with-gpg-error-prefix=$(STAGING_DIR)/usr \
  23. --with-libassuan-prefix=$(STAGING_DIR)/usr \
  24. --disable-gpgsm-test \
  25. --disable-gpgconf-test \
  26. --disable-g13-test \
  27. --disable-gpg-test \
  28. --enable-languages=$(subst $(space),$(comma),$(LIBGPGME_LANGUAGE_BINDINGS))
  29. # Force the path to "gpgrt-config" (from the libgpg-error package) to
  30. # avoid using the one on host, if present.
  31. LIBGPGME_CONF_ENV += GPGRT_CONFIG=$(STAGING_DIR)/usr/bin/gpgrt-config
  32. # Handle argp-standalone or it errors out during build
  33. ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
  34. # musl libc does not define error_t in errno.h, but argp.h does.
  35. # Assume we have error_t to avoid collision with the argp.h error_t.
  36. LIBGPGME_CONF_ENV += LIBS="-largp" ac_cv_type_error_t=yes
  37. LIBGPGME_DEPENDENCIES += argp-standalone
  38. endif
  39. # MIPS N64 (re)introduced getdents64 in kernel version 3.10
  40. ifeq ($(BR2_MIPS_NABI64)x$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10),yx)
  41. LIBGPGME_CONF_OPTS += --disable-linux-getdents
  42. endif
  43. $(eval $(autotools-package))