Сравнение sdl2-mixer-2.6.3-r1 с sdl2-mixer-2.8.1-r3

/usr/portage/media-libs/sdl2-mixer/sdl2-mixer-2.8.1-r3.ebuild 2025-09-08 18:21:12.177751592 +0300
4 4
EAPI=8
5 5

  
6 6
MY_P="SDL2_mixer-${PV}"
7
inherit multilib-minimal
7
inherit cmake-multilib
8 8

  
9 9
DESCRIPTION="Simple Direct Media Layer Mixer Library"
10 10
HOMEPAGE="https://github.com/libsdl-org/SDL_mixer"
......
13 13

  
14 14
LICENSE="ZLIB"
15 15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
17
IUSE="flac fluidsynth midi mod mp3 opus playtools static-libs timidity tremor vorbis +wav"
16
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc x86"
17
IUSE="flac fluidsynth gme midi mod modplug mp3 opus playtools stb timidity tremor vorbis +wav wavpack xmp"
18 18
REQUIRED_USE="
19 19
	midi? ( || ( timidity fluidsynth ) )
20 20
	timidity? ( midi )
21 21
	fluidsynth? ( midi )
22

  
23
	vorbis? ( ?? ( stb tremor ) )
24
	stb? ( vorbis )
22 25
	tremor? ( vorbis )
26

  
27
	mod? ( || ( modplug xmp ) )
28
	modplug? ( mod )
29
	xmp? ( mod )
23 30
"
24 31

  
25 32
RDEPEND="
26
	>=media-libs/libsdl2-2.0.7[${MULTILIB_USEDEP}]
27
	flac? ( >=media-libs/flac-1.2.1-r5:=[${MULTILIB_USEDEP}] )
33
	media-libs/libsdl2[${MULTILIB_USEDEP}]
34
	flac? ( media-libs/flac:=[${MULTILIB_USEDEP}] )
28 35
	midi? (
29
		fluidsynth? ( >=media-sound/fluidsynth-1.1.6-r1:=[${MULTILIB_USEDEP}] )
36
		fluidsynth? ( media-sound/fluidsynth:=[${MULTILIB_USEDEP}] )
30 37
		timidity? ( media-sound/timidity++ )
31 38
	)
32
	mod? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
33
	mp3? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
34
	opus? ( >=media-libs/opusfile-0.2 )
39
	mod? (
40
		modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] )
41
		xmp? ( media-libs/libxmp[${MULTILIB_USEDEP}] )
42
	)
43
	mp3? ( media-sound/mpg123-base[${MULTILIB_USEDEP}] )
44
	opus? ( media-libs/opusfile[${MULTILIB_USEDEP}] )
35 45
	playtools? (
36 46
		!media-libs/sdl-mixer[playtools]
37 47
		!media-libs/sdl3-mixer[playtools]
38 48
	)
39 49
	vorbis? (
40
		tremor? ( >=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}] )
41
		!tremor? ( >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] )
50
		stb? ( dev-libs/stb )
51
		tremor? ( media-libs/tremor[${MULTILIB_USEDEP}] )
52
		!stb? ( !tremor? ( media-libs/libvorbis[${MULTILIB_USEDEP}] ) )
42 53
	)
54
	gme? ( media-libs/game-music-emu[${MULTILIB_USEDEP}] )
55
	wavpack? ( media-sound/wavpack[${MULTILIB_USEDEP}] )
43 56
"
44 57
DEPEND="${RDEPEND}"
45 58

  
46
src_prepare() {
47
	default
48

  
49
	multilib_copy_sources
50
}
51

  
52 59
multilib_src_configure() {
53
	local myeconfargs=(
54
		$(use_enable static-libs static)
55
		--disable-sdltest
56
		--enable-music-cmd
57
		$(use_enable wav music-wave)
58
		$(use_enable mod music-mod)
59
		$(use_enable mod music-mod-modplug)
60
		--disable-music-mod-modplug-shared
61
		$(use_enable midi music-midi)
62
		$(use_enable timidity music-midi-timidity)
63
		$(use_enable fluidsynth music-midi-fluidsynth)
64
		--disable-music-midi-fluidsynth-shared
65
		$(use_enable vorbis music-ogg)
66
		--disable-music-ogg-stb
67
		$(usex vorbis \
68
			$(use_enable !tremor music-ogg-vorbis) \
69
			--disable-music-ogg-vorbis)
70
		--disable-music-ogg-vorbis-shared
71
		$(use_enable tremor music-ogg-tremor)
72
		--disable-music-ogg-tremor-shared
73
		$(use_enable flac music-flac)
74
		$(use_enable flac music-flac-libflac)
75
		--disable-music-flac-libflac-shared
76
		$(use_enable mp3 music-mp3)
77
		$(use_enable mp3 music-mp3-mpg123)
78
		--disable-music-mp3-mpg123-shared
79
		$(use_enable opus music-opus)
80
		--disable-music-opus-shared
60
	local mycmakeargs=(
61
		-DSDL2MIXER_DEPS_SHARED=no # aka, no dlopen() (bug #950965)
62
		-DSDL2MIXER_CMD=yes
63
		-DSDL2MIXER_WAVE=$(usex wav)
64
		-DSDL2MIXER_MOD=$(usex mod)
65
		-DSDL2MIXER_MOD_MODPLUG=$(usex modplug)
66
		-DSDL2MIXER_MOD_XMP=$(usex xmp)
67
		-DSDL2MIXER_MIDI=$(usex midi)
68
		-DSDL2MIXER_MIDI_TIMIDITY=$(usex timidity)
69
		-DSDL2MIXER_MIDI_FLUIDSYNTH=$(usex fluidsynth)
70
		-DSDL2MIXER_VORBIS=$(usex vorbis $(usex stb STB $(usex tremor TREMOR VORBISFILE) ) no )
71
		-DSDL2MIXER_FLAC=$(usex flac)
72
		-DSDL2MIXER_FLAC_LIBFLAC=$(usex flac)
73
		-DSDL2MIXER_MP3=$(usex mp3)
74
		-DSDL2MIXER_MP3_MPG123=$(usex mp3)
75
		-DSDL2MIXER_OPUS=$(usex opus)
76
		-DSDL2MIXER_GME=$(usex gme)
77
		-DSDL2MIXER_WAVPACK=$(usex wavpack)
78
		-DSDL2MIXER_SAMPLES=$(usex playtools)
79
		-DSDL2MIXER_SAMPLES_INSTALL=$(usex playtools)
81 80
	)
82

  
83
	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
84
}
85

  
86
multilib_src_install() {
87
	emake DESTDIR="${D}" install
88
	if multilib_is_native_abi && use playtools ; then
89
		emake DESTDIR="${D}" install-bin
90
	fi
81
	cmake_src_configure
91 82
}
92 83

  
93 84
multilib_src_install_all() {
94 85
	dodoc {CHANGES,README}.txt
95
	find "${D}" -name '*.la' -delete || die
86
	rm -r "${ED}"/usr/share/licenses || die
96 87
}
97 88

  
98 89
pkg_postinst() {
Спасибо!