# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       gobject_introspection 1.0

name            clutter-gst
epoch           1
version         2.0.18
revision        1
license         LGPL-2.1+
set branch      [string range $version 0 [expr [string last "." $version] - 1]]
categories      graphics
description     Clutter GStreamer integration library.
long_description Clutter-GStreamer (clutter-gst) is an integration library \
                 for using GStreamer with Clutter.  Its purpose is to implement \
                 the ClutterMedia interface using GStreamer.
maintainers     {devans @dbevans} openmaintainer
platforms       darwin
homepage        http://blogs.gnome.org/clutter/
master_sites    gnome:sources/${name}/${branch}

use_xz          yes

checksums       rmd160  6f05165efb0201ad640953540ab69478e9fb425b \
                sha256  8d82bebf01b65d433bfb0f8da7bf7a8da42289f58b66bc4dfa775df0385bf8b5

# Note that gstreamer1-gst-plugins-bad is in depends_build to ensure it is updated
# before this port.  Older versions produce libgstbasevideo-1.0.0.dylib which cause
# this port to build differently.
#
# TODO: Disable building with libgstbasevideo-1.0.0.dylib support even when present.

depends_build \
    port:pkgconfig \
    port:gstreamer1-gst-plugins-bad

depends_lib \
    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    port:clutter \
    port:gstreamer1 \
    port:gstreamer1-gst-plugins-base

configure.args  --enable-debug=yes \
                --disable-silent-rules

gobject_introspection yes

livecheck.type  gnome
livecheck.regex {LATEST-IS-(2\.[0-8][0-9]*(?:\.\d+)*)}
