# -*- 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 85758 2011-10-16 05:01:41Z dports@macports.org $

PortSystem 1.0

name            swfdec
version         0.8.4
revision        1
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      multimedia
license         LGPL-2.1+
platforms       darwin
maintainers     nomaintainer
description     Decoder/renderer for Flash animations.
long_description ${description}
homepage	http://swfdec.freedesktop.org/
master_sites	${homepage}download/${name}/${branch}/ \
                http://de-mirror.org/distro/gentoo/distfiles/ \
                http://mirror.datapipe.net/gentoo/distfiles/ \
                http://mirror.mcs.anl.gov/pub/gentoo/distfiles/ \
                http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles \
                ftp://mirror.iawnet.sandia.gov/pub/gentoo/distfiles

checksums       md5     aece501d0e73f3e564200a44ec03c385 \
                sha1    cf95930ccd0b66146c97d6e111b1e27ec0d802dc \
                rmd160  1931b2c8b0ed54212e43fc8638b118c6bc559dda

depends_build   port:pkgconfig
depends_lib     port:gst-plugins-base \
                port:liboil \
                port:libsoup

# liboil is not universal
universal_variant no

pre-configure {
    reinplace "s|-Wl,-Bsymbolic||g" ${worksrcpath}/configure
}

configure.args  --with-audio=none

livecheck.type  regex
livecheck.url   ${homepage}download/${name}/${branch}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
