From: Ian Delaney Date: Mon, 8 Feb 2016 14:06:01 +0000 (+0800) Subject: media-sound/gejengel: Patch to fix compilation with USE="debug" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=addbbd92ed53afa393e36644f8fe7af16431c6ce;p=gentoo.git media-sound/gejengel: Patch to fix compilation with USE="debug" 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 --- diff --git a/media-sound/gejengel/files/bckport-debug.patch b/media-sound/gejengel/files/bckport-debug.patch new file mode 100644 index 000000000000..76e42bec1bf6 --- /dev/null +++ b/media-sound/gejengel/files/bckport-debug.patch @@ -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(); diff --git a/media-sound/gejengel/gejengel-0.1.4-r2.ebuild b/media-sound/gejengel/gejengel-0.1.4-r2.ebuild index 2a4d426f1879..a442f3be09a6 100644 --- a/media-sound/gejengel/gejengel-0.1.4-r2.ebuild +++ b/media-sound/gejengel/gejengel-0.1.4-r2.ebuild @@ -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" \