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

name                    lv2
version                 1.18.4
license                 MIT
categories              audio
platforms               any
supported_archs         noarch
maintainers             {gmail.com:aggraef @agraef} openmaintainer

description             header files needed for LV2 plugin development
long_description        ${name} provides the {*}${description}. \
                        LV2 is an extensible standard for audio plugins, \
                        similar in scope to ​LADSPA, VST, AU, and others.

homepage                https://lv2plug.in
master_sites            https://lv2plug.in/spec/

use_bzip2               yes

checksums               rmd160  80f991ea3e676e06fd3b01a48eb5225ef069bc05 \
                        sha256  4ddc0ed20579aabbaeb4df6fb42b69949c01dc7169ab0b945c709339509e6760 \
                        size    540611

configure.args-append   --no-plugins --lv2dir=${prefix}/lib/lv2
configure.post_args-delete --nocache

depends_build-append    port:pkgconfig

variant plugins description {Add sample plugins} {
    depends_lib-append port:libsndfile path:lib/pkgconfig/gtk+-2.0.pc:gtk2 path:lib/pkgconfig/cairo.pc:cairo
    configure.args-delete --no-plugins
}

livecheck.type          regex
livecheck.url           ${master_sites}
livecheck.regex         "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
