sdl2-compat

Install command:
brew install sdl2-compat

Also known as: sdl2

SDL2 compatibility layer that uses SDL3 behind the scenes

https://github.com/libsdl-org/sdl2-compat

License: Zlib

Development: Pull requests

Formula JSON API: /api/formula/sdl2-compat.json

Formula code: sdl2-compat.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.32.74
head ⚡️ HEAD

Depends on:

sdl3 3.4.20 Low-level access to audio, keyboard, mouse, joystick, and graphics

Depends on when building from source:

cmake 4.5.1 Cross-platform make

Binaries: sdl2-config

GitHub Packages downloads:

Last 30 days1,776,888
Downloads8,018,477
Analytics install events (30 days)63,443
Downloads / install events (30 days)28.0×

Source: GitHub Packages, fetched 2026-11-30T00:55:34Z. Analytics dates: 2026-10-31 to 2026-11-30. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs63,424187,814335,749
Installs (--HEAD)194984
Installs on Request4,62616,58134,116
Installs on Request (--HEAD)174478
Build Errors82