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

# arc4random_buf
legacysupport.newest_darwin_requires_legacy 10

name                libusrsctp
github.setup        sctplab usrsctp 0.9.5.0
revision            1
categories          net
maintainers         nomaintainer
license             BSD
description         SCTP User-land Stack
long_description    This user-land stack uses the FreeBSD kernel sources \
                    for SCTP and makes the functionality available \
                    as a user-land library. The stack supports SCTP/IPv4, \
                    SCTP/IPv6, SCTP/UDP/IPv4 and SCTP/UDP/IPv6.

homepage            http://sctp.fh-muenster.de/sctp-user-land-stack.html

checksums           rmd160  5bf305d668dab0b05d308340821e06d0334eddbb \
                    sha256  260107caf318650a57a8caa593550e39bca6943e93f970c80d6c17e59d62cd92 \
                    size    771701
github.tarball_from archive

use_autoreconf      yes

# https://github.com/sctplab/usrsctp/pull/733
# pthread issue already fixed in upstream.
patchfiles          patch-big-endian.diff \
                    patch-fix-pthread.diff
