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

119.4. optipng-7.9.1

Lossless PNG optimiser

7.9.1-1 · Zlib · 0.3 SBU · 131.8 KiB, 3 files · 41_system, 619 of 1047 · ports/core/graphics/optipng

Homepage: https://optipng.sourceforge.net/

Depends on: cmake, ninja, libpng, zlib.

Required by (1): calibre.

Sources: optipng-7.9.1.tar.gz (3.2 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 optipng'

build.sh:

cmake -B build -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DOPTIPNG_USE_SYSTEM_LIBS=ON \
	-DOPTIPNG_BUILD_TESTS=OFF
cmake --build build
DESTDIR=$PKG cmake --install build

chmod 755 "$PKG/usr/bin/optipng"

Programs: optipng.

Directories: /usr/share/licenses/optipng.