diff options
author | James Le Cuirot <chewi@gentoo.org> | 2018-09-01 15:13:40 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2018-09-01 15:13:50 +0100 |
commit | 94c9568fe73d41a3edac521bea8bad10d3adb026 (patch) | |
tree | ed1c066334c3a1e034c7fdbd4e97b819cc24836f /media-libs/sdl2-mixer | |
parent | media-libs/smpeg2: Add ~arm keyword (diff) | |
download | gentoo-94c9568fe73d41a3edac521bea8bad10d3adb026.tar.gz gentoo-94c9568fe73d41a3edac521bea8bad10d3adb026.tar.bz2 gentoo-94c9568fe73d41a3edac521bea8bad10d3adb026.zip |
media-libs/sdl2-mixer: Patch to fix 2.0.2 smpeg build issue
Closes: https://bugs.gentoo.org/636014
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'media-libs/sdl2-mixer')
-rw-r--r-- | media-libs/sdl2-mixer/files/sdl2-mixer-2.0.2-smpeg.patch | 21 | ||||
-rw-r--r-- | media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/sdl2-mixer/files/sdl2-mixer-2.0.2-smpeg.patch b/media-libs/sdl2-mixer/files/sdl2-mixer-2.0.2-smpeg.patch new file mode 100644 index 000000000000..1377feddb39c --- /dev/null +++ b/media-libs/sdl2-mixer/files/sdl2-mixer-2.0.2-smpeg.patch @@ -0,0 +1,21 @@ +--- SDL2_mixer-2.0.2/music_smpeg-orig.c 2017-12-06 20:47:21.691153833 -0500 ++++ SDL2_mixer-2.0.2/music_smpeg.c 2017-12-06 20:47:30.032153222 -0500 +@@ -138,7 +138,7 @@ + SDL_free(music); + return NULL; + } +- smpeg.SMPEG_actualSpec(mp3, &music_spec); ++ smpeg.SMPEG_actualSpec(music->mp3, &music_spec); + + music->freesrc = freesrc; + return music; +--- SDL2_mixer-2.0.2/music_smpeg-orig.c 2017-12-06 21:03:44.907081811 -0500 ++++ SDL2_mixer-2.0.2/music_smpeg.c 2017-12-06 23:34:36.696418752 -0500 +@@ -174,6 +174,7 @@ + int left = (len - smpeg.SMPEG_playAudio(music->mp3, stream, len)); + if (left > 0) { + stream += (len - left); ++ } + return left; + } + diff --git a/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild b/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild index 53e5155abeed..440a2a2ff04d 100644 --- a/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild +++ b/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild @@ -50,6 +50,10 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${P}-smpeg.patch +) + multilib_src_configure() { local myeconfargs=( $(use_enable static-libs static) |