# -*- 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 kit-cel gr-specest 91a27336b19a65125483fe0424b16f31822e7c85
checksums rmd160 5b9614203006aa5ef497caccaa86dab2b40324b4 \
sha256 3cdd50bc68a002509bb14d4ab0565736409c171b7fb443694dc2fbcecd6d4227
maintainers {michaelld @michaelld} openmaintainer
description Provides spectral estimation blocks for GNU Radio.
long_description ${description}
# 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
# 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.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
# specify the Python version to use
-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 \
-DCMAKE_MODULES_DIR=${prefix}/share/cmake
variant accelerate conflicts atlas openblas description {Use Apple Accelerate Libraries for BLAS} {
configure.env-append BLA_VENDOR=Apple
variant atlas conflicts accelerate openblas description {Use MacPorts ATLAS Libraries} {
depends_lib-append port:atlas
configure.env-append BLA_VENDOR=ATLAS
variant openblas conflicts atlas accelerate description {Use MacPorts OpenBLAS Libraries} {
depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
configure.env-append BLA_VENDOR=OpenBLAS
if {![variant_isset accelerate] &&
![variant_isset atlas] &&