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

name                py-miniaudio
version             1.71
revision            0
categories-append   audio
license             MIT
maintainers         nomaintainer

description         Python bindings for the miniaudio library and its decoders
long_description    ${python.rootname} provides Python bindings (via cffi) for the \
                    miniaudio C library. It can decode mp3, flac, ogg vorbis \
                    and wav audio, convert sample formats, and play back or \
                    record audio.

homepage            https://github.com/irmen/pyminiaudio

python.versions     312 313 314

checksums           rmd160  0a1c4d1804e6969cf9ea2bfa55180e1a4d10b213 \
                    sha256  ff51e2887bb673e2e757752b586b3dc924d59aa5fbcae9bbc45f4a111bd3262b \
                    size    1116480

if {${name} ne ${subport}} {
    depends_lib-append \
                     port:py${python.version}-cffi

    test.run         yes
    python.test_framework \
                     pytest
}
