# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 name airspy github.setup airspy host 774584148cfe78b0b7cc89c4113d7f098ab2490b version 20150701 checksums rmd160 ca1beeedc8662f32576580fc30b5885d753c7833 \ sha256 9e4782c98122540aa4381dd58067ea75486e0483c0c431e1151079e0f2880a29 homepage http://www.airspy.com/ categories science comms maintainers michaelld openmaintainer description Host software for AirSpy, a project to produce a low cost, open source software radio platform (SDR). long_description ${description} license MIT platforms darwin depends_build-append port:pkgconfig depends_lib-append path:lib/libusb-1.0.dylib:libusb # do VPATH (out of source tree) build cmake.out_of_source yes # remove use of -std=gnu90, since some older compilers do not recognize it patchfiles-append patch-disable-std-gnu90.diff # 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 post-patch { reinplace "s@%d.%d.%d@%d.%d.%d MacPorts [string range ${github.version} 0 7](${version})@" ${worksrcpath}/airspy-tools/src/airspy_lib_version.c }