community/gnuradio to 3.8.0.0-1

This commit is contained in:
Kevin Mihelich 2019-08-21 12:37:24 +00:00
parent 640e51f494
commit 3272461c4b
2 changed files with 27 additions and 10766 deletions

View file

@ -7,27 +7,28 @@
pkgbase=gnuradio
pkgname=(gnuradio gnuradio-companion)
pkgver=3.7.13.5
pkgrel=2
pkgver=3.8.0.0
pkgrel=1
pkgdesc="General purpose DSP and SDR toolkit. With drivers for usrp and fcd."
arch=('x86_64')
url="http://gnuradio.org"
url="https://gnuradio.org"
license=('GPL')
depends=('fftw' 'python2-numpy' 'cppunit' 'gsl' 'blas' 'boost-libs>=1.53'
'libusbx' 'portaudio' 'libuhd' 'zeromq' 'libvolk')
makedepends=('boost' 'cmake' 'python2-lxml' 'python2-cheetah' 'glu' 'swig'
'pygtk' 'wxpython' 'qwt' 'python2-pyqt5')
depends=('fftw' 'python-numpy' 'gsl' 'blas' 'boost-libs>=1.53'
'libusbx' 'portaudio' 'libuhd' 'zeromq' 'libvolk' 'log4cpp' 'python-yaml'
'gmp' 'gsm' 'codec2' 'python-mako' 'python-click-plugins')
makedepends=('boost' 'cmake' 'python-lxml' 'glu' 'swig' 'python-gobject'
'qwt' 'python-pyqt5' 'python-cairo')
# todo
# split the gui components?
# build doxygen docs?
# gr-video-sdl ?
# icons
# add thrift?
# comedilib: gr-comedi
# zeroc-ice: gr-ctrlport
# doxygen: C++ autogenerated documentation
# python2-sphinx: Python autogenerated documentation
# python-sphinx: Python autogenerated documentation
# secret release directory
#source=("http://s3-dist.gnuradio.org/gnuradio-$pkgver.tar.gz"
@ -35,57 +36,42 @@ makedepends=('boost' 'cmake' 'python2-lxml' 'python2-cheetah' 'glu' 'swig'
#source=("https://gnuradio.org/releases/$pkgbase/$pkgbase-$pkgver.tar.gz"
source=("https://github.com/gnuradio/gnuradio/releases/download/v$pkgver/gnuradio-$pkgver.tar.gz"
"https://github.com/gnuradio/gnuradio/releases/download/v$pkgver/gnuradio-$pkgver.tar.gz.asc"
"21-fcd.rules" "gnuradio-qt5.patch")
"21-fcd.rules")
validpgpkeys=('B90DDFAC56989BF62262EB812987C77CBB8ED9B2' # GNU Radio Project
'D74F9F146E7F755783583158B343B2BA293E5174') # Marcus Müller
md5sums=('489e5469b516afe6b0638752fb77bc7f'
md5sums=('85e1ed4b18c46227731d83f8c3fbe45a'
'SKIP'
'465e12c454c6a22ebec9849181af7bdc'
'be583483d91906d2cd30c907b9871fa6')
'465e12c454c6a22ebec9849181af7bdc')
prepare() {
cd "$srcdir/$pkgbase-$pkgver"
patch -p1 -i ../gnuradio-qt5.patch # Port to Qt5 (Gentoo)
msg "Replacing filenames to use python2."
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find ./ -name '*.py') \
$(find ./ -name 'gnuradio-companion' -o -name 'flow_graph.tmpl')
sed -i -e "s|#![ ]*/usr/bin/env /usr/bin/python$|#!/usr/bin/env python2|" \
$(find ./ -name '*.py')
# GCC 7?
#sed -i 's|SET(CMAKE_CXX_STANDARD 98)|#&|' CMakeLists.txt
#sed -i 's|SET(CMAKE_C_FLAGS .* -std=gnu99"|#&|' CMakeLists.txt
sed -i '333i ${CMAKE_THREAD_LIBS_INIT}' gr-blocks/lib/CMakeLists.txt
sed -i -e "s|GR_PKG_LIBEXEC_DIR|GR_RUNTIME_DIR|" grc/scripts/freedesktop/CMakeLists.txt
#sed -i -e "s|/qwt$|/qwt5|" -e "s| qwt | qwt5 |" cmake/Modules/FindQwt.cmake
sed -i -e "s| sphinx-build$| sphinx-build2|" cmake/Modules/FindSphinx.cmake
}
build() {
export PYTHON=python2
cd "$srcdir/$pkgbase-$pkgver"
sed -i -e "s|GR_PKG_LIBEXEC_DIR|GR_RUNTIME_DIR|" grc/scripts/freedesktop/CMakeLists.txt
# sed -i -e "s|/qwt$|/qwt5|" -e "s| qwt | qwt5 |" cmake/Modules/FindQwt.cmake
sed -i -e "s| sphinx-build$| sphinx-build2|" cmake/Modules/FindSphinx.cmake
msg "Starting build."
export PYTHON=python3
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && NEON="-Dhave_mfpu_neon=0"
cd "$srcdir/$pkgbase-$pkgver"
mkdir -p build
cd build
cmake \
-DPYTHON_EXECUTABLE=$(which python2) \
-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
-DENABLE_GR_QTGUI=ON \
-DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
-DPYTHON_EXECUTABLE=$(which python3) \
-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python3*) \
-DPYTHON_LIBRARY=$(echo /usr/lib/libpython3.*m.so) \
-DGR_PYTHON_DIR=$(echo /usr/lib/python3.*/site-packages/) \
-DENABLE_INTERNAL_VOLK=OFF \
-DENABLE_GRC=ON \
-DENABLE_GR_WXGUI=ON \
-DENABLE_GR_QTGUI=ON \
-DQWT_LIBRARIES=/usr/lib/libqwt.so \
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev $NEON ../
make
}
check() {
cd "$srcdir/$pkgbase-$pkgver/build"
export PYTHON=python2
export PYTHON=python3
#make test
}
@ -93,7 +79,6 @@ package_gnuradio() {
optdepends=('boost: gr_modtool'
'swig: gr_modtool'
'cmake: gr_modtool'
'python2-cheetah: gr_modtool'
'pkgconfig: libuhd')
cd "$srcdir"
install -Dm644 21-fcd.rules "$pkgdir/usr/lib/udev/rules.d/21-fcd.rules"
@ -105,9 +90,8 @@ package_gnuradio() {
package_gnuradio-companion() {
pkgdesc="GUI frontend for gnuradio and SDR."
depends=('gnuradio' 'python2-cheetah' 'python2-lxml'
'pygtk' 'wxpython' 'python2-opengl' 'qwt'
'python2-numarray' 'python2-pyqt5')
depends=('gnuradio' 'qwt' 'python-lxml'
'python-opengl' 'python-cairo' 'python-pyqt5')
# Yup, nothing in the package except dependencies,
# because more than five optdeps is too many for most people.
}

File diff suppressed because it is too large Load diff