1 |
commit: 2e56c8d3ad3600f4ac7a50384d5ca9952796347f |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 20:14:16 2016 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 20:35:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e56c8d3 |
7 |
|
8 |
www-plugins/gnash: Remove 0.8.10_p20160329 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
.../gnash/files/gnash-0.8.10-boost-1.50.patch | 24 -- |
13 |
.../gnash/files/gnash-0.8.10-gettext-macro.patch | 170 ------------ |
14 |
.../gnash/files/gnash-0.8.10-libva-1.6_0000.patch | 43 --- |
15 |
.../gnash/files/gnash-0.8.10-libva-1.6_0001.patch | 28 -- |
16 |
.../files/gnash-0.8.10_p20120903-bytesfmt.patch | 32 --- |
17 |
.../files/gnash-0.8.10_p20120903-ffmpeg1.patch | 252 ------------------ |
18 |
.../files/gnash-0.8.10_p20120903-libav9.patch | 85 ------ |
19 |
.../gnash/files/gnash-0.8.11-gettext-macro.patch | 29 --- |
20 |
www-plugins/gnash/gnash-0.8.10_p20160329.ebuild | 288 --------------------- |
21 |
9 files changed, 951 deletions(-) |
22 |
|
23 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10-boost-1.50.patch b/www-plugins/gnash/files/gnash-0.8.10-boost-1.50.patch |
24 |
deleted file mode 100644 |
25 |
index ed774ed..00000000 |
26 |
--- a/www-plugins/gnash/files/gnash-0.8.10-boost-1.50.patch |
27 |
+++ /dev/null |
28 |
@@ -1,24 +0,0 @@ |
29 |
-diff -ur a/macros/boost.m4 b/macros/boost.m4 |
30 |
---- a/macros/boost.m4 2012-09-03 17:11:43.000000000 +0200 |
31 |
-+++ b/macros/boost.m4 2012-10-16 01:58:28.000000000 +0200 |
32 |
-@@ -37,7 +37,7 @@ |
33 |
- boost_headers="detail/lightweight_mutex.hpp thread/thread.hpp multi_index_container.hpp multi_index/key_extractors.hpp thread/mutex.hpp program_options/options_description.hpp iostreams/stream.hpp" |
34 |
- dnl this is a list of *required* libraries. If any of these are missing, this |
35 |
- dnl test will return a failure, and Gnash won't build. |
36 |
-- boost_libs="thread program_options iostreams" |
37 |
-+ boost_libs="thread program_options iostreams system" |
38 |
- |
39 |
- dnl this is a list of *recommended* libraries. If any of these are missing, this |
40 |
- dnl test will return a warning, and Gnash will build, but testing won't work. |
41 |
-diff -ur a/plugin/npapi/Makefile.am b/plugin/npapi/Makefile.am |
42 |
---- a/plugin/npapi/Makefile.am 2012-09-03 17:11:43.000000000 +0200 |
43 |
-+++ b/plugin/npapi/Makefile.am 2012-10-16 01:58:57.000000000 +0200 |
44 |
-@@ -78,7 +78,7 @@ |
45 |
- |
46 |
- libgnashplugin_la_LIBADD = \ |
47 |
- $(GLIB_LIBS) \ |
48 |
-- -lboost_iostreams \ |
49 |
-+ $(BOOST_LIBS) \ |
50 |
- $(NULL) |
51 |
- |
52 |
- # Scriptable plugin support |
53 |
|
54 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10-gettext-macro.patch b/www-plugins/gnash/files/gnash-0.8.10-gettext-macro.patch |
55 |
deleted file mode 100644 |
56 |
index 0501f74..00000000 |
57 |
--- a/www-plugins/gnash/files/gnash-0.8.10-gettext-macro.patch |
58 |
+++ /dev/null |
59 |
@@ -1,170 +0,0 @@ |
60 |
-diff -ur a/libdevice/vaapi/VaapiImage.cpp b/libdevice/vaapi/VaapiImage.cpp |
61 |
---- a/libdevice/vaapi/VaapiImage.cpp 2012-01-19 20:17:48.000000000 +0100 |
62 |
-+++ b/libdevice/vaapi/VaapiImage.cpp 2012-02-23 19:05:13.000000000 +0100 |
63 |
-@@ -35,7 +35,7 @@ |
64 |
- : _format(format) |
65 |
- , _image_data(NULL) |
66 |
- { |
67 |
-- log_debug(_("VaapiImage::VaapiImage(): format '%s'\n", string_of_FOURCC(format))); |
68 |
-+ log_debug("VaapiImage::VaapiImage(): format '%s'\n", string_of_FOURCC(format)); |
69 |
- |
70 |
- memset(&_image, 0, sizeof(_image)); |
71 |
- _image.image_id = VA_INVALID_ID; |
72 |
-@@ -79,7 +79,7 @@ |
73 |
- if (!vaapi_check_status(status, "vaCreateImage()")) |
74 |
- return false; |
75 |
- |
76 |
-- log_debug(_(" image 0x%08x, format '%s'\n", get(), string_of_FOURCC(_format))); |
77 |
-+ log_debug(" image 0x%08x, format '%s'\n", get(), string_of_FOURCC(_format)); |
78 |
- |
79 |
- return true; |
80 |
- } |
81 |
-diff -ur a/libdevice/vaapi/VaapiSubpicture.cpp b/libdevice/vaapi/VaapiSubpicture.cpp |
82 |
---- a/libdevice/vaapi/VaapiSubpicture.cpp 2012-01-19 20:17:48.000000000 +0100 |
83 |
-+++ b/libdevice/vaapi/VaapiSubpicture.cpp 2012-02-23 19:05:13.000000000 +0100 |
84 |
-@@ -32,7 +32,7 @@ |
85 |
- : _image(image) |
86 |
- , _subpicture(VA_INVALID_ID) |
87 |
- { |
88 |
-- log_debug(_("VaapiSubpicture::VaapiSubpicture(): format '%s'\n", string_of_FOURCC(image->format()))); |
89 |
-+ log_debug("VaapiSubpicture::VaapiSubpicture(): format '%s'\n", string_of_FOURCC(image->format())); |
90 |
- |
91 |
- if (!create()) { |
92 |
- boost::format msg; |
93 |
-diff -ur a/libdevice/vaapi/VaapiSurface.cpp b/libdevice/vaapi/VaapiSurface.cpp |
94 |
---- a/libdevice/vaapi/VaapiSurface.cpp 2012-01-19 20:17:48.000000000 +0100 |
95 |
-+++ b/libdevice/vaapi/VaapiSurface.cpp 2012-02-23 19:05:13.000000000 +0100 |
96 |
-@@ -74,7 +74,7 @@ |
97 |
- |
98 |
- VaapiSurfaceImpl::~VaapiSurfaceImpl() |
99 |
- { |
100 |
-- log_debug(_("VaapiSurface::~VaapiSurface(): surface 0x%08x\n", surface())); |
101 |
-+ log_debug("VaapiSurface::~VaapiSurface(): surface 0x%08x\n", surface()); |
102 |
- |
103 |
- if (surface() == VA_INVALID_SURFACE) { |
104 |
- return; |
105 |
-diff -ur a/libdevice/vaapi/VaapiSurfaceGLX.cpp b/libdevice/vaapi/VaapiSurfaceGLX.cpp |
106 |
---- a/libdevice/vaapi/VaapiSurfaceGLX.cpp 2012-01-19 20:17:48.000000000 +0100 |
107 |
-+++ b/libdevice/vaapi/VaapiSurfaceGLX.cpp 2012-02-23 19:05:13.000000000 +0100 |
108 |
-@@ -202,14 +202,14 @@ |
109 |
- |
110 |
- reset(reinterpret_cast<uintptr_t>(surface)); |
111 |
- |
112 |
-- log_debug(_(" -> surface %p\n", this->surface())); |
113 |
-+ log_debug(" -> surface %p\n", this->surface()); |
114 |
- } |
115 |
- |
116 |
- VaapiSurfaceGLXImpl::~VaapiSurfaceGLXImpl() |
117 |
- { |
118 |
- // GNASH_REPORT_FUNCTION; |
119 |
- |
120 |
-- log_debug(_("VaapiSurface::~VaapiSurface(): surface %p\n", surface())); |
121 |
-+ log_debug("VaapiSurface::~VaapiSurface(): surface %p\n", surface()); |
122 |
- |
123 |
- if (!surface()) { |
124 |
- return; |
125 |
-@@ -263,7 +263,7 @@ |
126 |
- |
127 |
- bool VaapiSurfaceGLX::update(boost::shared_ptr<VaapiSurface> surface) |
128 |
- { |
129 |
-- log_debug(_("VaapiSurfaceGLX::update(): from surface 0x%08x\n", surface->get())); |
130 |
-+ log_debug("VaapiSurfaceGLX::update(): from surface 0x%08x\n", surface->get()); |
131 |
- |
132 |
- return dynamic_cast<VaapiSurfaceGLXImpl *>(_impl.get())->update(surface); |
133 |
- } |
134 |
-diff -ur a/libdevice/vaapi/VaapiSurfaceProxy.cpp b/libdevice/vaapi/VaapiSurfaceProxy.cpp |
135 |
---- a/libdevice/vaapi/VaapiSurfaceProxy.cpp 2012-01-19 20:17:48.000000000 +0100 |
136 |
-+++ b/libdevice/vaapi/VaapiSurfaceProxy.cpp 2012-02-23 19:05:13.000000000 +0100 |
137 |
-@@ -28,12 +28,12 @@ |
138 |
- boost::shared_ptr<VaapiContext> context) |
139 |
- : _context(context), _surface(surface) |
140 |
- { |
141 |
-- log_debug(_("VaapiSurfaceProxy::VaapiSurfaceProxy(): surface 0x%08x\n", _surface->get())); |
142 |
-+ log_debug("VaapiSurfaceProxy::VaapiSurfaceProxy(): surface 0x%08x\n", _surface->get()); |
143 |
- } |
144 |
- |
145 |
- VaapiSurfaceProxy::~VaapiSurfaceProxy() |
146 |
- { |
147 |
-- log_debug(_("VaapiSurfaceProxy::~VaapiSurfaceProxy(): surface 0x%08x\n", _surface->get())); |
148 |
-+ log_debug("VaapiSurfaceProxy::~VaapiSurfaceProxy(): surface 0x%08x\n", _surface->get()); |
149 |
- |
150 |
- _context->releaseSurface(_surface); |
151 |
- } |
152 |
-diff -ur a/libdevice/x11/X11Device.cpp b/libdevice/x11/X11Device.cpp |
153 |
---- a/libdevice/x11/X11Device.cpp 2012-01-19 20:17:48.000000000 +0100 |
154 |
-+++ b/libdevice/x11/X11Device.cpp 2012-02-23 19:05:13.000000000 +0100 |
155 |
-@@ -85,7 +85,7 @@ |
156 |
- GNASH_REPORT_FUNCTION; |
157 |
- |
158 |
- if (!initDevice(0, 0)) { |
159 |
-- log_error(_("Couldn't initialize X11 device!")); |
160 |
-+ log_error("Couldn't initialize X11 device!"); |
161 |
- } |
162 |
- } |
163 |
- |
164 |
-@@ -103,7 +103,7 @@ |
165 |
- GNASH_REPORT_FUNCTION; |
166 |
- |
167 |
- if (!initDevice(argc, argv)) { |
168 |
-- log_error(_("Couldn't initialize X11 device!")); |
169 |
-+ log_error("Couldn't initialize X11 device!"); |
170 |
- } |
171 |
- } |
172 |
- |
173 |
-@@ -139,7 +139,7 @@ |
174 |
- |
175 |
- _display = XOpenDisplay(dpyName); |
176 |
- if (!_display) { |
177 |
-- log_error(_("couldn't open X11 display!")); |
178 |
-+ log_error("couldn't open X11 display!"); |
179 |
- return false; |
180 |
- } |
181 |
- |
182 |
-@@ -159,7 +159,7 @@ |
183 |
- _vinfo = XGetVisualInfo(_display, VisualIDMask, &visTemplate, &num_visuals); |
184 |
- std::cerr << "Num Visuals: " << num_visuals << std::endl; |
185 |
- if (!_vinfo) { |
186 |
-- log_error(_("Error: couldn't get X visual\n")); |
187 |
-+ log_error("Error: couldn't get X visual\n"); |
188 |
- exit(1); |
189 |
- } |
190 |
- std::cerr << "X11 visual is: " << _vinfo->visual << std::endl; |
191 |
-@@ -196,7 +196,7 @@ |
192 |
- if (_display) { |
193 |
- XGetErrorText(_display, error, msg, 80); |
194 |
- } else { |
195 |
-- log_error(_("The default Display is not set!")); |
196 |
-+ log_error("The default Display is not set!"); |
197 |
- } |
198 |
- |
199 |
- return msg; |
200 |
-@@ -209,12 +209,12 @@ |
201 |
- GNASH_REPORT_FUNCTION; |
202 |
- |
203 |
- if (!_display) { |
204 |
-- log_error(_("No Display device set!")); |
205 |
-+ log_error("No Display device set!"); |
206 |
- return; |
207 |
- } |
208 |
- |
209 |
- if (!_root) { |
210 |
-- log_error(_("No drawable window set!")); |
211 |
-+ log_error("No drawable window set!"); |
212 |
- return; |
213 |
- } |
214 |
- |
215 |
-@@ -279,11 +279,11 @@ |
216 |
- case KeyPress: |
217 |
- { |
218 |
- char buffer[10]; |
219 |
-- int code; |
220 |
-+ int r, code; |
221 |
- code = XLookupKeysym(&event.xkey, 0); |
222 |
- if (!keyPress || !keyPress(code)) { |
223 |
-- // int r = XLookupString(&event.xkey, buffer, sizeof(buffer), |
224 |
-- // NULL, NULL); |
225 |
-+ r = XLookupString(&event.xkey, buffer, sizeof(buffer), |
226 |
-+ NULL, NULL); |
227 |
- if (buffer[0] == 27) { |
228 |
- // escape |
229 |
- return; |
230 |
|
231 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch b/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch |
232 |
deleted file mode 100644 |
233 |
index d914f4a..00000000 |
234 |
--- a/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch |
235 |
+++ /dev/null |
236 |
@@ -1,43 +0,0 @@ |
237 |
-From e5c08131abde15f7a1e048e35d1a9ff12b2acdaa Mon Sep 17 00:00:00 2001 |
238 |
-From: Bastiaan Jacques <bastiaan@××××××××.org> |
239 |
-Date: Thu, 26 Mar 2015 15:24:21 +0000 |
240 |
-Subject: Build fix: adjust smart pointers to unique_ptr API. |
241 |
- |
242 |
---- |
243 |
-diff --git a/libdevice/vaapi/VaapiContext.h b/libdevice/vaapi/VaapiContext.h |
244 |
-index 8d9de72..c49d48a 100644 |
245 |
---- a/libdevice/vaapi/VaapiContext.h |
246 |
-+++ b/libdevice/vaapi/VaapiContext.h |
247 |
-@@ -84,7 +84,7 @@ public: |
248 |
- void releaseSurface(std::shared_ptr<VaapiSurface> surface); |
249 |
- |
250 |
- /// Set user data |
251 |
-- void setData(std::unique_ptr<VaapiContextData> user_data) { _user_data = user_data; } |
252 |
-+ void setData(std::unique_ptr<VaapiContextData> user_data) { _user_data = std::move(user_data); } |
253 |
- |
254 |
- /// Get user data |
255 |
- VaapiContextData *getData() const { return _user_data.get(); } |
256 |
-diff --git a/libdevice/vaapi/VaapiGlobalContext.cpp b/libdevice/vaapi/VaapiGlobalContext.cpp |
257 |
-index c19ed07..5127a27 100644 |
258 |
---- a/libdevice/vaapi/VaapiGlobalContext.cpp |
259 |
-+++ b/libdevice/vaapi/VaapiGlobalContext.cpp |
260 |
-@@ -33,7 +33,7 @@ |
261 |
- namespace gnash { |
262 |
- |
263 |
- VaapiGlobalContext::VaapiGlobalContext(std::unique_ptr<VaapiDisplay> display) |
264 |
-- : _display(display) |
265 |
-+ : _display(std::move(display)) |
266 |
- { |
267 |
- GNASH_REPORT_FUNCTION; |
268 |
- |
269 |
-@@ -145,7 +145,7 @@ VaapiGlobalContext *VaapiGlobalContext::get() |
270 |
- if (!dpy.get()) { |
271 |
- return NULL; |
272 |
- } |
273 |
-- vaapi_global_context.reset(new VaapiGlobalContext(dpy)); |
274 |
-+ vaapi_global_context.reset(new VaapiGlobalContext(std::move(dpy))); |
275 |
- } |
276 |
- catch (...) { |
277 |
- vaapi_set_is_enabled(false); |
278 |
--- |
279 |
-cgit v0.9.0.2 |
280 |
|
281 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0001.patch b/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0001.patch |
282 |
deleted file mode 100644 |
283 |
index 4c25a98..00000000 |
284 |
--- a/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0001.patch |
285 |
+++ /dev/null |
286 |
@@ -1,28 +0,0 @@ |
287 |
-From f5016cc9399c9ffd3c5d32c67bb28fac285559c6 Mon Sep 17 00:00:00 2001 |
288 |
-From: Bastiaan Jacques <bastiaan@××××××××.org> |
289 |
-Date: Wed, 09 Sep 2015 19:25:31 +0000 |
290 |
-Subject: Compilation fix. See Savannah #44636. |
291 |
- |
292 |
-Also skip useless NULL check. |
293 |
---- |
294 |
-diff --git a/gui/gtk/gtk_glue_agg_vaapi.cpp b/gui/gtk/gtk_glue_agg_vaapi.cpp |
295 |
-index 1eda283..6209e89 100644 |
296 |
---- a/gui/gtk/gtk_glue_agg_vaapi.cpp |
297 |
-+++ b/gui/gtk/gtk_glue_agg_vaapi.cpp |
298 |
-@@ -301,11 +301,9 @@ GtkAggVaapiGlue::getVideoWindow(std::shared_ptr<VaapiSurface> surface, |
299 |
- return NULL; |
300 |
- |
301 |
- if (!context->getData()) { |
302 |
-- std::unique_ptr<VaapiContextData> contextData; |
303 |
-- contextData.reset(new VaapiVideoWindow(parent_window, rect)); |
304 |
-- if (!contextData.get()) |
305 |
-- return NULL; |
306 |
-- context->setData(contextData); |
307 |
-+ context->setData( |
308 |
-+ std::unique_ptr<VaapiContextData>( |
309 |
-+ new VaapiVideoWindow(parent_window, rect))); |
310 |
- } |
311 |
- return dynamic_cast<VaapiVideoWindow *>(context->getData()); |
312 |
- } |
313 |
--- |
314 |
-cgit v0.9.0.2 |
315 |
|
316 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10_p20120903-bytesfmt.patch b/www-plugins/gnash/files/gnash-0.8.10_p20120903-bytesfmt.patch |
317 |
deleted file mode 100644 |
318 |
index 918be74..00000000 |
319 |
--- a/www-plugins/gnash/files/gnash-0.8.10_p20120903-bytesfmt.patch |
320 |
+++ /dev/null |
321 |
@@ -1,32 +0,0 @@ |
322 |
-commit 80989fcd47d33e30336785422ded17f4c607a113 |
323 |
-Author: Alexis Ballier <aballier@g.o> |
324 |
-Date: Thu Feb 14 17:21:50 2013 -0300 |
325 |
- |
326 |
- Use av_get_bytes_per_sample in SampleFormatToSampleSize (#38333) |
327 |
- |
328 |
- This is more future proof against the addition of sample formats. |
329 |
- |
330 |
- Signed-off-by: Sandro Santilli <strk@××××××.net> |
331 |
- |
332 |
-diff --git a/libmedia/ffmpeg/MediaParserFfmpeg.cpp b/libmedia/ffmpeg/MediaParserFfmpeg.cpp |
333 |
-index 136cc08..83b1d74 100644 |
334 |
---- a/libmedia/ffmpeg/MediaParserFfmpeg.cpp |
335 |
-+++ b/libmedia/ffmpeg/MediaParserFfmpeg.cpp |
336 |
-@@ -646,6 +646,9 @@ MediaParserFfmpeg::seekMedia(boost::int64_t offset, int whence) |
337 |
- boost::uint16_t |
338 |
- MediaParserFfmpeg::SampleFormatToSampleSize(AVSampleFormat fmt) |
339 |
- { |
340 |
-+#if LIBAVUTIL_VERSION_INT > AV_VERSION_INT(51,4,0) |
341 |
-+ return av_get_bytes_per_sample(fmt); |
342 |
-+#else |
343 |
- switch (fmt) |
344 |
- { |
345 |
- case AV_SAMPLE_FMT_U8: // unsigned 8 bits |
346 |
-@@ -668,6 +671,7 @@ MediaParserFfmpeg::SampleFormatToSampleSize(AVSampleFormat fmt) |
347 |
- default: |
348 |
- return 8; // arbitrary value |
349 |
- } |
350 |
-+#endif |
351 |
- } |
352 |
- |
353 |
- |
354 |
|
355 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10_p20120903-ffmpeg1.patch b/www-plugins/gnash/files/gnash-0.8.10_p20120903-ffmpeg1.patch |
356 |
deleted file mode 100644 |
357 |
index 0759e44..00000000 |
358 |
--- a/www-plugins/gnash/files/gnash-0.8.10_p20120903-ffmpeg1.patch |
359 |
+++ /dev/null |
360 |
@@ -1,252 +0,0 @@ |
361 |
-commit 4b3dae970549d42723c2528c250a1f95248145c7 |
362 |
-Author: Alexis Ballier <aballier@g.o> |
363 |
-Date: Wed Feb 13 14:38:44 2013 -0300 |
364 |
- |
365 |
- Fix build with latest FFmpeg (second attempt) |
366 |
- |
367 |
- Add ifdefery to be compatible with older versions. |
368 |
- See ticket #38122 |
369 |
- |
370 |
- Signed-off-by: Sandro Santilli <strk@××××××.net> |
371 |
- |
372 |
-diff --git a/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp b/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp |
373 |
-index 067e418..5c8e1ad 100644 |
374 |
---- a/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp |
375 |
-+++ b/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp |
376 |
-@@ -84,8 +84,10 @@ AudioDecoderFfmpeg::~AudioDecoderFfmpeg() |
377 |
- |
378 |
- void AudioDecoderFfmpeg::setup(SoundInfo& info) |
379 |
- { |
380 |
-- // Init the avdecoder-decoder |
381 |
-+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52,6,2) |
382 |
-+ // Starting from this version avcodec_register calls avcodec_init |
383 |
- avcodec_init(); |
384 |
-+#endif |
385 |
- avcodec_register_all();// change this to only register need codec? |
386 |
- |
387 |
- enum CodecID codec_id; |
388 |
-@@ -158,14 +160,14 @@ void AudioDecoderFfmpeg::setup(SoundInfo& info) |
389 |
- case CODEC_ID_PCM_U16LE: |
390 |
- _audioCodecCtx->channels = (info.isStereo() ? 2 : 1); |
391 |
- _audioCodecCtx->sample_rate = info.getSampleRate(); |
392 |
-- _audioCodecCtx->sample_fmt = SAMPLE_FMT_S16; // ?! arbitrary ? |
393 |
-+ _audioCodecCtx->sample_fmt = AV_SAMPLE_FMT_S16; // ?! arbitrary ? |
394 |
- _audioCodecCtx->frame_size = 1; |
395 |
- break; |
396 |
- |
397 |
- default: |
398 |
- _audioCodecCtx->channels = (info.isStereo() ? 2 : 1); |
399 |
- _audioCodecCtx->sample_rate = info.getSampleRate(); |
400 |
-- _audioCodecCtx->sample_fmt = SAMPLE_FMT_S16; // ?! arbitrary ? |
401 |
-+ _audioCodecCtx->sample_fmt = AV_SAMPLE_FMT_S16; // ?! arbitrary ? |
402 |
- break; |
403 |
- } |
404 |
- } |
405 |
-@@ -173,7 +175,10 @@ void AudioDecoderFfmpeg::setup(SoundInfo& info) |
406 |
- void AudioDecoderFfmpeg::setup(const AudioInfo& info) |
407 |
- { |
408 |
- // Init the avdecoder-decoder |
409 |
-+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52,6,2) |
410 |
-+ // Starting from this version avcodec_register calls avcodec_init |
411 |
- avcodec_init(); |
412 |
-+#endif |
413 |
- avcodec_register_all();// change this to only register need codec? |
414 |
- |
415 |
- enum CodecID codec_id = CODEC_ID_NONE; |
416 |
-@@ -297,7 +302,7 @@ void AudioDecoderFfmpeg::setup(const AudioInfo& info) |
417 |
- _audioCodecCtx->channels = (info.stereo ? 2 : 1); |
418 |
- _audioCodecCtx->sample_rate = info.sampleRate; |
419 |
- // was commented out (why?): |
420 |
-- _audioCodecCtx->sample_fmt = SAMPLE_FMT_S16; |
421 |
-+ _audioCodecCtx->sample_fmt = AV_SAMPLE_FMT_S16; |
422 |
- break; |
423 |
- } |
424 |
- |
425 |
-diff --git a/libmedia/ffmpeg/MediaParserFfmpeg.cpp b/libmedia/ffmpeg/MediaParserFfmpeg.cpp |
426 |
-index d6e6902..136cc08 100644 |
427 |
---- a/libmedia/ffmpeg/MediaParserFfmpeg.cpp |
428 |
-+++ b/libmedia/ffmpeg/MediaParserFfmpeg.cpp |
429 |
-@@ -344,8 +344,10 @@ MediaParserFfmpeg::initializeParser() |
430 |
- { |
431 |
- av_register_all(); // TODO: needs to be invoked only once ? |
432 |
- |
433 |
-+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,107,0) |
434 |
- _byteIOCxt.buffer = NULL; |
435 |
-- |
436 |
-+#endif |
437 |
-+ |
438 |
- _inputFmt = probeStream(); |
439 |
- |
440 |
- #ifdef GNASH_ALLOW_VCODEC_ENV |
441 |
-@@ -366,7 +368,11 @@ MediaParserFfmpeg::initializeParser() |
442 |
- // which isn't needed. |
443 |
- _byteIOBuffer.reset(new unsigned char[byteIOBufferSize]); |
444 |
- |
445 |
-+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,107,0) |
446 |
- init_put_byte(&_byteIOCxt, |
447 |
-+#else |
448 |
-+ _avIOCxt = avio_alloc_context( |
449 |
-+#endif |
450 |
- _byteIOBuffer.get(), // buffer |
451 |
- byteIOBufferSize, // buffer size |
452 |
- 0, // write flags |
453 |
-@@ -376,7 +382,11 @@ MediaParserFfmpeg::initializeParser() |
454 |
- MediaParserFfmpeg::seekMediaWrapper // seeker callback |
455 |
- ); |
456 |
- |
457 |
-+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,107,0) |
458 |
- _byteIOCxt.is_streamed = 1; |
459 |
-+#else |
460 |
-+ _avIOCxt->seekable = 0; |
461 |
-+#endif |
462 |
- |
463 |
- #if !defined(LIBAVCODEC_VERSION_MAJOR) || LIBAVCODEC_VERSION_MAJOR < 52 |
464 |
- // Needed for Lenny. |
465 |
-@@ -387,12 +397,19 @@ MediaParserFfmpeg::initializeParser() |
466 |
- |
467 |
- assert(_formatCtx); |
468 |
- |
469 |
-+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,107,0) |
470 |
- // Otherwise av_open_input_stream will reallocate the context. |
471 |
- AVFormatParameters ap; |
472 |
- std::memset(&ap, 0, sizeof ap); |
473 |
- ap.prealloced_context = 1; |
474 |
- |
475 |
- if (av_open_input_stream(&_formatCtx, &_byteIOCxt, "", _inputFmt, &ap) < 0) |
476 |
-+#else |
477 |
-+ |
478 |
-+ _formatCtx->pb = _avIOCxt; |
479 |
-+ |
480 |
-+ if (avformat_open_input(&_formatCtx, "", _inputFmt, NULL) < 0) |
481 |
-+#endif |
482 |
- { |
483 |
- throw IOException("MediaParserFfmpeg couldn't open input stream"); |
484 |
- } |
485 |
-@@ -400,10 +417,17 @@ MediaParserFfmpeg::initializeParser() |
486 |
- #if defined(LIBAVCODEC_VERSION_MAJOR) && LIBAVCODEC_VERSION_MAJOR >= 52 |
487 |
- // Note: in at least some versions of ffmpeg, av_open_input_stream does |
488 |
- // not parse metadata; not sure why. |
489 |
-+#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(51,5,0) |
490 |
- AVMetadata* md = _formatCtx->metadata; |
491 |
- if (md) { |
492 |
- AVMetadataTag* tag = av_metadata_get(md, "album", 0, |
493 |
- AV_METADATA_MATCH_CASE); |
494 |
-+#else |
495 |
-+ AVDictionary* md = _formatCtx->metadata; |
496 |
-+ if (md) { |
497 |
-+ AVDictionaryEntry* tag = av_dict_get(md, "album", 0, |
498 |
-+ AV_DICT_MATCH_CASE); |
499 |
-+#endif |
500 |
- if (tag && tag->value) { |
501 |
- setId3Info(&Id3Info::album, std::string(tag->value), |
502 |
- _id3Object); |
503 |
-@@ -620,27 +644,27 @@ MediaParserFfmpeg::seekMedia(boost::int64_t offset, int whence) |
504 |
- } |
505 |
- |
506 |
- boost::uint16_t |
507 |
--MediaParserFfmpeg::SampleFormatToSampleSize(SampleFormat fmt) |
508 |
-+MediaParserFfmpeg::SampleFormatToSampleSize(AVSampleFormat fmt) |
509 |
- { |
510 |
- switch (fmt) |
511 |
- { |
512 |
-- case SAMPLE_FMT_U8: // unsigned 8 bits |
513 |
-+ case AV_SAMPLE_FMT_U8: // unsigned 8 bits |
514 |
- return 1; |
515 |
- |
516 |
-- case SAMPLE_FMT_S16: // signed 16 bits |
517 |
-- case SAMPLE_FMT_FLT: // float |
518 |
-+ case AV_SAMPLE_FMT_S16: // signed 16 bits |
519 |
-+ case AV_SAMPLE_FMT_FLT: // float |
520 |
- return 2; |
521 |
- |
522 |
- #if !defined (LIBAVCODEC_VERSION_MAJOR) || LIBAVCODEC_VERSION_MAJOR < 52 |
523 |
- // Was dropped for version 52.0.0 |
524 |
-- case SAMPLE_FMT_S24: // signed 24 bits |
525 |
-+ case AV_SAMPLE_FMT_S24: // signed 24 bits |
526 |
- return 3; |
527 |
- #endif |
528 |
- |
529 |
-- case SAMPLE_FMT_S32: // signed 32 bits |
530 |
-+ case AV_SAMPLE_FMT_S32: // signed 32 bits |
531 |
- return 4; |
532 |
- |
533 |
-- case SAMPLE_FMT_NONE: |
534 |
-+ case AV_SAMPLE_FMT_NONE: |
535 |
- default: |
536 |
- return 8; // arbitrary value |
537 |
- } |
538 |
-diff --git a/libmedia/ffmpeg/MediaParserFfmpeg.h b/libmedia/ffmpeg/MediaParserFfmpeg.h |
539 |
-index 4e410d8..a14cfb6 100644 |
540 |
---- a/libmedia/ffmpeg/MediaParserFfmpeg.h |
541 |
-+++ b/libmedia/ffmpeg/MediaParserFfmpeg.h |
542 |
-@@ -154,7 +154,13 @@ private: |
543 |
- AVStream* _audioStream; |
544 |
- |
545 |
- /// ? |
546 |
-- ByteIOContext _byteIOCxt; |
547 |
-+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,107,0) |
548 |
-+// AVIOContext was introduced a bit earlier but without version bump, so let's |
549 |
-+// be safe |
550 |
-+ ByteIOContext _byteIOCxt; |
551 |
-+#else |
552 |
-+ AVIOContext* _avIOCxt; |
553 |
-+#endif |
554 |
- |
555 |
- /// Size of the ByteIO context buffer |
556 |
- // |
557 |
-@@ -172,7 +178,7 @@ private: |
558 |
- // |
559 |
- /// TODO: move somewhere in ffmpeg utils.. |
560 |
- /// |
561 |
-- boost::uint16_t SampleFormatToSampleSize(SampleFormat fmt); |
562 |
-+ boost::uint16_t SampleFormatToSampleSize(AVSampleFormat fmt); |
563 |
- |
564 |
- /// Make an EncodedVideoFrame from an AVPacket and push to buffer |
565 |
- // |
566 |
-diff --git a/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp b/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp |
567 |
-index 40a5c80..eeefafe 100644 |
568 |
---- a/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp |
569 |
-+++ b/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp |
570 |
-@@ -171,7 +171,10 @@ VideoDecoderFfmpeg::init(enum CodecID codecId, int /*width*/, int /*height*/, |
571 |
- boost::uint8_t* extradata, int extradataSize) |
572 |
- { |
573 |
- // Init the avdecoder-decoder |
574 |
-+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52,6,2) |
575 |
-+ // Starting from this version avcodec_register calls avcodec_init |
576 |
- avcodec_init(); |
577 |
-+#endif |
578 |
- avcodec_register_all();// change this to only register need codec? |
579 |
- |
580 |
- _videoCodec = avcodec_find_decoder(codecId); |
581 |
-@@ -529,7 +532,11 @@ get_buffer(AVCodecContext* avctx, AVFrame* pic) |
582 |
- |
583 |
- static unsigned int pic_num = 0; |
584 |
- pic->type = FF_BUFFER_TYPE_USER; |
585 |
-+#if LIBAVCODEC_VERSION_MAJOR < 54 |
586 |
-+ // This field has been unused for longer but has been removed with |
587 |
-+ // libavcodec 54. |
588 |
- pic->age = ++pic_num - surface->getPicNum(); |
589 |
-+#endif |
590 |
- surface->setPicNum(pic_num); |
591 |
- return 0; |
592 |
- #endif |
593 |
-diff --git a/libmedia/ffmpeg/ffmpegHeaders.h b/libmedia/ffmpeg/ffmpegHeaders.h |
594 |
-index 65a8d0c..7710121 100644 |
595 |
---- a/libmedia/ffmpeg/ffmpegHeaders.h |
596 |
-+++ b/libmedia/ffmpeg/ffmpegHeaders.h |
597 |
-@@ -83,5 +83,15 @@ extern "C" { |
598 |
- #define HAVE_SWSCALE_H 1 |
599 |
- #endif |
600 |
- |
601 |
-+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52,94,1) |
602 |
-+#define AV_SAMPLE_FMT_NONE SAMPLE_FMT_NONE |
603 |
-+#define AV_SAMPLE_FMT_U8 SAMPLE_FMT_U8 |
604 |
-+#define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16 |
605 |
-+#define AV_SAMPLE_FMT_S32 SAMPLE_FMT_S32 |
606 |
-+#define AV_SAMPLE_FMT_FLT SAMPLE_FMT_FLT |
607 |
-+#define AV_SAMPLE_FMT_DBL SAMPLE_FMT_DBL |
608 |
-+ |
609 |
-+#define AVSampleFormat SampleFormat |
610 |
-+#endif |
611 |
- |
612 |
- #endif // GNASH_MEDIA_FFMPEG_HEADERS_H |
613 |
|
614 |
diff --git a/www-plugins/gnash/files/gnash-0.8.10_p20120903-libav9.patch b/www-plugins/gnash/files/gnash-0.8.10_p20120903-libav9.patch |
615 |
deleted file mode 100644 |
616 |
index ab6baa7..00000000 |
617 |
--- a/www-plugins/gnash/files/gnash-0.8.10_p20120903-libav9.patch |
618 |
+++ /dev/null |
619 |
@@ -1,85 +0,0 @@ |
620 |
-commit dfba5258dc230669a7e1ad309e25ef190c77e854 |
621 |
-Author: Alexis Ballier <aballier@g.o> |
622 |
-Date: Thu Feb 14 16:54:08 2013 -0300 |
623 |
- |
624 |
- Fix build with libav-9 (#38333) |
625 |
- |
626 |
- Signed-off-by: Sandro Santilli <strk@××××××.net> |
627 |
- |
628 |
-diff --git a/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp b/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp |
629 |
-index 5c8e1ad..50947fb 100644 |
630 |
---- a/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp |
631 |
-+++ b/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp |
632 |
-@@ -133,12 +133,20 @@ void AudioDecoderFfmpeg::setup(SoundInfo& info) |
633 |
- } |
634 |
- } |
635 |
- |
636 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53,8,0) |
637 |
-+ _audioCodecCtx = avcodec_alloc_context3(_audioCodec); |
638 |
-+#else |
639 |
- _audioCodecCtx = avcodec_alloc_context(); |
640 |
-+#endif |
641 |
- if (!_audioCodecCtx) { |
642 |
- throw MediaException(_("libavcodec couldn't allocate context")); |
643 |
- } |
644 |
- |
645 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53,8,0) |
646 |
-+ int ret = avcodec_open2(_audioCodecCtx, _audioCodec, NULL); |
647 |
-+#else |
648 |
- int ret = avcodec_open(_audioCodecCtx, _audioCodec); |
649 |
-+#endif |
650 |
- if (ret < 0) { |
651 |
- av_free(_audioCodecCtx); |
652 |
- _audioCodecCtx=0; |
653 |
-@@ -259,7 +267,11 @@ void AudioDecoderFfmpeg::setup(const AudioInfo& info) |
654 |
- _needsParsing = (_parser != NULL); |
655 |
- |
656 |
- // Create an audioCodecCtx from the ffmpeg parser if exists/possible |
657 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53,8,0) |
658 |
-+ _audioCodecCtx = avcodec_alloc_context3(_audioCodec); |
659 |
-+#else |
660 |
- _audioCodecCtx = avcodec_alloc_context(); |
661 |
-+#endif |
662 |
- if (!_audioCodecCtx) { |
663 |
- throw MediaException(_("AudioDecoderFfmpeg: libavcodec couldn't " |
664 |
- "allocate context")); |
665 |
-@@ -310,7 +322,11 @@ void AudioDecoderFfmpeg::setup(const AudioInfo& info) |
666 |
- #ifdef GNASH_DEBUG_AUDIO_DECODING |
667 |
- log_debug(" Opening codec"); |
668 |
- #endif // GNASH_DEBUG_AUDIO_DECODING |
669 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53,8,0) |
670 |
-+ int ret = avcodec_open2(_audioCodecCtx, _audioCodec, NULL); |
671 |
-+#else |
672 |
- int ret = avcodec_open(_audioCodecCtx, _audioCodec); |
673 |
-+#endif |
674 |
- if (ret < 0) { |
675 |
- //avcodec_close(_audioCodecCtx); |
676 |
- av_free(_audioCodecCtx); |
677 |
-diff --git a/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp b/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp |
678 |
-index eeefafe..e5263c6 100644 |
679 |
---- a/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp |
680 |
-+++ b/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp |
681 |
-@@ -183,7 +183,11 @@ VideoDecoderFfmpeg::init(enum CodecID codecId, int /*width*/, int /*height*/, |
682 |
- throw MediaException(_("libavcodec can't decode this video format")); |
683 |
- } |
684 |
- |
685 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53,8,0) |
686 |
-+ _videoCodecCtx.reset(new CodecContextWrapper(avcodec_alloc_context3(_videoCodec))); |
687 |
-+#else |
688 |
- _videoCodecCtx.reset(new CodecContextWrapper(avcodec_alloc_context())); |
689 |
-+#endif |
690 |
- if (!_videoCodecCtx->getContext()) { |
691 |
- throw MediaException(_("libavcodec couldn't allocate context")); |
692 |
- } |
693 |
-@@ -206,7 +210,11 @@ VideoDecoderFfmpeg::init(enum CodecID codecId, int /*width*/, int /*height*/, |
694 |
- } |
695 |
- #endif |
696 |
- |
697 |
-+#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53,8,0) |
698 |
-+ int ret = avcodec_open2(ctx, _videoCodec, NULL); |
699 |
-+#else |
700 |
- int ret = avcodec_open(ctx, _videoCodec); |
701 |
-+#endif |
702 |
- if (ret < 0) { |
703 |
- boost::format msg = boost::format(_("libavcodec " |
704 |
- "failed to initialize FFMPEG " |
705 |
|
706 |
diff --git a/www-plugins/gnash/files/gnash-0.8.11-gettext-macro.patch b/www-plugins/gnash/files/gnash-0.8.11-gettext-macro.patch |
707 |
deleted file mode 100644 |
708 |
index 7461cc2..00000000 |
709 |
--- a/www-plugins/gnash/files/gnash-0.8.11-gettext-macro.patch |
710 |
+++ /dev/null |
711 |
@@ -1,29 +0,0 @@ |
712 |
-diff -ur a/libdevice/vaapi/VaapiSurfaceGLX.cpp b/libdevice/vaapi/VaapiSurfaceGLX.cpp |
713 |
---- a/libdevice/vaapi/VaapiSurfaceGLX.cpp 2013-08-22 19:50:20.000000000 +0200 |
714 |
-+++ b/libdevice/vaapi/VaapiSurfaceGLX.cpp 2013-08-22 22:43:55.060296748 +0200 |
715 |
-@@ -202,14 +202,14 @@ |
716 |
- |
717 |
- reset(reinterpret_cast<uintptr_t>(surface)); |
718 |
- |
719 |
-- log_debug(_(" -> surface %p\n", this->surface())); |
720 |
-+ log_debug(_(" -> surface %p\n"), this->surface()); |
721 |
- } |
722 |
- |
723 |
- VaapiSurfaceGLXImpl::~VaapiSurfaceGLXImpl() |
724 |
- { |
725 |
- // GNASH_REPORT_FUNCTION; |
726 |
- |
727 |
-- log_debug(_("VaapiSurface::~VaapiSurface(): surface %p\n", surface())); |
728 |
-+ log_debug(_("VaapiSurface::~VaapiSurface(): surface %p\n"), surface()); |
729 |
- |
730 |
- if (!surface()) { |
731 |
- return; |
732 |
-@@ -263,7 +263,7 @@ |
733 |
- |
734 |
- bool VaapiSurfaceGLX::update(boost::shared_ptr<VaapiSurface> surface) |
735 |
- { |
736 |
-- log_debug(_("VaapiSurfaceGLX::update(): from surface 0x%08x\n", surface->get())); |
737 |
-+ log_debug(_("VaapiSurfaceGLX::update(): from surface 0x%08x\n"), surface->get()); |
738 |
- |
739 |
- return dynamic_cast<VaapiSurfaceGLXImpl *>(_impl.get())->update(surface); |
740 |
- } |
741 |
|
742 |
diff --git a/www-plugins/gnash/gnash-0.8.10_p20160329.ebuild b/www-plugins/gnash/gnash-0.8.10_p20160329.ebuild |
743 |
deleted file mode 100644 |
744 |
index b416401..00000000 |
745 |
--- a/www-plugins/gnash/gnash-0.8.10_p20160329.ebuild |
746 |
+++ /dev/null |
747 |
@@ -1,288 +0,0 @@ |
748 |
-# Copyright 1999-2016 Gentoo Foundation |
749 |
-# Distributed under the terms of the GNU General Public License v2 |
750 |
-# $Id$ |
751 |
- |
752 |
-EAPI=5 |
753 |
-CMAKE_REQUIRED="never" |
754 |
-KDE_REQUIRED="optional" |
755 |
-AT_M4DIR="cygnal" |
756 |
-# won't build with python-3, bug #392969 |
757 |
-PYTHON_COMPAT=( python2_7 ) |
758 |
- |
759 |
-inherit autotools eutils kde4-base multilib nsplugins python-any-r1 flag-o-matic |
760 |
- |
761 |
-DESCRIPTION="GNU Flash movie player that supports many SWF v7,8,9 features" |
762 |
-HOMEPAGE="https://www.gnu.org/software/gnash/" |
763 |
- |
764 |
-if [[ ${PV} = 9999* ]]; then |
765 |
- SRC_URI="" |
766 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/gnash.git" |
767 |
- inherit git-2 |
768 |
-else |
769 |
-# Release tarball is b0rked, upstream #35612 |
770 |
-# SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2" |
771 |
- SRC_URI="mirror://gentoo/${P}.tar.xz" |
772 |
-fi |
773 |
- |
774 |
-LICENSE="GPL-3" |
775 |
-SLOT="0" |
776 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
777 |
-IUSE="X +agg cairo cygnal dbus directfb doc dump egl fbcon +ffmpeg gconf gnome gstreamer gtk harden jemalloc kde lirc mysql +nls nsplugin opengl openvg python sdl +sdl-sound ssh ssl test vaapi" |
778 |
-REQUIRED_USE="dump? ( agg ffmpeg ) |
779 |
- fbcon? ( agg ) |
780 |
- nsplugin? ( gtk ) |
781 |
- openvg? ( egl ) |
782 |
- python? ( gtk ) |
783 |
- vaapi? ( agg ffmpeg ) |
784 |
- || ( agg cairo opengl openvg ) |
785 |
- || ( dump fbcon gtk kde sdl ) |
786 |
- " |
787 |
- |
788 |
-RDEPEND=">=dev-libs/boost-1.41.0:0= |
789 |
- dev-libs/expat |
790 |
- dev-libs/libxml2 |
791 |
- virtual/jpeg:0 |
792 |
- media-libs/libpng:0 |
793 |
- net-misc/curl |
794 |
- x11-libs/libX11 |
795 |
- x11-libs/libXi |
796 |
- x11-libs/libXmu |
797 |
- x11-libs/libXt |
798 |
- media-libs/giflib |
799 |
- x11-proto/xproto |
800 |
- agg? ( x11-libs/agg ) |
801 |
- cairo? ( x11-libs/cairo ) |
802 |
- directfb? ( |
803 |
- dev-libs/DirectFB |
804 |
- ) |
805 |
- doc? ( |
806 |
- >=app-text/docbook2X-0.8.8 |
807 |
- app-text/docbook-sgml-utils |
808 |
- ) |
809 |
- egl? ( |
810 |
- media-libs/mesa[egl] |
811 |
- ) |
812 |
- fbcon? ( |
813 |
- x11-libs/tslib |
814 |
- ) |
815 |
- ffmpeg? ( |
816 |
- virtual/ffmpeg[vaapi?] |
817 |
- ) |
818 |
- gconf? ( |
819 |
- gnome-base/gconf |
820 |
- ) |
821 |
- gstreamer? ( |
822 |
- media-plugins/gst-plugins-ffmpeg:* |
823 |
- media-plugins/gst-plugins-mad:* |
824 |
- media-plugins/gst-plugins-meta:* |
825 |
- ) |
826 |
- gtk? ( |
827 |
- x11-libs/gtk+:2 |
828 |
- python? ( dev-python/pygtk:2 ) |
829 |
- ) |
830 |
- jemalloc? ( dev-libs/jemalloc ) |
831 |
- kde? ( |
832 |
- $(add_kdebase_dep kdebase-startkde) |
833 |
- dev-qt/qtwebkit:4 |
834 |
- ) |
835 |
- opengl? ( |
836 |
- virtual/glu |
837 |
- virtual/opengl |
838 |
- gtk? ( x11-libs/gtkglext ) |
839 |
- ) |
840 |
- openvg? ( |
841 |
- media-libs/mesa[openvg] |
842 |
- ) |
843 |
- sdl? ( media-libs/libsdl[X] ) |
844 |
- sdl-sound? ( media-libs/libsdl ) |
845 |
- media-libs/speex[ogg] |
846 |
- sys-libs/zlib |
847 |
- >=sys-devel/libtool-2.2 |
848 |
- mysql? ( virtual/mysql ) |
849 |
- lirc? ( app-misc/lirc ) |
850 |
- dbus? ( sys-apps/dbus ) |
851 |
- ssh? ( >=net-libs/libssh-0.4[server] ) |
852 |
- ssl? ( dev-libs/openssl:0 ) |
853 |
- vaapi? ( x11-libs/libva[opengl?] ) |
854 |
- " |
855 |
-DEPEND="${RDEPEND} |
856 |
- virtual/pkgconfig |
857 |
- nls? ( sys-devel/gettext ) |
858 |
- gnome? ( app-text/rarian ) |
859 |
- nsplugin? ( net-misc/npapi-sdk ) |
860 |
- test? ( dev-util/dejagnu )" |
861 |
-# Tests hang with sandbox, bug #321017 |
862 |
-RESTRICT="test" |
863 |
- |
864 |
-pkg_setup() { |
865 |
- kde4-base_pkg_setup |
866 |
- python-any-r1_pkg_setup |
867 |
- |
868 |
- if use !ffmpeg && use !gstreamer; then |
869 |
- ewarn "You are trying to build Gnash without choosing a media handler." |
870 |
- ewarn "Sound and video playback will not work." |
871 |
- fi |
872 |
-} |
873 |
- |
874 |
-src_unpack() { |
875 |
- default |
876 |
- # rename git snapshot directory to what portage expects |
877 |
- mv ${PN}-*/ ${P} || die |
878 |
-} |
879 |
- |
880 |
-src_prepare() { |
881 |
- # Fix paths for klash, bug #339610 |
882 |
- epatch "${FILESDIR}"/${PN}-0.8.9-klash.patch |
883 |
- |
884 |
- # Use external dejagnu for tests, bug #321017 |
885 |
- epatch "${FILESDIR}"/${PN}-0.8.9-external-dejagnu.patch |
886 |
- |
887 |
- # Fix building on ppc64, bug #342535 |
888 |
- use ppc64 && append-flags -mminimal-toc |
889 |
- |
890 |
- # Fix kde multilib library path, bug #391283 |
891 |
- epatch "${FILESDIR}"/${PN}-0.8.9-kde4-libdir.patch |
892 |
- |
893 |
- # Fix libamf includes |
894 |
- epatch "${FILESDIR}"/${PN}-0.8.10-amf-include.patch |
895 |
- |
896 |
- # Fix new adjacent_tokens_only() in >=boost-1.59 (bug 579142) |
897 |
- # See https://savannah.gnu.org/bugs/?46148 |
898 |
- epatch "${FILESDIR}"/${PN}-0.8.10_p20150316-boost-1.60.patch |
899 |
- |
900 |
- eautoreconf |
901 |
-} |
902 |
-src_configure() { |
903 |
- local device gui input media myconf myext renderers |
904 |
- |
905 |
- # Set nsplugin install directory. |
906 |
- use nsplugin && myconf="${myconf} --with-npapi-plugindir=/usr/$(get_libdir)/gnash/npapi/" |
907 |
- |
908 |
- # Set hardware acceleration. |
909 |
- use X && device+=",x11" |
910 |
- use directfb && device+=",directfb" |
911 |
- use egl && device+=",egl" |
912 |
- use fbcon && device+=",rawfb" |
913 |
- use vaapi && device+=",vaapi" |
914 |
- [[ "${device}x" == "x" ]] && device+=",none" |
915 |
- |
916 |
- # Set rendering engine. |
917 |
- use agg && renderers+=",agg" |
918 |
- use cairo && renderers+=",cairo" |
919 |
- use opengl && renderers+=",opengl" |
920 |
- use openvg && renderers+=",openvg" |
921 |
- |
922 |
- # Set kde and konqueror plugin directories. |
923 |
- if use kde; then |
924 |
- myconf="${myconf} |
925 |
- --with-plugins-install=system |
926 |
- --with-kde4-incl=${KDEDIR}/include |
927 |
- --with-kde4-configdir=${KDEDIR}/share/config |
928 |
- --with-kde4-prefix=${KDEDIR} |
929 |
- --with-kde4-lib=${KDEDIR}/$(get_libdir) |
930 |
- --with-kde-appsdatadir=${KDEDIR}/share/apps/klash |
931 |
- --with-kde4-servicesdir=${KDEDIR}/share/kde4/services |
932 |
- --with-kde4-plugindir=${KDEDIR}/$(get_libdir)/kde4" |
933 |
- fi |
934 |
- |
935 |
- # Set media handler. |
936 |
- use ffmpeg || use gstreamer || media+=",none" |
937 |
- use ffmpeg && media+=",ffmpeg" |
938 |
- use gstreamer && media+=",gst" |
939 |
- |
940 |
- # Set gui. |
941 |
- use dump && gui="${gui},dump" |
942 |
- use fbcon && gui="${gui},fb" |
943 |
- use gtk && gui=",gtk" |
944 |
- use kde && gui="${gui},kde4" |
945 |
- use sdl && gui="${gui},sdl" |
946 |
- |
947 |
- if use sdl-sound; then |
948 |
- myconf="${myconf} --enable-sound=sdl" |
949 |
- else |
950 |
- myconf="${myconf} --enable-sound=none" |
951 |
- fi |
952 |
- |
953 |
- # Set extensions |
954 |
- use mysql && myext=",mysql" |
955 |
- use gtk && myext="${myext},gtk" |
956 |
- use lirc && myext="${myext},lirc" |
957 |
- use dbus && myext="${myext},dbus" |
958 |
- |
959 |
- # Strip extra comma from gui, myext, hwaccel and renderers. |
960 |
- device=$( echo $device | sed -e 's/,//' ) |
961 |
- gui=$( echo $gui | sed -e 's/,//' ) |
962 |
- myext=$( echo $myext | sed -e 's/,//' ) |
963 |
- renderers=$( echo $renderers | sed -e 's/,//' ) |
964 |
- media=$( echo $media | sed -e 's/,//' ) |
965 |
- |
966 |
- econf \ |
967 |
- --docdir=/usr/share/doc/${PF} \ |
968 |
- --disable-dependency-tracking \ |
969 |
- --disable-kparts3 \ |
970 |
- $(use_enable cygnal) \ |
971 |
- $(use_enable cygnal cgibins) \ |
972 |
- $(use_enable doc docbook) \ |
973 |
- $(use_enable gnome ghelp) \ |
974 |
- $(use_enable harden) \ |
975 |
- $(use_enable jemalloc) \ |
976 |
- $(use_enable kde kparts4) \ |
977 |
- $(use_enable nls) \ |
978 |
- $(use_enable nsplugin npapi) \ |
979 |
- $(use_enable python) \ |
980 |
- $(use_enable ssh) \ |
981 |
- $(use_enable ssl) \ |
982 |
- $(use_enable test testsuite) \ |
983 |
- $(use_with gconf) \ |
984 |
- --enable-gui=${gui} \ |
985 |
- --enable-device=${device} \ |
986 |
- --enable-extensions=${myext} \ |
987 |
- --enable-renderer=${renderers} \ |
988 |
- --enable-media=${media} \ |
989 |
- ${myconf} |
990 |
-} |
991 |
-src_test() { |
992 |
- local log=testsuite-results.txt |
993 |
- cd testsuite |
994 |
- emake check || die "make check failed" |
995 |
- ./anaylse-results.sh > $log || die "results analyze failed" |
996 |
- cat $log |
997 |
-} |
998 |
-src_install() { |
999 |
- emake DESTDIR="${D}" install || die "emake install failed" |
1000 |
- |
1001 |
- # Install nsplugin in directory set by --with-npapi-plugindir. |
1002 |
- if use nsplugin; then |
1003 |
- emake DESTDIR="${D}" install-plugin || die "install plugins failed" |
1004 |
- fi |
1005 |
- |
1006 |
- # Install kde konqueror plugin. |
1007 |
- if use kde; then |
1008 |
- pushd "${S}/plugin/klash4" >& /dev/null || die |
1009 |
- emake DESTDIR="${D}" install-plugin || die "install kde plugins failed" |
1010 |
- popd >& /dev/null |
1011 |
- fi |
1012 |
- # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory. |
1013 |
- use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so |
1014 |
- |
1015 |
- # Remove eglinfo, bug #463654 |
1016 |
- if use egl; then |
1017 |
- rm -f "${D}"/usr/bin/eglinfo || die |
1018 |
- fi |
1019 |
- |
1020 |
- dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
1021 |
-} |
1022 |
-pkg_postinst() { |
1023 |
- if use !gnome || use !gstreamer && use !ffmpeg ; then |
1024 |
- ewarn "" |
1025 |
- ewarn "Gnash was built without a media handler and or http handler !" |
1026 |
- ewarn "" |
1027 |
- ewarn "If you want Gnash to support video then you will need to" |
1028 |
- ewarn "rebuild Gnash with either the ffmpeg or gstreamer and gnome use flags set." |
1029 |
- ewarn "" |
1030 |
- fi |
1031 |
- ewarn "${PN} is still in heavy development" |
1032 |
- ewarn "Please first report bugs on upstream gnashdevs and deal with them" |
1033 |
- ewarn "And then report a Gentoo bug to the maintainer" |
1034 |
- use kde && kde4-base_pkg_postinst |
1035 |
-} |