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

PortSystem 1.0

name            gmpc
version         11.8.16
revision        5
categories      audio
license         GPL-2+
maintainers     nomaintainer

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        https://gmpc.fandom.com/wiki/Gnome_Music_Player_Client
master_sites    https://download.sarine.nl/Programs/gmpc/${version}/

checksums       rmd160  b11662d4b01790a06fe586ab2fa20161d37ecbc5 \
                sha256  a69414f35396846733632ca9619921d7acda537ffd6d49bd84b444945cb76b2c \
                size    7082909

depends_build   port:autoconf \
                port:automake \
                port:gnome-doc-utils \
                port:gob2 \
                port:intltool \
                port:libtool \
                path:bin/pkg-config:pkgconfig \
                path:bin/vala:vala
depends_lib     port:libmpd \
                port:libglade2 \
                port:libunique \
                port:gettext \
                port:zlib \
                path:lib/libssl.dylib:openssl \
                port:curl \
                port:libsoup-2.4 \
                port:libxspf

patchfiles      implicit.patch

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