diff options
author | Sam James <sam@gentoo.org> | 2023-09-27 04:31:56 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-27 04:31:56 +0100 |
commit | 7a5988d6db2b42243501826054f7b86c087050b4 (patch) | |
tree | 00ce8bba06b1497a7d130acbf1c2ee77bee72fc8 /media-libs/libsdl/libsdl-1.2.68.ebuild | |
parent | media-video/pipewire: Stabilize 0.3.80 arm64, #914776 (diff) | |
download | gentoo-7a5988d6db2b42243501826054f7b86c087050b4.tar.gz gentoo-7a5988d6db2b42243501826054f7b86c087050b4.tar.bz2 gentoo-7a5988d6db2b42243501826054f7b86c087050b4.zip |
media-libs/libsdl: add 1.2.68
The release notes mention sdl-perl works now, so maybe it fixes our problems
(or perhaps the hang I've seen even if not the assert).
See https://github.com/libsdl-org/sdl12-compat/releases/tag/release-1.2.68.
Bug: https://bugs.gentoo.org/907609
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libsdl/libsdl-1.2.68.ebuild')
-rw-r--r-- | media-libs/libsdl/libsdl-1.2.68.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/media-libs/libsdl/libsdl-1.2.68.ebuild b/media-libs/libsdl/libsdl-1.2.68.ebuild new file mode 100644 index 000000000000..20bb9b03f3f6 --- /dev/null +++ b/media-libs/libsdl/libsdl-1.2.68.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +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="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv" + +# 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() { + local mycmakeargs=( + -DSDL12TESTS=$(usex test) + ) + + cmake-multilib_src_configure +} |