# -*- 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 85732 2011-10-16 04:17:48Z dports@macports.org $

PortSystem      1.0

name            gnome-media
version         2.30.0
revision        5
license         GPL-2 GFDL-1.1
set branch      [join [lrange [split ${version} .] 0 1] .]
description     A collection of utilities for simple multimedia handling.
long_description	\
	The GNOME media utilities provide simple applications for basic \
	multimedia tasks, such as CD playback, volume control or audio \
	recording.
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     027b11fb8b126ab1b25def6b9e121bd3 \
                sha1    c077f1c0a4ef97908c7bb36e41477c77069fdcd0 \
                rmd160  9ba6f6fdc25afa34072e80ca4102800d7d75e2bc

use_bzip2       yes

depends_build	port:pkgconfig \
                port:gnome-doc-utils \
                port:intltool

#
# dependency on libgladeui-1.0 is required to ensure
# that port builds consistently
# if present glade3 ui profiles are installed
# which allows editing of .ui files in glade3
# if not they are not
# no way to turn this behavior off in configure
# path dependency allows either glade3 or glade3-devel to be used
#

depends_lib     port:libcanberra \
                port:libunique \
                port:gconf \
                port:gst-plugins-base \
                path:lib/pkgconfig/gladeui-1.0.pc:glade3

configure.args  --disable-schemas-install \
                --disable-scrollkeeper \
                --disable-pulseaudio \
                --disable-gstmix

variant deprecated description {Enable deprecated functionality} {
        configure.args-delete --disable-gstmix
        configure.args-append --enable-gstmix
}

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
