# -*- 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               cmake  1.1
PortGroup               github 1.0

github.setup            hoene libmysofa 1.3.4 v
revision                0
categories              audio devel
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license                 BSD

description             Reader for AES SOFA files to get better HRTFs

long_description        ${name} is a simple set of C functions to read AES SOFA files, \
                        if they contain HRTFs stored according to the AES69-2015 standard.

checksums               rmd160  bd84d953248933772eddc8c1cacfddd9049a3643 \
                        sha256  64c661f75ef39edf68bfc3a28403d2b5a0bd251d0b9f5d021ed6f7917867fb37 \
                        size    208424159
github.tarball_from     archive

depends_lib-append      port:zlib

configure.args-append   -DBUILD_TESTS=OFF

variant tests description "Enable tests" {
    test.run            yes
    configure.args-replace \
                        -DBUILD_TESTS=OFF \
                        -DBUILD_TESTS=ON
    depends_test-append port:cunit
}
