# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        metabrainz libcoverart 1.0.0 release-
revision            1
github.tarball_from releases
categories          devel
maintainers         nomaintainer
license             LGPL-2.1+

description         C/C++ library for accessing the MusicBrainz Cover Art Archive

long_description    ${name} is a {*}${description}.

homepage            https://musicbrainz.org/doc/libcoverart

checksums           rmd160  2c3d15b3399b16b842cde85fa02401caf72e4cdb \
                    sha256  5d9d4a4c46f35754e016affab83957961a364d7a4c7d64447f73bff22a300f44 \
                    size    57933

# this software is unusual, and the cmake scripts are such that
# out_of_source builds don't presently work
cmake.out_of_source no

patchfiles          \
                    patch-cmakelists-1.diff \
                    patch-cmakelists-2.diff \
                    patch-cmakelists-3.diff \
                    patch-cmakelists-4.diff
patch.pre_args-replace  -p0 -p1

depends_lib-append  \
                    port:neon \
                    port:jansson \
                    port:libxml2

depends_build-append \
                    path:bin/pkg-config:pkgconfig

github.livecheck.regex {([0-9.]+)}
