From 25c8ef22b4dc88eedfac54fc472dbe5a142245bf Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 2 Sep 2026 20:38:13 -0400 Subject: [PATCH] media-libs/libsdl2: add 2.32.72 Signed-off-by: Ionen Wolkens --- media-libs/libsdl2/Manifest | 1 + media-libs/libsdl2/libsdl2-2.32.72.ebuild | 66 +++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 media-libs/libsdl2/libsdl2-2.32.72.ebuild diff --git a/media-libs/libsdl2/Manifest b/media-libs/libsdl2/Manifest index cdb3100b77612..f427bd8ff8abe 100644 --- a/media-libs/libsdl2/Manifest +++ b/media-libs/libsdl2/Manifest @@ -7,3 +7,4 @@ DIST SDL2-2.32.4.tar.gz 7627336 BLAKE2B 55a24c75c90d77358b647d44c05525ee00bc69f6 DIST SDL2-2.32.6.tar.gz 7627447 BLAKE2B d08c733d87af036e8a015a4ef313bbdf4049d7ddc3968693a820ea69e473f2df486eda02303d8fd6b33c2d166dcb7dee7ac0cba19e0b8198c80db7d996fe4702 SHA512 2dae8ae9f10e160a50f625daddad891d25e782130e5a5e3f02079d94ab8858aca92ab8871ab19fdf5be6aca83ffeb9c1ea03949841c2506066f12d2bf2332d47 DIST SDL2-2.32.8.tar.gz 7627356 BLAKE2B 01cbe46513cffac1bb43e82353448288359d957910e40c96d83cb4993c00a3ed409e95221a42563a3abf720468744c46da54fe889755f212260cc7c2f57b3830 SHA512 484c33638e7bd1002815bb1f6a47a292d1eaf0b963598dde65f4a3e077dfe75ee35b9ea4b3b767365b3ef4f613c4d69ce55b5e96675de562994344e83a978272 DIST sdl2-compat-2.32.68.tar.gz 2823569 BLAKE2B b659037d8d397a4f90516635e21a50df1d19c6103486ba43e54aa188515d1aece25d8f897e5662012c1c8ec466c6e27ee55fcf0389a4576c275e3c0ad77baa47 SHA512 fb0e8976dd5d04e206496259bb40f9e1271c6af02b37b467827b42dbc0e1af60f361781a376b7fbec773d7d952993bbfb18906a85066b32fbb0ac8ebf76745d8 +DIST sdl2-compat-2.32.72.tar.gz 2824763 BLAKE2B 1068200843565c498f498e364bfd1ee72b479e190981da81b5c655cc4f59326098fa24f38441e7a5b54acd6dda318b379648cd456303c4595dcf7708103b40f6 SHA512 0d5d8b26bbb92e25a102e734daeed8b2345957eec95c01ccfcb1461030c8e12300e19488a1eec45d217c56b64cefe8722d84f3e5c5d013efea9128161174b785 diff --git a/media-libs/libsdl2/libsdl2-2.32.72.ebuild b/media-libs/libsdl2/libsdl2-2.32.72.ebuild new file mode 100644 index 0000000000000..da0e316395045 --- /dev/null +++ b/media-libs/libsdl2/libsdl2-2.32.72.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 +}