# -*- 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
# $Id: Portfile 88694 2012-01-08 07:00:35Z ryandesign@macports.org $

PortSystem          1.0

name                rtmpdump
version             2.3
categories          www net
platforms           darwin
maintainers         gmail.com:captsolo openmaintainer
license             GPL-2+

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           sha1    b65ce7708ae79adb51d1f43dd0b6d987076d7c42 \
                    rmd160  1d48925e6567783806fa68819d6a695cd06138bc

depends_lib         port:openssl

extract.suffix      .tgz

patchfiles          patch-Makefile.diff \
                    patch-librtmp-Makefile.diff

use_configure       no

variant universal {}

build.target        SYS=posix
build.args          prefix="${prefix}" CC="${configure.cc} [get_canonical_archflags cc]"
build.pre_args-delete -w

destroot.args       prefix="${prefix}"

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