# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup active_variants 1.1 name gr-iqbalance maintainers michaelld openmaintainer description gr-iqbalance provides I/Q balancing blocks for GNU Radio categories science comms homepage http://sdr.osmocom.org/trac/wiki/GrOsmoSDR 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. set commit 44ab02f671dbc8765391a83d8186779fbb38baea version 20140825 revision 7 checksums rmd160 8ec7b22e2ac37c972c4f7df187f66830ab38cb1e \ sha256 e2c8f0ecc97eaebdf0178a5375181c957484c02985c8e3d018dac1cc14567232 distname gr-iqbal-${commit} master_sites http://cgit.osmocom.org/gr-iqbal/snapshot/ conflicts gr-iqbalance-legacy # 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" } } livecheck.url http://cgit.osmocom.org/gr-iqbal/log/?h=master livecheck.version ${commit} livecheck.regex id=(\[a-f0-9\]+).*>HEAD< depends_build-append port:pkgconfig depends_lib-append port:boost \ port:libosmo-dsp \ port:fftw-3-single # 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 # 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 \ path:bin/dot:graphviz configure.args-append \ -DDOXYGEN_DOT_EXECUTABLE=${prefix}/bin/dot \ -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen } if {![variant_isset docs]} { configure.args-append \ -DDOXYGEN_DOT_EXECUTABLE= \ -DDOXYGEN_EXECUTABLE= } variant swig description "Install ${name} with support for SWIG-base Python bindings" { depends_lib-append \ port:swig-python # require gnuradio to also have this variant if {${subport} eq "gr-osmosdr-legacy"} { require_active_variants port:gnuradio-legacy swig } else { require_active_variants \ path:lib/libgnuradio-runtime.dylib:gnuradio swig } configure.args-append \ -DSWIG_EXECUTABLE=${prefix}/bin/swig } if {![variant_isset swig]} { configure.args-append \ -DSWIG_EXECUTABLE= }