# -*- 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                libmpdclient
version             2.10
set branch          [join [lrange [split ${version} .] 0 0] .]
categories          audio
maintainers         nomaintainer
description         libmpdclient is a stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages.
long_description    ${description}
license             BSD
homepage            https://www.musicpd.org/libs/${name}/
master_sites        https://www.musicpd.org/download/${name}/${branch}/
platforms           darwin
use_xz              yes
checksums           rmd160  2b84c606fe5fc7faaf3fd62cb53eca7245663723 \
                    sha256  4f08cde82dae70895f8e4532a6e9b54b201efd5591c6b5d6834895807ed2ff82
use_autoreconf      yes

depends_lib         port:doxygen
configure.args      --mandir=${prefix}/share/man

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