# $Id: Portfile 53814 2009-07-14 18:21:55Z toby@macports.org $

PortSystem 1.0

name                ldns
version             1.6.0
categories          net devel
platforms           darwin
maintainers         durchmesser.ch:marius.rieder
description         DNS library in C
long_description    ldns is a library with the aim of simplifying DNS \
                    programing in C. It is heavily based upon the Net::DNS module from \
                    Perl.

homepage            http://www.nlnetlabs.nl/projects/ldns/
master_sites        http://www.nlnetlabs.nl/downloads/ldns/
checksums           sha1 e5fdbc5cd66f6afc4f816e9acd334bddc488e830

depends_build       bin:glibtool:libtool

configure.args      --mandir=${prefix}/share/man --without-ssl
configure.cppflags  -I${worksrcpath}/include
build.type          gnu

variant ssl {
    configure.args-delete --without-ssl
    configure.args-append --with-ssl=${prefix}
    depends_lib-append	port:openssl
}

platform darwin 8 {
    configure.env MACOSX_DEPLOYMENT_TARGET=10.4
    build.env MACOSX_DEPLOYMENT_TARGET=10.4
    destroot.env MACOSX_DEPLOYMENT_TARGET=10.4
}

platform darwin 9 {
    configure.env MACOSX_DEPLOYMENT_TARGET=10.4
    build.env MACOSX_DEPLOYMENT_TARGET=10.4
    destroot.env MACOSX_DEPLOYMENT_TARGET=10.4
}
