# -*- 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          science
license             MIT
maintainers         {ra1nb0w @ra1nb0w} {michaelld @michaelld} openmaintainer

description         Soapy SDR module for Hack RF
long_description    {*}${description}

github.setup        pothosware SoapyHackRF 0.3.4 soapy-hackrf-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  09edfc9c61fe901d1911e7b01106e51f91cbcc09 \
                    sha256  4e8872adb8966a3ae41538518abd085fda2c9c29cf9070b51f1d79246c9b549c \
                    size    16474
revision            0

compiler.cxx_standard 2011

depends_build-append \
    port:pkgconfig

depends_lib-append \
    port:SoapySDR \
    path:lib/libhackrf.dylib:hackrf

configure.args-append \
    -DCMAKE_BUILD_TYPE=Release
