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

209.12. sdl12-compat-1.2.76

The SDL 1.2 library, headers and build files, answering every SDL 1.2 call through SDL2

1.2.76-1 · Zlib · 0.2 SBU · 729.3 KiB, 42 files · 42_graphics, 102 of 189 · ports/core/game-libs/sdl12-compat

Homepage: https://libsdl.org

Depends on: cmake, ninja, sdl2-compat.

Required by (1): lmms.

Sources: sdl12-compat-1.2.76.tar.gz (484.5 KiB). Every step kpkg takes applies to this port.

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

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DSDL12TESTS=OFF \
	-DSDL12DEVEL=ON \
	-DSTATICDEVEL=OFF
ninja
DESTDIR=$PKG ninja install

test -e "$PKG/usr/lib/libSDL-1.2.so.0"

Programs: sdl-config.

Libraries: libSDL-1.2.so, libSDL.so, libSDLmain.a.

Directories: /usr/include/SDL, /usr/share/licenses/sdl12-compat.