# $Id: Portfile 107754 2013-07-05 06:52:15Z jeremyhu@macports.org $

PortSystem 1.0

name            gmpc
version         11.8.16
categories      audio
platforms       darwin
license         GPL-2+
maintainers     raimue \
                openmaintainer

description     GMPC is a GTK2 client for MPD
long_description \
    GMPC is a GTK2 client for Music Player Daemon. The interface is made to be \
    easy to use, but provide full access to all the features MPD provides. Give \
    the user several ways to browse his database while still being a \
    lightweight client.

homepage        http://gmpclient.org
master_sites    sourceforge:musicpd

checksums       md5 223aeb000e41697d8fdf54ccedee89d5 \
                sha1 f61845cb8d9a1c1970ecb65565bd4eefc73b0c0a

depends_build   port:intltool \
                port:vala \
                port:gob2 \
                port:pkgconfig
depends_lib     port:libmpd \
                port:libglade2 \
                port:libunique \
                port:gettext \
                port:zlib \
                port:openssl \
                port:curl \
                port:libsoup

configure.args  --disable-macige

# Don't do intltool's INTLTOOL_PERL dance
use_autoreconf  yes
autoreconf.args -fvi

variant quartz {
    depends_lib-append    port:ige-mac-integration
    configure.args-delete --disable-macige
    configure.args-append --enable-macige
}

livecheck.type regex
livecheck.url  http://sourceforge.net/projects/musicpd/files/gmpc/
livecheck.regex {gmpc/(\d+.\d+(?:.\d+))[^-]}
