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

# Only used for the wrapper
legacysupport.newest_darwin_requires_legacy 0

github.setup        szechyjs dsd 59423fa46be8b41ef0bd2f3d2b45590600be29f0
version             20220314-[string range ${github.version} 0 7]
revision            2
categories          science comms
platforms           darwin macosx
license             {GPL-2 ISC}
maintainers         {ra1nb0w @ra1nb0w} openmaintainer
description         DSD is able to decode several digital voice formats (ex. P25p1, DMR and NXDN).
long_description    {*}${description}
checksums           rmd160  e6378ab28a6be0f12138cbd09a9adcf07d523f4a \
                    sha256  f5a8b6f23d2e98cfa49219ccd65798683c31b19fba91e3c38e45e3935c81e096 \
                    size    438643
github.tarball_from archive
installs_libs       no

# https://github.com/szechyjs/dsd/issues/136
patchfiles-append   no-help2man.patch

legacysupport.redirect_bins ${name}

compiler.cxx_standard 2011

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

depends_lib-append \
    path:lib/libitpp.dylib:itpp \
    port:libsndfile \
    port:mbelib \
    port:portaudio

configure.args-append \
    -DDISABLE_TEST=ON
