# -*- 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.4 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  e45b7c3800de08424bff51943af4b5b990679aa4 \
                    sha256  f0a9a197f90da55cc3ff104f9c7a27cc927f117b6c18613c3292726068588e10 \
                    size    960336

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
