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

name                libusrsctp
version             0.9.1
categories          net
platforms           darwin
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
master_sites        http://sctp.fh-muenster.de/download/

checksums           sha1 b719ddd754fd21b2bda634db20640bb9477c2a1b \
                    md5  5dceb755f070ac94ae80d23686da6c91

if {${os.platform} eq "darwin" && ${os.major} < 11} {
    known_fail      yes
    pre-fetch {
        ui_error "${name} is only supported on OS X 10.7 or later."
        return -code error "unsupported platform version"
    }
}

livecheck.type		regex
livecheck.url 		http://sctp.fh-muenster.de/sctp-user-land-stack.html
livecheck.regex		${name}-(\\d+(\\.\\d{1,4})+)${extract.suffix}