sdl2-compat
brew install sdl2-compatAlso 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 days | 1,709,940 |
|---|---|
| Downloads | 6,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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 69,846 | 175,689 | 292,117 |
Installs (--HEAD) | 15 | 42 | 69 |
| Installs on Request | 6,202 | 16,988 | 31,164 |
Installs on Request (--HEAD) | 13 | 38 | 64 |
| Build Errors | 80 |