# -*- 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
PortGroup           openssl 1.0

github.setup        ithewei libhv 1.3.3 v
github.tarball_from archive
revision            0

categories          devel
maintainers         {@sikmir disroot.org:sikmir} openmaintainer

license             BSD

description         A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket/MQTT client/server
long_description    {*}${description}

checksums           rmd160  c879bd2c3706be995e6b3500ebe0336ba3619af4 \
                    sha256  dfeae857eb5d167820d0800161b6c4199d1f771c05a04e6dd0adc22ed3fd19ae \
                    size    961696

compiler.cxx_standard 2011

configure.args-append \
                    -DENABLE_UDS=ON \
                    -DWITH_MQTT=ON \
                    -DWITH_CURL=ON \
                    -DWITH_NGHTTP2=ON \
                    -DWITH_OPENSSL=ON \
                    -DWITH_KCP=ON

depends_build-append \
                    port:curl