162.2. soapysdr-0.8.1
Vendor-neutral API over SDR hardware
0.8.1-1 · BSL-1.0 · 0.2 SBU · 956.8 KiB, 35 files · 41_system, 897 of 1047 · ports/core/sdr-hw/soapysdr
Homepage: https://github.com/pothosware/SoapySDR
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/sdr-hw.txt:
One API in front of every radio, so rtl_433 and anything after it is written once rather than per front end.
SoapySDR is a vendor-neutral C and C++ API for software-defined radio hardware. A program written against it, such as gnuradio, gr-osmosdr, sdrangel, sdrpp, cubicsdr or rtl-433, drives any radio that has a SoapySDR module. The modules are separate ports (soapyrtlsdr, soapyhackrf, soapyairspy, soapybladerf, and the LimeSDR one from limesuite); each installs a shared object into /usr/lib/SoapySDR/modules<ABI version>/, which the library loads when a program asks for a device. SoapySDRUtil --find and --probe list what it sees.
Depends on: cmake.
Required by (11): cubicsdr, gnuradio, gr-osmosdr, limesuite, rtl-433, sdrangel, sdrpp, soapyairspy, soapybladerf, soapyhackrf, soapyrtlsdr.
Sources: soapysdr-0.8.1.tar.gz (128.2 KiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-DENABLE_PYTHON=OFF, line 15: python3 (explained with the switches below)-DENABLE_PYTHON3=OFF, line 15: python3
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install soapysdr'
build.sh:
mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
-DENABLE_PYTHON=OFF -DENABLE_PYTHON3=OFF -DENABLE_TESTS=OFF \
-DENABLE_DOCS=OFF
make
make DESTDIR=$PKG install
-DCMAKE_INSTALL_LIBDIR=lib— Install into/usr/lib. The library compiles<prefix>/<libdir>/SoapySDR/modules<ABI version>into its module search path, and every module port installs there under/usr/lib;GNUInstallDirswould otherwise chooselib64on a 64-bit host, and the library would look for its modules where none are.-DENABLE_PYTHON=OFF,-DENABLE_PYTHON3=OFF— Build neither of the two Python binding directories:python/, for whichever interpreter CMake’sFindPythonInterpfinds, andpython3/, a second module for Python 3 that is configured whenpython/found Python 2 or no complete Python at all. Both are generated with SWIG, and each is on by default whenever SWIG and its interpreter and headers are found.-DENABLE_TESTS=OFF— Build no unit tests.-DENABLE_DOCS=OFF— Generate no Doxygen documentation, which upstream builds whenever doxygen is found.
Programs: SoapySDRUtil.
Libraries: libSoapySDR.so.
Directories: /usr/include/SoapySDR, /usr/share/cmake/SoapySDR, /usr/share/licenses/soapysdr.