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

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

bladeRF: update to 23cfc1dd (20140216); explicitly disable documentation for now.

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