# -*- 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
PortGroup           meson 1.0
PortGroup           legacysupport 1.0

name                mpc
version             0.33
set branch          [join [lrange [split ${version} .] 0 0] .]
categories          audio
maintainers         {lbschenkel @lbschenkel} openmaintainer
license             GPL-2+

description         a command line tool for MPD
long_description    mpc is a simple command line client for MPD.\
                    Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg\
                    Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists. MPD is\
                    designed for integrating a computer into a stereo system that provides\
                    control for music playback over a local network. It also makes a great\
                    desktop music player, especially if you are a console junkie, like\
                    frontend options, or restart X often.

homepage            https://www.musicpd.org/clients/${name}/
master_sites        https://www.musicpd.org/download/${name}/${branch}/
platforms           darwin
depends_build-append \
                    port:pkgconfig
depends_lib         port:libiconv \
                    port:libmpdclient

use_xz              yes

checksums           rmd160  5dc046e58b7f72d425df57d0082cc0bb9a607513 \
                    sha256  4f40ccbe18f5095437283cfc525a97815e983cbfd3a29e48ff610fa4f1bf1296 \
                    size    45044

patchfiles          patch-iconv.diff

livecheck.url       http://www.musicpd.org/download/${name}/${branch}/
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)"