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