# -*- 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 analogdevicesinc gr-iio 9088ac791955c522ce1143fe10b85ded56ead0ee
version 20190725-[string range ${github.version} 0 7]
checksums rmd160 15848e397eff6bd8782cf3927795cd51cf730794 \
sha256 0bcb973ba406bbf5149765b974e36137ffc515457f2e86e8cade389a334fc5d7 \
# allow gr-iio 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-iio 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"
maintainers {michaelld @michaelld} openmaintainer
description Provides augmented functionality for GNU Radio: IIO device source
long_description ${description}
path:lib/libiio.dylib:libiio \
path:lib/libvolk.dylib:volk
# patch CMake modules dir
patchfiles-append patch-fix_cmake_dirs.diff
# 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