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

209.7. sdl2-gfx-1.0.4

Lines, circles, polygons, rotation, zoom and a frame limiter for SDL2 programs

1.0.4-1 · Zlib · 0.2 SBU · 114.8 KiB, 9 files · 42_graphics, 96 of 189 · ports/core/game-libs/sdl2-gfx

Homepage: https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/

Why it is in KDOS. The comment above the 9 ports from sdl2-image to sdl3-ttf in script/phases/42_graphics/packages.d/game-libs.txt:

The SDL satellites for SDL 2 and SDL 3. There is no sdl2-config: a build that asks for it is given pkg-config sdl2, and an SDL 2 program runs on SDL 3 through sdl2-compat.

Depends on: autoconf, automake, libtool, pkgconf, sdl2-compat.

Required by (2): freeciv, tuxpaint.

Sources: sdl2-gfx-1.0.4.tar.gz (1.2 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 sdl2-gfx'

build.sh:

autoreconf -fi
./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--disable-mmx --disable-sdltest
make
make DESTDIR=$PKG install

Libraries: libSDL2_gfx-1.0.so, libSDL2_gfx.so.

Directories: /usr/share/licenses/sdl2-gfx.