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

# arc4random_buf
legacysupport.newest_darwin_requires_legacy 10

# Upstream has not tagged a release since 0.9.5.0 (2021); track master.
github.setup        sctplab usrsctp c625e21950600460cb5c6075616eb1622df2b06a
github.tarball_from archive
name                libusrsctp
version             0.9.5.0.20261007
revision            0

categories          net
license             BSD
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

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.

checksums           rmd160  ca7b017d741cdd713a41b6d398364405a12002c7 \
                    sha256  090b9d03bf068ce5989576c8e0ff6979d3031ea85e405acd263206f19166b41e \
                    size    774014

configure.args-append \
                    -Dsctp_build_programs=OFF \
                    -Dsctp_build_shared_lib=ON \
                    -Dsctp_werror=OFF
