source: trunk/dports/science/bladeRF/Portfile

Last change on this file was 153016, checked in by michaelld@…, 12 months ago

bladerf: add temporary patch to fix use of clock_gettime.

  • 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 153016 2016-09-22 12:28:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        Nuand bladeRF fcd775f2b92bcb3cb70781df5824ca7ddfc3e00f
9version             20160824
10checksums           rmd160 4591bb30945e4c403b701678dd6a07e6c0c398d4 \
11                    sha256 3109a44cc97d0d2dc9e200d74717fde981a10c86edd35016aee6d085e48edd5f
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  path:lib/libusb-1.0.dylib:libusb
22
23# temporary patch to fix use of clock_gettime
24
25patchfiles-append   patch-clock_gettime.diff
26
27# do VPATH (out of source tree) build
28
29cmake.out_of_source yes
30
31# remove top-level library path, such that internal libraries are used
32# instead of any already-installed ones.
33
34configure.ldflags-delete -L${prefix}/lib
35
36# override the default version info,
37# per ticket #46197, to be MacPorts-specific
38
39configure.args-append -DVERSION_INFO_OVERRIDE="MacPorts-${version}"
40
41# do not treat compiler warnings as errors
42
43configure.args-append -DTREAT_WARNINGS_AS_ERRORS=OFF
44
45# do not use 'pandoc' even if it is installed
46
47configure.args-append -DPANDOC_EXECUTABLE=NO
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
71
72configure.args-append \
73    -DBUILD_DOCUMENTATION=OFF
Note: See TracBrowser for help on using the repository browser.