1 |
commit: 6b3d75d72176eea6a04efd494105f0af5781255d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 21 23:22:25 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 21 23:22:40 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b3d75d7 |
7 |
|
8 |
media-sound/moc: Patch for converting 'audioconvert.h' to 'channel_layout.h' |
9 |
|
10 |
Gentoo-Bug: 575328 |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
.../moc/files/moc-2.6_alpha1-audioconvert.h.patch | 20 ++++++++++++++++++++ |
15 |
media-sound/moc/moc-2.6_alpha1-r1.ebuild | 1 + |
16 |
2 files changed, 21 insertions(+) |
17 |
|
18 |
diff --git a/media-sound/moc/files/moc-2.6_alpha1-audioconvert.h.patch b/media-sound/moc/files/moc-2.6_alpha1-audioconvert.h.patch |
19 |
new file mode 100644 |
20 |
index 0000000..9ade090 |
21 |
--- /dev/null |
22 |
+++ b/media-sound/moc/files/moc-2.6_alpha1-audioconvert.h.patch |
23 |
@@ -0,0 +1,20 @@ |
24 |
+Patch for building with latest FFmpeg 3.0 |
25 |
+https://bugs.gentoo.org/show_bug.cgi?id=575328 |
26 |
+ |
27 |
+Inspired by |
28 |
+https://raw.githubusercontent.com/Homebrew/patches/1282e60/moc/moc-2.5.0.diff |
29 |
+ |
30 |
+We can unconditionally depend on the existence of 'channel_layout.h', |
31 |
+as even the oldest version in the Gentoo tree contains this header. |
32 |
+ |
33 |
+--- moc-2.6-alpha1/decoder_plugins/ffmpeg/ffmpeg.c |
34 |
++++ moc-2.6-alpha1/decoder_plugins/ffmpeg/ffmpeg.c |
35 |
+@@ -66,7 +66,7 @@ |
36 |
+ GCC_DIAG_ON(deprecated-declarations) |
37 |
+ #include <libavutil/mathematics.h> |
38 |
+ #ifdef HAVE_AV_GET_CHANNEL_LAYOUT_NB_CHANNELS |
39 |
+-#include <libavutil/audioconvert.h> |
40 |
++#include <libavutil/channel_layout.h> |
41 |
+ #endif |
42 |
+ |
43 |
+ /* FFmpeg also likes common names, without that, our common.h and log.h |
44 |
|
45 |
diff --git a/media-sound/moc/moc-2.6_alpha1-r1.ebuild b/media-sound/moc/moc-2.6_alpha1-r1.ebuild |
46 |
index a5b24cd..3901a15 100644 |
47 |
--- a/media-sound/moc/moc-2.6_alpha1-r1.ebuild |
48 |
+++ b/media-sound/moc/moc-2.6_alpha1-r1.ebuild |
49 |
@@ -46,6 +46,7 @@ DEPEND="${RDEPEND} |
50 |
virtual/pkgconfig" |
51 |
PATCHES=( |
52 |
"${FILESDIR}/${P}-fix-ncurses-underlinking.patch" |
53 |
+ "${FILESDIR}/${P}-audioconvert.h.patch" |
54 |
) |
55 |
S="${WORKDIR}/${PN}-${MY_PV}" |