commit:     2fef93cc388c07e696c74dcec91e2c830ed34b48
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  5 12:05:06 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Feb  5 16:27:44 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fef93cc

media-libs/libsdl2: add 2.32.64

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-libs/libsdl2/Manifest               |  1 +
 media-libs/libsdl2/libsdl2-2.32.64.ebuild | 66 +++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/media-libs/libsdl2/Manifest b/media-libs/libsdl2/Manifest
index 090b5fa51384..979ca68ecd10 100644
--- a/media-libs/libsdl2/Manifest
+++ b/media-libs/libsdl2/Manifest
@@ -7,3 +7,4 @@ DIST SDL2-2.32.6.tar.gz 7627447 BLAKE2B 
d08c733d87af036e8a015a4ef313bbdf4049d7dd
 DIST SDL2-2.32.8.tar.gz 7627356 BLAKE2B 
01cbe46513cffac1bb43e82353448288359d957910e40c96d83cb4993c00a3ed409e95221a42563a3abf720468744c46da54fe889755f212260cc7c2f57b3830
 SHA512 
484c33638e7bd1002815bb1f6a47a292d1eaf0b963598dde65f4a3e077dfe75ee35b9ea4b3b767365b3ef4f613c4d69ce55b5e96675de562994344e83a978272
 DIST sdl2-compat-2.32.60.tar.gz 2822837 BLAKE2B 
b6d0ed62f904cafbf302933a6e11beaef14080a0e93c28eddac9d3f99a4aa5ad4649dca0a8dd56eda54f8606bd42f7f8a83bfdf3f20f0c23588be1dea0a58022
 SHA512 
3dbb86f27a7fd19c78b6b69d0d5cd2ea608077d79e58b7a9fe6dbf431e9d273a9e9d77509b0ceec6d583f74eebdbb32c4e7d29f0bd8333f5cb41714f30cdee80
 DIST sdl2-compat-2.32.62.tar.gz 2823011 BLAKE2B 
401305346f80712cf7edc77ed70fde4c87197f723d1ac5721bc3aad66b9d1690960832311d4f9406b3668506934eaefe1faad6f1cf616c7a1a97e746618f3649
 SHA512 
4a2643aa11f89d2c9940d33f6d6840b038099efbc8027e0af7bece042bd7791570d5785c9d2351e1124ed784c92b3613e80dba80a588c8a5aabb14cdd6382ade
+DIST sdl2-compat-2.32.64.tar.gz 2823149 BLAKE2B 
647c66d29fc98b521d2e38f98abc8e9e4d9edb6f648ce157122c2d29b661d3086b70a6537549a7d16b09ed1603b4511b8c2452e817bc8cbca1316164905270db
 SHA512 
22c73c794bc2a750d7ec1a3fa16db9e63af4e058f96975b27f856a89a91760596f54899b22d2d8ae3f5a9a6e7f58a37870965d540761212f6c746a8f4fc2e775

diff --git a/media-libs/libsdl2/libsdl2-2.32.64.ebuild 
b/media-libs/libsdl2/libsdl2-2.32.64.ebuild
new file mode 100644
index 000000000000..da0e31639504
--- /dev/null
+++ b/media-libs/libsdl2/libsdl2-2.32.64.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib dot-a
+
+# TODO: switch to new description when non-compat is gone, this is so it is
+# not displayed on packages.gentoo.org which may be confusing for users
+DESCRIPTION="Simple Direct Media Layer"
+#DESCRIPTION="Simple Direct Media Layer 2 compatibility wrapper around SDL3"
+HOMEPAGE="https://www.libsdl.org/";
+SRC_URI="https://www.libsdl.org/release/sdl2-compat-${PV}.tar.gz";
+S=${WORKDIR}/sdl2-compat-${PV}
+
+LICENSE="ZLIB"
+SLOT="0"
+# unkeyworded for testing
+#KEYWORDS="~amd64"
+# this skips most non-compat libsdl2 former IUSE that are not used by revdeps,
+# albeit it is questionable that some depend on audio alsa/pipewire (note that
+# static-libs is left out because it is useless for static-only builds given
+# it will dlopen the shared libsdl3 anyway)
+#
+# TODO: either update revdeps to have (+) on no-op IUSE (haptic, joystick,
+# sound, and video) then cleanup, or don't for less overlay issues and instead
+# force in profiles to avoid unnecessary rebuilds -- not forced right now given
+# a >=2.32.50 in profile would force for a potential future non-compat 2.34.0
+IUSE="
+       X alsa gles2 +haptic +joystick kms opengl pipewire pulseaudio
+       +sound test +video vulkan wayland
+"
+REQUIRED_USE="gles2? ( opengl )"
+RESTRICT="!test? ( test )"
+
+# libsdl3 is dlopen'ed and USE at build time should not matter except X, it
+# enables everything else but will not work without libsdl3 support at runtime
+RDEPEND="
+       
>=media-libs/libsdl3-3.2.12[X?,alsa?,opengl?,pipewire?,pulseaudio?,vulkan?,wayland?,${MULTILIB_USEDEP}]
+"
+DEPEND="
+       ${RDEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libX11
+       )
+"
+
+src_configure() {
+       lto-guarantee-fat
+
+       local mycmakeargs=(
+               -DSDL2COMPAT_TESTS=$(usex test)
+               -DSDL2COMPAT_X11=$(usex X)
+       )
+
+       cmake-multilib_src_configure
+}
+
+src_install() {
+       cmake-multilib_src_install
+
+       strip-lto-bytecode
+
+       rm -r -- "${ED}"/usr/share/licenses || die
+}

Reply via email to