# $Id: Portfile 102926 2013-02-11 01:41:24Z jeremyhu@macports.org $

PortSystem       1.0

name             libshout2
set my_name      [strsed ${name} {g/[0-9]//}]
version             2.3.1
categories       audio net
license          LGPL
platforms        darwin
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         http://www.icecast.org/
master_sites     http://downloads.xiph.org/releases/libshout/
distname         ${my_name}-${version}

depends_build       port:pkgconfig

depends_lib      port:libvorbis path:lib/libspeex.dylib:speex port:libtheora

checksums           rmd160  674d6a726de93313d5c3b7432aa683ee428ce435 \
                    sha256  cf3c5f6b4a5e3fcfbe09fb7024aa88ad4099a9945f7cb037ec06bcee7a23926e

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

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