202.2. portaudio-19.7.0
Portable real-time audio I/O library, with its C++ binding, over ALSA and JACK
19.7.0-1 · MIT · 0.9 SBU · 375.2 KiB, 31 files · 42_graphics, 55 of 189 · ports/core/audio-io/portaudio
Homepage: https://www.portaudio.com/
Why it is in KDOS. The comment above it in script/phases/42_graphics/packages.d/audio-io.txt:
Here and not in 41_system because its JACK host API links pipewire's libjack.
PortAudio is a portable C library for real-time audio input and output, with a C++ binding. Programs that use it, such as Audacity, reach the sound card through one of its host APIs; this build has two, ALSA and JACK. PipeWire serves both: ALSA through PipeWire’s ALSA plugin, and JACK through the libjack that pipewire installs, which is why the port is listed in 42_graphics after pipewire and not in 41_system. Audacity, Tenacity, LMMS, GNU Radio, Octave and fldigi are among the ports that link it.
Depends on: pkgconf, alsa-lib, pipewire.
Required by (10): audacity, fldigi, furnace, gnuradio, lirc, lmms, octave, opencpn, satdump, tenacity.
Sources: portaudio-19.7.0.tar.gz (1.4 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install portaudio'
build.sh:
./configure --prefix=/usr --libdir=/usr/lib --disable-static \
--with-alsa --with-jack --without-oss --without-asihpi \
--enable-cxx
grep -q 'src/hostapi/jack/pa_jack.o' Makefile
make -j1
make -j1 DESTDIR=$PKG install
--with-alsa— The ALSA host API, against alsa-lib.--with-jack— The JACK host API, against PipeWire’s JACK library. configure leaves the host API out with no error when it finds nojackpkg-config module, sobuild.shchecks that the generatedMakefilecompilessrc/hostapi/jack/pa_jack.oand stops otherwise.--without-oss,--without-asihpi— The OSS host API and the one for AudioScience HPI sound cards. Both are detected by default; naming them keeps them out.--enable-cxx— Build the C++ binding,libportaudiocpp.-j1— Build and install serially. The topMakefile’sallnames the library and the recursive build ofbindings/cppas independent prerequisites, so under a parallel make the C++ binding can link againstlib/libportaudio.labefore the library is written.
Libraries: libportaudio.so, libportaudiocpp.so.
Directories: /usr/include/portaudiocpp, /usr/share/licenses/portaudio.