# -*- 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$

PortSystem 1.0

name            gmpc
version         11.8.16
revision        1
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    http://download.sarine.nl/Programs/gmpc/${version}/

checksums       md5 223aeb000e41697d8fdf54ccedee89d5 \
                sha1 f61845cb8d9a1c1970ecb65565bd4eefc73b0c0a

depends_build   port:intltool \
                port:vala \
                port:gob2 \
                port:pkgconfig \
                port:gnome-doc-utils \
                port:autoconf \
                port:automake \
                port:libtool
depends_lib     port:libmpd \
                port:libglade2 \
                port:libunique \
                port:gettext \
                port:zlib \
                port:openssl \
                port:curl \
                port:libsoup

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd   ./autogen.sh

# remove variant +quartz and related configuration item
# all OS X code and files removed in version 11.8.16
# http://git.musicpd.org/cgit/master/gmpc.git/commit/?id=bddbda3f79ba4e7aa3d6d1eafa6b7a4e78c01818

# configure.args  --disable-macige
#
# 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://download.sarine.nl/Programs/gmpc/
livecheck.regex {(\d+(\.\d+)+)}