# -*- 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            libshout2
set my_name     [strsed ${name} {g/[0-9]//}]
version         2.4.6
revision        0
checksums       rmd160  ca6a5cbd1133aebf9c13e86a831ece12417e3940 \
                sha256  39cbd4f0efdfddc9755d88217e47f8f2d7108fa767f9d58a2ba26a16d8f7c910 \
                size    571153

categories      audio net
license         LGPL
maintainers     nomaintainer

description     Data and connectivity lib for the icecast server

long_description \
    A port of the libshout library. Libshout allows applications to \
    easily communicate and broadcast to an Icecast streaming media \
    server. It handles the socket connections, metadata communication, \
    and data streaming for the calling application, and lets developers \
    focus on feature sets instead of implementation details.

homepage        https://www.icecast.org/
master_sites    https://ftp.osuosl.org/pub/xiph/releases/libshout/
distname        ${my_name}-${version}

depends_build-append   \
                port:pkgconfig

depends_lib-append     \
                port:libvorbis \
                path:lib/libspeex.dylib:speex \
                port:libtheora \
                path:lib/libssl.dylib:openssl \
                port:libogg

configure.args-append \
                --with-vorbis \
                --with-speex \
                --with-theora \
                --with-openssl \
                --with-ogg

destroot.args   docdir=${prefix}/share/doc/${name}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
