# -*- 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
github.setup airspy airspyone_host 61fec20fbd710fc54d57dfec732d314d693b5a2f
checksums rmd160 36c1839dba6d94d0aca892f4ba91a4e07477e507 \
sha256 3ae6bc7febbf703316ff1df95e3bb55f2c5c126253bd2524707b9bc928571420 \
homepage http://www.airspy.com/
maintainers {michaelld @michaelld} openmaintainer
description Host software for AirSpy, a project to produce a low cost, open source software radio platform (SDR).
long_description ${description}
depends_build-append port:pkgconfig
depends_lib-append path:lib/libusb-1.0.dylib:libusb
# do VPATH (out of source tree) build
# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.
configure.ldflags-delete -L${prefix}/lib
# fix the lib version string to be MacPorts-specific
reinplace "s@%d.%d.%d@%d.%d.%d MacPorts [string range ${github.version} 0 7](${version})@" ${worksrcpath}/airspy-tools/src/airspy_lib_version.c