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

78.7. slang-2.3.3

S-Lang library — multi-platform programmer's library for text-mode UIs (newt dep)

2.3.3-1 · GPL-2.0-or-later · 6.5 SBU · 3.6 MiB, 144 files · 41_system, 193 of 1047 · ports/core/base-libs/slang

Homepage: https://www.jedsoft.org/slang/

Depends on: readline, zlib, libpng.

Required by (3): mc, newt, perf.

Sources: slang-2.3.3.tar.bz2 (1.6 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 slang'

build.sh:

./configure \
	--prefix=/usr \
	--sysconfdir=/etc \
	--libdir=/usr/lib \
	--with-readline=gnu \
	--without-x \
	--without-pcre \
	--without-onig \
	--with-png \
	--with-z

for mod in zlib-module.so png-module.so; do
	grep -A4 '^MODULES = ' modules/Makefile | grep -qw "$mod" || {
		echo "slang: $mod not configured" >&2
		exit 1
	}
done
make -j1 RPATH=
make DESTDIR=$PKG RPATH= install

Programs: slsh.

Libraries: libslang.so.

Directories: /usr/lib/slang, /usr/share/doc/slang, /usr/share/licenses/slang, /usr/share/slsh.