# -*- 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
maintainers {michaelld @michaelld} openmaintainer
description Provides spectral estimation blocks for GNU Radio.
long_description ${description}
if {${name} eq ${subport}} {
github.setup kit-cel gr-specest 91a27336b19a65125483fe0424b16f31822e7c85
checksums rmd160 5b9614203006aa5ef497caccaa86dab2b40324b4 \
sha256 3cdd50bc68a002509bb14d4ab0565736409c171b7fb443694dc2fbcecd6d4227 \
# allow gr-specest 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-specest 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"
patchfiles-append patch-fix_build.37.diff
github.setup kit-cel gr-specest 4ac4c4a9492df60f9202a91680a7bbbea564a2e4
version 20190520-[string range ${github.version} 0 7]
checksums rmd160 3227c18ada41a7725a8457102a8f31f4052d00b3 \
sha256 019a94a44be97e457ec73a4ed4971a1607431494228730ff742099ec306d643f \
# gr-specest-38 requires gnuradio-next ...
depends_lib-append port:gnuradio-next
patchfiles-append patch-fix_build.38.diff
# require a fortran compiler
#compilers.choose f77 f90
compilers.setup require_fortran
depends_build-append port:pkgconfig \
depends_lib-append port:boost \
depends_run-append port:gr-osmosdr
# still require cppunit for testing; NOTE: cppunit is checked for
# during configure, so we need it to be in depends_lib or
# depends_build to be used correctly. Choose the latter since it's
# not required for runtime; just for build/test.
depends_build-append port:cppunit
# do VPATH (out of source tree) build
# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.