# -*- 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.10.0
license                 MIT
categories              audio
maintainers             {gmail.com:aggraef @agraef} openmaintainer
platforms               darwin

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                http://lv2plug.in/
master_sites            http://lv2plug.in/spec/

use_bzip2               yes

checksums               rmd160  0aaf8cda542c3269c079006afc803dca9e6a6591 \
                        sha256  e80c8e4b45d4de3b09f26d76e39d454739b6aff3f444ea1dabe466ab530fa4d5

configure.args-append   --no-plugins

depends_build-append    port:pkgconfig

variant plugins description {Add sample plugins} {
    depends_lib-append port:libsndfile port: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}"