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

categories          science
platforms           darwin macosx
license             GPL-2
maintainers         {@ra1nb0w irh.it:rainbow} openmaintainer
description         is a software \"soundcard\" AX.25 packet modem/TNC and APRS encoder/decoder
long_description    Dire Wolf is a software \"soundcard\" AX.25 packet \
    modem/TNC and APRS encoder/decoder. It can be used stand-alone to \
    observe APRS traffic, as a tracker, digipeater, APRStt gateway, or \
    Internet Gateway (IGate).

github.setup        wb2osz  direwolf 1.8.1
github.tarball_from archive

checksums           rmd160  2bab06dbe2ea10af76f0db18a4e29d7aa7248009 \
                    sha256  89d5f7992ae1e74d8cf26ec6479dde74d1f480bde950043756e875a689d065d7 \
                    size    20000479

depends_build-append \
    port:pkgconfig

depends_lib-append \
    path:lib/libhamlib.dylib:hamlib \
    port:portaudio \
    path:lib/libgps.dylib:gpsd \
    port:hidapi

cmake.build_type    Release

variant native description {Enable native cpu flags} {
    configure.args-delete -DFORCE_SSE=1
}

test.run            yes
test.cmd            ./src/direwolf -u
