# -*- 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 bfb667080936ca5c2d23b3282f5893931ec38d3f
checksums rmd160 7db1d958e6cde939cbe74ea1a8d18a65f09f7851 \
sha256 38454ff7f0780932b013992e7c8fee3d1dcaff4cbf589480682568ac913e0567 \
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