# 使用 Homebrew, MacPorts, Nix 安装 smpeg2

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

## 安装

```sh
sudo av install brew:smpeg2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install smpeg2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smpeg2
```

  证据: MacPorts ports tree: multimedia/smpeg2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#smpeg2
```

  证据: nixpkgs package indexes: pkgs/by-name/sm/smpeg2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:smpeg2
- **软件包管理器:** Homebrew
- **版本:** 2.0.0
- **来源摘要:** SDL MPEG Player Library
- **主页:** <https://icculus.org/smpeg/>
- **仓库:** <https://github.com/icculus/smpeg>
- **最后更新:** 2026-06-22T14:06:19-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- plaympeg2 (别名)
- smpeg2-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.0
## 项目历史与用法

smpeg2 packages the SDL 2-oriented SMPEG MPEG player library and utilities.

### 项目历史

The official SMPEG README identifies version 2.0.0 dated 2001-07-17 and lists SDL 2.0.0 or newer as a requirement.

The README describes SMPEG as a free MPEG-1 video player library with sound support, written by Karl Robillard and Sam Lantinga at Loki Software with streaming MPEG support from Vivien Chappelier.

### 采用历史

The smpeg2 package keeps the SDL 2 variant of the older SMPEG code available to package-manager users.

Input package facts show smpeg2 packaged by Homebrew, MacPorts, and Nix.

### 使用方式

The official README documents `make all` for building the library and player.

For this package, the installed executables are `plaympeg2` and `smpeg2-config` according to source facts.

### 为什么软件包爱好者会关心

smpeg2 is significant as the SDL 2 packaging line for SMPEG, preserving older MPEG-1 playback support while avoiding collision with SDL 1-oriented SMPEG packages.

Its `smpeg2-config` utility follows the older Unix convention of package-specific compiler/linker flag helpers.

### 时间线

- 2001: Official README identifies SMPEG 2.0.0 dated 2001-07-17.

### Related projects

- Related projects named by the official README include SDL, Berkeley `mpeg_play`, `mpegsound`, Splay, `plaympeg`, `gtv`, and `glmovie`.
- The package is closely related to the `smpeg` package because both come from the same official SMPEG repository.

### 来源

- <https://github.com/icculus/smpeg#readme>
- <https://icculus.org/smpeg/>
- source_facts.executables
- source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Nix - smpeg2: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smpeg2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - smpeg2: normalized package name match | MacPorts ports tree: multimedia/smpeg2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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