# Install sdl12-compat with Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes. Version 1.2.76 via Homebrew; verified 2026-06-22. Also installable with debian: sudo apt install libsdl1.2-compat.

## Install

```sh
sudo av install brew:sdl12-compat
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sdl12-compat
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sdl12-compat
```

  Evidence: MacPorts ports tree: devel/sdl12-compat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add sdl12-compat
```

  Evidence: Alpine Linux edge package indexes: sdl12-compat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install sdl12-compat
```

  Evidence: Fedora Rawhide package metadata: sdl12-compat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#sdl12-compat
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sd/sdl12-compat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S sdl12-compat
```

  Evidence: Arch Linux sync databases: sdl12-compat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libsdl1.2-compat
```

  Evidence: Debian stable package indexes: libsdl1.2-compat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libSDL-1_2-0
```

  Evidence: openSUSE Tumbleweed package metadata: libSDL-1_2-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:sdl12-compat
- **Package manager:** Homebrew
- **Version:** 1.2.76
- **Source summary:** SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes
- **Homepage:** <https://github.com/libsdl-org/sdl12-compat>
- **Repository:** <https://github.com/libsdl-org/sdl12-compat>
- **Last updated:** 2026-06-22T14:06:15-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- sdl-config (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.2.76

## Security Notes

No matching local secret-handling manifest was found for sdl12-compat. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Other Package-Manager Records

- Debian apt - libsdl1.2-compat - 1.2.68-3: normalized package name match | Debian stable package indexes: libsdl1.2-compat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 1.2 binary compatibility library - transitional package | https://github.com/libsdl-org/sdl12-compat
- Debian apt - libsdl1.2-compat-dev - 1.2.68-3: normalized package name match | Debian stable package indexes: libsdl1.2-compat-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 1.2 binary compatibility library - transitional development files | https://github.com/libsdl-org/sdl12-compat
- Debian apt - libsdl1.2-compat-shim - 1.2.68-3: normalized package name match | Debian stable package indexes: libsdl1.2-compat-shim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libsdl1.2debian replacement using SDL 2.0 - transitional package | https://github.com/libsdl-org/sdl12-compat
- Debian apt - libsdl1.2-compat-tests - 1.2.68-3: normalized package name match | Debian stable package indexes: libsdl1.2-compat-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 1.2 binary compatibility library - tests | https://github.com/libsdl-org/sdl12-compat
- Debian apt - libsdl1.2-dev - 1.2.68-3: normalized package name match | Debian stable package indexes: libsdl1.2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 1.2 binary compatibility library - development files | https://github.com/libsdl-org/sdl12-compat
- Debian apt - libsdl1.2debian - 1.2.68-3: normalized package name match | Debian stable package indexes: libsdl1.2debian from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 1.2 binary compatibility library wrapping SDL 2.0 | https://github.com/libsdl-org/sdl12-compat
- Nix - sdl12-compat: normalized package name match | nixpkgs package indexes: pkgs/by-name/sd/sdl12-compat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libsdl1.2-compat - 1.2.68-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsdl1.2-compat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SDL 1.2 binary compatibility library - transitional package | https://github.com/libsdl-org/sdl12-compat
- Ubuntu apt - libsdl1.2-compat-dev - 1.2.68-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsdl1.2-compat-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SDL 1.2 binary compatibility library - transitional development files | https://github.com/libsdl-org/sdl12-compat
- Ubuntu apt - libsdl1.2-compat-shim - 1.2.68-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsdl1.2-compat-shim from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | libsdl1.2debian replacement using SDL 2.0 - transitional package | https://github.com/libsdl-org/sdl12-compat
- Ubuntu apt - libsdl1.2-compat-tests - 1.2.68-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsdl1.2-compat-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SDL 1.2 binary compatibility library - tests | https://github.com/libsdl-org/sdl12-compat
- Ubuntu apt - libsdl1.2-dev - 1.2.68-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsdl1.2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SDL 1.2 binary compatibility library - development files | https://github.com/libsdl-org/sdl12-compat
- Ubuntu apt - libsdl1.2debian - 1.2.68-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libsdl1.2debian from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SDL 1.2 binary compatibility library wrapping SDL 2.0 | https://github.com/libsdl-org/sdl12-compat
- apk - sdl12-compat - 1.2.76-r1: normalized package name match | Alpine Linux edge package indexes: sdl12-compat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL-1.2 compat layer that uses SDL-2.0 | https://github.com/libsdl-org/sdl12-compat
- apk - sdl12-compat-dbg - 1.2.76-r1: normalized package name match | Alpine Linux edge package indexes: sdl12-compat-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL-1.2 compat layer that uses SDL-2.0 (debug symbols) | https://github.com/libsdl-org/sdl12-compat
- apk - sdl12-compat-dev - 1.2.76-r1: normalized package name match | Alpine Linux edge package indexes: sdl12-compat-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL-1.2 compat layer that uses SDL-2.0 (development files) | https://github.com/libsdl-org/sdl12-compat


## Combined YAML source

View the package source record on GitHub. [combined/sdl12-compat.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sdl12-compat.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
