Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user/sdl3: new package #3423

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions user/sdl2-compat-devel
28 changes: 28 additions & 0 deletions user/sdl2-compat/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pkgname = "sdl2-compat"
_commit = "fbbb14acca6fa630fb955856dbeb5b0e0a1c93b8"
pkgver = "0_git20250106"
pkgrel = 0
build_style = "cmake"
hostmakedepends = ["cmake", "ninja", "pkgconf"]
makedepends = ["sdl3-devel-static"] # needs libSDL3_test.a
# is dlopen'ed
depends = ["so:libSDL3.so.0!sdl"]
# manually cap provided version so this isn't prioritized over main/sdl
provides = ["so:libSDL2-2.0.so.0=0"]
pkgdesc = "Compatibility layer for SDL 2"
maintainer = "Erica Z <[email protected]>"
license = "Zlib"
url = "https://github.com/libsdl-org/sdl2-compat"
source = f"{url}/archive/{_commit}.tar.gz"
sha256 = "20a7844be9f284a15039500cfd66302090fd3e8be3e4d3b60050d5fa191b820d"


@subpackage("sdl2-compat-devel")
def _(self):
# see above
self.provides = [
"cmd:sdl2-config=2",
"pc:sdl2=2",
]

return self.default_devel()
2 changes: 2 additions & 0 deletions user/sdl2-compat/update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# prerelease
ignore = True
1 change: 1 addition & 0 deletions user/sdl3-devel
61 changes: 61 additions & 0 deletions user/sdl3/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
pkgname = "sdl3"
pkgver = "3.1.8"
pkgrel = 0
build_style = "cmake"
configure_args = [
"-DCMAKE_BUILD_TYPE=Release",
"-DSDL_ALSA=OFF",
"-DSDL_HIDAPI_LIBUSB_SHARED=OFF",
"-DSDL_JACK_SHARED=OFF",
"-DSDL_KMSDRM_SHARED=OFF",
"-DSDL_PIPEWIRE_SHARED=OFF",
"-DSDL_PULSEAUDIO=OFF",
"-DSDL_RPATH=OFF",
"-DSDL_SNDIO=OFF",
"-DSDL_WAYLAND_LIBDECOR_SHARED=OFF",
"-DSDL_WAYLAND_SHARED=OFF",
"-DSDL_X11_SHARED=OFF",
]
hostmakedepends = [
"cmake",
"ninja",
"pkgconf",
]
makedepends = [
"dbus-devel",
"ibus-devel",
"libdecor-devel",
"liburing-devel",
"libusb-devel",
"libx11-devel",
"libxcursor-devel",
"libxfixes-devel",
"libxi-devel",
"libxkbcommon-devel",
"libxrandr-devel",
"libxscrnsaver-devel",
"mesa-devel",
"pipewire-devel",
"pipewire-jack-devel",
"wayland-devel",
]
depends = [
# dynamically loaded
"so:libGLESv2.so.2!libgles2",
"so:libGL.so.1!libgl",
]
pkgdesc = "Simple DirectMedia Layer version 3"
maintainer = "Erica Z <[email protected]>"
license = "Zlib"
url = "https://libsdl.org"
source = f"https://github.com/libsdl-org/SDL/releases/download/preview-{pkgver}/SDL3-{pkgver}.zip"
sha256 = "5ec43e84f8b1edb6412ed852ba547cb8c8a29ddde1a1b08097fed03bc7cdca1d"


def post_install(self):
self.install_license("LICENSE.txt")


@subpackage("sdl3-devel")
def _(self):
return self.default_devel()
1 change: 1 addition & 0 deletions user/sdl3/update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pattern = r"(3\.[0-9.]+)"
Loading