sdl12-compat
brew install sdl12-compat
v1.2.76
Zlib AND MIT-0
SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes
516
30-day installs · #1722
2.8k
90-day · #1396
11.2k
365-day · #1362
218
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
GitHub topics
sdl
sdl2
Links
- https://github.com/libsdl-org/sdl12-compat
- GitHub: libsdl-org/sdl12-compat
- Brew formula source: Formula/s/sdl12-compat.rb
Raw metadata
{
"aliases": [
"sdl"
],
"alternatives": [],
"build_dependencies": [
"cmake"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"sdl2-compat"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:38+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "sdl12-compat",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-13T07:00:37Z",
"github_readme_excerpt": "# Simple DirectMedia Layer (SDL) sdl12-compat\n\nhttps://www.libsdl.org/\n\nThis is the Simple DirectMedia Layer, a general API that provides low\nlevel access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,\nand 2D framebuffer across multiple platforms.\n\nThis code is a compatibility layer; it provides a binary and source\ncompatible API for programs written against SDL 1.2, but it uses SDL 2.0\nbehind the scenes. If you are writing new code, please target SDL 3.0\ndirectly and do not use this layer.\n\nIf you absolutely must have the real SDL 1.2 (\"SDL 1.2 Classic\"), please use\nthe source tree at https://github.com/libsdl-org/SDL-1.2, which occasionally\ngets bug fixes but no formal release. But we strongly encourage you not to do\nthat.\n\n# How to use:\n\n- Build the library. This will need access to SDL2\u0027s headers (v2.0.7 or newer),\n[CMake](https://cmake.org/) and the build tools of your choice. Once built, you\nwill have a drop-in replacement that can be used with any existing binary\nthat relies on SDL 1.2. You can copy this library over the existing 1.2 build,\nor force it to take priority over a system copy with LD_LIBRARY_PATH, etc.\nAt runtime, sdl12-compat needs to be able to find a copy of SDL2 (v2.0.7 or\nnewer -- v2.0.12 or newer for Windows), so plan to include it with the library\nif necessary.\n\n- If you want to build an SDL 1.2 program from source code, we have included\ncompatibility headers, so that sdl12-compat can completely replace SDL 1.2\nat all points. These headers are just the bare minimum needed for source-level\ncompatibility and don\u0027t have a lot of documentation or fanciness at all. The\nnew headers are also under the zlib license. Note that sdl12-compat itself\ndoes not use these headers, so if you just want the library, you don\u0027t need\nthem.\n\n# Building the library:\n\nThese are quick-start instructions; there isn\u0027t anything out of the ordinary\nhere if you\u0027re used to using CMake. \n\nYou\u0027ll need to use CMake to build sdl12-compat. Download at\n[cmake.org]",
"github_repo": "libsdl-org/sdl12-compat",
"github_stars": 218,
"github_topics": [
"sdl",
"sdl2"
],
"homepage": "https://github.com/libsdl-org/sdl12-compat",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 516,
"installs_365d": 11214,
"installs_90d": 2796,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Zlib AND MIT-0",
"llm_generated_at": null,
"llm_model": null,
"name": "sdl12-compat",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1722,
"rank_365d": 1362,
"rank_90d": 1396,
"raw_hash": "3a306b55c40e84ab",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/s/sdl12-compat.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "1.2.76",
"versioned_formulae": [],
"why_use_this": null
}