Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
118 lines (79 sloc) 3.63 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 active_variants 1.1
PortGroup github 1.0
name gr-iqbalance
github.setup osmocom gr-iqbal dcd73fd54992430938ced73872b983bffd770b11
version 20151025
revision 6
checksums rmd160 aa34f93dbfc32280228caee50b321fd9f9e39c35 \
sha256 689b57f308f4696f43e9b0d2a69b0e2dbad8a7079da0544b96c9eaa0984e9d37 \
size 105929
# stealth update equivalent when moving to GitHub
# remove on next update
dist_subdir ${name}/${version}_1
maintainers {michaelld @michaelld} openmaintainer
description gr-iqbalance provides I/Q balancing blocks for GNU Radio
categories science comms
license GPL-3
platforms darwin macosx
long_description ${description}. \
This port is kept up with the gr-iqbal GIT 'master' branch, which is typically updated monthly, providing compatibility with GNU Radio release 3.7 API: the gnuradio and gnuradio-devel ports.
# allow gr-iqbalance 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-osmosdr 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"
depends_build-append port:pkgconfig
depends_lib-append port:boost \
port:libosmo-dsp \
# 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 \
# 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 \
# per user concensus: enable all variants except +debug and +universal
default_variants +docs +swig
variant docs description "Install ${name} documentation" {
depends_build-append \
port:doxygen \
configure.args-append \
-DDOXYGEN_DOT_EXECUTABLE=${prefix}/bin/dot \
if {![variant_isset docs]} {
configure.args-append \
variant swig description "Install ${name} with support for SWIG-base Python bindings" {
depends_lib-append \
# require gnuradio to also have this variant
require_active_variants \
path:lib/libgnuradio-runtime.dylib:gnuradio swig
configure.args-append \
if {![variant_isset swig]} {
configure.args-append \
You can’t perform that action at this time.