libldns.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ################################################################################
  2. #
  3. # libldns
  4. #
  5. ################################################################################
  6. LIBLDNS_VERSION = 1.8.4
  7. LIBLDNS_SOURCE = ldns-$(LIBLDNS_VERSION).tar.gz
  8. LIBLDNS_SITE = https://www.nlnetlabs.nl/downloads/ldns
  9. LIBLDNS_LICENSE = BSD-3-Clause
  10. LIBLDNS_LICENSE_FILES = LICENSE
  11. LIBLDNS_CPE_ID_VENDOR = nlnetlabs
  12. LIBLDNS_CPE_ID_PRODUCT = ldns
  13. LIBLDNS_INSTALL_STAGING = YES
  14. LIBLDNS_DEPENDENCIES = openssl
  15. LIBLDNS_CONF_OPTS = \
  16. --with-ssl=$(STAGING_DIR)/usr \
  17. --enable-dane \
  18. --enable-ecdsa \
  19. --enable-sha2 \
  20. --without-examples \
  21. --without-p5-dns-ldns \
  22. --without-pyldns \
  23. --without-pyldnsx
  24. ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
  25. LIBLDNS_CONF_OPTS += --enable-dane-verify
  26. else
  27. LIBLDNS_CONF_OPTS += --disable-dane-verify
  28. endif
  29. ifeq ($(BR2_PACKAGE_LIBOPENSSL_ENGINES),y)
  30. LIBLDNS_CONF_OPTS += --enable-gost
  31. else
  32. LIBLDNS_CONF_OPTS += --disable-gost
  33. endif
  34. ifeq ($(BR2_STATIC_LIBS),y)
  35. LIBLDNS_DEPENDENCIES += host-pkgconf
  36. # missing -lz breaks configure, add it using pkgconf
  37. LIBLDNS_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
  38. endif
  39. # the linktest make target fails with static linking, and we are only
  40. # interested in the lib target anyway
  41. LIBLDNS_MAKE_OPTS = lib
  42. $(eval $(autotools-package))