# -*- 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 5c86e53c484140a4a5038a24e4f40f4fb8e6240d version 20160924 checksums rmd160 e6fd00ae55d7a2661186d8cdecea049c31c21820 \ sha256 e5dccfae6e906d6395264329a26b80e029acdbccd49deb1601ba1b5652394f7c 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 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 }