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.5.1 | Cross-platform make |
Binaries:
sdl2-config
GitHub Packages downloads:
| Last 30 days | 1,776,888 |
|---|---|
| Downloads | 8,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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 63,424 | 187,814 | 335,749 |
Installs (--HEAD) | 19 | 49 | 84 |
| Installs on Request | 4,626 | 16,581 | 34,116 |
Installs on Request (--HEAD) | 17 | 44 | 78 |
| Build Errors | 82 |