Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
99 lines (75 sloc) 3.13 KB
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup cmake 1.1
PortGroup cxx11 1.1
PortGroup github 1.0
name gr-limesdr
categories science comms
platforms darwin macosx
license GPL-3+
maintainers {@ra1nb0w irh.it:rainbow} {michaelld @michaelld} openmaintainer
description GNU Radio block for LimeSDR-USB/LimeSDR-Mini boards
long_description ${description}
homepage https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio
subport gr-limesdr-devel {}
if {[string first "-devel" $subport] > 0} {
github.setup myriadrf gr-limesdr 4125e1f4f60a9c17698253c180911199bed657d1
version 20190319
checksums rmd160 7fc55ff25e51f80b655ea7579c95252d252feed4 \
sha256 628d73f7b94f6bff810132511469484e492fe775712002799d3b66f87cb942d6 \
size 3083988
revision 0
name gr-limesdr-devel
long_description ${description}. This port is kept up with the ${name} \
GIT 'master' branch, is typically updated weekly to monthly.
conflicts gr-limesdr
} else {
github.setup myriadrf gr-limesdr 2.0.0 v
checksums rmd160 c8b2b7a745a316bcc7c6b7b0a1121da2bddea05a \
sha256 6f2fcf42dd45ca3893c914752f803dd811e046c21c567286fd1ad35a8d362f05 \
size 3083984
revision 1
conflicts gr-limesdr-devel
}
depends_build-append \
port:swig-python \
port:pkgconfig
depends_lib port:boost \
path:lib/libgnuradio-runtime.dylib:gnuradio \
port:limesuite
# 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
depends_lib-append port:python27
# specify that Python version to use
configure.args-append \
-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
# use C++11
configure.args-append \
-DCMAKE_CXX_STANDARD=11
configure.args-append \
-DDOXYGEN_DOT_EXECUTABLE= \
-DDOXYGEN_EXECUTABLE= \
-DCMAKE_MODULES_DIR=share/cmake
variant docs description "Install ${name} documentation" {
depends_build-append \
port:doxygen \
path:bin/dot:graphviz
configure.args-delete \
-DDOXYGEN_DOT_EXECUTABLE= \
-DDOXYGEN_EXECUTABLE=
configure.args-append \
-DDOXYGEN_DOT_EXECUTABLE=${prefix}/bin/dot \
-DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
}
default_variants +docs
post-destroot {
# copy GNU Radio examples
xinstall -m 755 -d ${destroot}${prefix}/share/gr-limesdr
file copy ${worksrcpath}/examples \
${destroot}${prefix}/share/gr-limesdr/examples
}
You can’t perform that action at this time.