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

176.2. tk-9.0.4

Tk, the GUI toolkit for Tcl — wish and libtcl9tk, drawn through X11 under Xwayland

9.0.4-1 · TCL · 0.8 SBU · 9.6 MiB, 602 files · 42_graphics, 138 of 189 · ports/core/lang/tk

Homepage: https://www.tcl-lang.org/

Why it is in KDOS. The comment above it in script/phases/42_graphics/packages.d/lang.txt:

tkinter, and the window of LinuxCNC and bCNC.

Depends on: tcl, libX11, libXft, libXrender, libXext, libXScrnSaver, fontconfig, freetype2, cups, zlib.

Required by (6): bcnc, bwidget, gpsman, linuxcnc, python3-tkinter, R.

Sources: tk-9.0.4.tar.gz (4.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install tk'

build.sh:

cd unix

./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--mandir=/usr/share/man \
	--with-tcl=/usr/lib \
	--with-x \
	--enable-64bit \
	--enable-shared \
	--disable-rpath \
	--enable-xft \
	--enable-xss \
	--enable-libcups \
	--disable-zipfs
make
make DESTDIR=$PKG install

make DESTDIR=$PKG install-private-headers

ln -sf wish9.0 $PKG/usr/bin/wish
readelf -d "$PKG/usr/lib/libtcl9tk9.0.so" | grep -q "NEEDED.*libXss"

Programs: wish, wish9.0.

Libraries: libtcl9tk9.0.so, libtkstub.a.

Directories: /usr/lib/tk9.0, /usr/share/licenses/tk.