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

118.8. jasper-4.2.9

JasPer JPEG-2000 codec library, with the jasper, imginfo and imgcmp tools

4.2.9-1 · JasPer-2.0 · 1.1 SBU · 774.2 KiB, 40 files · 41_system, 408 of 1047 · ports/core/image-libs/jasper

Homepage: https://jasper-software.github.io/jasper/

Depends on: cmake, ninja, libjpeg-turbo.

Required by (3): digikam, graphicsmagick, netpbm.

Sources: jasper-4.2.9.tar.gz (2.0 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

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

build.sh:

cmake -S . -B "$SRC_ROOT/build" -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DJAS_ENABLE_SHARED=ON \
	-DJAS_PACKAGING=ON \
	-DJAS_ENABLE_LIBJPEG=ON \
	-DJAS_ENABLE_LIBHEIF=OFF \
	-DJAS_ENABLE_OPENGL=OFF \
	-DJAS_ENABLE_DOC=OFF \
	-DJAS_ENABLE_LATEX=OFF \
	-DJAS_ENABLE_PROGRAMS=ON \
	-DJAS_ENABLE_MULTITHREADING_SUPPORT=ON \
	-DJAS_ENABLE_CMAKE_PACKAGE_CONFIG=ON
cmake --build "$SRC_ROOT/build"
DESTDIR=$PKG cmake --install "$SRC_ROOT/build"

Programs: imgcmp, imginfo, jasper.

Libraries: libjasper.so.

Directories: /usr/include/jasper, /usr/lib/cmake/JasPer, /usr/share/doc/JasPer, /usr/share/licenses/jasper.