# -*- 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           boost 1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        mfontanini libtins 4.5 v
revision            0

# Drop on next update:
if {${os.platform} eq "darwin" && ${os.major} < 10} {
    incr revision
}

categories          devel net
license             BSD
maintainers         {l2dy @l2dy} openmaintainer
description         high-level, multiplatform C++ network packet sniffing and crafting library
long_description    ${name} is a {*}${description}.
homepage            https://libtins.github.io

checksums           rmd160  c78a5b19044751f4fb3708f36d5def88cb595f35 \
                    sha256  6ff5fe1ada10daef8538743dccb9c9b3e19d05d028ffdc24838e62ff3fc55841 \
                    size    376460
github.tarball_from archive

depends_lib-append  port:libpcap \
                    path:lib/libssl.dylib:openssl

# https://github.com/mfontanini/libtins/issues/554
compiler.cxx_standard   2011

configure.args-append \
                    -DLIBTINS_BUILD_SHARED=ON
