# -*- 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.7
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  cff4f910fa7e06e0fcb23cd97d796a9785f99190 \
                    sha256  eb2c84d0cc06b3c5f7dcef5a5c99c6c7cbf544b5a822cfb835395ed5204a0697 \
                    size    20587822

depends_build-append \
    port:pkgconfig

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

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
