# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description DNS library in C
long_description ldns is a library with the aim of simplifying DNS \
programming in C. It is heavily based upon the Net::DNS module from \
description Tools for working with dns and dnssec.
long_description Tools as examples to the ldns library. \
Useful for debugging/querying dns/dnssec servers.
description A dig-style dnssec-aware dns debugging tool
long_description Drill is a tool ala dig from BIND. \
It was designed with DNSSEC in mind and should be a useful \
debugging/query tool for DNSSEC.
homepage https://www.nlnetlabs.nl/projects/ldns/about/
master_sites https://www.nlnetlabs.nl/downloads/ldns/
checksums rmd160 b0dfb70085258e69dda0fc343f0eece6df52e0a1 \
sha256 c19f5b1b4fb374cfe34f4845ea11b1e0551ddc67803bd6ddd5d2a20f0997a6cc
depends_build bin:glibtool:libtool
depends_lib path:lib/libssl.dylib:openssl
if {${subport} eq "ldns-tools"} {
depends_lib-append port:ldns \
if {${subport} eq "drill"} {
depends_lib-append port:ldns
if {${subport} eq "ldns-tools"} {
worksrcdir ldns-${version}/examples
if {${subport} eq "drill"} {
worksrcdir ldns-${version}/drill
if {${subport} eq "ldns"} {
configure.args --mandir=${prefix}/share/man --with-ssl=${prefix}
configure.args --mandir=${prefix}/share/man --with-ldns=${prefix} --with-ssl=${prefix}
if {${subport} eq "ldns"} {
configure.cppflags -I${worksrcpath}/include
if {${subport} ne "drill"} {
# OpenSSL 1.1.0 not available
configure.args-append --disable-dane-ta-usage
if {${subport} eq "ldns"} {
reinplace "s,defined(@\$also),@\$also," ${worksrcpath}/doc/doxyparse.pl
# Install pkg-config files not installed by the Makefile
reinplace "s/-arch \[^ \]*//g" ${worksrcpath}/packaging/libldns.pc
file mkdir ${destroot}${prefix}/lib/pkgconfig/
file copy ${worksrcpath}/packaging/libldns.pc \
${destroot}${prefix}/lib/pkgconfig/libldns.pc
livecheck.url ${homepage}
livecheck.regex ">LDNS (\\d+(?:\\.\\d+)*)</a>"