1 |
commit: 4231143b2a29252a293bdac1fcfb90d08dd3fb86 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 05:57:07 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 05:57:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4231143b |
7 |
|
8 |
media-libs/gst-plugins-good: fix building gst-plugins-good-0.10.31 with clang |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/558080 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
.../files/gst-plugins-good-0.10-clang.patch | 18 +++++++ |
15 |
.../gst-plugins-good-0.10.31-r2.ebuild | 61 ++++++++++++++++++++++ |
16 |
2 files changed, 79 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/gst-plugins-good/files/gst-plugins-good-0.10-clang.patch b/media-libs/gst-plugins-good/files/gst-plugins-good-0.10-clang.patch |
19 |
new file mode 100644 |
20 |
index 0000000..3016bfb |
21 |
--- /dev/null |
22 |
+++ b/media-libs/gst-plugins-good/files/gst-plugins-good-0.10-clang.patch |
23 |
@@ -0,0 +1,18 @@ |
24 |
+--- gst/goom/mmx.h.orig 2011-12-11 19:48:11.000000000 +0100 |
25 |
++++ gst/goom/mmx.h 2013-02-08 00:54:14.000000000 +0100 |
26 |
+@@ -715,13 +715,13 @@ void zoom_filter_xmmx (int prevX, int pr |
27 |
+ { \ |
28 |
+ printf("emms()\n"); \ |
29 |
+ __asm__ __volatile__ ("emms" \ |
30 |
+- "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \ |
31 |
++ "st", "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \ |
32 |
+ } |
33 |
+ |
34 |
+ #else |
35 |
+ |
36 |
+ #define emms() __asm__ __volatile__ ("emms"::: \ |
37 |
+- "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)") |
38 |
++ "st", "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)") |
39 |
+ |
40 |
+ #endif |
41 |
+ |
42 |
|
43 |
diff --git a/media-libs/gst-plugins-good/gst-plugins-good-0.10.31-r2.ebuild b/media-libs/gst-plugins-good/gst-plugins-good-0.10.31-r2.ebuild |
44 |
new file mode 100644 |
45 |
index 0000000..7cc4221 |
46 |
--- /dev/null |
47 |
+++ b/media-libs/gst-plugins-good/gst-plugins-good-0.10.31-r2.ebuild |
48 |
@@ -0,0 +1,61 @@ |
49 |
+# Copyright 1999-2016 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+# $Id$ |
52 |
+ |
53 |
+EAPI="5" |
54 |
+ |
55 |
+GST_ORG_MODULE="gst-plugins-good" |
56 |
+inherit eutils flag-o-matic gstreamer |
57 |
+ |
58 |
+DESCRIPTION="Basepack of plugins for gstreamer" |
59 |
+HOMEPAGE="https://gstreamer.freedesktop.org/" |
60 |
+ |
61 |
+LICENSE="LGPL-2.1+" |
62 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
63 |
+IUSE="+orc" |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
67 |
+ >=media-libs/gstreamer-0.10.36:${SLOT}[${MULTILIB_USEDEP}] |
68 |
+ >=media-libs/gst-plugins-base-0.10.36:${SLOT}[${MULTILIB_USEDEP}] |
69 |
+ >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] |
70 |
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
71 |
+ orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] ) |
72 |
+" |
73 |
+DEPEND="${RDEPEND} |
74 |
+ >=dev-util/gtk-doc-am-1.12 |
75 |
+ !<media-libs/gst-plugins-bad-0.10.22:${SLOT} |
76 |
+" |
77 |
+# audioparsers and qtmux moves |
78 |
+ |
79 |
+src_configure() { |
80 |
+ # gst doesnt handle optimisations well |
81 |
+ strip-flags |
82 |
+ replace-flags "-O3" "-O2" |
83 |
+ filter-flags "-fprefetch-loop-arrays" # see bug 22249 |
84 |
+ |
85 |
+ multilib-minimal_src_configure |
86 |
+} |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ epatch "${FILESDIR}/${PN}-0.10-clang.patch" |
90 |
+} |
91 |
+ |
92 |
+multilib_src_configure() { |
93 |
+ # Always enable optional bz2 support for matroska |
94 |
+ # Always enable optional zlib support for qtdemux and matroska |
95 |
+ # Many media files require these to work, as some container headers are often |
96 |
+ # compressed, bug #291154 |
97 |
+ gstreamer_multilib_src_configure \ |
98 |
+ --enable-bz2 \ |
99 |
+ --enable-zlib \ |
100 |
+ --disable-examples \ |
101 |
+ --with-default-audiosink=autoaudiosink \ |
102 |
+ --with-default-visualizer=goom |
103 |
+} |
104 |
+ |
105 |
+multilib_src_install_all() { |
106 |
+ DOCS="AUTHORS ChangeLog NEWS README RELEASE" |
107 |
+ einstalldocs |
108 |
+ prune_libtool_files --modules |
109 |
+} |