# -*- 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 jmalsbury gr-mac 3ed6f0893341f48fc7fb000ca1cf679524b033a4
checksums rmd160 9aab2a5b9e0a54019cc08980fe482fc126602970 \
sha256 5eacd2f208034dcc8d34cfdc5dbc2715aeb2c7d35855983221f371e21215e9a3
# allow gr-mac 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-mac 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 (blocks, GRC definitions, apps, etc) for GNU Radio.
long_description ${description}
depends_build-append port:pkgconfig\
depends_lib-append port:boost
# 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.
# patch to fix radio GRC hier blocks
patchfiles-append patch-examples_radios.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
# install CMake files into this directory.
-DCMAKE_MODULES_DIR=${prefix}/share/cmake