# -*- 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 89941 2012-02-16 04:45:47Z jeremyhu@macports.org $

PortSystem          1.0

name                libcanberra
version             0.28
license             LGPL-2.1+
categories          audio devel
maintainers         nomaintainer
description         XDG sound theme and naming implementation
long_description    libcanberra is an implementation of the XDG Sound Theme \
                    and Name Specifications, for generating event sounds on \
                    free desktops, such as GNOME.
homepage            http://0pointer.de/lennart/projects/libcanberra/
platforms           darwin
master_sites        ${homepage}

checksums           md5     c198b4811598c4c161ff505e4531b02c \
                    sha1    2a41dae039df1fea98cfb71bd7ca34e57b6e8091 \
                    rmd160  a351f048376d4c66bc0c1612188e8ffbfcec136b

depends_build       port:pkgconfig
depends_lib         port:gstreamer \
                    port:gconf \
                    port:libvorbis

patchfiles          patch-gtkquartz.diff LC_CTYPE.patch

configure.args      --enable-gtk \
                    --disable-null \
                    --disable-schemas-install

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

livecheck.type      regex
livecheck.regex     {libcanberra-([0-9\.]+)\.tar\.gz}
