source: trunk/dports/science/bladeRF/Portfile @ 116922

Last change on this file since 116922 was 116922, checked in by michaelld@…, 6 years ago

bladeRF: update to 0655e83d (20140209).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 116922 2014-02-10 14:06:41Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        Nuand bladeRF 0655e83d7bb94ea5d0e79c2805293eda16e7fd6b
9
10categories          science comms
11maintainers         michaelld openmaintainer
12description         bladeRF is an open-source hardware and software software-defined radio (SDR) platform.
13long_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.
14license             mit lgpl-2 gpl-2
15platforms           darwin
16
17version             20140209
18checksums           rmd160 beb5a0ee28b9b5542b117b2eb518eaea7a424f4a \
19                    sha256 5cf6619089a96bc81b475ccac8160f9020b80026e72128eb3f2fb393fd6b7a1f
20
21depends_build-append port:pkgconfig
22depends_lib-append      port:libusb
23
24# do VPATH build
25
26post-extract        { file mkdir ${workpath}/build }
27configure.dir       ${workpath}/build
28build.dir           ${workpath}/build
29
30# remove top-level include path, such that internal headers are used
31# instead of any already-installed ones.
32
33configure.cppflags-delete -I${prefix}/include
34
35# remove top-level library path, such that internal libraries are used
36# instead of any already-installed ones.
37
38configure.ldflags-delete -L${prefix}/lib
39
40# set last configure argument to the reletive path
41# to the top-level cmake source
42
43configure.post_args ../${worksrcdir}
44
45# be verbose when building, for debugging purposes
46
47build.post_args VERBOSE=1
48
49# default to building all variants
50
51default_variants +tecla
52
53variant tecla description "Build with support for the tecla interactive command line" {
54
55    depends_lib-append \
56        port:tecla
57
58    configure.args-append \
59        -DENABLE_LIBTECLA=ON
60
61}
62
63if {![variant_isset tecla]} {
64
65    configure.args-append \
66        -DENABLE_LIBTECLA=OFF
67
68}
69
70# documentation does not work as of 20140126
Note: See TracBrowser for help on using the repository browser.