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.4.5 Cross-platform make

Binaries: sdl2-config

GitHub Packages downloads:

Last 30 days1,709,940
Downloads6,739,346
Analytics install events (30 days)69,861
Downloads / install events (30 days)24.5×

Source: GitHub Packages, fetched 2026-11-09T00:50:44Z. Analytics dates: 2026-10-10 to 2026-11-09. 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
Installs69,846175,689292,117
Installs (--HEAD)154269
Installs on Request6,20216,98831,164
Installs on Request (--HEAD)133864
Build Errors80