# -*- 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
github.setup bastibl gr-rds 126c041813a3c41d3b704cfbab660157a03ff2e7
checksums rmd160 ea0e54b6041022f623ea1c3cfdae9d9ae7b3d1f6 \
sha256 1e5cd4524f066a8a7544504ec0b027143f41057d58c24d302a8aa71fcc6b25fa \
maintainers {michaelld @michaelld} openmaintainer
description Provides the Radio Data System (RDS) block for GNU Radio.
long_description ${description}
depends_build-append port:pkgconfig \
depends_lib-append port:boost \
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
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
# 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
# specify the Python version to use
-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 \