Port details
sdl2-compat SDL2 compatibility layer that uses SDL 3.0 behind the scenes
2.32.74 develnew! Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: monwarez@mailoo.org search for ports maintained by this maintainer
Port Added: 2026-12-01 16:18:05
Last Update: 2026-12-01 16:14:47
Commit Hash: 59af97a
Also Listed In: wayland
License: ZLIB
WWW:
https://github.com/libsdl-org/sdl2-compat
Description: #
This code is a compatibility layer; it provides a binary and source compatible API for programs written against SDL 2.0, but it uses SDL 3.0 behind the scenes. If you are writing new code, please target SDL 3.0 directly and do not use this layer.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (12 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/sdl2-compat-2.32.74/catalog.mk
  3. /usr/local/share/licenses/sdl2-compat-2.32.74/LICENSE
  4. /usr/local/share/licenses/sdl2-compat-2.32.74/ZLIB
  5. share/sbom/pc/sdl2-compat.pc
  6. etc/libmap.d/sdl2-compat.conf
  7. lib/libSDL2-2.0-compat.so
  8. lib/libSDL2-2.0-compat.so.0
  9. lib/libSDL2-2.0-compat.so.0.3200.74
  10. @owner
  11. @group
  12. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • For RUN/BUILD depends:
    • sdl2-compat>0:devel/sdl2-compat
  • For LIB depends:
    • libSDL2-2.0-compat.so:devel/sdl2-compat
To install the port: #
cd /usr/ports/devel/sdl2-compat/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/sdl2-compat
  • pkg install sdl2-compat
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: sdl2-compat
Flavors: #
there is no flavor information for this port.
distinfo: #
TIMESTAMP = 1793867932 SHA256 (sdl2-compat-2.32.74.tar.gz) = ec68abde77e2e459c8abc4f9587b8976b5d2a657b2bfda2fb3a079b0f8924588 SIZE (sdl2-compat-2.32.74.tar.gz) = 2826006

No package information for this port in our database #
Sometimes this happens. Not all ports have packages. This is doubly so for new ports, like this one.
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. Xlib.h : x11/libX11
  2. cmake : devel/cmake-core
  3. ninja : devel/ninja
Library dependencies: #
  1. libSDL3.so : devel/sdl3
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
devel_sdl2-compat
USES: #
cmake:testing localbase sdl
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://github.com/libsdl-org/sdl2-compat/releases/download/release-2.32.74/
Collapse this list.

Number of commits found: 1 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.32.74
01 Dec 2026 16:14:47
commit hash: 59af97ad66d3963443c2741e728f160dc86aa115commit hash: 59af97ad66d3963443c2741e728f160dc86aa115commit hash: 59af97ad66d3963443c2741e728f160dc86aa115commit hash: 59af97ad66d3963443c2741e728f160dc86aa115 files touched by this commit
Jochen Neumeister (joneum) search for other commits by this committer
Author: Thibault Payet
devel/sdl2-compat: Add New Port

sdl2-compat provides a binary and source compatible SDL 2.0 API that uses
SDL 3.0 behind the scenes.

www: https://github.com/libsdl-org/sdl2-compat

PR:	298456
Sponsored by:	Netzkommune GmbH

Number of commits found: 1