source: trunk/dports/science/gr-ieee802-15-4/Portfile @ 145601

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

gr-ieee802-15-4: rev-bump for updated Volk ABI.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 145601 2016-02-10 19:38:28Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7PortGroup           active_variants 1.1
8
9github.setup        bastibl gr-ieee802-15-4 ae2de97c136d6f95d6a18ff5678f23a2fdb3b67b
10version             20151217
11revision            2
12checksums           rmd160 c6afc175ab60787c55a442c7065b6efdc18b49bc \
13                    sha256 68287d7f6f469fdb1bfa271cd5d022668a13dd0a8fd9614784f35272e7b1587e
14
15# allow gr-ieee802-15-4 to work with both gnuradio and gnuradio-devel ...
16
17depends_lib-append  path:lib/libgnuradio-runtime.dylib:gnuradio
18
19# ... but not with gnuradio-next
20
21pre-fetch {
22    if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
23        # gnuradio-next is installed; this version of gr-ieee802-15-4 does not work with gnuradio-next
24        ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-next port.  deactivate gnuradio-next, and then install or activate gnuradio or gnuradio-devel.\n"
25            return -code error "Invalid port dependency: gnuradio-next"
26    }
27}
28
29categories          science comms
30maintainers         michaelld openmaintainer
31description         Provides augmented functionality (blocks, GRC definitions, apps, etc) for GNU Radio.
32long_description    ${description}
33license             GPL-3
34platforms           darwin
35
36depends_build-append port:pkgconfig
37depends_lib-append      port:boost \
38                    path:lib/libvolk.dylib:volk
39
40# do VPATH (out of source tree) build
41
42cmake.out_of_source yes
43
44# remove top-level library path, such that internal libraries are used
45# instead of any already-installed ones.
46
47configure.ldflags-delete -L${prefix}/lib
48
49# specify the Python dependencies
50
51depends_lib-append port:python27
52depends_run-append port:py27-matplotlib
53
54# specify that Python version to use
55
56configure.args-append \
57    -DPYTHON_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \
58    -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers \
59    -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python \
60    -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
61
62# require c++11
63
64if {${configure.cxx_stdlib} eq "libstdc++"} {
65
66    # *clang* when using libstdc++ do not seem to support C++11;
67    # C++11 support seems to need GCC 4.7+ when using libstdc++;
68    # could use C++0x support on GCC4.[56], but just ignore it since
69    # there are newer compilers already in place as defaults.
70
71    # Blacklist GCC compilers not supporting C++11 and all CLANG.
72    # This is probably not necessary, but it's good practice.
73
74    compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]}
75
76    # and whitelist those we do want to use. wish there were a better way.
77    # these will be used in the order provided.
78
79    compiler.whitelist macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
80
81} else {
82
83    # using libc++;
84    # Blacklist Clang not supporting C++11 in some form and all GCC.
85    # Just use the cxx11 PortGroup for this specific case.
86
87    PortGroup cxx11 1.0
88
89}
Note: See TracBrowser for help on using the repository browser.