1 |
commit: 60fe6a5bfba34fdf503055777159ca8ceaf35624 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 4 10:02:55 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 4 10:02:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60fe6a5b |
7 |
|
8 |
media-video/mplayer: remove old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
media-video/mplayer/Manifest | 1 - |
14 |
.../mplayer/files/mplayer-1.0_rc4-pkg-config.patch | 74 --- |
15 |
.../mplayer/files/mplayer-1.1-codecid.patch | 19 - |
16 |
media-video/mplayer/files/mplayer-1.1-ffmpeg.patch | 34 -- |
17 |
.../mplayer/files/mplayer-1.1-libav-0.8.patch | 21 - |
18 |
.../mplayer/files/mplayer-1.1-libav-9.patch | 488 --------------- |
19 |
.../mplayer/files/mplayer-1.1-missingbreak.patch | 18 - |
20 |
.../mplayer/files/mplayer-1.1-planaraudio.patch | 138 ----- |
21 |
.../files/mplayer-1.1.1-avcodecidsubrip.patch | 17 - |
22 |
.../files/mplayer-1.1.1-codecidsubrip.patch | 17 - |
23 |
media-video/mplayer/mplayer-1.1.1-r1.ebuild | 658 --------------------- |
24 |
11 files changed, 1485 deletions(-) |
25 |
|
26 |
diff --git a/media-video/mplayer/Manifest b/media-video/mplayer/Manifest |
27 |
index 9ea4a43..87b0dfb 100644 |
28 |
--- a/media-video/mplayer/Manifest |
29 |
+++ b/media-video/mplayer/Manifest |
30 |
@@ -1,4 +1,3 @@ |
31 |
-DIST MPlayer-1.1.1.tar.xz 11202492 SHA256 ce8fc7c3179e6a57eb3a58cb7d1604388756b8a61764cc93e095e7aff3798c76 SHA512 06371d47b02caec83c7662f6bb4a827eafb7f3309f6cda959a0f49b647df031166a6e7c5d530b57b580104289ee260aa96f3f43cbfffcef816cea776b0d5aed0 WHIRLPOOL 3cd0f3845cd45961b778c384a322bc628cc9cd6fef3801b62389bd616a443ba5270c378a889412a7dc72d37ff26704d5d989d2c995a2a4a6540f6313ccacbb63 |
32 |
DIST MPlayer-1.2.1.tar.xz 13029936 SHA256 831baf097d899bdfcdad0cb80f33cc8dff77fa52cb306bee5dee6843b5c52b5f SHA512 e6dd6de73ede9743855fab7f7316de2e957ac5a5b8fc8324ef3d57ca9796b0cb03676dee46b3827d932050836d43a6ad08f925cad3d28493a26933dbafdbb506 WHIRLPOOL d8f056a8a1d6cf2a7c99687bec9e34d123f574391df02a29959355c6e44f35f1f9a56ea5f2d0f6d1037d94de0897689429e78aa7e15f29f3df3042bbfc579c72 |
33 |
DIST MPlayer-1.2.tar.xz 13019196 SHA256 ffe7f6f10adf2920707e8d6c04f0d3ed34c307efc6cd90ac46593ee8fba2e2b6 SHA512 ac10dd4facd0d8fbc3454a3a2eae0e0d2ed76fa60f30ebd6f8495632e4541af712ab2d005e88bc2baa8302ccb98d63ba80a051db80d2b76ac928a2bd779b47aa WHIRLPOOL 65bcda55684dced6b286e505df4180f849d6a9f2e1e44560f3393311694ea5a0e96cd7c454b8bbc4198b92c1fd3b0fb4f7c5f6842710b40dc47216037a88b33b |
34 |
DIST MPlayer-1.3.0.tar.xz 13278984 SHA256 3ad0846c92d89ab2e4e6fb83bf991ea677e7aa2ea775845814cbceb608b09843 SHA512 10007e471a941f8a3dabf6149e6e44fc1a364a9ccb5cd08c670fc22560e5053a15f3249e9d3e18cdda06b6b7e77e537026b5d33dc356e928c63747d6ed73dbae WHIRLPOOL 4aaa9609b0c27c0363671e32fb6b7cac8d2c0944c3425c8e76de0250fb76865d5f47c341b11704a0ea980401288d1d28fcd172a5f8469c9713ec37f977bcb088 |
35 |
|
36 |
diff --git a/media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch b/media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch |
37 |
deleted file mode 100644 |
38 |
index a93136c..0000000 |
39 |
--- a/media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch |
40 |
+++ /dev/null |
41 |
@@ -1,74 +0,0 @@ |
42 |
-respect $PKG_CONFIG, and use pkg-config for libdvdnav/libdvdread by |
43 |
-default rather than the ugly xxx-config scripts |
44 |
- |
45 |
-https://bugs.gentoo.org/410189 |
46 |
- |
47 |
-hassle vapier@g.o if this causes issues |
48 |
- |
49 |
---- configure |
50 |
-+++ configure |
51 |
-@@ -4042,7 +4042,7 @@ echores "$_apple_ir" |
52 |
- fi #if linux |
53 |
- |
54 |
- echocheck "pkg-config" |
55 |
--_pkg_config=pkg-config |
56 |
-+_pkg_config=${PKG_CONFIG:-pkg-config} |
57 |
- if $($_pkg_config --version > /dev/null 2>&1); then |
58 |
- if test "$ld_static"; then |
59 |
- _pkg_config="$_pkg_config --static" |
60 |
-@@ -5740,8 +5740,13 @@ if test "$_dvdread_internal" = auto ; th |
61 |
- elif test "$_dvdread" = auto ; then |
62 |
- _dvdread=no |
63 |
- if test "$_dl" = yes; then |
64 |
-- _dvdreadcflags=$($_dvdreadconfig --cflags 2> /dev/null) |
65 |
-- _dvdreadlibs=$($_dvdreadconfig --libs 2> /dev/null) |
66 |
-+ if ! $_pkg_config --exists dvdread ; then |
67 |
-+ _dvdreadcflags=$($_pkgconfig dvdread --cflags) |
68 |
-+ _dvdreadlibs=$($_pkgconfig dvdread --libs) |
69 |
-+ else |
70 |
-+ _dvdreadcflags=$($_dvdreadconfig --cflags 2> /dev/null) |
71 |
-+ _dvdreadlibs=$($_dvdreadconfig --libs 2> /dev/null) |
72 |
-+ fi |
73 |
- if header_check dvdread/dvd_reader.h $_dvdreadcflags $_dvdreadlibs $ld_dl ; then |
74 |
- _dvdread=yes |
75 |
- extra_cflags="$extra_cflags $_dvdreadcflags" |
76 |
-@@ -7721,13 +7726,20 @@ if test "$_dvdnav" = auto ; then |
77 |
- dvdnav_internal=yes |
78 |
- res_comment="internal" |
79 |
- else |
80 |
-- $_dvdnavconfig --version --minilibs >> $TMPLOG 2>&1 || _dvdnav=no |
81 |
-+ if ! $_pkg_config --exists dvdnavmini ; then |
82 |
-+ $_dvdnavconfig --version --minilibs >> $TMPLOG 2>&1 || _dvdnav=no |
83 |
-+ fi |
84 |
- fi |
85 |
- fi |
86 |
- if test "$_dvdnav" = auto ; then |
87 |
- _dvdnav=no |
88 |
-- _dvdnavdir=$($_dvdnavconfig --cflags) |
89 |
-- _dvdnavlibs=$($_dvdnavconfig --libs) |
90 |
-+ if $_pkg_config --exists dvdnavmini ; then |
91 |
-+ _dvdnavdir=$($_pkg_config --cflags dvdnavmini) |
92 |
-+ _dvdnavlibs=$($_pkg_config --libs dvdnavmini) |
93 |
-+ else |
94 |
-+ _dvdnavdir=$($_dvdnavconfig --cflags) |
95 |
-+ _dvdnavlibs=$($_dvdnavconfig --libs) |
96 |
-+ fi |
97 |
- statement_check_broken stdint.h dvdnav/dvdnav.h 'dvdnav_t *dvd = 0' $_dvdnavdir $_dvdnavlibs $ld_dl $ld_pthread && _dvdnav=yes |
98 |
- fi |
99 |
- if test "$_dvdnav" = yes ; then |
100 |
-@@ -7736,8 +7748,13 @@ if test "$_dvdnav" = yes ; then |
101 |
- cflags_libdvdnav="-Ilibdvdnav" |
102 |
- inputmodules="dvdnav(internal) $inputmodules" |
103 |
- else |
104 |
-- extra_cflags="$extra_cflags $($_dvdnavconfig --cflags)" |
105 |
-- extra_ldflags="$extra_ldflags $($_dvdnavconfig --minilibs)" |
106 |
-+ if $_pkg_config --exists dvdnavmini ; then |
107 |
-+ extra_cflags="$extra_cflags $($_pkg_config --cflags dvdnavmini)" |
108 |
-+ extra_ldflags="$extra_ldflags $($_pkg_config --libs dvdnavmini)" |
109 |
-+ else |
110 |
-+ extra_cflags="$extra_cflags $($_dvdnavconfig --cflags)" |
111 |
-+ extra_ldflags="$extra_ldflags $($_dvdnavconfig --minilibs)" |
112 |
-+ fi |
113 |
- inputmodules="dvdnav $inputmodules" |
114 |
- fi |
115 |
- else |
116 |
|
117 |
diff --git a/media-video/mplayer/files/mplayer-1.1-codecid.patch b/media-video/mplayer/files/mplayer-1.1-codecid.patch |
118 |
deleted file mode 100644 |
119 |
index 38a58aa..0000000 |
120 |
--- a/media-video/mplayer/files/mplayer-1.1-codecid.patch |
121 |
+++ /dev/null |
122 |
@@ -1,19 +0,0 @@ |
123 |
-r35075 | iive | 2012-08-11 12:42:43 -0400 (Sat, 11 Aug 2012) | 4 lines |
124 |
- |
125 |
-Quick Build Fix. FFmpeg CodecID is redefined as AVCodecID. |
126 |
-It needs the FFmpeg includes in all places that use it. |
127 |
- |
128 |
- |
129 |
-Index: libmpdemux/mp_taglists.h |
130 |
-=================================================================== |
131 |
---- libmpdemux/mp_taglists.h (revision 35074) |
132 |
-+++ libmpdemux/mp_taglists.h (revision 35075) |
133 |
-@@ -20,6 +20,8 @@ |
134 |
- #define MPLAYER_MP_TAGLISTS_H |
135 |
- |
136 |
- #include <stdint.h> |
137 |
-+#include "libavutil/common.h" |
138 |
-+#include "libavformat/avformat.h" |
139 |
- |
140 |
- enum CodecID mp_tag2codec_id(uint32_t tag, int audio); |
141 |
- uint32_t mp_codec_id2tag(enum CodecID codec_id, uint32_t old_tag, int audio); |
142 |
|
143 |
diff --git a/media-video/mplayer/files/mplayer-1.1-ffmpeg.patch b/media-video/mplayer/files/mplayer-1.1-ffmpeg.patch |
144 |
deleted file mode 100644 |
145 |
index 6ec6ef7..0000000 |
146 |
--- a/media-video/mplayer/files/mplayer-1.1-ffmpeg.patch |
147 |
+++ /dev/null |
148 |
@@ -1,34 +0,0 @@ |
149 |
-Let it build with ffmpeg 0.10.3. |
150 |
- |
151 |
-Index: MPlayer-1.1/fmt-conversion.c |
152 |
-=================================================================== |
153 |
---- MPlayer-1.1.orig/fmt-conversion.c |
154 |
-+++ MPlayer-1.1/fmt-conversion.c |
155 |
-@@ -65,9 +65,13 @@ static const struct { |
156 |
- {IMGFMT_RGBA, PIX_FMT_RGB0}, |
157 |
- {IMGFMT_RGB64LE, PIX_FMT_RGBA64LE}, |
158 |
- {IMGFMT_RGB64BE, PIX_FMT_RGBA64BE}, |
159 |
-+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 50, 0) |
160 |
- {IMGFMT_422A, PIX_FMT_YUVA422P}, |
161 |
-+#endif |
162 |
-+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 35, 101) |
163 |
- {IMGFMT_444A, PIX_FMT_YUVA444P}, |
164 |
- #endif |
165 |
-+#endif |
166 |
- #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 20, 1) |
167 |
- {IMGFMT_GBR24P, PIX_FMT_GBRP}, |
168 |
- #endif |
169 |
-Index: MPlayer-1.1/libmpdemux/mp_taglists.c |
170 |
-=================================================================== |
171 |
---- MPlayer-1.1.orig/libmpdemux/mp_taglists.c |
172 |
-+++ MPlayer-1.1/libmpdemux/mp_taglists.c |
173 |
-@@ -125,7 +125,9 @@ static const struct AVCodecTag mp_bmp_ta |
174 |
- { CODEC_ID_BMV_VIDEO, MKTAG('B', 'M', 'V', 'V')}, |
175 |
- { CODEC_ID_C93, MKTAG('C', '9', '3', 'V')}, |
176 |
- { CODEC_ID_CDGRAPHICS, MKTAG('C', 'D', 'G', 'R')}, |
177 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(54,1,0) |
178 |
- { CODEC_ID_CDXL, MKTAG('C', 'D', 'X', 'L')}, |
179 |
-+#endif |
180 |
- { CODEC_ID_CMV, MKTAG('M', 'V', 'I', 'f')}, |
181 |
- { CODEC_ID_DFA, MKTAG('C', 'D', 'F', 'A')}, |
182 |
- { CODEC_ID_DNXHD, MKTAG('A', 'V', 'd', 'n')}, |
183 |
|
184 |
diff --git a/media-video/mplayer/files/mplayer-1.1-libav-0.8.patch b/media-video/mplayer/files/mplayer-1.1-libav-0.8.patch |
185 |
deleted file mode 100644 |
186 |
index acfb605..0000000 |
187 |
--- a/media-video/mplayer/files/mplayer-1.1-libav-0.8.patch |
188 |
+++ /dev/null |
189 |
@@ -1,21 +0,0 @@ |
190 |
---- mplayer-1.0~svn34750.orig/libmpcodecs/vd_ffmpeg.c |
191 |
-+++ mplayer-1.0~svn34750/libmpcodecs/vd_ffmpeg.c |
192 |
-@@ -47,6 +47,18 @@ |
193 |
- |
194 |
- #include "libavcodec/avcodec.h" |
195 |
- |
196 |
-+#ifndef AV_EF_COMPLIANT |
197 |
-+#define AV_EF_COMPLIANT 0 |
198 |
-+#endif |
199 |
-+ |
200 |
-+#ifndef AV_EF_CAREFUL |
201 |
-+#define AV_EF_CAREFUL 0 |
202 |
-+#endif |
203 |
-+ |
204 |
-+#ifndef AV_EF_AGGRESSIVE |
205 |
-+#define AV_EF_AGGRESSIVE 0 |
206 |
-+#endif |
207 |
-+ |
208 |
- #if AVPALETTE_SIZE > 1024 |
209 |
- #error palette too large, adapt libmpcodecs/vf.c:vf_get_image |
210 |
- #endif |
211 |
|
212 |
diff --git a/media-video/mplayer/files/mplayer-1.1-libav-9.patch b/media-video/mplayer/files/mplayer-1.1-libav-9.patch |
213 |
deleted file mode 100644 |
214 |
index a2630b6..0000000 |
215 |
--- a/media-video/mplayer/files/mplayer-1.1-libav-9.patch |
216 |
+++ /dev/null |
217 |
@@ -1,488 +0,0 @@ |
218 |
-diff -urN MPlayer-1.1.orig//av_opts.c MPlayer-1.1/av_opts.c |
219 |
---- MPlayer-1.1.orig//av_opts.c 2012-01-28 14:51:57.000000000 +0100 |
220 |
-+++ MPlayer-1.1/av_opts.c 2013-01-17 09:29:34.472213703 +0100 |
221 |
-@@ -42,7 +42,7 @@ |
222 |
- arg = strchr(str, '='); |
223 |
- if(arg) *arg++= 0; |
224 |
- |
225 |
-- if(av_set_string3(v, str, arg, 0, NULL) < 0){ |
226 |
-+ if(av_opt_set(v, str, arg, 0) < 0){ |
227 |
- free(start); |
228 |
- return -1; |
229 |
- } |
230 |
-diff -urN MPlayer-1.1.orig//bstr.c MPlayer-1.1/bstr.c |
231 |
---- MPlayer-1.1.orig//bstr.c 2010-07-19 00:00:48.000000000 +0200 |
232 |
-+++ MPlayer-1.1/bstr.c 2013-01-17 09:43:10.787183988 +0100 |
233 |
-@@ -18,6 +18,7 @@ |
234 |
- |
235 |
- #include <string.h> |
236 |
- #include <libavutil/avutil.h> |
237 |
-+#include <libavutil/common.h> |
238 |
- |
239 |
- #include "bstr.h" |
240 |
- |
241 |
-diff -urN MPlayer-1.1.orig//codec-cfg.c MPlayer-1.1/codec-cfg.c |
242 |
---- MPlayer-1.1.orig//codec-cfg.c 2012-05-08 12:56:22.000000000 +0200 |
243 |
-+++ MPlayer-1.1/codec-cfg.c 2013-01-17 09:34:39.860202586 +0100 |
244 |
-@@ -54,6 +54,7 @@ |
245 |
- #include "help_mp.h" |
246 |
- |
247 |
- #include "libavutil/avutil.h" |
248 |
-+#include "libavutil/common.h" |
249 |
- #include "libmpcodecs/img_format.h" |
250 |
- #include "codec-cfg.h" |
251 |
- |
252 |
-diff -urN MPlayer-1.1.orig//fmt-conversion.c MPlayer-1.1/fmt-conversion.c |
253 |
---- MPlayer-1.1.orig//fmt-conversion.c 2013-01-17 09:16:03.213243232 +0100 |
254 |
-+++ MPlayer-1.1/fmt-conversion.c 2013-01-17 09:28:32.490215959 +0100 |
255 |
-@@ -26,134 +26,134 @@ |
256 |
- |
257 |
- static const struct { |
258 |
- int fmt; |
259 |
-- enum PixelFormat pix_fmt; |
260 |
-+ enum AVPixelFormat pix_fmt; |
261 |
- } conversion_map[] = { |
262 |
-- {IMGFMT_ARGB, PIX_FMT_ARGB}, |
263 |
-- {IMGFMT_BGRA, PIX_FMT_BGRA}, |
264 |
-- {IMGFMT_BGR24, PIX_FMT_BGR24}, |
265 |
-- {IMGFMT_BGR16BE, PIX_FMT_RGB565BE}, |
266 |
-- {IMGFMT_BGR16LE, PIX_FMT_RGB565LE}, |
267 |
-- {IMGFMT_BGR15BE, PIX_FMT_RGB555BE}, |
268 |
-- {IMGFMT_BGR15LE, PIX_FMT_RGB555LE}, |
269 |
-- {IMGFMT_BGR12BE, PIX_FMT_RGB444BE}, |
270 |
-- {IMGFMT_BGR12LE, PIX_FMT_RGB444LE}, |
271 |
-- {IMGFMT_BGR8, PIX_FMT_RGB8}, |
272 |
-- {IMGFMT_BGR4, PIX_FMT_RGB4}, |
273 |
-- {IMGFMT_BGR1, PIX_FMT_MONOBLACK}, |
274 |
-- {IMGFMT_RGB1, PIX_FMT_MONOBLACK}, |
275 |
-- {IMGFMT_RG4B, PIX_FMT_BGR4_BYTE}, |
276 |
-- {IMGFMT_BG4B, PIX_FMT_RGB4_BYTE}, |
277 |
-- {IMGFMT_RGB48LE, PIX_FMT_RGB48LE}, |
278 |
-- {IMGFMT_RGB48BE, PIX_FMT_RGB48BE}, |
279 |
-- {IMGFMT_ABGR, PIX_FMT_ABGR}, |
280 |
-- {IMGFMT_RGBA, PIX_FMT_RGBA}, |
281 |
-- {IMGFMT_RGB24, PIX_FMT_RGB24}, |
282 |
-- {IMGFMT_RGB16BE, PIX_FMT_BGR565BE}, |
283 |
-- {IMGFMT_RGB16LE, PIX_FMT_BGR565LE}, |
284 |
-- {IMGFMT_RGB15BE, PIX_FMT_BGR555BE}, |
285 |
-- {IMGFMT_RGB15LE, PIX_FMT_BGR555LE}, |
286 |
-- {IMGFMT_RGB12BE, PIX_FMT_BGR444BE}, |
287 |
-- {IMGFMT_RGB12LE, PIX_FMT_BGR444LE}, |
288 |
-- {IMGFMT_RGB8, PIX_FMT_BGR8}, |
289 |
-- {IMGFMT_RGB4, PIX_FMT_BGR4}, |
290 |
-- {IMGFMT_BGR8, PIX_FMT_PAL8}, |
291 |
--// NB: This works only because PIX_FMT_0RGB32 is a CPP Macro. |
292 |
--// note that most other PIX_FMT values are enums |
293 |
--#ifdef PIX_FMT_0RGB32 |
294 |
-- {IMGFMT_BGR32, PIX_FMT_0RGB32}, |
295 |
-- {IMGFMT_BGRA, PIX_FMT_BGR0}, |
296 |
-- {IMGFMT_RGBA, PIX_FMT_RGB0}, |
297 |
-- {IMGFMT_RGB64LE, PIX_FMT_RGBA64LE}, |
298 |
-- {IMGFMT_RGB64BE, PIX_FMT_RGBA64BE}, |
299 |
-+ {IMGFMT_ARGB, AV_PIX_FMT_ARGB}, |
300 |
-+ {IMGFMT_BGRA, AV_PIX_FMT_BGRA}, |
301 |
-+ {IMGFMT_BGR24, AV_PIX_FMT_BGR24}, |
302 |
-+ {IMGFMT_BGR16BE, AV_PIX_FMT_RGB565BE}, |
303 |
-+ {IMGFMT_BGR16LE, AV_PIX_FMT_RGB565LE}, |
304 |
-+ {IMGFMT_BGR15BE, AV_PIX_FMT_RGB555BE}, |
305 |
-+ {IMGFMT_BGR15LE, AV_PIX_FMT_RGB555LE}, |
306 |
-+ {IMGFMT_BGR12BE, AV_PIX_FMT_RGB444BE}, |
307 |
-+ {IMGFMT_BGR12LE, AV_PIX_FMT_RGB444LE}, |
308 |
-+ {IMGFMT_BGR8, AV_PIX_FMT_RGB8}, |
309 |
-+ {IMGFMT_BGR4, AV_PIX_FMT_RGB4}, |
310 |
-+ {IMGFMT_BGR1, AV_PIX_FMT_MONOBLACK}, |
311 |
-+ {IMGFMT_RGB1, AV_PIX_FMT_MONOBLACK}, |
312 |
-+ {IMGFMT_RG4B, AV_PIX_FMT_BGR4_BYTE}, |
313 |
-+ {IMGFMT_BG4B, AV_PIX_FMT_RGB4_BYTE}, |
314 |
-+ {IMGFMT_RGB48LE, AV_PIX_FMT_RGB48LE}, |
315 |
-+ {IMGFMT_RGB48BE, AV_PIX_FMT_RGB48BE}, |
316 |
-+ {IMGFMT_ABGR, AV_PIX_FMT_ABGR}, |
317 |
-+ {IMGFMT_RGBA, AV_PIX_FMT_RGBA}, |
318 |
-+ {IMGFMT_RGB24, AV_PIX_FMT_RGB24}, |
319 |
-+ {IMGFMT_RGB16BE, AV_PIX_FMT_BGR565BE}, |
320 |
-+ {IMGFMT_RGB16LE, AV_PIX_FMT_BGR565LE}, |
321 |
-+ {IMGFMT_RGB15BE, AV_PIX_FMT_BGR555BE}, |
322 |
-+ {IMGFMT_RGB15LE, AV_PIX_FMT_BGR555LE}, |
323 |
-+ {IMGFMT_RGB12BE, AV_PIX_FMT_BGR444BE}, |
324 |
-+ {IMGFMT_RGB12LE, AV_PIX_FMT_BGR444LE}, |
325 |
-+ {IMGFMT_RGB8, AV_PIX_FMT_BGR8}, |
326 |
-+ {IMGFMT_RGB4, AV_PIX_FMT_BGR4}, |
327 |
-+ {IMGFMT_BGR8, AV_PIX_FMT_PAL8}, |
328 |
-+// NB: This works only because AV_PIX_FMT_0RGB32 is a CPP Macro. |
329 |
-+// note that most other AV_PIX_FMT values are enums |
330 |
-+#ifdef AV_PIX_FMT_0RGB32 |
331 |
-+ {IMGFMT_BGR32, AV_PIX_FMT_0RGB32}, |
332 |
-+ {IMGFMT_BGRA, AV_PIX_FMT_BGR0}, |
333 |
-+ {IMGFMT_RGBA, AV_PIX_FMT_RGB0}, |
334 |
-+ {IMGFMT_RGB64LE, AV_PIX_FMT_RGBA64LE}, |
335 |
-+ {IMGFMT_RGB64BE, AV_PIX_FMT_RGBA64BE}, |
336 |
- #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 50, 0) |
337 |
-- {IMGFMT_422A, PIX_FMT_YUVA422P}, |
338 |
-+ {IMGFMT_422A, AV_PIX_FMT_YUVA422P}, |
339 |
- #endif |
340 |
- #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 35, 101) |
341 |
-- {IMGFMT_444A, PIX_FMT_YUVA444P}, |
342 |
-+ {IMGFMT_444A, AV_PIX_FMT_YUVA444P}, |
343 |
- #endif |
344 |
- #endif |
345 |
- #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 20, 1) |
346 |
-- {IMGFMT_GBR24P, PIX_FMT_GBRP}, |
347 |
-+ {IMGFMT_GBR24P, AV_PIX_FMT_GBRP}, |
348 |
- #endif |
349 |
-- {IMGFMT_YUY2, PIX_FMT_YUYV422}, |
350 |
-- {IMGFMT_UYVY, PIX_FMT_UYVY422}, |
351 |
-- {IMGFMT_NV12, PIX_FMT_NV12}, |
352 |
-- {IMGFMT_NV21, PIX_FMT_NV21}, |
353 |
-- {IMGFMT_Y800, PIX_FMT_GRAY8}, |
354 |
-- {IMGFMT_Y8, PIX_FMT_GRAY8}, |
355 |
-- {IMGFMT_YVU9, PIX_FMT_YUV410P}, |
356 |
-- {IMGFMT_IF09, PIX_FMT_YUV410P}, |
357 |
-- {IMGFMT_YV12, PIX_FMT_YUV420P}, |
358 |
-- {IMGFMT_I420, PIX_FMT_YUV420P}, |
359 |
-- {IMGFMT_IYUV, PIX_FMT_YUV420P}, |
360 |
-- {IMGFMT_411P, PIX_FMT_YUV411P}, |
361 |
-- {IMGFMT_422P, PIX_FMT_YUV422P}, |
362 |
-- {IMGFMT_444P, PIX_FMT_YUV444P}, |
363 |
-- {IMGFMT_440P, PIX_FMT_YUV440P}, |
364 |
-- |
365 |
-- {IMGFMT_420A, PIX_FMT_YUVA420P}, |
366 |
-- |
367 |
-- {IMGFMT_420P16_LE, PIX_FMT_YUV420P16LE}, |
368 |
-- {IMGFMT_420P16_BE, PIX_FMT_YUV420P16BE}, |
369 |
-- {IMGFMT_420P10_LE, PIX_FMT_YUV420P10LE}, |
370 |
-- {IMGFMT_420P10_BE, PIX_FMT_YUV420P10BE}, |
371 |
-- {IMGFMT_420P9_LE, PIX_FMT_YUV420P9LE}, |
372 |
-- {IMGFMT_420P9_BE, PIX_FMT_YUV420P9BE}, |
373 |
-- {IMGFMT_422P16_LE, PIX_FMT_YUV422P16LE}, |
374 |
-- {IMGFMT_422P16_BE, PIX_FMT_YUV422P16BE}, |
375 |
-- {IMGFMT_422P10_LE, PIX_FMT_YUV422P10LE}, |
376 |
-- {IMGFMT_422P10_BE, PIX_FMT_YUV422P10BE}, |
377 |
-- {IMGFMT_422P9_LE, PIX_FMT_YUV422P9LE}, |
378 |
-- {IMGFMT_422P9_BE, PIX_FMT_YUV422P9BE}, |
379 |
-- {IMGFMT_444P16_LE, PIX_FMT_YUV444P16LE}, |
380 |
-- {IMGFMT_444P16_BE, PIX_FMT_YUV444P16BE}, |
381 |
-- {IMGFMT_444P10_LE, PIX_FMT_YUV444P10LE}, |
382 |
-- {IMGFMT_444P10_BE, PIX_FMT_YUV444P10BE}, |
383 |
-- {IMGFMT_444P9_LE, PIX_FMT_YUV444P9LE}, |
384 |
-- {IMGFMT_444P9_BE, PIX_FMT_YUV444P9BE}, |
385 |
-+ {IMGFMT_YUY2, AV_PIX_FMT_YUYV422}, |
386 |
-+ {IMGFMT_UYVY, AV_PIX_FMT_UYVY422}, |
387 |
-+ {IMGFMT_NV12, AV_PIX_FMT_NV12}, |
388 |
-+ {IMGFMT_NV21, AV_PIX_FMT_NV21}, |
389 |
-+ {IMGFMT_Y800, AV_PIX_FMT_GRAY8}, |
390 |
-+ {IMGFMT_Y8, AV_PIX_FMT_GRAY8}, |
391 |
-+ {IMGFMT_YVU9, AV_PIX_FMT_YUV410P}, |
392 |
-+ {IMGFMT_IF09, AV_PIX_FMT_YUV410P}, |
393 |
-+ {IMGFMT_YV12, AV_PIX_FMT_YUV420P}, |
394 |
-+ {IMGFMT_I420, AV_PIX_FMT_YUV420P}, |
395 |
-+ {IMGFMT_IYUV, AV_PIX_FMT_YUV420P}, |
396 |
-+ {IMGFMT_411P, AV_PIX_FMT_YUV411P}, |
397 |
-+ {IMGFMT_422P, AV_PIX_FMT_YUV422P}, |
398 |
-+ {IMGFMT_444P, AV_PIX_FMT_YUV444P}, |
399 |
-+ {IMGFMT_440P, AV_PIX_FMT_YUV440P}, |
400 |
-+ |
401 |
-+ {IMGFMT_420A, AV_PIX_FMT_YUVA420P}, |
402 |
-+ |
403 |
-+ {IMGFMT_420P16_LE, AV_PIX_FMT_YUV420P16LE}, |
404 |
-+ {IMGFMT_420P16_BE, AV_PIX_FMT_YUV420P16BE}, |
405 |
-+ {IMGFMT_420P10_LE, AV_PIX_FMT_YUV420P10LE}, |
406 |
-+ {IMGFMT_420P10_BE, AV_PIX_FMT_YUV420P10BE}, |
407 |
-+ {IMGFMT_420P9_LE, AV_PIX_FMT_YUV420P9LE}, |
408 |
-+ {IMGFMT_420P9_BE, AV_PIX_FMT_YUV420P9BE}, |
409 |
-+ {IMGFMT_422P16_LE, AV_PIX_FMT_YUV422P16LE}, |
410 |
-+ {IMGFMT_422P16_BE, AV_PIX_FMT_YUV422P16BE}, |
411 |
-+ {IMGFMT_422P10_LE, AV_PIX_FMT_YUV422P10LE}, |
412 |
-+ {IMGFMT_422P10_BE, AV_PIX_FMT_YUV422P10BE}, |
413 |
-+ {IMGFMT_422P9_LE, AV_PIX_FMT_YUV422P9LE}, |
414 |
-+ {IMGFMT_422P9_BE, AV_PIX_FMT_YUV422P9BE}, |
415 |
-+ {IMGFMT_444P16_LE, AV_PIX_FMT_YUV444P16LE}, |
416 |
-+ {IMGFMT_444P16_BE, AV_PIX_FMT_YUV444P16BE}, |
417 |
-+ {IMGFMT_444P10_LE, AV_PIX_FMT_YUV444P10LE}, |
418 |
-+ {IMGFMT_444P10_BE, AV_PIX_FMT_YUV444P10BE}, |
419 |
-+ {IMGFMT_444P9_LE, AV_PIX_FMT_YUV444P9LE}, |
420 |
-+ {IMGFMT_444P9_BE, AV_PIX_FMT_YUV444P9BE}, |
421 |
- |
422 |
- // YUVJ are YUV formats that use the full Y range and not just |
423 |
- // 16 - 235 (see colorspaces.txt). |
424 |
- // Currently they are all treated the same way. |
425 |
-- {IMGFMT_YV12, PIX_FMT_YUVJ420P}, |
426 |
-- {IMGFMT_422P, PIX_FMT_YUVJ422P}, |
427 |
-- {IMGFMT_444P, PIX_FMT_YUVJ444P}, |
428 |
-- {IMGFMT_440P, PIX_FMT_YUVJ440P}, |
429 |
-- |
430 |
-- {IMGFMT_XVMC_MOCO_MPEG2, PIX_FMT_XVMC_MPEG2_MC}, |
431 |
-- {IMGFMT_XVMC_IDCT_MPEG2, PIX_FMT_XVMC_MPEG2_IDCT}, |
432 |
-- {IMGFMT_VDPAU_MPEG1, PIX_FMT_VDPAU_MPEG1}, |
433 |
-- {IMGFMT_VDPAU_MPEG2, PIX_FMT_VDPAU_MPEG2}, |
434 |
-- {IMGFMT_VDPAU_H264, PIX_FMT_VDPAU_H264}, |
435 |
-- {IMGFMT_VDPAU_WMV3, PIX_FMT_VDPAU_WMV3}, |
436 |
-- {IMGFMT_VDPAU_VC1, PIX_FMT_VDPAU_VC1}, |
437 |
-- {IMGFMT_VDPAU_MPEG4, PIX_FMT_VDPAU_MPEG4}, |
438 |
-- {0, PIX_FMT_NONE} |
439 |
-+ {IMGFMT_YV12, AV_PIX_FMT_YUVJ420P}, |
440 |
-+ {IMGFMT_422P, AV_PIX_FMT_YUVJ422P}, |
441 |
-+ {IMGFMT_444P, AV_PIX_FMT_YUVJ444P}, |
442 |
-+ {IMGFMT_440P, AV_PIX_FMT_YUVJ440P}, |
443 |
-+ |
444 |
-+ {IMGFMT_XVMC_MOCO_MPEG2, AV_PIX_FMT_XVMC_MPEG2_MC}, |
445 |
-+ {IMGFMT_XVMC_IDCT_MPEG2, AV_PIX_FMT_XVMC_MPEG2_IDCT}, |
446 |
-+ {IMGFMT_VDPAU_MPEG1, AV_PIX_FMT_VDPAU_MPEG1}, |
447 |
-+ {IMGFMT_VDPAU_MPEG2, AV_PIX_FMT_VDPAU_MPEG2}, |
448 |
-+ {IMGFMT_VDPAU_H264, AV_PIX_FMT_VDPAU_H264}, |
449 |
-+ {IMGFMT_VDPAU_WMV3, AV_PIX_FMT_VDPAU_WMV3}, |
450 |
-+ {IMGFMT_VDPAU_VC1, AV_PIX_FMT_VDPAU_VC1}, |
451 |
-+ {IMGFMT_VDPAU_MPEG4, AV_PIX_FMT_VDPAU_MPEG4}, |
452 |
-+ {0, AV_PIX_FMT_NONE} |
453 |
- }; |
454 |
- |
455 |
--enum PixelFormat imgfmt2pixfmt(int fmt) |
456 |
-+enum AVPixelFormat imgfmt2pixfmt(int fmt) |
457 |
- { |
458 |
- int i; |
459 |
-- enum PixelFormat pix_fmt; |
460 |
-+ enum AVPixelFormat pix_fmt; |
461 |
- for (i = 0; conversion_map[i].fmt; i++) |
462 |
- if (conversion_map[i].fmt == fmt) |
463 |
- break; |
464 |
- pix_fmt = conversion_map[i].pix_fmt; |
465 |
-- if (pix_fmt == PIX_FMT_NONE) |
466 |
-+ if (pix_fmt == AV_PIX_FMT_NONE) |
467 |
- mp_msg(MSGT_GLOBAL, MSGL_ERR, "Unsupported format %s\n", vo_format_name(fmt)); |
468 |
- return pix_fmt; |
469 |
- } |
470 |
- |
471 |
--int pixfmt2imgfmt(enum PixelFormat pix_fmt) |
472 |
-+int pixfmt2imgfmt(enum AVPixelFormat pix_fmt) |
473 |
- { |
474 |
- int i; |
475 |
- int fmt; |
476 |
-- for (i = 0; conversion_map[i].pix_fmt != PIX_FMT_NONE; i++) |
477 |
-+ for (i = 0; conversion_map[i].pix_fmt != AV_PIX_FMT_NONE; i++) |
478 |
- if (conversion_map[i].pix_fmt == pix_fmt) |
479 |
- break; |
480 |
- fmt = conversion_map[i].fmt; |
481 |
- if (!fmt) |
482 |
-- mp_msg(MSGT_GLOBAL, MSGL_ERR, "Unsupported PixelFormat %i\n", pix_fmt); |
483 |
-+ mp_msg(MSGT_GLOBAL, MSGL_ERR, "Unsupported AVPixelFormat %i\n", pix_fmt); |
484 |
- return fmt; |
485 |
- } |
486 |
- |
487 |
-diff -urN MPlayer-1.1.orig//fmt-conversion.h MPlayer-1.1/fmt-conversion.h |
488 |
---- MPlayer-1.1.orig//fmt-conversion.h 2011-03-01 22:44:15.000000000 +0100 |
489 |
-+++ MPlayer-1.1/fmt-conversion.h 2013-01-17 09:28:38.120215759 +0100 |
490 |
-@@ -23,8 +23,8 @@ |
491 |
- #include "libavutil/avutil.h" |
492 |
- #include "libavutil/samplefmt.h" |
493 |
- |
494 |
--enum PixelFormat imgfmt2pixfmt(int fmt); |
495 |
--int pixfmt2imgfmt(enum PixelFormat pix_fmt); |
496 |
-+enum AVPixelFormat imgfmt2pixfmt(int fmt); |
497 |
-+int pixfmt2imgfmt(enum AVPixelFormat pix_fmt); |
498 |
- enum AVSampleFormat affmt2samplefmt(int fmt); |
499 |
- int samplefmt2affmt(enum AVSampleFormat sample_fmt); |
500 |
- |
501 |
-diff -urN MPlayer-1.1.orig//libaf/af_format.c MPlayer-1.1/libaf/af_format.c |
502 |
---- MPlayer-1.1.orig//libaf/af_format.c 2011-10-26 17:12:35.000000000 +0200 |
503 |
-+++ MPlayer-1.1/libaf/af_format.c 2013-01-17 09:43:32.770183189 +0100 |
504 |
-@@ -34,6 +34,7 @@ |
505 |
- #include "libvo/fastmemcpy.h" |
506 |
- |
507 |
- #include "libavutil/avutil.h" |
508 |
-+#include "libavutil/common.h" |
509 |
- |
510 |
- /* Functions used by play to convert the input audio to the correct |
511 |
- format */ |
512 |
-diff -urN MPlayer-1.1.orig//libaf/af_lavcac3enc.c MPlayer-1.1/libaf/af_lavcac3enc.c |
513 |
---- MPlayer-1.1.orig//libaf/af_lavcac3enc.c 2012-02-19 16:21:23.000000000 +0100 |
514 |
-+++ MPlayer-1.1/libaf/af_lavcac3enc.c 2013-01-17 09:44:27.103181211 +0100 |
515 |
-@@ -32,6 +32,7 @@ |
516 |
- #include "reorder_ch.h" |
517 |
- #include "av_helpers.h" |
518 |
- |
519 |
-+#include "libavutil/common.h" |
520 |
- #include "libavcodec/avcodec.h" |
521 |
- #include "libavutil/intreadwrite.h" |
522 |
- |
523 |
-diff -urN MPlayer-1.1.orig//libmpcodecs/vf.c MPlayer-1.1/libmpcodecs/vf.c |
524 |
---- MPlayer-1.1.orig//libmpcodecs/vf.c 2012-05-30 23:08:05.000000000 +0200 |
525 |
-+++ MPlayer-1.1/libmpcodecs/vf.c 2013-01-17 09:50:25.861168154 +0100 |
526 |
-@@ -40,6 +40,7 @@ |
527 |
- #include "vf.h" |
528 |
- |
529 |
- #include "libvo/fastmemcpy.h" |
530 |
-+#include "libavutil/common.h" |
531 |
- #include "libavutil/mem.h" |
532 |
- |
533 |
- extern const vf_info_t vf_info_1bpp; |
534 |
-diff -urN MPlayer-1.1.orig//libmpcodecs/vf_geq.c MPlayer-1.1/libmpcodecs/vf_geq.c |
535 |
---- MPlayer-1.1.orig//libmpcodecs/vf_geq.c 2011-04-19 09:32:36.000000000 +0200 |
536 |
-+++ MPlayer-1.1/libmpcodecs/vf_geq.c 2013-01-17 09:44:01.045182161 +0100 |
537 |
-@@ -34,6 +34,8 @@ |
538 |
- |
539 |
- #include "libavcodec/avcodec.h" |
540 |
- #include "libavutil/eval.h" |
541 |
-+#include "libavutil/common.h" |
542 |
-+#include "libavutil/mem.h" |
543 |
- |
544 |
- struct vf_priv_s { |
545 |
- AVExpr * e[3]; |
546 |
-diff -urN MPlayer-1.1.orig//libmpcodecs/vf_gradfun.c MPlayer-1.1/libmpcodecs/vf_gradfun.c |
547 |
---- MPlayer-1.1.orig//libmpcodecs/vf_gradfun.c 2010-04-06 11:46:47.000000000 +0200 |
548 |
-+++ MPlayer-1.1/libmpcodecs/vf_gradfun.c 2013-01-17 09:47:10.679175257 +0100 |
549 |
-@@ -39,6 +39,7 @@ |
550 |
- #include "vf.h" |
551 |
- #include "libvo/fastmemcpy.h" |
552 |
- #include "libavutil/avutil.h" |
553 |
-+#include "libavutil/common.h" |
554 |
- #include "libavutil/x86_cpu.h" |
555 |
- |
556 |
- struct vf_priv_s { |
557 |
-diff -urN MPlayer-1.1.orig//libmpcodecs/vf_sab.c MPlayer-1.1/libmpcodecs/vf_sab.c |
558 |
---- MPlayer-1.1.orig//libmpcodecs/vf_sab.c 2011-05-25 15:46:32.000000000 +0200 |
559 |
-+++ MPlayer-1.1/libmpcodecs/vf_sab.c 2013-01-17 09:28:59.964214957 +0100 |
560 |
-@@ -32,6 +32,7 @@ |
561 |
- #endif |
562 |
- |
563 |
- #include "libavutil/avutil.h" |
564 |
-+#include "libavutil/mem.h" |
565 |
- #include "img_format.h" |
566 |
- #include "mp_image.h" |
567 |
- #include "vf.h" |
568 |
-diff -urN MPlayer-1.1.orig//libmpcodecs/vf_screenshot.c MPlayer-1.1/libmpcodecs/vf_screenshot.c |
569 |
---- MPlayer-1.1.orig//libmpcodecs/vf_screenshot.c 2012-02-19 23:09:30.000000000 +0100 |
570 |
-+++ MPlayer-1.1/libmpcodecs/vf_screenshot.c 2013-01-17 09:28:04.643216971 +0100 |
571 |
-@@ -39,6 +39,7 @@ |
572 |
- |
573 |
- #include "libswscale/swscale.h" |
574 |
- #include "libavcodec/avcodec.h" |
575 |
-+#include "libavutil/mem.h" |
576 |
- |
577 |
- struct vf_priv_s { |
578 |
- int frameno; |
579 |
-diff -urN MPlayer-1.1.orig//libmpdemux/demux_lavf.c MPlayer-1.1/libmpdemux/demux_lavf.c |
580 |
---- MPlayer-1.1.orig//libmpdemux/demux_lavf.c 2012-04-07 22:08:53.000000000 +0200 |
581 |
-+++ MPlayer-1.1/libmpdemux/demux_lavf.c 2013-01-17 09:41:44.880187116 +0100 |
582 |
-@@ -317,20 +317,20 @@ |
583 |
- sh_audio->samplerate= codec->sample_rate; |
584 |
- sh_audio->i_bps= codec->bit_rate/8; |
585 |
- switch (codec->codec_id) { |
586 |
-- case CODEC_ID_PCM_S8: |
587 |
-- case CODEC_ID_PCM_U8: |
588 |
-+ case AV_CODEC_ID_PCM_S8: |
589 |
-+ case AV_CODEC_ID_PCM_U8: |
590 |
- sh_audio->samplesize = 1; |
591 |
- break; |
592 |
-- case CODEC_ID_PCM_S16LE: |
593 |
-- case CODEC_ID_PCM_S16BE: |
594 |
-- case CODEC_ID_PCM_U16LE: |
595 |
-- case CODEC_ID_PCM_U16BE: |
596 |
-+ case AV_CODEC_ID_PCM_S16LE: |
597 |
-+ case AV_CODEC_ID_PCM_S16BE: |
598 |
-+ case AV_CODEC_ID_PCM_U16LE: |
599 |
-+ case AV_CODEC_ID_PCM_U16BE: |
600 |
- sh_audio->samplesize = 2; |
601 |
- break; |
602 |
-- case CODEC_ID_PCM_ALAW: |
603 |
-+ case AV_CODEC_ID_PCM_ALAW: |
604 |
- sh_audio->format = 0x6; |
605 |
- break; |
606 |
-- case CODEC_ID_PCM_MULAW: |
607 |
-+ case AV_CODEC_ID_PCM_MULAW: |
608 |
- sh_audio->format = 0x7; |
609 |
- break; |
610 |
- } |
611 |
-@@ -358,7 +358,7 @@ |
612 |
- priv->vstreams[priv->video_streams] = i; |
613 |
- bih=calloc(sizeof(*bih) + codec->extradata_size,1); |
614 |
- |
615 |
-- if(codec->codec_id == CODEC_ID_RAWVIDEO) { |
616 |
-+ if(codec->codec_id == AV_CODEC_ID_RAWVIDEO) { |
617 |
- switch (codec->pix_fmt) { |
618 |
- case PIX_FMT_RGB24: |
619 |
- codec->codec_tag= MKTAG(24, 'B', 'G', 'R'); |
620 |
-@@ -423,24 +423,24 @@ |
621 |
- case AVMEDIA_TYPE_SUBTITLE:{ |
622 |
- sh_sub_t* sh_sub; |
623 |
- char type; |
624 |
-- if(codec->codec_id == CODEC_ID_TEXT) |
625 |
-+ if(codec->codec_id == AV_CODEC_ID_TEXT) |
626 |
- type = 't'; |
627 |
-- else if(codec->codec_id == CODEC_ID_MOV_TEXT) |
628 |
-+ else if(codec->codec_id == AV_CODEC_ID_MOV_TEXT) |
629 |
- type = 'm'; |
630 |
-- else if(codec->codec_id == CODEC_ID_SSA) |
631 |
-+ else if(codec->codec_id == AV_CODEC_ID_SSA) |
632 |
- type = 'a'; |
633 |
-- else if(codec->codec_id == CODEC_ID_DVD_SUBTITLE) |
634 |
-+ else if(codec->codec_id == AV_CODEC_ID_DVD_SUBTITLE) |
635 |
- type = 'v'; |
636 |
-- else if(codec->codec_id == CODEC_ID_XSUB) |
637 |
-+ else if(codec->codec_id == AV_CODEC_ID_XSUB) |
638 |
- type = 'x'; |
639 |
-- else if(codec->codec_id == CODEC_ID_DVB_SUBTITLE) |
640 |
-+ else if(codec->codec_id == AV_CODEC_ID_DVB_SUBTITLE) |
641 |
- type = 'b'; |
642 |
-- else if(codec->codec_id == CODEC_ID_DVB_TELETEXT) |
643 |
-+ else if(codec->codec_id == AV_CODEC_ID_DVB_TELETEXT) |
644 |
- type = 'd'; |
645 |
-- else if(codec->codec_id == CODEC_ID_HDMV_PGS_SUBTITLE) |
646 |
-+ else if(codec->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE) |
647 |
- type = 'p'; |
648 |
--#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 14, 100) |
649 |
-- else if(codec->codec_id == CODEC_ID_EIA_608) |
650 |
-+#if LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 14, 100) |
651 |
-+ else if(codec->codec_id == AV_CODEC_ID_EIA_608) |
652 |
- type = 'c'; |
653 |
- #endif |
654 |
- else if(codec->codec_tag == MKTAG('c', '6', '0', '8')) |
655 |
-@@ -465,7 +465,7 @@ |
656 |
- break; |
657 |
- } |
658 |
- case AVMEDIA_TYPE_ATTACHMENT:{ |
659 |
-- if (st->codec->codec_id == CODEC_ID_TTF) { |
660 |
-+ if (st->codec->codec_id == AV_CODEC_ID_TTF) { |
661 |
- AVDictionaryEntry *fnametag = av_dict_get(st->metadata, "filename", NULL, 0); |
662 |
- demuxer_add_attachment(demuxer, fnametag ? fnametag->value : NULL, |
663 |
- "application/x-truetype-font", |
664 |
-@@ -808,7 +808,7 @@ |
665 |
- prog->aid = program->stream_index[i]; |
666 |
- break; |
667 |
- case AVMEDIA_TYPE_SUBTITLE: |
668 |
-- if(prog->sid == -2 && priv->avfc->streams[program->stream_index[i]]->codec->codec_id == CODEC_ID_TEXT) |
669 |
-+ if(prog->sid == -2 && priv->avfc->streams[program->stream_index[i]]->codec->codec_id == AV_CODEC_ID_TEXT) |
670 |
- prog->sid = program->stream_index[i]; |
671 |
- break; |
672 |
- } |
673 |
-diff -urN MPlayer-1.1.orig//stream/cache2.c MPlayer-1.1/stream/cache2.c |
674 |
---- MPlayer-1.1.orig//stream/cache2.c 2012-03-04 16:11:50.000000000 +0100 |
675 |
-+++ MPlayer-1.1/stream/cache2.c 2013-01-17 09:30:01.501212718 +0100 |
676 |
-@@ -40,6 +40,7 @@ |
677 |
- #include <errno.h> |
678 |
- |
679 |
- #include "libavutil/avutil.h" |
680 |
-+#include "libavutil/common.h" |
681 |
- #include "osdep/shmem.h" |
682 |
- #include "osdep/timer.h" |
683 |
- #if defined(__MINGW32__) |
684 |
-diff -urN MPlayer-1.1.orig//sub/spudec.c MPlayer-1.1/sub/spudec.c |
685 |
---- MPlayer-1.1.orig//sub/spudec.c 2012-04-23 20:39:16.000000000 +0200 |
686 |
-+++ MPlayer-1.1/sub/spudec.c 2013-01-17 09:46:50.054176009 +0100 |
687 |
-@@ -42,6 +42,7 @@ |
688 |
- #include "spudec.h" |
689 |
- #include "vobsub.h" |
690 |
- #include "libavutil/avutil.h" |
691 |
-+#include "libavutil/common.h" |
692 |
- #include "libavutil/intreadwrite.h" |
693 |
- #include "libswscale/swscale.h" |
694 |
- |
695 |
-diff -urN MPlayer-1.1.orig//sub/sub_cc.c MPlayer-1.1/sub/sub_cc.c |
696 |
---- MPlayer-1.1.orig//sub/sub_cc.c 2012-04-07 22:08:53.000000000 +0200 |
697 |
-+++ MPlayer-1.1/sub/sub_cc.c 2013-01-17 09:46:31.413176687 +0100 |
698 |
-@@ -42,6 +42,7 @@ |
699 |
- #include "sub.h" |
700 |
- |
701 |
- #include "libavutil/avutil.h" |
702 |
-+#include "libavutil/common.h" |
703 |
- |
704 |
- |
705 |
- #define CC_MAX_LINE_LENGTH 64 |
706 |
|
707 |
diff --git a/media-video/mplayer/files/mplayer-1.1-missingbreak.patch b/media-video/mplayer/files/mplayer-1.1-missingbreak.patch |
708 |
deleted file mode 100644 |
709 |
index 0dd7064..0000000 |
710 |
--- a/media-video/mplayer/files/mplayer-1.1-missingbreak.patch |
711 |
+++ /dev/null |
712 |
@@ -1,18 +0,0 @@ |
713 |
------------------------------------------------------------------------- |
714 |
-r35436 | upsuper | 2012-11-21 08:37:24 -0300 (Wed, 21 Nov 2012) | 2 lines |
715 |
- |
716 |
-Add missing break. |
717 |
- |
718 |
------------------------------------------------------------------------- |
719 |
-Index: libmpcodecs/ad_ffmpeg.c |
720 |
-=================================================================== |
721 |
---- libmpcodecs/ad_ffmpeg.c (revision 35435) |
722 |
-+++ libmpcodecs/ad_ffmpeg.c (revision 35436) |
723 |
-@@ -245,6 +245,7 @@ |
724 |
- case 4: |
725 |
- copy_samples_planar(4, frame->nb_samples, channels, |
726 |
- buf, frame->extended_data); |
727 |
-+ break; |
728 |
- default: |
729 |
- copy_samples_planar(sample_size, frame->nb_samples, channels, |
730 |
- buf, frame->extended_data); |
731 |
|
732 |
diff --git a/media-video/mplayer/files/mplayer-1.1-planaraudio.patch b/media-video/mplayer/files/mplayer-1.1-planaraudio.patch |
733 |
deleted file mode 100644 |
734 |
index 48dcb4c..0000000 |
735 |
--- a/media-video/mplayer/files/mplayer-1.1-planaraudio.patch |
736 |
+++ /dev/null |
737 |
@@ -1,138 +0,0 @@ |
738 |
------------------------------------------------------------------------- |
739 |
-r35228 | cigaes | 2012-10-04 15:04:42 -0300 (Thu, 04 Oct 2012) | 5 lines |
740 |
- |
741 |
-ad_ffmpeg: basic support for planar formats. |
742 |
- |
743 |
-Upgrade to avcodec_decode_audio4(). |
744 |
-Planar formats are immediately converted to packet formats. |
745 |
-A lot of optimizations are still possible. |
746 |
------------------------------------------------------------------------- |
747 |
- |
748 |
- |
749 |
-Index: libmpcodecs/ad_ffmpeg.c |
750 |
-=================================================================== |
751 |
---- libmpcodecs/ad_ffmpeg.c (revision 35227) |
752 |
-+++ libmpcodecs/ad_ffmpeg.c (revision 35228) |
753 |
-@@ -57,7 +57,7 @@ |
754 |
- { |
755 |
- int broken_srate = 0; |
756 |
- int samplerate = lavc_context->sample_rate; |
757 |
-- int sample_format = samplefmt2affmt(lavc_context->sample_fmt); |
758 |
-+ int sample_format = samplefmt2affmt(av_get_packed_sample_fmt(lavc_context->sample_fmt)); |
759 |
- if (!sample_format) |
760 |
- sample_format = sh_audio->sample_format; |
761 |
- if(sh_audio->wf){ |
762 |
-@@ -169,10 +169,10 @@ |
763 |
- sh_audio->i_bps=sh_audio->wf->nAvgBytesPerSec; |
764 |
- |
765 |
- switch (lavc_context->sample_fmt) { |
766 |
-- case AV_SAMPLE_FMT_U8: |
767 |
-- case AV_SAMPLE_FMT_S16: |
768 |
-- case AV_SAMPLE_FMT_S32: |
769 |
-- case AV_SAMPLE_FMT_FLT: |
770 |
-+ case AV_SAMPLE_FMT_U8: case AV_SAMPLE_FMT_U8P: |
771 |
-+ case AV_SAMPLE_FMT_S16: case AV_SAMPLE_FMT_S16P: |
772 |
-+ case AV_SAMPLE_FMT_S32: case AV_SAMPLE_FMT_S32P: |
773 |
-+ case AV_SAMPLE_FMT_FLT: case AV_SAMPLE_FMT_FLTP: |
774 |
- break; |
775 |
- default: |
776 |
- return 0; |
777 |
-@@ -202,10 +202,68 @@ |
778 |
- return CONTROL_UNKNOWN; |
779 |
- } |
780 |
- |
781 |
-+static av_always_inline void copy_samples_planar(unsigned bps, |
782 |
-+ unsigned nb_samples, |
783 |
-+ unsigned nb_channels, |
784 |
-+ unsigned char *dst, |
785 |
-+ unsigned char **src) |
786 |
-+{ |
787 |
-+ unsigned s, c, o = 0; |
788 |
-+ |
789 |
-+ for (s = 0; s < nb_samples; s++) { |
790 |
-+ for (c = 0; c < nb_channels; c++) { |
791 |
-+ memcpy(dst, src[c] + o, bps); |
792 |
-+ dst += bps; |
793 |
-+ } |
794 |
-+ o += bps; |
795 |
-+ } |
796 |
-+} |
797 |
-+ |
798 |
-+static int copy_samples(AVCodecContext *avc, AVFrame *frame, |
799 |
-+ unsigned char *buf, int max_size) |
800 |
-+{ |
801 |
-+ int channels = avc->channels; |
802 |
-+ int sample_size = av_get_bytes_per_sample(avc->sample_fmt); |
803 |
-+ int size = channels * sample_size * frame->nb_samples; |
804 |
-+ |
805 |
-+ if (size > max_size) { |
806 |
-+ av_log(avc, AV_LOG_ERROR, |
807 |
-+ "Buffer overflow while decoding a single frame\n"); |
808 |
-+ return AVERROR(EINVAL); /* same as avcodec_decode_audio3 */ |
809 |
-+ } |
810 |
-+ /* TODO reorder channels at the same time */ |
811 |
-+ if (av_sample_fmt_is_planar(avc->sample_fmt)) { |
812 |
-+ switch (sample_size) { |
813 |
-+ case 1: |
814 |
-+ copy_samples_planar(1, frame->nb_samples, channels, |
815 |
-+ buf, frame->extended_data); |
816 |
-+ break; |
817 |
-+ case 2: |
818 |
-+ copy_samples_planar(2, frame->nb_samples, channels, |
819 |
-+ buf, frame->extended_data); |
820 |
-+ break; |
821 |
-+ case 4: |
822 |
-+ copy_samples_planar(4, frame->nb_samples, channels, |
823 |
-+ buf, frame->extended_data); |
824 |
-+ default: |
825 |
-+ copy_samples_planar(sample_size, frame->nb_samples, channels, |
826 |
-+ buf, frame->extended_data); |
827 |
-+ } |
828 |
-+ } else { |
829 |
-+ memcpy(buf, frame->data[0], size); |
830 |
-+ } |
831 |
-+ return size; |
832 |
-+} |
833 |
-+ |
834 |
- static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen) |
835 |
- { |
836 |
- unsigned char *start=NULL; |
837 |
-- int y,len=-1; |
838 |
-+ int y,len=-1, got_frame; |
839 |
-+ AVFrame *frame = avcodec_alloc_frame(); |
840 |
-+ |
841 |
-+ if (!frame) |
842 |
-+ return AVERROR(ENOMEM); |
843 |
-+ |
844 |
- while(len<minlen){ |
845 |
- AVPacket pkt; |
846 |
- int len2=maxlen; |
847 |
-@@ -230,7 +288,7 @@ |
848 |
- sh_audio->pts = pts; |
849 |
- sh_audio->pts_bytes = 0; |
850 |
- } |
851 |
-- y=avcodec_decode_audio3(sh_audio->context,(int16_t*)buf,&len2,&pkt); |
852 |
-+ y=avcodec_decode_audio4(sh_audio->context, frame, &got_frame, &pkt); |
853 |
- //printf("return:%d samples_out:%d bitstream_in:%d sample_sum:%d\n", y, len2, x, len); fflush(stdout); |
854 |
- // LATM may need many packets to find mux info |
855 |
- if (y == AVERROR(EAGAIN)) |
856 |
-@@ -238,6 +296,11 @@ |
857 |
- if(y<0){ mp_msg(MSGT_DECAUDIO,MSGL_V,"lavc_audio: error\n");break; } |
858 |
- if(!sh_audio->parser && y<x) |
859 |
- sh_audio->ds->buffer_pos+=y-x; // put back data (HACK!) |
860 |
-+ if (!got_frame) |
861 |
-+ continue; |
862 |
-+ len2 = copy_samples(sh_audio->context, frame, buf, maxlen); |
863 |
-+ if (len2 < 0) |
864 |
-+ return len2; |
865 |
- if(len2>0){ |
866 |
- if (((AVCodecContext *)sh_audio->context)->channels >= 5) { |
867 |
- int samplesize = av_get_bytes_per_sample(((AVCodecContext *) |
868 |
-@@ -258,5 +321,7 @@ |
869 |
- if (setup_format(sh_audio, sh_audio->context)) |
870 |
- break; |
871 |
- } |
872 |
-+ |
873 |
-+ av_free(frame); |
874 |
- return len; |
875 |
- } |
876 |
|
877 |
diff --git a/media-video/mplayer/files/mplayer-1.1.1-avcodecidsubrip.patch b/media-video/mplayer/files/mplayer-1.1.1-avcodecidsubrip.patch |
878 |
deleted file mode 100644 |
879 |
index 2e357db..0000000 |
880 |
--- a/media-video/mplayer/files/mplayer-1.1.1-avcodecidsubrip.patch |
881 |
+++ /dev/null |
882 |
@@ -1,17 +0,0 @@ |
883 |
-Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c |
884 |
-=================================================================== |
885 |
---- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c |
886 |
-+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c |
887 |
-@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem |
888 |
- case AVMEDIA_TYPE_SUBTITLE:{ |
889 |
- sh_sub_t* sh_sub; |
890 |
- char type; |
891 |
-- if(codec->codec_id == AV_CODEC_ID_TEXT) |
892 |
-+ if(codec->codec_id == AV_CODEC_ID_TEXT |
893 |
-+#if LIBAVUTIL_VERSION_MICRO >= 100 |
894 |
-+ || codec->codec_id == AV_CODEC_ID_SUBRIP |
895 |
-+#endif |
896 |
-+ ) |
897 |
- type = 't'; |
898 |
- else if(codec->codec_id == AV_CODEC_ID_MOV_TEXT) |
899 |
- type = 'm'; |
900 |
|
901 |
diff --git a/media-video/mplayer/files/mplayer-1.1.1-codecidsubrip.patch b/media-video/mplayer/files/mplayer-1.1.1-codecidsubrip.patch |
902 |
deleted file mode 100644 |
903 |
index 27bd9db..0000000 |
904 |
--- a/media-video/mplayer/files/mplayer-1.1.1-codecidsubrip.patch |
905 |
+++ /dev/null |
906 |
@@ -1,17 +0,0 @@ |
907 |
-Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c |
908 |
-=================================================================== |
909 |
---- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c |
910 |
-+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c |
911 |
-@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem |
912 |
- case AVMEDIA_TYPE_SUBTITLE:{ |
913 |
- sh_sub_t* sh_sub; |
914 |
- char type; |
915 |
-- if(codec->codec_id == CODEC_ID_TEXT) |
916 |
-+ if(codec->codec_id == CODEC_ID_TEXT |
917 |
-+#if LIBAVUTIL_VERSION_MICRO >= 100 |
918 |
-+ || codec->codec_id == AV_CODEC_ID_SUBRIP |
919 |
-+#endif |
920 |
-+ ) |
921 |
- type = 't'; |
922 |
- else if(codec->codec_id == CODEC_ID_MOV_TEXT) |
923 |
- type = 'm'; |
924 |
|
925 |
diff --git a/media-video/mplayer/mplayer-1.1.1-r1.ebuild b/media-video/mplayer/mplayer-1.1.1-r1.ebuild |
926 |
deleted file mode 100644 |
927 |
index 777777b..0000000 |
928 |
--- a/media-video/mplayer/mplayer-1.1.1-r1.ebuild |
929 |
+++ /dev/null |
930 |
@@ -1,658 +0,0 @@ |
931 |
-# Copyright 1999-2015 Gentoo Foundation |
932 |
-# Distributed under the terms of the GNU General Public License v2 |
933 |
-# $Id$ |
934 |
- |
935 |
-EAPI=4 |
936 |
- |
937 |
-EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git" |
938 |
-ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk" |
939 |
-[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-2" || SVN_ECLASS="" |
940 |
- |
941 |
-inherit toolchain-funcs eutils flag-o-matic multilib base ${SVN_ECLASS} |
942 |
- |
943 |
-IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext +a52 aalib +alsa altivec aqua bidi bl bluray |
944 |
-bs2b cddb +cdio cdparanoia cpudetection debug dga |
945 |
-directfb doc +dts +dv dvb +dvd +dvdnav +enca +encode faac +faad fbcon |
946 |
-ftp gif ggi gsm +iconv ipv6 jack joystick jpeg jpeg2k kernel_linux ladspa |
947 |
-+libass libcaca libmpeg2 lirc +live lzo mad md5sum +cpu_flags_x86_mmx cpu_flags_x86_mmxext mng +mp3 nas |
948 |
-+network nut openal +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime |
949 |
-radio +rar +rtc rtmp samba selinux +shm sdl +speex cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_ssse3 |
950 |
-tga +theora +tremor +truetype +toolame +twolame +unicode v4l vdpau vidix |
951 |
-+vorbis +X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran" |
952 |
- |
953 |
-VIDEO_CARDS="s3virge mga tdfx" |
954 |
-for x in ${VIDEO_CARDS}; do |
955 |
- IUSE+=" video_cards_${x}" |
956 |
-done |
957 |
- |
958 |
-FONT_URI=" |
959 |
- mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 |
960 |
- mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 |
961 |
- mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 |
962 |
-" |
963 |
-if [[ ${PV} == *9999* ]]; then |
964 |
- RELEASE_URI="" |
965 |
-elif [ "${PV%_rc*}" = "${PV}" ]; then |
966 |
- MY_P="MPlayer-${PV}" |
967 |
- S="${WORKDIR}/${MY_P}" |
968 |
- RELEASE_URI="mirror://mplayer/releases/${MY_P}.tar.xz" |
969 |
-else |
970 |
- RELEASE_URI="mirror://gentoo/${P}.tar.xz" |
971 |
-fi |
972 |
-SRC_URI="${RELEASE_URI} |
973 |
- !truetype? ( ${FONT_URI} )" |
974 |
- |
975 |
-DESCRIPTION="Media Player for Linux" |
976 |
-HOMEPAGE="http://www.mplayerhq.hu/" |
977 |
- |
978 |
-FONT_RDEPS=" |
979 |
- virtual/ttf-fonts |
980 |
- media-libs/fontconfig |
981 |
- >=media-libs/freetype-2.2.1:2 |
982 |
-" |
983 |
-X_RDEPS=" |
984 |
- x11-libs/libXext |
985 |
- x11-libs/libXxf86vm |
986 |
-" |
987 |
-# Rar: althrought -gpl version is nice, it cant do most functions normal rars can |
988 |
-# nemesi? ( net-libs/libnemesi ) |
989 |
-RDEPEND+=" |
990 |
- sys-libs/ncurses |
991 |
- app-arch/bzip2 |
992 |
- sys-libs/zlib |
993 |
- >=virtual/ffmpeg-0.10.3 |
994 |
- a52? ( media-libs/a52dec ) |
995 |
- aalib? ( media-libs/aalib ) |
996 |
- alsa? ( media-libs/alsa-lib ) |
997 |
- bidi? ( dev-libs/fribidi ) |
998 |
- bluray? ( >=media-libs/libbluray-0.2.1 ) |
999 |
- bs2b? ( media-libs/libbs2b ) |
1000 |
- cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) ) |
1001 |
- cdparanoia? ( !cdio? ( media-sound/cdparanoia ) ) |
1002 |
- dga? ( x11-libs/libXxf86dga ) |
1003 |
- directfb? ( dev-libs/DirectFB ) |
1004 |
- dts? ( media-libs/libdca ) |
1005 |
- dv? ( media-libs/libdv ) |
1006 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
1007 |
- dvd? ( >=media-libs/libdvdread-4.1.3 ) |
1008 |
- dvdnav? ( >=media-libs/libdvdnav-4.1.3 ) |
1009 |
- encode? ( |
1010 |
- !twolame? ( toolame? ( media-sound/toolame ) ) |
1011 |
- twolame? ( media-sound/twolame ) |
1012 |
- faac? ( media-libs/faac ) |
1013 |
- mp3? ( media-sound/lame ) |
1014 |
- x264? ( >=media-libs/x264-0.0.20100423 ) |
1015 |
- xvid? ( media-libs/xvid ) |
1016 |
- ) |
1017 |
- enca? ( app-i18n/enca ) |
1018 |
- faad? ( media-libs/faad2 ) |
1019 |
- ggi? ( media-libs/libggi media-libs/libggiwmh ) |
1020 |
- gif? ( media-libs/giflib ) |
1021 |
- gsm? ( media-sound/gsm ) |
1022 |
- iconv? ( virtual/libiconv ) |
1023 |
- jack? ( media-sound/jack-audio-connection-kit ) |
1024 |
- jpeg? ( virtual/jpeg:0 ) |
1025 |
- jpeg2k? ( media-libs/openjpeg:0 ) |
1026 |
- ladspa? ( media-libs/ladspa-sdk ) |
1027 |
- libass? ( >=media-libs/libass-0.9.10[enca?] ) |
1028 |
- libcaca? ( media-libs/libcaca ) |
1029 |
- libmpeg2? ( media-libs/libmpeg2 ) |
1030 |
- lirc? ( app-misc/lirc ) |
1031 |
- live? ( media-plugins/live ) |
1032 |
- lzo? ( >=dev-libs/lzo-2 ) |
1033 |
- mad? ( media-libs/libmad ) |
1034 |
- mng? ( media-libs/libmng ) |
1035 |
- mp3? ( media-sound/mpg123 ) |
1036 |
- nas? ( media-libs/nas ) |
1037 |
- nut? ( >=media-libs/libnut-661 ) |
1038 |
- openal? ( media-libs/openal ) |
1039 |
- opengl? ( virtual/opengl ) |
1040 |
- png? ( media-libs/libpng ) |
1041 |
- pnm? ( media-libs/netpbm ) |
1042 |
- pulseaudio? ( media-sound/pulseaudio ) |
1043 |
- rar? ( |
1044 |
- || ( |
1045 |
- app-arch/unrar |
1046 |
- app-arch/rar |
1047 |
- ) |
1048 |
- ) |
1049 |
- rtmp? ( media-video/rtmpdump ) |
1050 |
- samba? ( net-fs/samba ) |
1051 |
- selinux? ( sec-policy/selinux-mplayer ) |
1052 |
- sdl? ( media-libs/libsdl ) |
1053 |
- speex? ( media-libs/speex ) |
1054 |
- theora? ( media-libs/libtheora[encode?] ) |
1055 |
- truetype? ( ${FONT_RDEPS} ) |
1056 |
- vdpau? ( x11-libs/libvdpau ) |
1057 |
- vorbis? ( media-libs/libvorbis ) |
1058 |
- X? ( ${X_RDEPS} ) |
1059 |
- xanim? ( media-video/xanim ) |
1060 |
- xinerama? ( x11-libs/libXinerama ) |
1061 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
1062 |
- xv? ( x11-libs/libXv ) |
1063 |
- xvmc? ( x11-libs/libXvMC ) |
1064 |
-" |
1065 |
- |
1066 |
-X_DEPS=" |
1067 |
- x11-proto/videoproto |
1068 |
- x11-proto/xf86vidmodeproto |
1069 |
-" |
1070 |
-ASM_DEP="dev-lang/yasm" |
1071 |
-DEPEND="${RDEPEND} |
1072 |
- virtual/pkgconfig |
1073 |
- dga? ( x11-proto/xf86dgaproto ) |
1074 |
- X? ( ${X_DEPS} ) |
1075 |
- xinerama? ( x11-proto/xineramaproto ) |
1076 |
- xscreensaver? ( x11-proto/scrnsaverproto ) |
1077 |
- amd64? ( ${ASM_DEP} ) |
1078 |
- doc? ( |
1079 |
- dev-libs/libxslt app-text/docbook-xml-dtd |
1080 |
- app-text/docbook-xsl-stylesheets |
1081 |
- ) |
1082 |
- x86? ( ${ASM_DEP} ) |
1083 |
- x86-fbsd? ( ${ASM_DEP} ) |
1084 |
-" |
1085 |
- |
1086 |
-SLOT="0" |
1087 |
-LICENSE="GPL-2" |
1088 |
-if [[ ${PV} != *9999* ]]; then |
1089 |
- KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
1090 |
-else |
1091 |
- KEYWORDS="" |
1092 |
-fi |
1093 |
- |
1094 |
-# faac codecs are nonfree, win32codecs are nonfree |
1095 |
-# libcdio support: prefer libcdio over cdparanoia and don't check for cddb w/cdio |
1096 |
-# dvd navigation requires dvd read support |
1097 |
-# ass and freetype font require iconv and ass requires freetype fonts |
1098 |
-# unicode transformations are usefull only with iconv |
1099 |
-# libvorbis require external tremor to work |
1100 |
-# radio requires oss or alsa backend |
1101 |
-# xvmc requires xvideo support |
1102 |
-REQUIRED_USE=" |
1103 |
- dvdnav? ( dvd ) |
1104 |
- libass? ( truetype ) |
1105 |
- truetype? ( iconv ) |
1106 |
- ggi? ( X ) |
1107 |
- xinerama? ( X ) |
1108 |
- dga? ( X ) |
1109 |
- opengl? ( || ( X aqua ) ) |
1110 |
- osdmenu? ( || ( X aqua ) ) |
1111 |
- vdpau? ( X ) |
1112 |
- vidix? ( X ) |
1113 |
- xscreensaver? ( X ) |
1114 |
- xv? ( X ) |
1115 |
- xvmc? ( xv )" |
1116 |
-RESTRICT="faac? ( bindist )" |
1117 |
- |
1118 |
-PATCHES=( |
1119 |
- "${FILESDIR}/${PN}-1.0_rc4-pkg-config.patch" |
1120 |
- "${FILESDIR}/${PN}-1.1-ffmpeg.patch" |
1121 |
- "${FILESDIR}/${PN}-1.1-libav-0.8.patch" |
1122 |
- "${FILESDIR}/${PN}-1.1-codecid.patch" |
1123 |
-) |
1124 |
- |
1125 |
-pkg_setup() { |
1126 |
- if [[ ${PV} == *9999* ]]; then |
1127 |
- elog |
1128 |
- elog "This is a live ebuild which installs the latest from upstream's" |
1129 |
- elog "subversion repository, and is unsupported by Gentoo." |
1130 |
- elog "Everything but bugs in the ebuild itself will be ignored." |
1131 |
- elog |
1132 |
- fi |
1133 |
- |
1134 |
- if use cpudetection; then |
1135 |
- ewarn |
1136 |
- ewarn "You've enabled the cpudetection flag. This feature is" |
1137 |
- ewarn "included mainly for people who want to use the same" |
1138 |
- ewarn "binary on another system with a different CPU architecture." |
1139 |
- ewarn "MPlayer will already detect your CPU settings by default at" |
1140 |
- ewarn "buildtime; this flag is used for runtime detection." |
1141 |
- ewarn "You won't need this turned on if you are only building" |
1142 |
- ewarn "mplayer for this system. Also, if your compile fails, try" |
1143 |
- ewarn "disabling this use flag." |
1144 |
- fi |
1145 |
-} |
1146 |
- |
1147 |
-src_unpack() { |
1148 |
- if [[ ${PV} = *9999* ]]; then |
1149 |
- subversion_src_unpack |
1150 |
- cd "${WORKDIR}" |
1151 |
- rm -rf "${WORKDIR}/${P}/ffmpeg/" |
1152 |
- ( S="${WORKDIR}/${P}/ffmpeg/" git-2_src_unpack ) |
1153 |
- else |
1154 |
- unpack ${A} |
1155 |
- fi |
1156 |
- |
1157 |
- if [[ ${PV} = *9999* ]] || [[ "${PV%_rc*}" = "${PV}" ]]; then |
1158 |
- cd "${S}" |
1159 |
- cp "${FILESDIR}/dump_ffmpeg.sh" . || die |
1160 |
- chmod +x dump_ffmpeg.sh |
1161 |
- ./dump_ffmpeg.sh || die |
1162 |
- fi |
1163 |
- |
1164 |
- if ! use truetype; then |
1165 |
- unpack font-arial-iso-8859-1.tar.bz2 \ |
1166 |
- font-arial-iso-8859-2.tar.bz2 \ |
1167 |
- font-arial-cp1250.tar.bz2 |
1168 |
- fi |
1169 |
-} |
1170 |
- |
1171 |
-src_prepare() { |
1172 |
- local svf=snapshot_version |
1173 |
- if [[ ${PV} = *9999* ]]; then |
1174 |
- # Set SVN version manually |
1175 |
- subversion_wc_info |
1176 |
- printf "${ESVN_WC_REVISION}" > $svf |
1177 |
- fi |
1178 |
- if [ ! -f VERSION ] ; then |
1179 |
- [ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?" |
1180 |
- local sv=$(<$svf) |
1181 |
- printf "SVN-r${sv} (Gentoo)" > VERSION |
1182 |
- fi |
1183 |
- |
1184 |
- # fix path to bash executable in configure scripts |
1185 |
- sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die |
1186 |
- |
1187 |
- if has_version dev-libs/libcdio-paranoia; then |
1188 |
- sed -i \ |
1189 |
- -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \ |
1190 |
- -e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \ |
1191 |
- configure stream/stream_cdda.c || die |
1192 |
- fi |
1193 |
- |
1194 |
- base_src_prepare |
1195 |
- if has_version '>=media-video/libav-9_rc' || has_version '>=media-video/ffmpeg-1.1' ; then |
1196 |
- epatch "${FILESDIR}/${PN}-1.1-libav-9.patch" \ |
1197 |
- "${FILESDIR}/${PN}-1.1-planaraudio.patch" \ |
1198 |
- "${FILESDIR}/${PN}-1.1-missingbreak.patch" \ |
1199 |
- "${FILESDIR}/${PN}-1.1.1-avcodecidsubrip.patch" |
1200 |
- elif has_version '>=media-video/ffmpeg-1' ; then |
1201 |
- epatch "${FILESDIR}/${PN}-1.1.1-codecidsubrip.patch" |
1202 |
- fi |
1203 |
- |
1204 |
- # Use sane default for >=virtual/udev-197 |
1205 |
- sed -i -e '/default_dvd_device/s:/dev/dvd:/dev/cdrom:' configure || die |
1206 |
-} |
1207 |
- |
1208 |
-src_configure() { |
1209 |
- local myconf="" |
1210 |
- local uses i |
1211 |
- |
1212 |
- # set LINGUAS |
1213 |
- [[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}" |
1214 |
- |
1215 |
- # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable |
1216 |
- # compilation in almost every situation. The reason for this is |
1217 |
- # because if --enable is used, it will force the build of that option, |
1218 |
- # regardless of whether the dependency is available or not. |
1219 |
- |
1220 |
- ################### |
1221 |
- #Optional features# |
1222 |
- ################### |
1223 |
- # disable svga since we don't want it |
1224 |
- # disable arts since we don't have kde3 |
1225 |
- # always disable internal ass |
1226 |
- myconf+=" |
1227 |
- --disable-svga --disable-svgalib_helper |
1228 |
- --disable-ass-internal |
1229 |
- --disable-arts |
1230 |
- --disable-kai |
1231 |
- $(use_enable network networking) |
1232 |
- $(use_enable joystick) |
1233 |
- " |
1234 |
- uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild |
1235 |
- myconf+=" --disable-nemesi" # nemesi automagic disable |
1236 |
- for i in ${uses}; do |
1237 |
- use ${i} || myconf+=" --disable-${i}" |
1238 |
- done |
1239 |
- use bidi || myconf+=" --disable-fribidi" |
1240 |
- use ipv6 || myconf+=" --disable-inet6" |
1241 |
- use libass || myconf+=" --disable-ass" |
1242 |
- use nut || myconf+=" --disable-libnut" |
1243 |
- use rar || myconf+=" --disable-unrarexec" |
1244 |
- use samba || myconf+=" --disable-smb" |
1245 |
- use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir" |
1246 |
- |
1247 |
- # libcdio support: prefer libcdio over cdparanoia |
1248 |
- # don't check for cddb w/cdio |
1249 |
- if use cdio; then |
1250 |
- myconf+=" --disable-cdparanoia" |
1251 |
- else |
1252 |
- myconf+=" --disable-libcdio" |
1253 |
- use cdparanoia || myconf+=" --disable-cdparanoia" |
1254 |
- use cddb || myconf+=" --disable-cddb" |
1255 |
- fi |
1256 |
- |
1257 |
- ################################ |
1258 |
- # DVD read, navigation support # |
1259 |
- ################################ |
1260 |
- # |
1261 |
- # dvdread - accessing a DVD |
1262 |
- # dvdnav - navigation of menus |
1263 |
- # |
1264 |
- # use external libdvdcss, dvdread and dvdnav |
1265 |
- myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal" |
1266 |
- use dvd || myconf+=" --disable-dvdread" |
1267 |
- use dvdnav || myconf+=" --disable-dvdnav" |
1268 |
- |
1269 |
- ############# |
1270 |
- # Subtitles # |
1271 |
- ############# |
1272 |
- # |
1273 |
- # SRT/ASS/SSA (subtitles) requires freetype support |
1274 |
- # freetype support requires iconv |
1275 |
- # iconv optionally can use unicode |
1276 |
- use truetype || myconf+=" --disable-freetype" |
1277 |
- use iconv || myconf+=" --disable-iconv --charset=noconv" |
1278 |
- use iconv && use unicode && myconf+=" --charset=UTF-8" |
1279 |
- |
1280 |
- ##################################### |
1281 |
- # DVB / Video4Linux / Radio support # |
1282 |
- ##################################### |
1283 |
- myconf+=" --disable-tv-bsdbt848" |
1284 |
- # broken upstream, won't work with recent kernels |
1285 |
- myconf+=" --disable-ivtv" |
1286 |
- # gone since linux-headers-2.6.38 |
1287 |
- myconf+=" --disable-tv-v4l1" |
1288 |
- if { use dvb || use v4l || use pvr || use radio; }; then |
1289 |
- use dvb || myconf+=" --disable-dvb" |
1290 |
- use pvr || myconf+=" --disable-pvr" |
1291 |
- use v4l || myconf+=" --disable-tv-v4l2" |
1292 |
- if use radio && { use dvb || use v4l; }; then |
1293 |
- myconf+=" |
1294 |
- --enable-radio |
1295 |
- $(use_enable encode radio-capture) |
1296 |
- " |
1297 |
- else |
1298 |
- myconf+=" |
1299 |
- --disable-radio-v4l2 |
1300 |
- --disable-radio-bsdbt848 |
1301 |
- " |
1302 |
- fi |
1303 |
- else |
1304 |
- myconf+=" |
1305 |
- --disable-tv |
1306 |
- --disable-tv-v4l2 |
1307 |
- --disable-radio |
1308 |
- --disable-radio-v4l2 |
1309 |
- --disable-radio-bsdbt848 |
1310 |
- --disable-dvb |
1311 |
- --disable-v4l2 |
1312 |
- --disable-pvr" |
1313 |
- fi |
1314 |
- |
1315 |
- ########## |
1316 |
- # Codecs # |
1317 |
- ########## |
1318 |
- myconf+=" --disable-musepack" # Use internal musepack codecs for SV7 and SV8 support |
1319 |
- myconf+=" --disable-libmpeg2-internal" # always use system media-libs/libmpeg2 |
1320 |
- use dts || myconf+=" --disable-libdca" |
1321 |
- # Disable internal mp3lib, bug #384849 |
1322 |
- # Samuli Suominen: Looks like MPlayer in Portage is using internal mp3lib by |
1323 |
- # default, where as mpg123 upstream has incorporated all the optimizations |
1324 |
- # from mplayer's mp3lib in libmpg123 and more. |
1325 |
- # It makes very little sense to use the internal copy as default anymore. |
1326 |
- myconf+=" --disable-mp3lib" |
1327 |
- if ! use mp3; then |
1328 |
- myconf+=" |
1329 |
- --disable-mp3lame |
1330 |
- --disable-mpg123 |
1331 |
- " |
1332 |
- fi |
1333 |
- uses="a52 bs2b dv gsm lzo rtmp" |
1334 |
- for i in ${uses}; do |
1335 |
- use ${i} || myconf+=" --disable-lib${i}" |
1336 |
- done |
1337 |
- |
1338 |
- uses="faad gif jpeg libmpeg2 live mad mng png pnm speex tga theora xanim" |
1339 |
- for i in ${uses}; do |
1340 |
- use ${i} || myconf+=" --disable-${i}" |
1341 |
- done |
1342 |
- use jpeg2k || myconf+=" --disable-libopenjpeg" |
1343 |
- if use vorbis || use tremor; then |
1344 |
- use tremor || myconf+=" --disable-tremor-internal" |
1345 |
- use vorbis || myconf+=" --disable-libvorbis" |
1346 |
- else |
1347 |
- myconf+=" |
1348 |
- --disable-tremor-internal |
1349 |
- --disable-tremor |
1350 |
- --disable-libvorbis |
1351 |
- " |
1352 |
- fi |
1353 |
- # Encoding |
1354 |
- uses="faac x264 xvid toolame twolame" |
1355 |
- if use encode; then |
1356 |
- for i in ${uses}; do |
1357 |
- use ${i} || myconf+=" --disable-${i}" |
1358 |
- done |
1359 |
- else |
1360 |
- myconf+=" --disable-mencoder" |
1361 |
- for i in ${uses}; do |
1362 |
- myconf+=" --disable-${i}" |
1363 |
- use ${i} && elog "Useflag \"${i}\" will only be useful for encoding, i.e., with \"encode\" useflag enabled." |
1364 |
- done |
1365 |
- fi |
1366 |
- |
1367 |
- ################# |
1368 |
- # Binary codecs # |
1369 |
- ################# |
1370 |
- # bug 213836 |
1371 |
- use quicktime || myconf+=" --disable-qtx" |
1372 |
- myconf+=" --disable-real --disable-win32dll" |
1373 |
- |
1374 |
- ################ |
1375 |
- # Video Output # |
1376 |
- ################ |
1377 |
- uses="directfb md5sum sdl" |
1378 |
- for i in ${uses}; do |
1379 |
- use ${i} || myconf+=" --disable-${i}" |
1380 |
- done |
1381 |
- use aalib || myconf+=" --disable-aa" |
1382 |
- use fbcon || myconf+=" --disable-fbdev" |
1383 |
- use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb" |
1384 |
- use libcaca || myconf+=" --disable-caca" |
1385 |
- use zoran || myconf+=" --disable-zr" |
1386 |
- |
1387 |
- if ! use kernel_linux || ! use video_cards_mga; then |
1388 |
- myconf+=" --disable-mga --disable-xmga" |
1389 |
- fi |
1390 |
- |
1391 |
- if use video_cards_tdfx; then |
1392 |
- myconf+=" |
1393 |
- $(use_enable video_cards_tdfx tdfxvid) |
1394 |
- $(use_enable fbcon tdfxfb) |
1395 |
- " |
1396 |
- else |
1397 |
- myconf+=" |
1398 |
- --disable-3dfx |
1399 |
- --disable-tdfxvid |
1400 |
- --disable-tdfxfb |
1401 |
- " |
1402 |
- fi |
1403 |
- |
1404 |
- # sun card, disable by default, see bug #258729 |
1405 |
- myconf+=" --disable-xvr100" |
1406 |
- |
1407 |
- ################ |
1408 |
- # Audio Output # |
1409 |
- ################ |
1410 |
- myconf+=" --disable-esd" |
1411 |
- uses="alsa jack ladspa nas openal" |
1412 |
- for i in ${uses}; do |
1413 |
- use ${i} || myconf+=" --disable-${i}" |
1414 |
- done |
1415 |
- use pulseaudio || myconf+=" --disable-pulse" |
1416 |
- if ! use radio; then |
1417 |
- use oss || myconf+=" --disable-ossaudio" |
1418 |
- fi |
1419 |
- |
1420 |
- #################### |
1421 |
- # Advanced Options # |
1422 |
- #################### |
1423 |
- # Platform specific flags, hardcoded on amd64 (see below) |
1424 |
- use cpudetection && myconf+=" --enable-runtime-cpudetection" |
1425 |
- |
1426 |
- uses="3dnow 3dnowext mmx mmxext sse sse2 ssse3" |
1427 |
- for i in ${uses}; do |
1428 |
- myconf+=" $(use_enable cpu_flags_x86_${i} ${i})" |
1429 |
- done |
1430 |
- |
1431 |
- uses="altivec shm" |
1432 |
- for i in ${uses}; do |
1433 |
- myconf+=" $(use_enable ${i})" |
1434 |
- done |
1435 |
- |
1436 |
- use debug && myconf+=" --enable-debug=3" |
1437 |
- |
1438 |
- if use x86 && gcc-specs-pie; then |
1439 |
- filter-flags -fPIC -fPIE |
1440 |
- append-ldflags -nopie |
1441 |
- fi |
1442 |
- |
1443 |
- ########################### |
1444 |
- # X enabled configuration # |
1445 |
- ########################### |
1446 |
- myconf+=" --disable-gui" |
1447 |
- myconf+=" --disable-vesa" |
1448 |
- uses="ggi vdpau xinerama xv" |
1449 |
- for i in ${uses}; do |
1450 |
- use ${i} || myconf+=" --disable-${i}" |
1451 |
- done |
1452 |
- use dga || myconf+=" --disable-dga1 --disable-dga2" |
1453 |
- use opengl || myconf+=" --disable-gl" |
1454 |
- use osdmenu && myconf+=" --enable-menu" |
1455 |
- use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb" |
1456 |
- use xscreensaver || myconf+=" --disable-xss" |
1457 |
- use X || myconf+=" --disable-x11" |
1458 |
- if use xvmc; then |
1459 |
- myconf+=" --enable-xvmc --with-xvmclib=XvMCW" |
1460 |
- else |
1461 |
- myconf+=" --disable-xvmc" |
1462 |
- fi |
1463 |
- |
1464 |
- ############################ |
1465 |
- # OSX (aqua) configuration # |
1466 |
- ############################ |
1467 |
- if use aqua; then |
1468 |
- myconf+=" |
1469 |
- --enable-macosx-finder |
1470 |
- --enable-macosx-bundle |
1471 |
- " |
1472 |
- fi |
1473 |
- |
1474 |
- tc-export PKG_CONFIG |
1475 |
- ./configure \ |
1476 |
- --cc="$(tc-getCC)" \ |
1477 |
- --host-cc="$(tc-getBUILD_CC)" \ |
1478 |
- --prefix="${EPREFIX}/usr" \ |
1479 |
- --bindir="${EPREFIX}/usr/bin" \ |
1480 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
1481 |
- --confdir="${EPREFIX}/etc/mplayer" \ |
1482 |
- --datadir="${EPREFIX}/usr/share/mplayer${namesuf}" \ |
1483 |
- --mandir="${EPREFIX}/usr/share/man" \ |
1484 |
- --disable-ffmpeg_a \ |
1485 |
- ${myconf} || die |
1486 |
-} |
1487 |
- |
1488 |
-src_compile() { |
1489 |
- base_src_compile |
1490 |
- # Build only user-requested docs if they're available. |
1491 |
- if use doc ; then |
1492 |
- # select available languages from $LINGUAS |
1493 |
- LINGUAS=${LINGUAS/zh/zh_CN} |
1494 |
- local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN" |
1495 |
- local BUILT_DOCS="" |
1496 |
- for i in ${LINGUAS} ; do |
1497 |
- has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}" |
1498 |
- done |
1499 |
- if [[ -z $BUILT_DOCS ]]; then |
1500 |
- emake -j1 html-chunked |
1501 |
- else |
1502 |
- for i in ${BUILT_DOCS}; do |
1503 |
- emake -j1 html-chunked-${i} |
1504 |
- done |
1505 |
- fi |
1506 |
- fi |
1507 |
-} |
1508 |
- |
1509 |
-src_install() { |
1510 |
- local i |
1511 |
- |
1512 |
- emake \ |
1513 |
- DESTDIR="${D}" \ |
1514 |
- INSTALLSTRIP="" \ |
1515 |
- install |
1516 |
- |
1517 |
- dodoc AUTHORS Changelog Copyright README etc/codecs.conf |
1518 |
- |
1519 |
- docinto tech/ |
1520 |
- dodoc DOCS/tech/{*.txt,MAINTAINERS,mpsub.sub,playtree,TODO,wishlist} |
1521 |
- docinto TOOLS/ |
1522 |
- dodoc -r TOOLS |
1523 |
- docinto tech/mirrors/ |
1524 |
- dodoc DOCS/tech/mirrors/* |
1525 |
- |
1526 |
- if use doc; then |
1527 |
- docinto html/ |
1528 |
- dohtml -r "${S}"/DOCS/HTML/* |
1529 |
- fi |
1530 |
- |
1531 |
- if ! use truetype; then |
1532 |
- dodir /usr/share/mplayer/fonts |
1533 |
- # Do this generic, as the mplayer people like to change the structure |
1534 |
- # of their zips ... |
1535 |
- for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do |
1536 |
- cp -pPR "${i}" "${ED}/usr/share/mplayer/fonts" |
1537 |
- done |
1538 |
- # Fix the font symlink ... |
1539 |
- rm -rf "${ED}/usr/share/mplayer/font" |
1540 |
- dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font |
1541 |
- fi |
1542 |
- |
1543 |
- insinto /etc/mplayer |
1544 |
- newins "${S}/etc/example.conf" mplayer.conf |
1545 |
- cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_ |
1546 |
-# Config options can be section specific, global |
1547 |
-# options should go in the default section |
1548 |
-[default] |
1549 |
-_EOF_ |
1550 |
- doins "${S}/etc/input.conf" |
1551 |
- if use osdmenu; then |
1552 |
- doins "${S}/etc/menu.conf" |
1553 |
- fi |
1554 |
- |
1555 |
- if use truetype; then |
1556 |
- cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_ |
1557 |
-fontconfig=1 |
1558 |
-subfont-osd-scale=4 |
1559 |
-subfont-text-scale=3 |
1560 |
-_EOF_ |
1561 |
- fi |
1562 |
- |
1563 |
- # bug 256203 |
1564 |
- if use rar; then |
1565 |
- cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_ |
1566 |
-unrarexec=${EPREFIX}/usr/bin/unrar |
1567 |
-_EOF_ |
1568 |
- fi |
1569 |
- |
1570 |
- dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf |
1571 |
- newbin "${S}/TOOLS/midentify.sh" midentify |
1572 |
-} |
1573 |
- |
1574 |
-pkg_preinst() { |
1575 |
- [[ -d ${EROOT}/usr/share/mplayer/Skin/default ]] && \ |
1576 |
- rm -rf "${EROOT}/usr/share/mplayer/Skin/default" |
1577 |
-} |
1578 |
- |
1579 |
-pkg_postrm() { |
1580 |
- # Cleanup stale symlinks |
1581 |
- [ -L "${EROOT}/usr/share/mplayer/font" -a \ |
1582 |
- ! -e "${EROOT}/usr/share/mplayer/font" ] && \ |
1583 |
- rm -f "${EROOT}/usr/share/mplayer/font" |
1584 |
- |
1585 |
- [ -L "${EROOT}/usr/share/mplayer/subfont.ttf" -a \ |
1586 |
- ! -e "${EROOT}/usr/share/mplayer/subfont.ttf" ] && \ |
1587 |
- rm -f "${EROOT}/usr/share/mplayer/subfont.ttf" |
1588 |
-} |