source: trunk/dports/science/gr-fcdproplus/Portfile

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

gr-fcdproplus: "${prefix}/Library/Frameworks" -> "${frameworks_dir}".

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 153026 2016-09-22 13:49:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        dl1ksv gr-fcdproplus f7fb1132aecb16ed65b438f117fbac23067df3bb
9version             20160310
10revision            3
11checksums           rmd160 9f1278f3f39f21d26bea42d5238b48e48975ec86 \
12                    sha256 f0b6205dfa99dd3f7a2aa3639b6cdc381f3d1a93fffefa02648675b5c39c1276
13
14categories          science comms
15maintainers         michaelld openmaintainer
16description         Implements a funcube dongle pro+ source in GNU Radio.
17long_description    ${description}
18license             GPL-3
19platforms           darwin
20
21depends_build-append port:pkgconfig
22depends_lib-append      port:boost \
23                    port:doxygen \
24                    path:lib/libusb-1.0.dylib:libusb \
25                    port:swig-python
26
27# allow gr-fcdproplus to work with both gnuradio and gnuradio-devel ...
28
29depends_lib-append  path:lib/libgnuradio-runtime.dylib:gnuradio
30
31# ... but not with gnuradio-next
32
33pre-fetch {
34    if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
35        # gnuradio-next is installed; this version of gr-fcdproplus does not work with gnuradio-next
36        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"
37        return -code error "Invalid port dependency: gnuradio-next"
38    }
39}
40
41# fix search path for GNU Radio CMake modules
42
43pre-patch {
44    reinplace "/HINTS/s@/lib/@/share/@" \
45        ${worksrcpath}/cmake/Modules/FindGnuradioModules.cmake
46}
47
48# do VPATH (out of source tree) build
49
50cmake.out_of_source yes
51
52# remove top-level library path, such that internal libraries are used
53# instead of any already-installed ones.
54
55configure.ldflags-delete -L${prefix}/lib
56
57# specify the Python dependencies
58
59depends_lib-append \
60    port:python27
61
62# specify the Python version to use
63
64configure.args-append \
65    -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 \
66    -DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/Headers \
67    -DPYTHON_LIBRARY=${frameworks_dir}/Python.framework/Versions/2.7/Python \
68    -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
Note: See TracBrowser for help on using the repository browser.