# -*- 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          audio
license             MIT
maintainers         {ra1nb0w @ra1nb0w} openmaintainer

description         A set of C++ classes that provide a common API for realtime audio input/output
long_description    RtAudio is a set of C++ classes that provides a \
    common API (Application Programming Interface) for realtime audio \
    input/output across Linux (native ALSA, JACK, PulseAudio and OSS), \
    Macintosh OS X and Windows (DirectSound, ASIO and WASAPI) operating \
    systems. RtAudio significantly simplifies the process of interacting \
    with computer audio hardware.
homepage            http://www.music.mcgill.ca/~gary/rtaudio/

github.setup        thestk rtaudio 5.2.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  d7b9e7c6b731a96d892c8bc9917a031e95292db0 \
                    sha256  4410b80535da20dc79350caa3943379c63fae7b567844a2337c4f3f07dcccf70 \
                    size    247152
revision            0

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

# use only macOS CoreAudio
configure.args-append \
    -DRTAUDIO_API_OSS=OFF \
    -DRTAUDIO_API_PULSE=OFF \
    -DRTAUDIO_API_JACK=OFF

# Target "cmTC_0ce25" requires the language dialect "CXX11".
# But the current compiler "GNU" does not support this,
# or CMake does not know the flags to enable it.
compiler.cxx_standard 2011