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”).
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
-frandom-seed=pixman— Fix the seed GCC uses to name each object’s.gnu.lto_*sections. Every library the tree builds with LTO sets it, because a static archive keeps those sections and would otherwise differ on every build. pixman installs only the shared library, which carries no.gnu.lto_*section, so here the seed changes no installed byte.-D b_lto=true— Compile and link with link-time optimisation, meson’s own switch for it.-D mmx=enabled,-D sse2=enabled,-D ssse3=enabled— Build the x86 MMX, SSE2 and SSSE3 code paths. Each defaults toauto, which drops the path when the compiler cannot build it; namedenabled, such a compiler stops the build instead of producing a slower library. pixman picks the best compiled path at run time, so the library still runs on a processor that lacks one.-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— Build none of the code paths for other processors (Loongson, PowerPC, ARM, MIPS and RISC-V), which an x86-64 build cannot use.-D openmp=disabled,-D libpng=disabled,-D tests=disabled,-D demos=disabled,-D gtk=disabled— Build no tests and no demos. OpenMP and libpng are used only by the tests, and GTK only by the demos.
Libraries: libpixman-1.so.
Directories: /usr/include/pixman-1, /usr/share/licenses/pixman.