# -*- 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 68493 2010-06-05 02:47:37Z rmsfisher@macports.org $

PortSystem          1.0

name                gst-plugins-ugly
version             0.10.15
description         \
    A set of good-quality plug-ins for GStreamer that might pose distribution \
    problems.
long_description    \
    GStreamer Ugly Plug-ins is a set of plug-ins that have good quality and \
    correct functionality, but distributing them might pose problems. The \
    license on either the plug-ins or the supporting libraries might not be how \
    we'd like. The code might be widely known to present patent problems. 
maintainers         rmsfisher openmaintainer
categories          gnome
platforms           darwin
homepage            http://gstreamer.freedesktop.org/modules/${name}.html
master_sites        http://gstreamer.freedesktop.org/src/${name}/

checksums           md5     21c034a762a5da252f91640e53bfe457 \
                    sha1    d94b696cb2abba8e8780e6aa9c04e86b2d06aad8 \
                    rmd160  f60c2f1a92c12851bbd6880145659aafdc6f12a3

depends_lib         port:gst-plugins-base \
                    port:a52dec \
                    port:lame \
                    port:libcdio \
                    port:libdvdread \
                    port:libid3tag \
                    port:libmad \
                    port:libmpeg2 \
                    port:twolame \
                    port:x264

use_bzip2           yes

universal_variant   no

configure.args              mandir=${prefix}/share/man --enable-static
configure.cppflags-append   "-L${prefix}/lib"
configure.cflags-append     "-no-cpp-precomp -funroll-loops -fstrict-aliasing"

post-extract {
    reinplace "s|-flat_namespace -undefined suppress|-undefined define_a_way|g" \
    ${worksrcpath}/configure
}

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