# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 github.setup bastibl gr-rds 182150b84b52899ec83f1812e88d48cc9bf4fef2 version 20160831 checksums rmd160 6dc35bdd2fdf785e4ae320b0baebc55f9b48134f \ sha256 de546a39adb8c572bcddcc8ab0604496e3668f31ddd5b28ddd5045a6eb87941c categories science comms maintainers michaelld openmaintainer description Provides the Radio Data System (RDS) block for GNU Radio. long_description ${description} license GPL-2+ platforms darwin depends_build-append port:pkgconfig depends_lib-append port:boost \ port:doxygen \ port:libxml2 \ port:swig depends_run-append port:gr-osmosdr # allow gr-rds to work with both gnuradio and gnuradio-devel ... depends_lib-append path:lib/libgnuradio-runtime.dylib:gnuradio # ... but not with gnuradio-next pre-fetch { if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} { # gnuradio-next is installed; this version of gr-rds does not work with gnuradio-next 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" return -code error "Invalid port dependency: gnuradio-next" } } # do VPATH (out of source tree) build cmake.out_of_source yes # remove top-level library path, such that internal libraries are used # instead of any already-installed ones. configure.ldflags-delete -L${prefix}/lib # specify the Python dependencies depends_lib-append \ port:python27 # specify the Python version to use configure.args-append \ -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 \ -DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/Headers \ -DPYTHON_LIBRARY=${frameworks_dir}/Python.framework/Versions/2.7/Python \ -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages post-destroot { # copy the provided app into examples xinstall -m 755 -d ${destroot}/${prefix}/share/gnuradio/examples/grc/rds xinstall -m 644 -W ${worksrcpath} apps/rds_rx.grc \ ${destroot}/${prefix}/share/gnuradio/examples/grc/rds }