# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.1

platforms           darwin macosx
categories          science
license             Boost-1
maintainers         {ra1nb0w @ra1nb0w} {michaelld @michaelld} openmaintainer

description         Support for streaming audio devices in Pothos
long_description    {*}${description}

github.setup        pothosware PothosAudio 0.3.1 pothos-audio-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  9c9de97682c38d2c5cfb93c5603dd8c537add99f \
                    sha256  e697b361ad900668d3d84a22326893473408042a556c0060ea55e301af5848e4 \
                    size    9017
revision            3

compiler.cxx_standard 2011

# Needed due to nlohmann-json:
#   error: field has incomplete type
compiler.blacklist-append \
    {clang < 900}

depends_lib-append \
    port:PothosCore \
    port:poco \
    port:nlohmann-json \
    port:portaudio

patchfiles-append \
    patch-fix-FindPortaudio.cmake.diff
patch.pre_args-replace  -p0 -p1
