PKGNAME=ldns
PKGSEC=libs
PKGDEP="openssl python-3 perl unbound"
BUILDDEP="swig perl-devel-checklib"
PKGDES="Fast DNS library supporting recent RFCs"

ABTYPE=autotools
AUTOTOOLS_AFTER=(
    '--disable-static'
    '--disable-rpath'
    '--with-drill'
    '--with-p5-dns-ldns'
    '--without-examples'
    '--with-trust-anchor=/etc/unbound/trusted-key.key'
    '--with-ca-file=/etc/ssl/certs/ca-certificates.crt'
    '--with-ca-path=/etc/ssl/certs/'
)
# FIXME:
# Can't link/include C library 'ldns', 'ldns', aborting.
# cd /var/cache/acbs/build/acbs.y6oirda_/ldns-1.9.2/contrib/DNS-LDNS; make
# make[1]: Entering directory '/var/cache/acbs/build/acbs.y6oirda_/ldns-1.9.2/contrib/DNS-LDNS'
# make[1]: *** No targets specified and no makefile found.  Stop.
NOPARALLEL=1

PKGBREAK="dnscrypt<=2.0.39-1 openssh<=8.1p1 openssh-hpn<=7.8p1"
