# -*- 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
maintainers {michaelld @michaelld} openmaintainer
description ${name} is a project to build a low cost software radio (SDR) platform.
long_description ${description}
if {${subport} eq ${name}} {
github.setup mossmann hackrf 2018.01.1 v
checksums rmd160 97e9e7ca94f91ba898dd9a20a56aa3843688be64 \
sha256 e7ee6e09c1e0d2498cfdc974047cbe42177d3d6688a106be283d67d36051a155
# bump the epoch because I moved the version from 20170219 to 2017.02.1
github.setup mossmann hackrf e9c6c2d2e6f9c2e903c1e69de9a48aa4b28a1e55
version 20190926-[string range ${github.version} 0 7]
checksums rmd160 f5ab5ebf9683aeb43e2d1b47c8d6e6b75650c56e \
sha256 f2e8167839803f23580703db26698afb1e42072536c3d5459738a647130579a6 \
depends_build-append port:pkgconfig
depends_lib-append path:lib/libusb-1.0.dylib:libusb \
# Many compilers do not recognize "-std=gnu90", so remove it.
patchfiles-append patch-no-gnu90.diff
# do VPATH (out of source tree) build
# set last configure argument to the reletive path
# to the top-level cmake source
configure.post_args ../${worksrcdir}/host
# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.