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

90.3. libdeflate-1.26

DEFLATE/zlib/gzip compression library

1.26-1 · MIT · 0.3 SBU · 123.2 KiB, 9 files · 41_system, 58 of 1047 · ports/core/archiver/libdeflate

Homepage: https://github.com/ebiggers/libdeflate

Depends on: cmake.

Required by (8): gdal, htslib, libtiff, openexr, openimageio, R, timg, transmission.

Sources: libdeflate-1.26.tar.gz (194.1 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 libdeflate'

build.sh:

mkdir -p build && cd build
cmake .. \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DLIBDEFLATE_BUILD_SHARED_LIB=ON \
	-DLIBDEFLATE_BUILD_STATIC_LIB=OFF \
	-DLIBDEFLATE_BUILD_GZIP=OFF \
	-DLIBDEFLATE_BUILD_TESTS=OFF
make
make DESTDIR=$PKG install

Libraries: libdeflate.so.

Directories: /usr/lib/cmake/libdeflate, /usr/share/licenses/libdeflate.