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

117.2. pixman-0.46.4

Library that provides low-level pixel manipulation features such as image compositing and trapezoid rasterization

0.46.4-1 · MIT · 0.3 SBU · 847.2 KiB, 7 files · 41_system, 179 of 1047 · ports/core/graphics-libs/pixman

Homepage: https://pixman.org/

pixman is the low-level pixel library under cairo and much of the graphics stack: it composites images, fills rectangles and rasterises trapezoids, with hand-written SIMD code paths chosen at run time for the processor it finds. Besides cairo, the ports that link it include Xwayland, QEMU and Firefox.

It is one of the hot libraries the tree builds with link-time optimisation (see Every port, “LTO only for the hot libraries”).

Depends on: meson, ninja.

Required by (13): cairo, firefox-esr, kicad, libfprint, librewolf, qemu, solvespace, spice, spice-gtk, texlive, thunderbird, wlvncc, xwayland.

Sources: pixman-0.46.4.tar.gz (807.8 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 pixman'

build.sh:

export CFLAGS="$CFLAGS -frandom-seed=pixman"
meson setup build \
	--prefix=/usr \
	--libdir=lib \
	--buildtype=release \
	-D b_lto=true \
	-D mmx=enabled \
	-D sse2=enabled \
	-D ssse3=enabled \
	-D loongson-mmi=disabled \
	-D vmx=disabled \
	-D arm-simd=disabled \
	-D neon=disabled \
	-D a64-neon=disabled \
	-D mips-dspr2=disabled \
	-D rvv=disabled \
	-D openmp=disabled \
	-D libpng=disabled \
	-D tests=disabled \
	-D demos=disabled \
	-D gtk=disabled

ninja -C build
DESTDIR=$PKG ninja -C build install

Libraries: libpixman-1.so.

Directories: /usr/include/pixman-1, /usr/share/licenses/pixman.