# -*- 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 68494 2010-06-05 02:55:41Z rmsfisher@macports.org $

PortSystem  1.0

name                gst-plugins-good
version             0.10.23
description         \
    A set of good-quality plug-ins for GStreamer under GStreamer's preferred \
    license, LGPL.
long_description    \
    GStreamer Good Plug-ins is a set of plug-ins that GStreamer's developers \
    consider to have good quality code, correct functionality, and their \
    preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible for \
    the supporting library). 
maintainers         rmsfisher openmaintainer
categories          gnome
platforms           darwin
homepage            http://gstreamer.freedesktop.org/modules/${name}.html
master_sites        http://gstreamer.freedesktop.org/src/${name}/ gnome:sources/${name}/0.10/

checksums           md5     9cddbb0e7e90677f0cc05c23feffef5c \
                    sha1    d819a2690e5bfe83f1277c850b737a13f8f28c12 \
                    rmd160  b19a61d796e0c384e074f61fc0515826fb6f6061

depends_lib	\
    port:gst-plugins-base \
    port:aalib \
    port:esound \
    port:flac \
    port:gnome-keyring \
    port:libcaca \
    port:libcdio \
    port:libdv \
    port:libshout2 \
    port:libsoup \
    path:lib/libspeex.dylib:speex \
    port:taglib \
    port:wavpack
      
use_bzip2   yes

pre-configure {
    reinplace "s|OBJC = gcc|OBJC = @OBJC@|" ${worksrcpath}/sys/osxvideo/Makefile.in
    reinplace "s|-DGST_DISABLE_DEPRECATED||" ${worksrcpath}/configure
}

configure.cmd   ./autogen.sh
configure.args   --disable-schemas-install --with-default-videosink=ximagesink

post-activate {
        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
             gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

platform darwin i386 {
        configure.args-append --build=${build_arch}-apple-darwin${os.major}
}

livecheck.type  regex
livecheck.url   http://gstreamer.freedesktop.org/src/${name}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
