193.6. libplacebo-7.360.1
The GPU video rendering pipeline mpv is built on — colour, scaling, tone mapping
7.360.1-1 · LGPL-2.1-or-later · 0.7 SBU · 1.7 MiB, 38 files · 42_graphics, 33 of 189 · ports/core/gpu/libplacebo
Homepage: https://libplacebo.org/
Why it is in KDOS. The comment above it in script/phases/42_graphics/packages.d/gpu.txt:
mpv 0.41 has a bare dependency() on it — no port, no mpv, and its fallback is a subproject wrap, which is a download.
It names vulkan-headers AND vulkan-loader in its own
depends: without the loader installed first, libplacebo configures with no graphics API at all — meson says so and carries on — and mpv has no Vulkan output.
Depends on: meson, ninja, pkgconf, lcms2, xxhash, python3, python3-jinja2, python3-glad2, vulkan-headers, vulkan-loader, glslang, spirv-tools.
Sources: libplacebo-7.360.1.tar.gz (842.1 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.
-Dshaderc=disabled, line 15: shaderc-Dlibdovi=disabled, line 17: libdovi-Dunwind=disabled, line 17: libunwind
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install libplacebo'
build.sh:
meson setup build --prefix=/usr --libdir=lib --buildtype=release \
-Dvulkan=enabled -Dvk-proc-addr=enabled \
-Dvulkan-registry=/usr/share/vulkan/registry/vk.xml \
-Dglslang=enabled -Dshaderc=disabled \
-Dopengl=enabled -Dgl-proc-addr=enabled -Dd3d11=disabled \
-Ddovi=enabled -Dlibdovi=disabled -Dunwind=disabled \
-Dlcms=enabled -Dxxhash=enabled \
-Ddemos=false -Dtests=false -Dbench=false -Dfuzz=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
Libraries: libplacebo.so.
Directories: /usr/include/libplacebo, /usr/share/licenses/libplacebo.