# -*- 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

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        c-ares c-ares 1.34.5 v
revision            0

categories          net
maintainers         {toby @tobypeterson}
license             MIT
github.tarball_from releases

description         C library for asynchronous DNS requests (including name resolves)

long_description    This is c-ares, an asynchronous resolver \
                    library. It is intended for applications which \
                    need to perform DNS queries without blocking, or \
                    need to perform multiple DNS queries in \
                    parallel. The primary examples of such \
                    applications are servers which communicate with \
                    multiple clients and programs with graphical user \
                    interfaces.

homepage            https://c-ares.org

checksums           rmd160  6205108c160940d0214cf85b6e5f3961d9f4a910 \
                    sha256  7d935790e9af081c25c495fd13c2cfcda4792983418e96358ef6e7320ee06346 \
                    size    1009261

depends_build-replace \
                    path:bin/cmake:cmake port:cmake-bootstrap

patchfiles          patch-dnsinfo.h-availability.diff

configure.cmd       ${prefix}/libexec/cmake-bootstrap/bin/cmake

configure.args-append \
                    -DCARES_SHARED:BOOL=ON
