[arch-commits] Commit in soapyosmo/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Dec 17 06:22:47 UTC 2021
Date: Friday, December 17, 2021 @ 06:22:46
Author: felixonmars
Revision: 1075817
archrelease: copy trunk to community-staging-x86_64
Added:
soapyosmo/repos/community-staging-x86_64/
soapyosmo/repos/community-staging-x86_64/PKGBUILD
(from rev 1075815, soapyosmo/trunk/PKGBUILD)
soapyosmo/repos/community-staging-x86_64/boost-1.73.patch
(from rev 1075815, soapyosmo/trunk/boost-1.73.patch)
------------------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++
boost-1.73.patch | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 123 insertions(+)
Copied: soapyosmo/repos/community-staging-x86_64/PKGBUILD (from rev 1075815, soapyosmo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-17 06:22:46 UTC (rev 1075817)
@@ -0,0 +1,51 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=soapyosmo
+_pkgname=SoapyOsmo
+pkgver=0.2.5
+_gitver=soapy-osmo-$pkgver
+pkgrel=13
+pkgdesc='Soapy SDR plugins for OsmoSDR devices'
+arch=('x86_64')
+url='https://github.com/pothosware/SoapyOsmo'
+license=('GPL3')
+depends=('soapysdr' 'gnuradio-osmosdr' 'boost-libs')
+makedepends=('cmake' 'boost' 'airspy' 'hackrf' 'libosmosdr' 'rtl-sdr') # 'bladerf'
+optdepends=('airspy: AirSpy support'
+ 'hackrf: HackRF support'
+ 'libosmosdr: OsmoSDR support'
+ 'rtl-sdr: RTL-SDR support')
+# 'bladerf: BladeRF support'
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$_gitver.tar.gz"
+ boost-1.73.patch)
+sha512sums=('a1aa5f3c84f5e9cf8cc0329445836162586c3fd301f126310e2a3131c170f1d213fcb214162a28c448a49f57fcf177b7a00d10967ba88a8434a6ac26fa2264e8'
+ '98c9152445c919618dbc31e0056129e0734b60cbf2ee86903c6b7206883e8b6ba64dbe64e96fdebdb3f18abbb3b68aefa19ba3b177664d4fa61995be4c05ef64')
+
+prepare() {
+ cd $_pkgname-$_gitver
+ patch -Np1 -i ../boost-1.73.patch
+ sed -i 's|#ADD_DEFINITIONS(-Wconversion)|SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")|' CMakeLists.txt
+ sed -i 's|SET(BOOST_REQUIRED_COMPONENTS|SET(BOOST_REQUIRED_COMPONENTS chrono|' CMakeLists.txt gr-osmosdr/CMakeLists.txt
+}
+
+build() {
+ mkdir -p $_pkgname-$_gitver/build
+ cd $_pkgname-$_gitver/build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DUSE_OSMO_RTLSDR=ON \
+ -DUSE_OSMO_HACKRF=ON \
+ -DUSE_OSMO_AIRSPY=ON
+
+# -DUSE_OSMO_BLADERF=ON
+
+ make
+}
+
+package() {
+ cd $_pkgname-$_gitver/build
+
+ make DESTDIR="$pkgdir" install
+}
Copied: soapyosmo/repos/community-staging-x86_64/boost-1.73.patch (from rev 1075815, soapyosmo/trunk/boost-1.73.patch)
===================================================================
--- community-staging-x86_64/boost-1.73.patch (rev 0)
+++ community-staging-x86_64/boost-1.73.patch 2021-12-17 06:22:46 UTC (rev 1075817)
@@ -0,0 +1,72 @@
+diff -upr SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/airspy/airspy_source_c.cc SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/airspy/airspy_source_c.cc
+--- SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/airspy/airspy_source_c.cc 2017-04-30 01:03:31.000000000 +0300
++++ SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/airspy/airspy_source_c.cc 2020-12-07 00:10:20.896211424 +0200
+@@ -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 -upr SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/hackrf/hackrf_sink_c.cc SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/hackrf/hackrf_sink_c.cc
+--- SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/hackrf/hackrf_sink_c.cc 2017-04-30 01:03:31.000000000 +0300
++++ SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/hackrf/hackrf_sink_c.cc 2020-12-07 00:16:19.417763264 +0200
+@@ -39,7 +39,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 -upr SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/hackrf/hackrf_source_c.cc SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/hackrf/hackrf_source_c.cc
+--- SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/hackrf/hackrf_source_c.cc 2017-04-30 01:03:31.000000000 +0300
++++ SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/hackrf/hackrf_source_c.cc 2020-12-07 00:11:15.317449319 +0200
+@@ -32,7 +32,7 @@
+
+ #include <boost/assign.hpp>
+ #include <boost/format.hpp>
+-#include <boost/detail/endian.hpp>
++#include <boost/predef/other/endian.h>
+ #include <boost/algorithm/string.hpp>
+ #include <boost/thread/thread.hpp>
+
+@@ -125,10 +125,10 @@ hackrf_source_c::hackrf_source_c (const
+
+ // 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 -upr SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/rtl/rtl_source_c.cc SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/rtl/rtl_source_c.cc
+--- SoapyOsmo-soapy-osmo-0.2.5.orig/gr-osmosdr/lib/rtl/rtl_source_c.cc 2017-04-30 01:03:31.000000000 +0300
++++ SoapyOsmo-soapy-osmo-0.2.5/gr-osmosdr/lib/rtl/rtl_source_c.cc 2020-12-07 00:14:15.811581477 +0200
+@@ -32,7 +32,7 @@
+
+ #include <boost/assign.hpp>
+ #include <boost/format.hpp>
+-#include <boost/detail/endian.hpp>
++#include <boost/predef/other/endian.h>
+ #include <boost/algorithm/string.hpp>
+
+ #include <stdexcept>
+@@ -173,10 +173,10 @@ rtl_source_c::rtl_source_c (const std::s
+
+ // 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(i & 0xff) - 127.4f) * (1.0f/128.0f),
+ (float(i >> 8) - 127.4f) * (1.0f/128.0f) ) );
+-#else // BOOST_BIG_ENDIAN
++#else // BOOST_ENDIAN_BIG_BYTE
+ _lut.push_back( gr_complex( (float(i >> 8) - 127.4f) * (1.0f/128.0f),
+ (float(i & 0xff) - 127.4f) * (1.0f/128.0f) ) );
+ #endif
More information about the arch-commits
mailing list