341.7. sdrpp-1.3.0.dev.20260704
Software radio receiver with its own GPU-drawn interface, no toolkit
The build-state snapshot was taken from 1.3.0.dev.20260704-1; this recipe is 1.3.0.dev.20260704-2, so the size, time and contents below describe the earlier build.
| Version | 1.3.0.dev.20260704, release 2 |
| Shelf | sdr — SDR DSP libraries, GNU Radio and its blocks, receivers, decoders and signal analysis |
| Phase | 44_apps (Applications), 358 of 422 in build order |
| Licence | GPL-3.0-only |
| Homepage | https://www.sdrpp.org/ |
| Build time | 21.8 SBU |
| Installed size | 9.4 MiB in 89 files |
| Recipe | ports/core/sdr/sdrpp/kpkgbuild |
About
SDR++ is a software-defined radio receiver with a spectrum, a waterfall and demodulators for AM, FM, SSB, CW and more. It draws its whole interface itself with Dear ImGui on OpenGL through glfw, so it links no toolkit. Its radio sources, audio sinks, decoders and helpers are separate plugin modules, installed under /usr/lib/sdrpp/plugins and chosen at build time one by one.
Sources
sdrpp-1.3.0.dev.20260704.tar.gz(3.6 MiB)
sha256c3d884bb146957792823068cea62c78d11f33eda3d537f12b0c31484bde1eb67
upstream: https://github.com/AlexandreRouma/SDRPlusPlus/archive/8c9f5ee8fe405775bfcd62c8c8f8c0fc928a64af.tar.gz
archive copy: sources-4/sdr--sdrpp-1.3.0.dev.20260704.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, glfw, mesa, libglvnd, fftw, libvolk, zstd, rtaudio, airspy, hackrf, bladerf, rtl-sdr, soapysdr, codec2, airspyhf, limesuite, libiio, libad9361, libperseus-sdr, uhd, zenity.
Required by: no port names it.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install sdrpp'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/sdr/sdrpp.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/sdr/sdrpp
echo 'c3d884bb146957792823068cea62c78d11f33eda3d537f12b0c31484bde1eb67 sdrpp-1.3.0.dev.20260704.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/sdrpp
SRC=$SRC_ROOT/sdrpp-1.3.0.dev.20260704
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf sdrpp-1.3.0.dev.20260704.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers _commit and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
cmake -B build -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOPT_BACKEND_GLFW=ON \
-DOPT_BACKEND_ANDROID=OFF \
-DOPT_OVERRIDE_STD_FILESYSTEM=OFF \
-DUSE_INTERNAL_LIBCORRECT=ON \
-DHAVE_SSE=OFF \
-DUSE_BUNDLE_DEFAULTS=OFF \
-DOPT_BUILD_AIRSPY_SOURCE=ON \
-DOPT_BUILD_AIRSPYHF_SOURCE=ON \
-DOPT_BUILD_AUDIO_SOURCE=ON \
-DOPT_BUILD_BADGESDR_SOURCE=OFF \
-DOPT_BUILD_BLADERF_SOURCE=ON \
-DOPT_BUILD_DRAGONLABS_SOURCE=OFF \
-DOPT_BUILD_FILE_SOURCE=ON \
-DOPT_BUILD_FOBOSSDR_SOURCE=OFF \
-DOPT_BUILD_HACKRF_SOURCE=ON \
-DOPT_BUILD_HAROGIC_SOURCE=OFF \
-DOPT_BUILD_HERMES_SOURCE=ON \
-DOPT_BUILD_HYDRASDR_SOURCE=OFF \
-DOPT_BUILD_KCSDR_SOURCE=OFF \
-DOPT_BUILD_LIMESDR_SOURCE=ON \
-DOPT_BUILD_NETWORK_SOURCE=ON \
-DOPT_BUILD_PERSEUS_SOURCE=ON \
-DOPT_BUILD_PLUTOSDR_SOURCE=ON \
-DOPT_BUILD_RFNM_SOURCE=OFF \
-DOPT_BUILD_RFSPACE_SOURCE=ON \
-DOPT_BUILD_RTL_SDR_SOURCE=ON \
-DOPT_BUILD_RTL_TCP_SOURCE=ON \
-DOPT_BUILD_SDRPP_SERVER_SOURCE=ON \
-DOPT_BUILD_SDRPLAY_SOURCE=OFF \
-DOPT_BUILD_SOAPY_SOURCE=ON \
-DOPT_BUILD_SPECTRAN_SOURCE=OFF \
-DOPT_BUILD_SPECTRAN_HTTP_SOURCE=ON \
-DOPT_BUILD_SPYSERVER_SOURCE=ON \
-DOPT_BUILD_USRP_SOURCE=ON \
-DOPT_BUILD_ANDROID_AUDIO_SINK=OFF \
-DOPT_BUILD_AUDIO_SINK=ON \
-DOPT_BUILD_NETWORK_SINK=ON \
-DOPT_BUILD_NEW_PORTAUDIO_SINK=OFF \
-DOPT_BUILD_PORTAUDIO_SINK=OFF \
-DOPT_BUILD_ATV_DECODER=ON \
-DOPT_BUILD_DAB_DECODER=OFF \
-DOPT_BUILD_FALCON9_DECODER=OFF \
-DOPT_BUILD_KG_SSTV_DECODER=OFF \
-DOPT_BUILD_M17_DECODER=ON \
-DOPT_BUILD_METEOR_DEMODULATOR=ON \
-DOPT_BUILD_PAGER_DECODER=ON \
-DOPT_BUILD_RADIO=ON \
-DOPT_BUILD_RYFI_DECODER=OFF \
-DOPT_BUILD_VOR_RECEIVER=OFF \
-DOPT_BUILD_WEATHER_SAT_DECODER=OFF \
-DOPT_BUILD_DISCORD_PRESENCE=OFF \
-DOPT_BUILD_FREQUENCY_MANAGER=ON \
-DOPT_BUILD_IQ_EXPORTER=ON \
-DOPT_BUILD_RECORDER=ON \
-DOPT_BUILD_RIGCTL_CLIENT=ON \
-DOPT_BUILD_RIGCTL_SERVER=ON \
-DOPT_BUILD_SCANNER=ON \
-DOPT_BUILD_SCHEDULER=OFF
ninja -C build
DESTDIR=$PKG ninja -C build install
install -Dm644 root/res/icons/sdrpp.png \
"$PKG/usr/share/icons/hicolor/512x512/apps/sdrpp.png"
cat > "$PKG/usr/share/applications/sdrpp.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=SDR++
GenericName=Software Defined Radio
Comment=Receive AM, FM and SSB with a spectrum and waterfall display
Exec=sdrpp
Terminal=false
Icon=sdrpp
Categories=HamRadio;AudioVideo;
Keywords=SDR;radio;receiver;waterfall;rtl-sdr;airspy;hackrf;scanner;
StartupWMClass=sdrpp
DESKTOP
chmod 644 "$PKG/usr/share/applications/sdrpp.desktop"
test -x "$PKG/usr/bin/sdrpp"
test -f "$PKG/usr/lib/sdrpp/plugins/rtl_sdr_source.so"
The switches, and why each is set:
-DOPT_BACKEND_GLFW=ON— the desktop back end: a GLFW window with OpenGL, rather than the Android back end (-DOPT_BACKEND_ANDROID=OFF).-DOPT_OVERRIDE_STD_FILESYSTEM=OFF— use the C++ library’s ownstd::filesystemrather than the replacement understd_replacement/, which upstream carries for systems that lack one.-DUSE_INTERNAL_LIBCORRECT=ON— build the bundled copy of libcorrect (forward error correction, used by the digital decoders) and link it statically into the core. libcorrect is not a port.-DHAVE_SSE=OFF— the bundled libcorrect’s configure compiles a probe with-march=nativeto decide whether to add-msse4.1and its SSE code; presetting the result toOFFskips the probe, so what is built does not depend on the CPU of the machine that builds it.-DUSE_BUNDLE_DEFAULTS=OFF— keep the default resource and module directories of an ordinary install under/usr; on, they point inside a macOS.appbundle.-DOPT_BUILD_AIRSPY_SOURCE=ON— and every otherOPT_BUILD_*_SOURCE=ON: one source module per radio or network protocol. The hardware ones link airspy, airspyhf, bladerf, hackrf, limesuite, libperseus-sdr, libiio with libad9361 for the PlutoSDR, rtl-sdr, soapysdr and uhd; the audio source uses rtaudio. The file, Hermes, network, RFspace, RTL-TCP, SDR++ server, Spectran HTTP and SpyServer sources need no library. Upstream’s defaults leave the bladeRF, LimeSDR, Perseus, SoapySDR and USRP modules off.-DOPT_BUILD_RFNM_SOURCE=OFF— no RFNM source module. It links librfnm, whose source carries no licence, so the library cannot be redistributed and is not a port.-DOPT_BUILD_DRAGONLABS_SOURCE=OFF— and the Harogic, HydraSDR, KCSDR, SDRplay and Spectran sources: each needs a vendor library (libdlcr,htra_api,libhydrasdr,libkcsdr, SDRplay’s API, Aaronia’s RTSA suite) that is not a port.-DOPT_BUILD_BADGESDR_SOURCE=OFF— the top-level CMakeLists names abadgesdr_sourcedirectory that this source tree does not contain, so turning it on stops the configure.-DOPT_BUILD_FOBOSSDR_SOURCE=OFF— the RigExpert Fobos module, off; it would link libfobos, which is not in this port’sdepends.-DOPT_BUILD_AUDIO_SINK=ON— sound goes out through rtaudio; with-DOPT_BUILD_NETWORK_SINK=ONit can also be streamed over the network. The two PortAudio sinks and the Android one are off.-DOPT_BUILD_M17_DECODER=ON— the M17 digital voice decoder, which decodes speech with codec2; upstream leaves it off by default.-DOPT_BUILD_DAB_DECODER=OFF— and the Falcon 9, KG-SSTV, RyFi, VOR and weather-satellite decoders: upstream’s experimental modules, off as upstream’s defaults have them. The Falcon 9 decoder would also runffplay.-DOPT_BUILD_DISCORD_PRESENCE=OFF— no Discord Rich Presence module, which upstream builds by default and which reports what the receiver is tuned to into a running Discord client.-DOPT_BUILD_SCHEDULER=OFF— no scheduler module, another of upstream’s experiments and off by default.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/sdrpp, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf sdrpp-1.3.0.dev.20260704-2.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/sdrpp, and runs the triggers its paths call for.
Contents
Installed programs: sdrpp.
Installed libraries: libsdrpp_core.so.
Installed directories: /usr/lib/sdrpp, /usr/share/licenses/sdrpp, /usr/share/sdrpp.
Notes
Upstream releases SDR++ on a rolling model, as a nightly build, so the recipe follows a commit on the main branch, named by _commit in kpkgbuild.
The file pickers and the frequency manager’s import and export use the bundled portable-file-dialogs, which draws no window of its own: it runs the first of zenity, matedialog, qarma and kdialog it finds. zenity is in depends for that. The GLFW back end sets the Wayland app id to sdrpp, which the recipe’s desktop entry repeats in StartupWMClass. The recipe writes that entry over upstream’s, which names its icon by an absolute path under /usr/share/sdrpp/icons, and installs the PNG icon into the hicolor theme under the name sdrpp. build.sh ends by checking that the RTL-SDR source plugin was installed.