# -*- 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 github.setup Nuand bladeRF fcd775f2b92bcb3cb70781df5824ca7ddfc3e00f version 20160824 checksums rmd160 4591bb30945e4c403b701678dd6a07e6c0c398d4 \ sha256 3109a44cc97d0d2dc9e200d74717fde981a10c86edd35016aee6d085e48edd5f categories science comms maintainers michaelld openmaintainer description bladeRF is an open-source hardware and software software-defined radio (SDR) platform. long_description ${description} This port provides all the source code required to program and interact with a bladeRF platform, including firmware for the Cypress FX3 USB controller, HDL for the Altera Cyclone IV FPGA, and C code for the host side libraries, drivers, and utilities. license mit lgpl-2 gpl-2 platforms darwin depends_build-append port:pkgconfig depends_lib-append path:lib/libusb-1.0.dylib:libusb # temporary patch to fix use of clock_gettime patchfiles-append patch-clock_gettime.diff # 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 # override the default version info, # per ticket #46197, to be MacPorts-specific configure.args-append -DVERSION_INFO_OVERRIDE="MacPorts-${version}" # do not treat compiler warnings as errors configure.args-append -DTREAT_WARNINGS_AS_ERRORS=OFF # do not use 'pandoc' even if it is installed configure.args-append -DPANDOC_EXECUTABLE=NO # default to building all variants default_variants +tecla variant tecla description "Build with support for the tecla interactive command line" { depends_lib-append \ port:tecla configure.args-append \ -DENABLE_LIBTECLA=ON } if {![variant_isset tecla]} { configure.args-append \ -DENABLE_LIBTECLA=OFF } # documentation does not work as of 20140126 configure.args-append \ -DBUILD_DOCUMENTATION=OFF