# devel/SDL2-legacy-darwin - The NetBSD Packages Collection

Legacy SDL2 suitable for old Mac OS X versions

    Simple DirectMedia Layer is a cross-platform development library designed to
    provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog and many
    Humble Bundle games.

    SDL officially supports Windows, Mac OS X, Linux, iOS, and Android. Support for
    other platforms may be found in the source code.

    SDL is written in C, works natively with C++, and there are bindings available
    for several other languages, including C# and Python.

    SDL 2.0 is distributed under the zlib license. This license allows you to use
    SDL freely in any software.

    This package is based on an older version of SDL2 suitable for use with
    legacy platforms such as PowerPC versions of Mac OS X. Features such as
    synchronous audio are unavailable. It may also be useful for developers
    seeking to target a wide range of SDL2 versions.

- Source version: `SDL2-2.0.3nb3`
- Maintainer: nia AT NetBSD.org
- Website: https://www.libsdl.org/
- License: zlib
- Package history: cvs, hg, git

## Build dependencies

pkgtools/x11-links x11/xcb-proto x11/xorgproto x11/xcb-proto devel/libtool-base pkgtools/mktools devel/gmake devel/pkgconf pkgtools/cwrappers

## Runtime dependencies

graphics/MesaLib x11/liboldXrandr x11/liboldXrandr x11/libXScrnSaver x11/xcursor x11/xcursor graphics/MesaLib x11/liboldXrandr x11/xcursor

## Binary packages

OS | Architecture | Version
--- | --- | ---
NetBSD 10.0 | aarch64 | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | aarch64 | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | aarch64eb | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | alpha | SDL2-2.0.3nb1.tgz
NetBSD 10.0 | alpha | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | earmv4 | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | earmv6hf | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | earmv6hf | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | earmv7hf | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | earmv7hf | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | i386 | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | i386 | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | m68k | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | powerpc | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | powerpc | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | powerpc | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | sparc64 | SDL2-2.0.3nb1.tgz
NetBSD 10.0 | vax | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | vax | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | x86_64 | SDL2-2.0.3nb2.tgz
NetBSD 10.0 | x86_64 | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | aarch64 | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | aarch64eb | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | earmv6hf | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | earmv7hf | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | i386 | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | riscv64 | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | sh3el | SDL2-2.0.3nb2.tgz
NetBSD 11.0 | x86_64 | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | aarch64 | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | aarch64 | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | earmv6hf | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | earmv6hf | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | earmv7hf | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | earmv7hf | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | i386 | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | i386 | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | powerpc | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | x86_64 | SDL2-2.0.3nb2.tgz
NetBSD 9.0 | x86_64 | SDL2-2.0.3nb2.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

## Available build options

alsa
  Enable ALSA support.
dbus
  Enable dbus (desktop bus) support.
nas
  Enable usage of the Network Audio System.
pulseaudio
  Enable support for the PulseAudio sound server.
x11
  Enable X11 support.
opengl
  Use OpenGL as display library.

## Known vulnerabilities

- a open integer-overflow vulnerability
- a open buffer-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open buffer-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open heap-overflow vulnerability
- a open buffer-overflow vulnerability
- a open integer-overflow vulnerability
- a open out-of-bounds-read vulnerability
- a open heap-buffer-overflow vulnerability

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.