commit: 4c3ec69b505fd8fcee9bc75b801b3a4d254158cd Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Feb 18 13:35:37 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 18 13:35:37 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c3ec69b
media-libs/libsdl: add 1.2.74 Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/libsdl/Manifest | 1 + media-libs/libsdl/libsdl-1.2.74.ebuild | 51 ++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/media-libs/libsdl/Manifest b/media-libs/libsdl/Manifest index 3bc75be0f4a0..65b802a3df77 100644 --- a/media-libs/libsdl/Manifest +++ b/media-libs/libsdl/Manifest @@ -1 +1,2 @@ DIST libsdl-1.2.68.tar.gz 460180 BLAKE2B c821772d5c43a9406e06f89d7f0248e051b2cfb0aff33e025dc645d6ba17277ca6db44a586e65fda48155dfb6c48a9d0459d59319ea6750562caa96194ff232b SHA512 d0e71e75f312402bf075f6553d9fd6493a3db9dd42719bb753287a35e6c40ee37c6092b157ff2384f3055400a3113645595d1269590cd50ea1e0c8f247240858 +DIST libsdl-1.2.74.tar.gz 496038 BLAKE2B 95085c3f3818cbe35776d5c3bb75fad3f4d9867f71fe5d8edb7b5ce072b8aee9476abb63fa411cf6e9cd391fab1b2081d14ab29199b481b42b5c9dafa940772d SHA512 3b313f1d6f8b803a0d0edda2305054f14477c2c08243a518592edc7306aadd7fb85427202c596ac0f3c84d4e471a9c5817ad0558c0217d20d5716aba04372ca6 diff --git a/media-libs/libsdl/libsdl-1.2.74.ebuild b/media-libs/libsdl/libsdl-1.2.74.ebuild new file mode 100644 index 000000000000..d4aaedd0bcff --- /dev/null +++ b/media-libs/libsdl/libsdl-1.2.74.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib dot-a + +DESCRIPTION="Simple Direct Media Layer 1.2 compatibility wrapper around SDL2" +HOMEPAGE="https://github.com/libsdl-org/sdl12-compat" +if [[ ${PV} == *_p* ]] ; then + MY_COMMIT="f94a1ec0069266e40843138d0c5dd2fc6d43734c" + SRC_URI="https://github.com/libsdl-org/sdl12-compat/archive/${MY_COMMIT}.tar.gz -> libsdl-${PV}.tar.gz" + S="${WORKDIR}"/sdl12-compat-${MY_COMMIT} +else + SRC_URI="https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/sdl12-compat-release-${PV}" +fi + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +# IUSE dropped from real SDL1: aalib custom-cflags dga fbcon libcaca nas oss pulseaudio static-libs tslib xinerama xv +IUSE="alsa +joystick opengl +sound test +video X" +REQUIRED_USE="test? ( joystick opengl sound video )" + +# The tests are more like example programs. +RESTRICT="test" + +RDEPEND=" + media-libs/libsdl2[${MULTILIB_USEDEP},alsa=,joystick=,opengl=,sound=,video=,X=] +" + +DEPEND=" + ${RDEPEND} + test? ( virtual/opengl[${MULTILIB_USEDEP}] ) +" + +src_configure() { + lto-guarantee-fat + local mycmakeargs=( + -DSDL12TESTS=$(usex test) + ) + + cmake-multilib_src_configure +} + +src_install() { + cmake-multilib_src_install + strip-lto-bytecode +}
