111.3. libre-4.11.0
The SIP, RTP and STUN protocol stack baresip is built on
4.11.0-1 · BSD-3-Clause · 2.0 SBU · 1.2 MiB, 93 files · 41_system, 253 of 1047 · ports/core/chat/libre
Homepage: https://github.com/baresip/re
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/chat.txt:
libre's version is pinned to baresip's — a mismatch aborts at call time, not at link time.
Depends on: cmake, ninja, pkgconf, openssl, zlib.
Required by (1): baresip.
Sources: libre-4.11.0.tar.gz (619.7 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libre'
build.sh:
mkdir -p build && cd build
cmake .. -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DLIBRE_BUILD_STATIC=OFF \
-DUSE_OPENSSL=ON \
-DCMAKE_REQUIRE_FIND_PACKAGE_OpenSSL=ON \
-DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=ON
ninja
DESTDIR=$PKG ninja install
Libraries: libre.so.
Directories: /usr/include/re, /usr/lib/cmake/libre, /usr/lib/cmake/re, /usr/share/licenses/libre.