# -*- 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 78272 2011-05-01 02:18:29Z jmr@macports.org $

PortSystem          1.0

name                gst-plugins-gl
version             0.10.2
revision            2
description         This is gst-plugins, a set of plug-ins for GStreamer.
long_description    The GStreamer OpenGL module provides helper libraries, base \
                    classes and elements for integrating with OpenGL and using \
                    it to perform video display and processing. 

maintainers         rmstonecipher openmaintainer
categories          gnome
platforms           darwin
homepage            http://gstreamer.freedesktop.org/modules/${name}.html
master_sites        http://gstreamer.freedesktop.org/src/${name}/

depends_lib	\
    port:glew \
    port:gst-plugins-base \
    port:libpng

use_bzip2           yes

checksums           md5     878fe4199be1c94f8aa2f7f23891cc95 \
                    sha1    bbeb7ebd46a9098bb32fe871ecb1891b58aff26e \
                    rmd160  1a6ca7f2922a2dbccc6a6106d56e0b28c0fb42e0

universal_variant       no
# gst-plugins-gl sees libsdl if it is present and uses it to build examples which 
# fail to build as of 0.10.2
configure.args-append   --disable-examples

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}"
