Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
115 lines (78 sloc) 3.48 KB
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup cmake 1.0
PortGroup qt4 1.0
PortGroup active_variants 1.1
PortGroup github 1.0
# require C++11 for cppunit 1.14.0 as of April 13, 2017.
PortGroup cxx11 1.1
github.setup osmocom gr-fosphor 7b6b9961bc2d9b84daeb42a5c8f8aeba293d207c
version 20160522
revision 11
checksums rmd160 b58669d4caa99a724eaa8ea44848bbea07715d96 \
sha256 57b8e59b6861a867f4cb938ef654c7f753b53720d3b4b249dd8f398ba9c2998b \
size 254645
# stealth update equivalent when moving to GitHub
# remove on next update
dist_subdir ${name}/${version}_1
maintainers {michaelld @michaelld} openmaintainer
categories science comms
license GPL-3
platforms darwin macosx
description gr-fosphor provides a GNU Radio block for RTSA-like spectrum visualization using GPU acceleration.
long_description ${description} \
This port is kept up with the gr-fosphor GIT 'master' branch, which is typically updated weekly to monthly, providing compatibility with GNU Radio release 3.7 API: the gnuradio and gnuradio-devel ports.
depends_lib-append \
port:boost \
port:freetype \
depends_build-append \
port:doxygen \
depends_test-append \
# do VPATH (out of source tree) build
cmake.out_of_source yes
# temporary patch to fix using gr_log
patchfiles-append patch-add_gr_log.diff
# 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 \
# 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 \
# require C++11
configure.args-append \
# disable the GLFW fosphor interface; see also
configure.args-append \
# allow gr-forphor 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-forphor 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"
variant wx description "Install Fosphor for wx" {}
if {[variant_isset wx]} {
PortGroup wxWidgets 1.0
wxWidgets.use wxPython-3.0
depends_lib-append \
port:${wxWidgets.port} \
configure.args-append -DENABLE_WX=ON
} else {
configure.args-append -DENABLE_WX=OFF
You can’t perform that action at this time.