# -*- 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             LGPL-2.1
maintainers         {ra1nb0w @ra1nb0w} {michaelld @michaelld} openmaintainer

description         Soapy SDR module for Pluto SDR
long_description    {*}${description}

github.setup        pothosware SoapyPlutoSDR 0.2.1 soapy-plutosdr-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  35f093dfb08070d9db70f18920a4b8faf05f1ada \
                    sha256  6b4963ae991636afd77b052d97d93599daff606d8fd3947b4638576fb92624ae \
                    size    22762
revision            2

compiler.cxx_standard 2011

depends_build-append \
    port:pkgconfig

depends_lib-append \
    port:SoapySDR \
    path:lib/libiio.dylib:libiio \
    port:libad9361-iio

configure.args-append \
    -DCMAKE_BUILD_TYPE=Release
