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

306.10. inkscape-1.4.4

Vector graphics editor — SVG drawing, PDF import, CorelDRAW and Visio files

Version 1.4.4, release 1
Shelf graphics — Graphics applications: painting, vector, photo development and management, image viewers, screenshot and image optimisers
Phase 44_apps (Applications), 230 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://inkscape.org/
Build time 53.9 SBU
Installed size 73.5 MiB in 4762 files
Recipe ports/core/graphics/inkscape/kpkgbuild

About

Inkscape is a vector graphics editor whose native format is SVG. It draws and edits paths, shapes, text and gradients, traces bitmaps, imports PDF, EPS, CorelDRAW, Visio and WordPerfect graphics, and exports PNG, PDF, PostScript and more, from its window or from inkscape on the command line. The port builds it on GTK 3 through gtkmm, with the Python extensions that ship with it.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, gettext, perl, python3, gtkmm3, gtk3, glibmm2.66, libsigc++2, cairomm1.14, pangomm2.46, harfbuzz, pango, fontconfig, freetype2, gsl, bdwgc, lcms2, double-conversion, lib2geom, poppler, cairo, glib, libcdr, libvisio, libwpg, librevenge, libjpeg-turbo, libpng, potrace, gspell, gtksourceview4, boost, libxslt, libxml2, zlib, readline, libepoxy, libX11, python3-lxml, numpy, python3-tinycss2, python3-cssselect, python3-scour, python3-pyserial, python3-pyparsing, python3-packaging, python3-pillow, python3-gobject, graphicsmagick.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install inkscape'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/graphics/inkscape.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/graphics/inkscape
echo 'bbce5753a1e08b871a5cf16c665eb060700aaab9a6a379dc63f4c4d9b3b8856e  inkscape-1.4.4.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/inkscape
SRC=$SRC_ROOT/inkscape-1.4.4
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf inkscape-1.4.4.tar.xz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

for p in poppler-26.05 poppler-26.06 poppler-26.07 poppler-version-check poppler-26.08; do
	patch -p1 -i "$PORT_SRC/$p.patch"
done

cmake -S . -B build -G Ninja \
	-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_SHARED_LIBS=ON \
	-D BUILD_TESTING=OFF \
	-D WITH_INTERNAL_2GEOM=OFF \
	-D ENABLE_POPPLER=ON \
	-D ENABLE_POPPLER_CAIRO=ON \
	-D ENABLE_LCMS=ON \
	-D WITH_IMAGE_MAGICK=OFF \
	-D WITH_GRAPHICS_MAGICK=ON \
	-D WITH_LIBCDR=ON \
	-D WITH_LIBVISIO=ON \
	-D WITH_LIBWPG=ON \
	-D WITH_GSPELL=ON \
	-D WITH_GSOURCEVIEW=ON \
	-D WITH_GNU_READLINE=ON \
	-D WITH_OPENMP=ON \
	-D WITH_SVG2=ON \
	-D WITH_X11=ON \
	-D WITH_NLS=ON \
	-D WITH_JEMALLOC=OFF \
	-D WITH_MANPAGE_COMPRESSION=OFF \
	-D ENABLE_BINRELOC=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

rm -rf "$PKG/usr/share/inkscape/extensions/inkman"
find "$PKG/usr/share/man" -mindepth 1 -maxdepth 1 ! -name 'man[0-9]*' -exec rm -rf {} +
find "$PKG/usr/share/inkscape/tutorials" -name '*.*.*' -exec rm -f {} +

cat > "$PKG/usr/share/applications/org.inkscape.Inkscape.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Inkscape
GenericName=Vector Graphics Editor
Comment=Create and edit Scalable Vector Graphics images
TryExec=inkscape
Exec=inkscape %F
Icon=org.inkscape.Inkscape
Terminal=false
StartupNotify=true
StartupWMClass=org.inkscape.Inkscape
MimeType=image/svg+xml;image/svg+xml-compressed;application/vnd.corel-draw;application/pdf;application/postscript;image/x-eps;application/illustrator;image/x-wmf;image/x-emf;application/x-xccx;application/x-xcdt;application/x-xcmx;image/x-xcdr;application/visio;application/x-visio;application/vnd.visio;application/vnd.ms-visio.viewer;application/visio.drawing;application/vsd;application/x-vsd;image/x-vsd;
Categories=Graphics;VectorGraphics;GTK;
Keywords=image;editor;vector;drawing;svg;inkscape;
Actions=new-window;

[Desktop Action new-window]
Name=Open a New Window
Exec=inkscape
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.inkscape.Inkscape.desktop"

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/inkscape, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf inkscape-1.4.4-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/inkscape, and runs the triggers its paths call for.

Contents

Installed programs: inkscape, inkview.

Installed directories: /usr/lib/inkscape, /usr/share/inkscape, /usr/share/licenses/inkscape.

Short descriptions

inkscape an SVG (Scalable Vector Graphics) editing program.
inkview an SVG viewer and slideshow program.

Notes

Upstream looks for gspell, gtksourceview, the CorelDRAW, Visio and WordPerfect libraries, readline, OpenMP and the Magick++ library and, when one is not found, turns its option off with no error. Naming the option ON does not make the library required; it is the library’s entry in depends that keeps the feature in the package.

The patches are upstream’s own commits for poppler releases newer than this Inkscape release, and the loop in build.sh applies them in the order of their commit dates, which puts the version-check correction before the last of the release fixes. The PDF importer uses poppler’s private headers, whose interface changes with every poppler release, so a poppler update can need another such patch.

After the install, build.sh removes the extension manager, extensions/inkman, which installs extensions from the network into a private Python environment and fails on a machine with no network; the translated manual-page directories; and every translated tutorial file, any name with a language before its extension (tutorial-<name>.<language>.svg and translated screenshots such as potrace.<language>.png), keeping the English tutorial-<name>.svg and its images.

Upstream’s desktop entry is replaced by one with StartupWMClass=org.inkscape.Inkscape: GTK 3 takes the Wayland app_id from the program name, which Inkscape sets to its application id. The hicolor PNG icons it names are upstream’s.