libsdl2
Simple Direct Media Layer
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Windows, BeOS, MacOS Classic, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. There is also code, but no official support, for Windows CE, AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64, RISC OS, and SymbianOS. SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, Eiffel, Java, Lua, ML, Perl, PHP, Pike, Python, and Ruby.
homepage ↗ github: libsdl-org/SDL github: libsdl-org/sdl2-compat
Available in
| Overlay | Newest | Ebuilds | Last activity | |
|---|---|---|---|---|
| gentoo gitweb ↗ | 2.32.68 | 9 | 13 h | details › |
| mim GitHub ↗ | 2.30.6 | 1 | 8 d | details › |
Versions & arches
| Version | Overlay | amd64 | arm64 | x86 | ppc64 | riscv | alpha | arm | hppa | ia64 | loong | mips | ppc | sparc | Committed | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2.32.68 | gentoo | amd64 untested | arm64 untested | x86 untested | ppc64 untested | riscv untested | alpha untested | arm untested | hppa untested | ia64 untested | loong untested | mips untested | ppc untested | sparc untested | — | view · download · history ↗ |
| 2.32.10 | gentoo | amd64 testing | arm64 testing | x86 testing | ppc64 testing | riscv testing | alpha testing | arm testing | hppa testing | ia64 untested | loong testing | mips testing | ppc testing | sparc testing | — | view · download · history ↗ |
| 2.32.8 | gentoo | amd64 stable | arm64 stable | x86 stable | ppc64 stable | riscv testing | alpha testing | arm stable | hppa testing | ia64 untested | loong testing | mips testing | ppc stable | sparc testing | — | view · download · history ↗ |
| 2.32.6 | gentoo | amd64 stable | arm64 stable | x86 stable | ppc64 stable | riscv testing | alpha testing | arm stable | hppa testing | ia64 untested | loong testing | mips testing | ppc stable | sparc testing | — | view · download · history ↗ |
| 2.32.4 | gentoo | amd64 testing | arm64 testing | x86 testing | ppc64 testing | riscv testing | alpha testing | arm testing | hppa testing | ia64 untested | loong testing | mips testing | ppc testing | sparc testing | — | view · download · history ↗ |
| 2.32.2 | gentoo | amd64 stable | arm64 stable | x86 stable | ppc64 stable | riscv testing | alpha testing | arm stable | hppa testing | ia64 untested | loong testing | mips testing | ppc stable | sparc testing | — | view · download · history ↗ |
| 2.32.0 | gentoo | amd64 stable | arm64 stable | x86 stable | ppc64 stable | riscv testing | alpha testing | arm stable | hppa testing | ia64 untested | loong testing | mips testing | ppc stable | sparc testing | — | view · download · history ↗ |
| 2.30.11 | gentoo | amd64 testing | arm64 testing | x86 testing | ppc64 testing | riscv testing | alpha testing | arm testing | hppa testing | ia64 untested | loong testing | mips testing | ppc testing | sparc testing | — | view · download · history ↗ |
| 2.30.7-r1 | gentoo | amd64 stable | arm64 stable | x86 stable | ppc64 stable | riscv testing | alpha testing | arm stable | hppa testing | ia64 untested | loong testing | mips testing | ppc stable | sparc testing | — | view · download · history ↗ |
| 2.30.6 ≈ | mim | amd64 testing | arm64 testing | x86 testing | ppc64 testing | riscv testing | alpha testing | arm testing | hppa testing | ia64 testing | loong testing | mips testing | ppc testing | sparc testing | 24 mo | view · download · history ↗ |
Use flags of 2.32.68
- X Add support for X11
- alsa Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
- gles2 Enable GLES 2.0 (OpenGL for Embedded Systems) support (independently of full OpenGL, see also: gles2-only)
- +haptic Enable the haptic (force feedback) subsystem
- +joystick Control joystick support (disable at your own risk)
- kms Build the KMSDRM video driver
- opengl Add support for OpenGL (3D graphics)
- pipewire Enable support for the media-video/pipewire audio backend
- pulseaudio Add sound server support via media-libs/libpulse (may be PulseAudio or PipeWire)
- +sound Control audio support (disable at your own risk)
- test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
- +video Control video support (disable at your own risk)
- vulkan Add support for 3D graphics and computing via the Vulkan cross-platform API
- wayland Enable dev-libs/wayland backend
8 expansion flags (python targets, ABIs, cpu flags…)
- abi_x86_32
- abi_x86_64
- abi_x86_x32
- abi_mips_n32
- abi_mips_n64
- abi_mips_o32
- abi_s390_32
- abi_s390_64