media-sound/gejengel: Patch to fix compilation with USE="debug"
authorIan Delaney <idella4@gentoo.org>
Mon, 8 Feb 2016 14:06:01 +0000 (22:06 +0800)
committerIan Delaney <idella4@gentoo.org>
Mon, 8 Feb 2016 14:26:25 +0000 (22:26 +0800)
Patch provided by the proxy maintainer sourced from gentoo bug
Patch backported from 0.1.6

Gentoo bug: #570478

Package-Manager: portage-2.2.26

media-sound/gejengel/files/bckport-debug.patch [new file with mode: 0644]
media-sound/gejengel/gejengel-0.1.4-r2.ebuild

diff --git a/media-sound/gejengel/files/bckport-debug.patch b/media-sound/gejengel/files/bckport-debug.patch
new file mode 100644 (file)
index 0000000..76e42be
--- /dev/null
@@ -0,0 +1,14 @@
+--- src/AudioDecoder/ffmpegdecoder.cpp.orig
++++ src/AudioDecoder/ffmpegdecoder.cpp
+@@ -98,7 +98,11 @@ void FFmpegDecoder::initialise()
+     }
+ #ifdef ENABLE_DEBUG
++#if LIBAVCODEC_VERSION_MAJOR < 53
+     dump_format(m_pFormatContext, 0, m_Filepath.c_str(), false);
++#else
++    av_dump_format(m_pFormatContext, 0, m_Filepath.c_str(), false);
++#endif
+ #endif
+     initializeAudio();
index 2a4d426f18793b004de2559b7abe4e85c05d83c4..a442f3be09a6bc27219ab31e1defcae74f6bb668 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -42,7 +42,8 @@ src_prepare() {
                "${FILESDIR}"/${P}-ffmpeg-1.patch \
                "${FILESDIR}"/${P}-libav9.patch \
                "${FILESDIR}"/${P}-ffmpeg2.patch \
-               "${FILESDIR}"/${PV}-flac_ln.patch
+               "${FILESDIR}"/${PV}-flac_ln.patch \
+               "${FILESDIR}"/bckport-debug.patch
 
        # Remove Vesion and Encoding from the desktop file
        sed -i -e "/Version/d" -e "/Encoding/d" \