# $Id: Portfile 64889 2010-03-16 17:40:19Z ryandesign@macports.org $

PortSystem 1.0

name                rtmpdump
version             2.2
categories          www net
platforms           darwin
maintainers         gmail.com:captsolo openmaintainer
description         a tool for downloading RTMP streaming media
long_description    A small dumper for media content streamed over \
                    the RTMP protocol. Supplying an rtmp url will result \
                    in a dumped flv file, which can be played or transcoded \
                    using ffmpeg/mplayer, etc.

homepage            http://rtmpdump.mplayerhq.hu/
master_sites        ${homepage}download/

checksums           md5     1ce6753c95754d1a72b635d488757096 \
                    sha1    80ad4878b5b48c59cb6754fac31f811b8a7d399d \
                    rmd160  673e9baf426d8fe0d32471d101648660080e996d

use_bzip2           yes

post-patch {
    reinplace "s|CC=.*\$|CC=${configure.cc}|" ${worksrcpath}/Makefile
    reinplace "s|CXX=.*\$|CXX=${configure.cxx}|" ${worksrcpath}/Makefile
}
use_configure       no

build.target        osx

destroot {
    xinstall -m 755 -W ${worksrcpath} rtmpdump rtmpsuck rtmpsrv rtmpgw ${destroot}${prefix}/bin
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9a-z.\]+)\\.tar
