# -*- 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             GPL-3+
maintainers         {ra1nb0w @ra1nb0w} openmaintainer

description         Digital Speech Decoder (DSD) rewritten as a C++ library
long_description    ${description}

github.setup        f4exb dsdcc 1.9.5 v
checksums           rmd160  0cd75acf4beb2f16542c5b90ebada34d53ceed44 \
                    sha256  485327384ecd84947820dcc9b7f5a4c0d66359fdb28651a0c6820c93e5af2798 \
                    size    12752151
revision            0

github.tarball_from archive

compiler.cxx_standard 2011

configure.args-append \
    -DBUILD_TYPE=RELEASE \
    -DUSE_MBELIB=OFF

variant mbelib description {Enable mbelib support} {
    depends_lib-append      port:mbelib
    configure.args-replace  -DUSE_MBELIB=OFF -DUSE_MBELIB=ON
}

default_variants +mbelib

test.run            yes
test.cmd            ./dsdccx
