[arch-commits] Commit in gnuradio-osmosdr/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 6 21:39:15 UTC 2020


    Date: Sunday, December 6, 2020 @ 21:39:15
  Author: foutrelis
Revision: 771200

archrelease: copy trunk to community-staging-x86_64

Added:
  gnuradio-osmosdr/repos/community-staging-x86_64/
  gnuradio-osmosdr/repos/community-staging-x86_64/PKGBUILD
    (from rev 771199, gnuradio-osmosdr/trunk/PKGBUILD)
  gnuradio-osmosdr/repos/community-staging-x86_64/boost-1.73.patch
    (from rev 771199, gnuradio-osmosdr/trunk/boost-1.73.patch)
  gnuradio-osmosdr/repos/community-staging-x86_64/gnuradio-osmosdr.pc
    (from rev 771199, gnuradio-osmosdr/trunk/gnuradio-osmosdr.pc)

---------------------+
 PKGBUILD            |   55 ++++++++++++++++++++++++++++++++++++++++++++
 boost-1.73.patch    |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++
 gnuradio-osmosdr.pc |   15 ++++++++++++
 3 files changed, 132 insertions(+)

Copied: gnuradio-osmosdr/repos/community-staging-x86_64/PKGBUILD (from rev 771199, gnuradio-osmosdr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-06 21:39:15 UTC (rev 771200)
@@ -0,0 +1,55 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com?>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+pkgname=gnuradio-osmosdr
+_reponame=gr-osmosdr
+pkgver=0.2.0
+pkgrel=6
+pkgdesc='Source block for Funcube Dongle, RTL-SDR, USRP, OsmoSDR, BladeRF, HackRF and AirSpy devices'
+url='http://osmocom.org/projects/gr-osmosdr'
+arch=('x86_64')
+license=('GPL')
+depends=('gnuradio' 'libvolk' 'gnuradio-iqbal' 'rtl-sdr' 'gnuradio-fcdproplus' 'hackrf' 'bladerf' 'airspy' 'soapysdr')
+optdepends=('python-opengl: osmocom_fft')
+makedepends=('git' 'cmake' 'boost' 'swig')
+replaces=('gr-osmosdr')
+source=("git://git.osmocom.org/gr-osmosdr/#tag=v$pkgver"
+        "boost-1.73.patch"
+        "gnuradio-osmosdr.pc")
+md5sums=('SKIP'
+         '866c756e510e074e0b2484dc8bc6697b'
+         'a62fdf732f8a9a59f667bbda5542a824')
+
+# add support for miri, osmo?
+# figure out what happened to libtool
+
+prepare() {
+  cd $_reponame
+  patch -Np1 -i ../boost-1.73.patch
+}
+
+build() {
+  cd $_reponame
+
+  mkdir -p build
+  cd build
+
+  cmake \
+    -Wno-dev \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DPYTHON_EXECUTABLE="$(which python3)" \
+    -DPYTHON_INCLUDE_DIR="$(echo /usr/include/python3*)" \
+    -DPYTHON_LIBRARY="$(echo /usr/lib/libpython3.*.so)" \
+    -DBoost_NO_BOOST_CMAKE=ON \
+    -DCMAKE_INSTALL_PREFIX=/usr ../
+
+  make
+}
+
+package() {
+  cd $_reponame/build
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir/gnuradio-osmosdr.pc" "$pkgdir/usr/lib/pkgconfig/gnuradio-osmosdr.pc"
+}

Copied: gnuradio-osmosdr/repos/community-staging-x86_64/boost-1.73.patch (from rev 771199, gnuradio-osmosdr/trunk/boost-1.73.patch)
===================================================================
--- community-staging-x86_64/boost-1.73.patch	                        (rev 0)
+++ community-staging-x86_64/boost-1.73.patch	2020-12-06 21:39:15 UTC (rev 771200)
@@ -0,0 +1,62 @@
+diff --git a/lib/airspy/airspy_source_c.cc b/lib/airspy/airspy_source_c.cc
+index 50150e5..f833588 100644
+--- a/lib/airspy/airspy_source_c.cc
++++ b/lib/airspy/airspy_source_c.cc
+@@ -33,7 +33,6 @@
+ 
+ #include <boost/assign.hpp>
+ #include <boost/format.hpp>
+-#include <boost/detail/endian.hpp>
+ #include <boost/algorithm/string.hpp>
+ #include <boost/thread/thread.hpp>
+ 
+diff --git a/lib/airspyhf/airspyhf_source_c.cc b/lib/airspyhf/airspyhf_source_c.cc
+index 327fe19..b7494a8 100644
+--- a/lib/airspyhf/airspyhf_source_c.cc
++++ b/lib/airspyhf/airspyhf_source_c.cc
+@@ -33,7 +33,6 @@
+ 
+ #include <boost/assign.hpp>
+ #include <boost/format.hpp>
+-#include <boost/detail/endian.hpp>
+ #include <boost/algorithm/string.hpp>
+ #include <boost/thread/thread.hpp>
+ 
+diff --git a/lib/hackrf/hackrf_source_c.cc b/lib/hackrf/hackrf_source_c.cc
+index eea5caa..fc48171 100644
+--- a/lib/hackrf/hackrf_source_c.cc
++++ b/lib/hackrf/hackrf_source_c.cc
+@@ -31,7 +31,7 @@
+ #include <stdexcept>
+ #include <iostream>
+ 
+-#include <boost/detail/endian.hpp>
++#include <boost/predef/other/endian.h>
+ 
+ #include <gnuradio/io_signature.h>
+ 
+@@ -90,10 +90,10 @@ hackrf_source_c::hackrf_source_c (const std::string &args)
+ 
+   // create a lookup table for gr_complex values
+   for (unsigned int i = 0; i <= 0xffff; i++) {
+-#ifdef BOOST_LITTLE_ENDIAN
++#ifdef BOOST_ENDIAN_LITTLE_BYTE
+     _lut.push_back( gr_complex( (float(int8_t(i & 0xff))) * (1.0f/128.0f),
+                                 (float(int8_t(i >> 8))) * (1.0f/128.0f) ) );
+-#else // BOOST_BIG_ENDIAN
++#else // BOOST_ENDIAN_BIG_BYTE
+     _lut.push_back( gr_complex( (float(int8_t(i >> 8))) * (1.0f/128.0f),
+                                 (float(int8_t(i & 0xff))) * (1.0f/128.0f) ) );
+ #endif
+diff --git a/lib/rtl/rtl_source_c.cc b/lib/rtl/rtl_source_c.cc
+index a371464..7f2e648 100644
+--- a/lib/rtl/rtl_source_c.cc
++++ b/lib/rtl/rtl_source_c.cc
+@@ -32,7 +32,6 @@
+ 
+ #include <boost/assign.hpp>
+ #include <boost/format.hpp>
+-#include <boost/detail/endian.hpp>
+ #include <boost/algorithm/string.hpp>
+ 
+ #include <stdexcept>

Copied: gnuradio-osmosdr/repos/community-staging-x86_64/gnuradio-osmosdr.pc (from rev 771199, gnuradio-osmosdr/trunk/gnuradio-osmosdr.pc)
===================================================================
--- community-staging-x86_64/gnuradio-osmosdr.pc	                        (rev 0)
+++ community-staging-x86_64/gnuradio-osmosdr.pc	2020-12-06 21:39:15 UTC (rev 771200)
@@ -0,0 +1,15 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: gnuradio-osmosdr
+Description: GNU Radio block for various radio hardware
+URL: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
+Version: v0.2.0
+Requires: gnuradio-runtime gnuradio-blocks
+Requires.private: 
+Conflicts:
+Cflags: -I${includedir} -I/usr/include
+Libs: -L${libdir} -lgnuradio-osmosdr
+Libs.private: -L/usr/lib



More information about the arch-commits mailing list