Revision: 116554 https://trac.macports.org/changeset/116554 Author: michaelld@macports.org Date: 2014-01-28 07:27:42 -0800 (Tue, 28 Jan 2014) Log Message: ----------- bladeRF: new port. Added Paths: ----------- trunk/dports/science/bladeRF/ trunk/dports/science/bladeRF/Portfile Added: trunk/dports/science/bladeRF/Portfile =================================================================== --- trunk/dports/science/bladeRF/Portfile (rev 0) +++ trunk/dports/science/bladeRF/Portfile 2014-01-28 15:27:42 UTC (rev 116554) @@ -0,0 +1,70 @@ +# -*- 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 ac4f715fa73ac0bfd51704b78497683256005625 + +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 + +version 20140126 +checksums rmd160 d496bbba2188c580730f50aac2111bb67534fa23 \ + sha256 ecdc56f6ea2cda94163c04753d391333991c8aa6daa59b1a18d894bfb168c580 + +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 Property changes on: trunk/dports/science/bladeRF/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native
participants (1)
-
michaelld@macports.org