# -*- 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 107354 2013-06-26 03:25:19Z devans@macports.org $

PortSystem      1.0

name            gnome-media
version         2.32.0
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}/

use_bzip2       yes

checksums       rmd160  c24ec7d76ca1c63610ca78f6291b2abb19f05a3c \
                sha256  2b0ad4decd75406398f46e82a170e53bcbc6e1bdc3363f03a07b00f59c2fe5e6

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:desktop-file-utils \
                port:libcanberra \
                port:libunique \
                port:gconf \
                port:gstreamer010-gst-plugins-base \
                path:lib/pkgconfig/gladeui-1.0.pc:glade3

depends_run     port:gnome-settings-daemon \
                port:yelp

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 "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  gnome
