spack/var/spack/repos/builtin/packages/gnuradio/package.py
Andrew W Elble dee92f9b42
New package: gqrx (#19633)
* gqrx and dependencies

* changes

* forgot log4cpp

* misc dep fixes
2020-10-30 19:01:29 -05:00

46 lines
1.8 KiB
Python

# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class Gnuradio(CMakePackage):
"""GNU Radio is a free & open-source software development toolkit
that provides signal processing blocks to implement software
radios. It can be used with readily-available, low-cost external
RF hardware to create software-defined radios, or without hardware
in a simulation-like environment. It is widely used in hobbyist,
academic, and commercial environments to support both wireless
communications research and real-world radio systems."""
homepage = "https://www.gnuradio.org/"
url = "https://github.com/gnuradio/gnuradio/archive/v3.8.2.0.tar.gz"
maintainers = ['aweits']
version('3.8.2.0', sha256='ddda12b55e3e1d925eefb24afb9d604bca7c9bbe0a431707aa48a2eed53eec2f')
depends_on('cmake@3.5.1:', type='build')
depends_on('volk')
depends_on('python@3.6.5:', type=('build', 'run'))
depends_on('py-six', type=('build', 'run'))
depends_on('swig@3.0.8:', type='build')
depends_on('log4cpp@1.0:')
# https://github.com/gnuradio/gnuradio/pull/3566
depends_on('boost@1.53:1.72.999')
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-click', type=('build', 'run'))
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-click-plugins', type=('build', 'run'))
depends_on('gsl@1.10:')
depends_on('gmp')
depends_on('fftw')
depends_on('libzmq')
extends('python')
def cmake_args(self):
args = []
args.append('-DPYTHON_EXECUTABLE={0}'.format(
self.spec['python'].command.path))
args.append('-DENABLE_INTERNAL_VOLK=OFF')
return args