# -*- 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 github.setup bistromath gr-ais 56abd162cf4add878dbfa3bd60215001d4ae83ea version 20150414 checksums rmd160 7f32129d62958856aa4645681651167ec4d3ce01 \ sha256 cf8bfbf297e57b4c3f0fe987b5a7d244ccab240911c08f8abd0e8530e07810ff # required volk or volk-devel depends_lib-append path:lib/libvolk.dylib:volk # allow gr-ais to work with both gnuradio and gnuradio-devel ... depends_lib-append path:lib/libgnuradio-runtime.dylib:gnuradio # ... but not with gnuradio-legacy or gnuradio-next pre-fetch { if {![catch {set installed [lindex [registry_active gnuradio-legacy] 0]}]} { # gnuradio-legacy is installed; this version of gr-ais does not work with gnuradio-legacy ui_msg "\nError: ${name} requires the gnuradio or gnuradio-devel port, and will not work with the gnuradio-legacy port. deactivate gnuradio-legacy, and then install or activate gnuradio or gnuradio-devel.\n" return -code error "Invalid port dependency: gnuradio-legacy" } if {![catch {set installed [lindex [registry_active gnuradio-next] 0]}]} { # gnuradio-next is installed; this version of gr-ais 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" } } 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 # disable parallel build for now use_parallel_build no depends_build-append port:pkgconfig depends_lib-append port:boost # do VPATH (out of source tree) build cmake.out_of_source yes # temporary patch to fix CMake stuff patchfiles-append patch-CMakeLists.txt.diff # 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; # for 3.7+, but will not hurt for legacy. configure.args-append \ -DCMAKE_MODULES_DIR=${prefix}/share/cmake # specify the Python dependencies depends_lib-append \ port:python27 # specify the Python version to use configure.args-append \ -DPYTHON_EXECUTABLE=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \ -DPYTHON_INCLUDE_DIR=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers \ -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python \ -DGR_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages