# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 sdl12-compat

查看 sdl12-compat 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

- MacPorts (94%):

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

  证据: 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
```

  证据: 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
```

  证据: Fedora Rawhide package metadata: sdl12-compat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

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

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:sdl12-compat
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sdl12-compat>
- **版本:** 1.2.76
- **来源摘要:** SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes
- **主页:** <https://github.com/libsdl-org/sdl12-compat>
- **仓库:** <https://github.com/libsdl-org/sdl12-compat>
- **许可证:** Zlib AND MIT-0
- **源码归档:** <https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-1.2.76.tar.gz>
- **最后更新:** 2026-06-22T14:06:15-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sdl-config (cli)
- sdl-config (别名)

## 依赖

- sdl2-compat

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.76
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/libsdl-org/sdl12-compat
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 sdl12-compat 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sdl12-compat
- **Aliases:** sdl
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [sdl2-compat](https://pkg.so/zh-hans/brew/sdl2-compat/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [smpeg](https://pkg.so/zh-hans/brew/smpeg/) - Popular package that depends on this formula.
- [lgeneral](https://pkg.so/zh-hans/brew/lgeneral/) - Popular package that depends on this formula.
- [joyce](https://pkg.so/zh-hans/brew/joyce/) - Popular package that depends on this formula.
- [pce](https://pkg.so/zh-hans/brew/pce/) - Popular package that depends on this formula.
- [libvisual](https://pkg.so/zh-hans/brew/libvisual/) - Popular package that depends on this formula.
- [mp3blaster](https://pkg.so/zh-hans/brew/mp3blaster/) - Popular package that depends on this formula.
- [sdl2_sound](https://pkg.so/zh-hans/brew/sdl2-sound/) - Shares pkgdb curated category or tags: cli, media, multimedia, sdl, sdl2.
- [libquicktime](https://pkg.so/zh-hans/brew/libquicktime/) - Shares pkgdb curated category or tags: cli, media, multimedia, multimedia-library.
- [gstreamer](https://pkg.so/zh-hans/brew/gstreamer/) - Shares pkgdb curated category or tags: cli, media, multimedia.
- [pipewire](https://pkg.so/zh-hans/brew/pipewire/) - Shares pkgdb curated category or tags: cli, media, multimedia.
- [gpac](https://pkg.so/zh-hans/brew/gpac/) - Shares pkgdb curated category or tags: cli, media, multimedia.
- [mlt](https://pkg.so/zh-hans/brew/mlt/) - Shares pkgdb curated category or tags: cli, media, multimedia.
- [video-compare](https://pkg.so/zh-hans/brew/video-compare/) - Shares pkgdb curated category or tags: cli, media, sdl2.
- [mdxmini](https://pkg.so/zh-hans/brew/mdxmini/) - Local package facts share a topical domain. Shared terms: cli, compat, media, sdl2, sdl2-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)


## 来源

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