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

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

bladeRF:
+ update to ee2a6c32 (20150318);
+ use new cmake 1.0 PortGroup features, including cmake.out_of_source (ticket #47197).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 134224 2015-03-20 14:41:11Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        Nuand bladeRF ee2a6c32ab5dc72cc6dca990cb22121c7f624e37
9version             20150318
10checksums           rmd160 9429d4e7432bc38c5d2eb1b0e285b20136182a14 \
11                    sha256 54551a8d92991138ec33b076158fd6d0745794e792c6c91734505334f6490369
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 (out of source tree) build
24
25cmake.out_of_source yes
26
27# remove top-level library path, such that internal libraries are used
28# instead of any already-installed ones.
29
30configure.ldflags-delete -L${prefix}/lib
31
32# override the default version info,
33# per ticket #46197, to be MacPorts-specific
34
35configure.args-append -DVERSION_INFO_OVERRIDE="MacPorts-${version}"
36
37# do not treat compiler warnings as errors
38
39configure.args-append -DTREAT_WARNINGS_AS_ERRORS=OFF
40
41# default to building all variants
42
43default_variants +tecla
44
45variant tecla description "Build with support for the tecla interactive command line" {
46
47    depends_lib-append \
48        port:tecla
49
50    configure.args-append \
51        -DENABLE_LIBTECLA=ON
52
53}
54
55if {![variant_isset tecla]} {
56
57    configure.args-append \
58        -DENABLE_LIBTECLA=OFF
59
60}
61
62# documentation does not work as of 20140126
63
64configure.args-append \
65    -DBUILD_DOCUMENTATION=OFF
Note: See TracBrowser for help on using the repository browser.