# -*- 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 name gr-baz github.setup balint256 gr-baz 870de48fd824e4013650a8a6daf8c9479e7cb00d version 20161024 checksums rmd160 63a3784466d76d9072328a5431b95e88ae1a1aa7 \ sha256 2f2356a7b556e842465e2784c6a4d943ef1a95d74849e7f766dd0b04f62ee38d # allow gr-baz 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" } } homepage http://wiki.spench.net/wiki/Gr-baz categories science comms maintainers michaelld openmaintainer description Provides augmented functionality (blocks, GRC definitions, apps, etc) for GNU Radio. long_description ${description} license GPL-3 platforms darwin depends_build-append port:pkgconfig depends_lib-append port:boost \ port:doxygen \ port:swig \ path:lib/libvolk.dylib:volk # temporary fix to correctly find Volk post-patch { reinplace "s@find_package(volk)@find_package(Volk)@g" ${worksrcpath}/CMakeLists.txt } # 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 # enable all variants except +debug and +universal default_variants +uhd +rtl +armadillo variant uhd description "Install ${name} with support for UHD" { # allow uhd or uhd-devel depends_lib-append \ path:lib/libuhd.dylib:uhd configure.args-append \ -DUHD_INCLUDE_DIRS=${prefix}/include \ -DUHD_LIBRARIES=${prefix}/lib/libuhd.dylib } if {![variant_isset uhd]} { configure.args-append \ -DUHD_INCLUDE_DIRS= \ -DUHD_LIBRARIES= } variant rtl description "Install ${name} with support for RTL SDR hardware (via libusb)" { depends_lib-append path:lib/libusb-1.0.dylib:libusb configure.args-append \ -DLIBUSB_INCLUDE_DIR=${prefix}/include/libusb-1.0 \ -DLIBUSB_LIBRARIES=${prefix}/lib/libusb-1.0.dylib } if {![variant_isset rtl]} { configure.args-append \ -DLIBUSB_INCLUDE_DIR= \ -DLIBUSB_LIBRARIES= } variant armadillo description "Install ${name} with support for MUSIC DOA estimator block (via armadillo)" { depends_lib-append port:armadillo configure.args-append \ -DARMADILLO_INCLUDE_DIR=${prefix}/include \ -DARMADILLO_LIBRARY=${prefix}/lib/libarmadillo.dylib } if {![variant_isset armadillo]} { configure.args-append \ -DARMADILLO_INCLUDE_DIR= \ -DARMADILLO_LIBRARY= }