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

152.14. libharu-2.4.6

Haru: a C library for writing PDF files — Blender's Grease Pencil PDF export

2.4.6-1 · Zlib · 0.8 SBU · 1.0 MiB, 39 files · 41_system, 425 of 1047 · ports/core/documents/libharu

Homepage: https://github.com/libharu/libharu

Depends on: cmake, ninja, zlib, libpng.

Required by (1): blender.

Sources: libharu-2.4.6.tar.gz (1.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libharu'

build.sh:

mkdir 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 \
	-DLIBHPDF_EXAMPLES=OFF \
	-DLIBHPDF_ENABLE_EXCEPTIONS=OFF
ninja
DESTDIR=$PKG ninja install

rm -rf "$PKG/usr/share/doc/libharu/bindings"
install -Dm644 ../LICENSE "$PKG/usr/share/licenses/libharu/LICENSE"

Libraries: libhpdf.so.

Directories: /usr/share/doc/libharu, /usr/share/licenses/libharu.