Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sdl2-mixer/
Date: Sat, 01 Sep 2018 20:18:05
Message-Id: 1535833067.c2eb99a3fb137e8e65712a119d36d804260413d0.asturm@gentoo
1 commit: c2eb99a3fb137e8e65712a119d36d804260413d0
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 1 20:06:52 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 1 20:17:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2eb99a3
7
8 media-libs/sdl2-mixer: Raise media-libs/libsdl2 min depend to 2.0.7
9
10 https.
11 Minor streamlining, sorting, style.
12
13 Closes: https://bugs.gentoo.org/640964
14 Package-Manager: Portage-2.3.48, Repoman-2.3.10
15
16 media-libs/sdl2-mixer/sdl2-mixer-2.0.2-r1.ebuild | 113 +++++++++++++++++++++++
17 1 file changed, 113 insertions(+)
18
19 diff --git a/media-libs/sdl2-mixer/sdl2-mixer-2.0.2-r1.ebuild b/media-libs/sdl2-mixer/sdl2-mixer-2.0.2-r1.ebuild
20 new file mode 100644
21 index 00000000000..388f490aac1
22 --- /dev/null
23 +++ b/media-libs/sdl2-mixer/sdl2-mixer-2.0.2-r1.ebuild
24 @@ -0,0 +1,113 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +MY_P="SDL2_mixer-${PV}"
31 +inherit multilib-minimal
32 +
33 +DESCRIPTION="Simple Direct Media Layer Mixer Library"
34 +HOMEPAGE="https://www.libsdl.org/projects/SDL_mixer/"
35 +SRC_URI="https://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz"
36 +
37 +LICENSE="ZLIB"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm ~hppa ~x86"
40 +IUSE="flac fluidsynth mad midi mikmod mod modplug mp3 playtools smpeg static-libs timidity tremor vorbis +wav"
41 +REQUIRED_USE="
42 + midi? ( || ( timidity fluidsynth ) )
43 + timidity? ( midi )
44 + fluidsynth? ( midi )
45 + mp3? ( || ( smpeg mad ) )
46 + smpeg? ( mp3 )
47 + mad? ( mp3 )
48 + mod? ( || ( mikmod modplug ) )
49 + mikmod? ( mod )
50 + modplug? ( mod )
51 + tremor? ( vorbis )
52 +"
53 +
54 +RDEPEND="
55 + >=media-libs/libsdl2-2.0.7[${MULTILIB_USEDEP}]
56 + flac? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}] )
57 + midi? (
58 + fluidsynth? ( >=media-sound/fluidsynth-1.1.6-r1[${MULTILIB_USEDEP}] )
59 + timidity? ( media-sound/timidity++ )
60 + )
61 + mod? (
62 + mikmod? ( >=media-libs/libmikmod-3.3.6-r1[${MULTILIB_USEDEP}] )
63 + modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
64 + )
65 + mp3? (
66 + mad? ( >=media-libs/libmad-0.15.1b-r8[${MULTILIB_USEDEP}] )
67 + smpeg? ( >=media-libs/smpeg2-2.0.0-r1[${MULTILIB_USEDEP}] )
68 + )
69 + vorbis? (
70 + tremor? ( >=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}] )
71 + !tremor? (
72 + >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
73 + >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )
74 + )
75 +"
76 +DEPEND="${RDEPEND}"
77 +
78 +S="${WORKDIR}/${MY_P}"
79 +
80 +PATCHES=( "${FILESDIR}"/${P}-smpeg.patch )
81 +
82 +multilib_src_configure() {
83 + local myeconfargs=(
84 + $(use_enable static-libs static)
85 + --disable-sdltest
86 + --enable-music-cmd
87 + $(use_enable wav music-wave)
88 + $(use_enable mod music-mod)
89 + $(use_enable modplug music-mod-modplug)
90 + --disable-music-mod-modplug-shared
91 + $(use_enable mikmod music-mod-mikmod)
92 + --disable-music-mod-mikmod-shared
93 + $(use_enable midi music-midi)
94 + $(use_enable timidity music-midi-timidity)
95 + $(use_enable fluidsynth music-midi-fluidsynth)
96 + --disable-music-midi-fluidsynth-shared
97 + $(use_enable vorbis music-ogg)
98 + $(use_enable tremor music-ogg-tremor)
99 + --disable-music-ogg-shared
100 + $(use_enable flac music-flac)
101 + --disable-music-flac-shared
102 + $(use_enable mp3 music-mp3)
103 + $(use_enable smpeg music-mp3-smpeg)
104 + --disable-music-mp3-smpeg-shared
105 + --disable-smpegtest
106 + $(use_enable mad music-mp3-mad-gpl)
107 + LIBMIKMOD_CONFIG=${EPREFIX}/usr/bin/${CHOST}-libmikmod-config
108 + )
109 + ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
110 +}
111 +
112 +multilib_src_install() {
113 + emake DESTDIR="${D}" install
114 + if multilib_is_native_abi && use playtools ; then
115 + emake DESTDIR="${D}" install-bin
116 + fi
117 +}
118 +
119 +multilib_src_install_all() {
120 + dodoc {CHANGES,README}.txt
121 + find "${D}" -name '*.la' -delete || die
122 +}
123 +
124 +pkg_postinst() {
125 + # bug 412035
126 + # https://bugs.gentoo.org/show_bug.cgi?id=412035
127 + if use midi && use fluidsynth; then
128 + ewarn "FluidSynth support requires you to set the SDL_SOUNDFONTS"
129 + ewarn "environment variable to the location of a SoundFont file"
130 + ewarn "unless the game or application happens to do this for you."
131 + if use timidity; then
132 + ewarn "Failing to do so will result in Timidity being used instead."
133 + else
134 + ewarn "Failing to do so will result in silence."
135 + fi
136 + fi
137 +}