# -*- 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: Portfile 121107 2014-06-17 18:42:13Z michaelld@macports.org $ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 github.setup Nuand bladeRF 4b16347c05060334643c3da72aee595229b57cd7 version 20140612 checksums rmd160 d8ead293424ad34e5516e993d96758ef62469b72 \ sha256 7fe7e739e542ce2e955479c4d021df68ffcc8117cf4547b12447c3e4c6779370 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 port:libusb # do VPATH build post-extract { file mkdir ${workpath}/build } configure.dir ${workpath}/build build.dir ${workpath}/build # remove top-level include path, such that internal headers are used # instead of any already-installed ones. configure.cppflags-delete -I${prefix}/include # remove top-level library path, such that internal libraries are used # instead of any already-installed ones. configure.ldflags-delete -L${prefix}/lib # set last configure argument to the reletive path # to the top-level cmake source configure.post_args ../${worksrcdir} # be verbose when building, for debugging purposes build.post_args VERBOSE=1 # 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