Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

186.2. freerdp-3.32.0

Remote Desktop Protocol libraries, client and server, and the SDL3 client sdl-freerdp; the RDP engine of Remmina and krdp

Version 3.32.0, release 2
Shelf virt — Virtual machines, their tooling, and remote-desktop and VNC protocols
Phase 42_graphics (Graphics Stack), 173 of 189 in build order
Licence Apache-2.0
Homepage https://www.freerdp.com
Build time 2.0 SBU
Installed size 9.7 MiB in 314 files
Recipe ports/core/virt/freerdp/kpkgbuild

About

FreeRDP is an implementation of Microsoft’s Remote Desktop Protocol. The port builds its libraries (libfreerdp3, libwinpr3 and the client library with its virtual-channel plugins) and one client, sdl-freerdp, which runs on SDL 3 and so opens as a Wayland window, and the server library libfreerdp-server3. The client libraries are the RDP engine of remmina; the server library is the one krdp shares a Plasma desktop through. No server program is built.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, openssl, zlib, libjpeg-turbo, libpng, libwebp, ffmpeg, sdl3, sdl3-ttf, sdl3-image, wayland, wayland-protocols, alsa-lib, libpulse, cups, krb5, icu, json-c, uriparser, fuse, opus, fdk-aac, soxr, libusb, pcsc-lite.

Required by (3): krdc, krdp, remmina.

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.

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/42_graphics/phase.env && kpkg install freerdp'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/virt/freerdp.

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/virt/freerdp
echo '855645e886f9749a485cb6630ffe934aa717d7b18cf716699ab1fc8864633210  freerdp-3.32.0.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/freerdp
SRC=$SRC_ROOT/freerdp-3.32.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf freerdp-3.32.0.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 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 \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_SKIP_INSTALL_RPATH=ON \
	-DBUILD_TESTING=OFF \
	-DWITH_SAMPLE=OFF \
	-DWITH_SERVER=ON \
	-DWITH_SHADOW=OFF \
	-DWITH_PROXY=OFF \
	-DWITH_PLATFORM_SERVER=OFF \
	-DWITH_CLIENT=ON \
	-DWITH_CLIENT_SDL=ON \
	-DWITH_CLIENT_SDL2=OFF \
	-DWITH_CLIENT_SDL3=ON \
	-DWITH_SDL_IMAGE_DIALOGS=ON \
	-DWITH_X11=OFF \
	-DWITH_WAYLAND=OFF \
	-DCMAKE_DISABLE_FIND_PACKAGE_X11=ON \
	-DWITH_CHANNELS=ON \
	-DWITH_MANPAGES=ON \
	-DWITH_OPENSSL=ON \
	-DWITH_FFMPEG=ON \
	-DWITH_VIDEO_FFMPEG=ON \
	-DWITH_DSP_FFMPEG=OFF \
	-DWITH_SWSCALE=ON \
	-DWITH_CAIRO=OFF \
	-DWITH_JPEG=ON \
	-DWINPR_UTILS_IMAGE_JPEG=ON \
	-DWINPR_UTILS_IMAGE_PNG=ON \
	-DWINPR_UTILS_IMAGE_WEBP=ON \
	-DWITH_OPENH264=OFF \
	-DWITH_GSM=OFF \
	-DWITH_LAME=OFF \
	-DWITH_FAAD2=OFF \
	-DWITH_FAAC=OFF \
	-DWITH_AOM=OFF \
	-DWITH_DAV1D=OFF \
	-DWITH_YUV=OFF \
	-DWITH_FDK_AAC=ON \
	-DWITH_OPUS=ON \
	-DWITH_SOXR=ON \
	-DWITH_ALSA=ON \
	-DWITH_PULSE=ON \
	-DWITH_OSS=OFF \
	-DWITH_SNDIO=OFF \
	-DWITH_CUPS=ON \
	-DWITH_PCSC=ON \
	-DWITH_PKCS11=ON \
	-DWITH_KRB5=ON \
	-DWITH_FUSE=ON \
	-DWITH_JSONC_REQUIRED=ON \
	-DWITH_TIMEZONE_ICU=ON \
	-DWITH_URIPARSER=ON \
	-DWITH_SYSTEMD=OFF \
	-DWITH_INSTALL_CLIENT_DESKTOP_FILES=OFF \
	-DWITH_BINARY_VERSIONING=OFF \
	-DWITH_CCACHE=OFF \
	-DWITH_CLANG_FORMAT=OFF \
	-DUSE_VERSION_FROM_GIT_TAG=OFF
cmake --build build
DESTDIR=$PKG cmake --install build

The switches, and why each is set:

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/freerdp, 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 freerdp-3.32.0-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/freerdp, and runs the triggers its paths call for.

Contents

Installed programs: sdl-freerdp, winpr-hash, winpr-makecert.

Installed libraries: libfreerdp-client3.so, libfreerdp-server3.so, libfreerdp3.so, libwinpr-tools3.so, libwinpr3.so.

Installed directories: /usr/include/freerdp3, /usr/include/winpr3, /usr/lib/cmake/FreeRDP-Client3, /usr/lib/cmake/FreeRDP-Server3, /usr/lib/cmake/FreeRDP3, /usr/lib/cmake/WinPR-tools3, /usr/lib/cmake/WinPR3, /usr/share/licenses/freerdp.

Short descriptions

sdl-freerdp FreeRDP SDL client
winpr-hash NTLM hashing tool
winpr-makecert A tool to create X.509 certificates.
freerdp-client3.pc FreeRDP: A Remote Desktop Protocol Implementation
freerdp-server3.pc FreeRDP: A Remote Desktop Protocol Implementation
freerdp3.pc FreeRDP: A Remote Desktop Protocol Implementation
winpr-tools3.pc WinPR: Windows Portable Runtime
winpr3.pc WinPR: Windows Portable Runtime