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

# memmem
legacysupport.newest_darwin_requires_legacy 10

github.setup        machinezone tcpkali 1.1.1 v
github.tarball_from releases
categories          net
license             BSD
maintainers         lionet.info:vlm \
                    openmaintainer

description         High performance TCP and WebSocket load generator and sink
long_description    tcpkali is a program that generates lots of network load \
                    to stress-test TCP and WebSocket servers.

checksums           rmd160  a25e455d5191d4b873097d1fb54fb4dd6234e0d5 \
                    sha256  a9a15a1703fc4960360a414ee282d821a7b42d4bbba89f9e72a796164ff69598 \
                    size    871005

depends_lib         port:ncurses

# https://github.com/satori-com/tcpkali/pull/78
patchfiles-append   0001-tcpkali_iface.c-define-AI_NUMERICSERV-when-undefined.patch

# Needs atomics support in compiler.
# https://github.com/satori-com/tcpkali/issues/79
# https://github.com/satori-com/tcpkali/issues/80
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2
