source: trunk/dports/science/gr-rds/Portfile @ 135414

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

various gnuradio dependents: rev-bump for new gnuradio ABI.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 135414 2015-04-23 15:57:06Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        bastibl gr-rds ff1ca151f9dc71b16f5aa3eabd5222c1d19a2829
9version             20141117
10revision            2
11checksums           rmd160 3f4056f2e2e6bdc406e6cc9583632960f206ba30 \
12                    sha256 d830c41c6504e173929d74751fd3e72a47dc881360ebaa1ebc16203ba0f68bb0
13
14categories          science comms
15maintainers         michaelld openmaintainer
16description         Provides the Radio Data System (RDS) block for GNU Radio.
17long_description    ${description}
18license             GPL-2+
19platforms           darwin
20
21depends_build-append port:pkgconfig
22depends_lib-append  port:boost \
23                    port:cppunit \
24                    port:doxygen \
25                    port:libxml2 \
26                    port:swig
27depends_run-append  port:gr-osmosdr
28
29# allow gr-osmosdr to work with both gnuradio and gnuradio-devel ...
30
31depends_lib-append  path:lib/libgnuradio-runtime.dylib:gnuradio
32
33# ... but not with gnuradio-legacy or gnuradio-next
34
35pre-fetch {
36    if {![catch {set installed [lindex [registry_active gnuradio-legacy] 0]}]} {
37        # gnuradio-legacy is installed; this version of gr-osmosdr does not work with gnuradio-legacy
38        ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-legacy port.  deactivate gnuradio-legacy, and then install or activate gnuradio or gnuradio-devel.\n"
39        return -code error "Invalid port dependency: gnuradio-legacy"
40    }
41    if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} {
42        # gnuradio-next is installed; this version of gr-osmosdr does not work with gnuradio-next
43        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"
44        return -code error "Invalid port dependency: gnuradio-next"
45    }
46}
47
48# do VPATH (out of source tree) build
49
50cmake.out_of_source yes
51
52# patch to fix use of binary literal -> hex literal to be more
53# compatible with older compilers
54
55patchfiles-append patch-lib_encoder_impl.cc.diff
56
57# remove top-level library path, such that internal libraries are used
58# instead of any already-installed ones.
59
60configure.ldflags-delete -L${prefix}/lib
61
62# set Python legacy variants; these can be removed 2016-01-01
63
64variant python26 description {Legacy variant} {}
65variant python27 description {Legacy variant} {}
66
67# specify the Python dependencies
68
69depends_lib-append \
70    port:python27
71
72# specify the Python version to use
73
74configure.args-append \
75    -DPYTHON_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \
76    -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers \
77    -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python \
78    -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
79
80post-destroot {
81
82    # copy the provided app into examples
83    xinstall -m 755 -d ${destroot}/${prefix}/share/gnuradio/examples/grc/rds
84    xinstall -m 644 -W ${worksrcpath} apps/rds_rx.grc \
85        ${destroot}/${prefix}/share/gnuradio/examples/grc/rds
86
87}
Note: See TracBrowser for help on using the repository browser.