mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/gnuradio to 3.7.13.5-2
This commit is contained in:
parent
3cd9805e59
commit
46f6a4cbea
2 changed files with 10733 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
|||
pkgbase=gnuradio
|
||||
pkgname=(gnuradio gnuradio-companion)
|
||||
pkgver=3.7.13.5
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="General purpose DSP and SDR toolkit. With drivers for usrp and fcd."
|
||||
arch=('x86_64')
|
||||
url="http://gnuradio.org"
|
||||
|
@ -16,7 +16,7 @@ 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' 'qwtplot3d' 'qwt5')
|
||||
'pygtk' 'wxpython' 'qwt' 'python2-pyqt5')
|
||||
|
||||
# todo
|
||||
# split the gui components?
|
||||
|
@ -35,15 +35,18 @@ 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")
|
||||
"21-fcd.rules" "gnuradio-qt5.patch")
|
||||
validpgpkeys=('B90DDFAC56989BF62262EB812987C77CBB8ED9B2' # GNU Radio Project
|
||||
'D74F9F146E7F755783583158B343B2BA293E5174') # Marcus Müller
|
||||
md5sums=('489e5469b516afe6b0638752fb77bc7f'
|
||||
'SKIP'
|
||||
'465e12c454c6a22ebec9849181af7bdc')
|
||||
'465e12c454c6a22ebec9849181af7bdc'
|
||||
'be583483d91906d2cd30c907b9871fa6')
|
||||
|
||||
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') \
|
||||
|
@ -54,14 +57,13 @@ prepare() {
|
|||
#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 -e '/PyQt4/d' -i gr-qtgui/CMakeLists.txt # Build PyQt4 UI even if PyQt4 is not installed
|
||||
}
|
||||
|
||||
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|/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."
|
||||
|
||||
|
@ -74,7 +76,6 @@ build() {
|
|||
-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
|
||||
-DENABLE_GR_QTGUI=ON \
|
||||
-DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
|
||||
-DPYQT4_FOUND=ON \
|
||||
-DENABLE_INTERNAL_VOLK=OFF \
|
||||
-DENABLE_GRC=ON \
|
||||
-DENABLE_GR_WXGUI=ON \
|
||||
|
@ -105,8 +106,8 @@ package_gnuradio() {
|
|||
package_gnuradio-companion() {
|
||||
pkgdesc="GUI frontend for gnuradio and SDR."
|
||||
depends=('gnuradio' 'python2-cheetah' 'python2-lxml'
|
||||
'pygtk' 'wxpython' 'python2-opengl' 'qwt5' 'qwtplot3d'
|
||||
'python2-numarray')
|
||||
'pygtk' 'wxpython' 'python2-opengl' 'qwt'
|
||||
'python2-numarray' 'python2-pyqt5')
|
||||
# Yup, nothing in the package except dependencies,
|
||||
# because more than five optdeps is too many for most people.
|
||||
}
|
||||
|
|
10723
community/gnuradio/gnuradio-qt5.patch
Normal file
10723
community/gnuradio/gnuradio-qt5.patch
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue