# $Id: Portfile 85287 2011-10-12 10:16:41Z jmr@macports.org $

PortSystem       1.0

name             libshout2
set my_name      [strsed ${name} {g/[0-9]//}]
version          2.2.2
revision         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_lib      port:libvorbis path:lib/libspeex.dylib:speex port:libtheora

checksums        md5 4f75fc9901c724b712c371c9a1e782d3 \
                 sha1 cabc409e63f55383f4d85fac26d3056bf0365aac \
				 rmd160 7ea5bc197953cfae6aff53876865909b2f6ac5f1

destroot.args    docdir=${prefix}/share/doc/${my_name}-${version}

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