1 |
commit: 3cb9d9e6a70b1cb5aba3fbffd632d48a073b366e |
2 |
Author: ILMostro <ilmostro7 <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Aug 29 02:32:31 2018 +0000 |
4 |
Commit: ILMostro <ilmostro7 <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Aug 29 02:32:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ag-ops.git/commit/?id=3cb9d9e6 |
7 |
|
8 |
media-video/vlc: added vlc ebuilds |
9 |
|
10 |
media-video/vlc/Manifest | 13 + |
11 |
.../vlc/files/vlc-2.1.0-fix-libtremor-libs.patch | 11 + |
12 |
media-video/vlc/files/vlc-2.2.4-libav-11.7.patch | 10 + |
13 |
media-video/vlc/files/vlc-2.2.8-freerdp-2.patch | 131 ++++++ |
14 |
.../vlc/files/vlc-2.2.8-libupnp-slot-1.8.patch | 24 + |
15 |
media-video/vlc/files/vlc-3.0.1-qt-5.11.patch | 10 + |
16 |
.../vlc/files/vlc-3.0.3-fix-disable-vlm.patch | 42 ++ |
17 |
media-video/vlc/files/vlc-3.0.3-fribidi-1.patch | 80 ++++ |
18 |
.../vlc/files/vlc-9999-libupnp-slot-1.8.patch | 24 + |
19 |
media-video/vlc/metadata.xml | 63 +++ |
20 |
media-video/vlc/vlc-3.0.3-r1.ebuild | 500 +++++++++++++++++++++ |
21 |
media-video/vlc/vlc-3.0.9999.ebuild | 493 ++++++++++++++++++++ |
22 |
media-video/vlc/vlc-9999.ebuild | 493 ++++++++++++++++++++ |
23 |
13 files changed, 1894 insertions(+) |
24 |
|
25 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
26 |
new file mode 100644 |
27 |
index 0000000..aaa0ac5 |
28 |
--- /dev/null |
29 |
+++ b/media-video/vlc/Manifest |
30 |
@@ -0,0 +1,13 @@ |
31 |
+AUX vlc-2.1.0-fix-libtremor-libs.patch 453 BLAKE2B 526934642617384224faee8d26c0a7fa4dec9891f718816e44fd08970a5477cdc7ae34510b26af9971fe5d20b25c96595901117c804c7679341e1e8cd5309a14 SHA512 6c25995a518aeb1d501fa217d897962e1e81f66a4f28b6bb164dde3afe7f91772bb608f946d802857fa9a272cab1f88d3990d582be89ab8e37b1a8b6681798ae |
32 |
+AUX vlc-2.2.4-libav-11.7.patch 291 BLAKE2B 9ad8bac7897976ba50b98ce1063baab311f0ad8e267cbad751b1378280b2f8238e22096448889b4eb69bbec34d08225269c7d2f653676828dc7a7d755fe676bf SHA512 f216833dc1ad5ddbf6a19b497238e9c850582f16eae452862a4c7c9acd110a0033879b3e3555177ac0ef30663cdd3f72d1a1020999c44e1f577ef665dd658315 |
33 |
+AUX vlc-2.2.8-freerdp-2.patch 4478 BLAKE2B 24b34ae2015de5197a275e393a761535d3386138ca1cdd67f0254a8bb916c9b0b40e553846299036882da5e5389fd8b8722f6f0cdf3e114a05fe1d445b48801c SHA512 e71bf81d87e7d0daf6d5820ba8e6a365cb8041eca82674ef69cc0d1eabbb29349a9ac193b0c2ad212e6d231dda7cf07a71e76317b8e8fc44b5ef0467d8f86b2f |
34 |
+AUX vlc-2.2.8-libupnp-slot-1.8.patch 725 BLAKE2B eb217ef57f0709fa1d0bdf1644610588f373e17d18c2642ee6489ca00311772307d8fc67a07ecc8d29810b80aa8f14c40298285c3319d8ddede2552d28d2837e SHA512 890b91405cbf6105c932566fd7799fdccd1b27f1e0df0c6dae1511aeead2c28eb5fea7642b01af1abbcf546aae0559408c0ddf2ec82c92809f3b02d1d477bb51 |
35 |
+AUX vlc-3.0.1-qt-5.11.patch 350 BLAKE2B e0980ebbefa94d9388785c12fa5cba666eb3681fa94b0c512018475477974502ce0df4aa4939865f43c2bf393654db902df5f070edd802296f1d3ef71b8caeb0 SHA512 66aad0ec32d1a96f65566b04eb9c0b4574824e281940fe5c0de54ac5f92189693a9f2576203d2c8562d7174ec5315cbbd683d93c481d16119d3038e30a58cbf5 |
36 |
+AUX vlc-3.0.3-fix-disable-vlm.patch 1366 BLAKE2B a0ebb75f8b171063dfc4490ed8abfcad515cac85a618bcd0e157fda71a6673023d45682a5c5507ffbc1412e15f1edb3cd0e3f1e5095d9d5ce5dfb0ae51488e36 SHA512 544c3f57112e7c37c1fc3a853e45b6ca3c186ee70734cd755365b233cbd481257ec0a7be8e8213c55ee6c6110a2ee8c0d4bce50eab67cdd57cb4e74a9edab862 |
37 |
+AUX vlc-3.0.3-fribidi-1.patch 3406 BLAKE2B d7c670a57a442a1f093f4ca72c84b633bafcf5a631f0a31af45109cf0cedc1761f93817c26b412fc1af0a7ee8a9f84b5e318d210d4e78c95a989af37d99410f4 SHA512 403524d92607e8862836fbbdd4f32c064ee67dac521fbbfdd474d4b057b76e006cca6e9541d95765451eb147320111ef1774b6399e05ce9d32db61430ab4ef2a |
38 |
+AUX vlc-9999-libupnp-slot-1.8.patch 763 BLAKE2B 6bc8cf46f029db27d6d30d96e871d3bcfddee004e4e8469e1526a6a38fb5cc11a24a19888443e5f9062d7145665d594e142c12f3a9693967f195bab3b33ada38 SHA512 dd3375997a1935d3a227231785f35e300e3f992034da6a9c3019e28c68c1f005cbdd67190672264b342abc719e69005f965599f7af975e2bbd4cfccd89e3770d |
39 |
+DIST vlc-3.0.3.tar.xz 24941592 BLAKE2B dd6e27b10064ecae1c6f64459d2ed172d09f8dc1414c4d96bf66e8b3104154154229bb5d638955c855b6cf471b8630196b170db94b61506c7e0dd42bec8fbb20 SHA512 1569cefa6623b2631a832679bc9a63ebeba222901e5221d254e896a68d2ee467054da8de9eda566924e80a11bb29a673a9f0c4243793845547d8027b58a238ab |
40 |
+EBUILD vlc-3.0.3-r1.ebuild 13450 BLAKE2B 90c0942f1018dc8bae1bc15c4417bb7555aede9e6ec7d3a87ddd048af03d816855cc3f96e1042a2f6c0d2949ca76dd8b9d80b240509413af3bb61e212ffd11ad SHA512 072af5095c8fda41fe7c29d4254a4147687b64a8593b117d37466dc8012d1c64bb7291ecf6a5ef0f806f6de0522dd90eb796568f73201cd1a327d85efd3f7218 |
41 |
+EBUILD vlc-3.0.9999.ebuild 13261 BLAKE2B b014ff22f70752b739d22521c06a642093d25037cc2355dcd19dda351b4d4c8cbc44ff0e8b86e2410a15ca8529048f6c61601c412e83cbfd32188ead64a3fcfd SHA512 e6f34bb0e1c9f0c31fcd46f5f2e22e6ebf5834ad1140ee2178cae581049bb99b0c1fd6d96bca4765ec38c0611d1ca4740b3dc4e550b62a85642716df3af2af01 |
42 |
+EBUILD vlc-9999.ebuild 13209 BLAKE2B 47add64565abb5e7f4fc44729f67de84d6bfe7bc025819d3f986d9497207bdb12c4a27462d917ae18197fe31899a252eed8aaf3efd80a0350e7c2c32d21e7706 SHA512 86bfd49188514a5ccd813590f8ec8eff9bd55d751b8c2f6057d250031bbcbe3dade0a18a55bfaba07ea7b11f42208d431fe04dc7c79a500679268a9cdf4fc49b |
43 |
+MISC metadata.xml 5187 BLAKE2B 43c8474284bb05268e6846e646ff382a1cb0f3ffa1a9ee65aa5beb95c157c427cef3df82abdaafa60f3ede953506987342de284a06fad2fcf83b5fc3b7054ca2 SHA512 c518a431a420a40e0f627e0cc713980b660db1acfb837bf20bf80220df1773bdea325998e5b8270dc7d4ad2af6290bdefb45c30a1ed07f62c73c99d57a5ca77a |
44 |
|
45 |
diff --git a/media-video/vlc/files/vlc-2.1.0-fix-libtremor-libs.patch b/media-video/vlc/files/vlc-2.1.0-fix-libtremor-libs.patch |
46 |
new file mode 100644 |
47 |
index 0000000..8a58969 |
48 |
--- /dev/null |
49 |
+++ b/media-video/vlc/files/vlc-2.1.0-fix-libtremor-libs.patch |
50 |
@@ -0,0 +1,11 @@ |
51 |
+--- a/modules/codec/Makefile.am |
52 |
++++ b/modules/codec/Makefile.am |
53 |
+@@ -215,7 +215,7 @@ |
54 |
+ libtremor_plugin_la_SOURCES = codec/vorbis.c |
55 |
+ libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor |
56 |
+ libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' |
57 |
+-libtremor_plugin_la_LIBADD = -lvorbisdec -logg |
58 |
++libtremor_plugin_la_LIBADD = $(VORBIS_LIBS) $(OGG_LIBS) |
59 |
+ EXTRA_LTLIBRARIES += libtremor_plugin.la |
60 |
+ codec_LTLIBRARIES += $(LTLIBtremor) |
61 |
+ |
62 |
|
63 |
diff --git a/media-video/vlc/files/vlc-2.2.4-libav-11.7.patch b/media-video/vlc/files/vlc-2.2.4-libav-11.7.patch |
64 |
new file mode 100644 |
65 |
index 0000000..9322236 |
66 |
--- /dev/null |
67 |
+++ b/media-video/vlc/files/vlc-2.2.4-libav-11.7.patch |
68 |
@@ -0,0 +1,10 @@ |
69 |
+--- a/modules/codec/avcodec/audio.c 2016-09-10 13:46:51.066453337 -0700 |
70 |
++++ a/modules/codec/avcodec/audio.c 2016-09-10 13:42:26.061451090 -0700 |
71 |
+@@ -38,6 +38,7 @@ |
72 |
+ |
73 |
+ #include <libavcodec/avcodec.h> |
74 |
+ #include <libavutil/mem.h> |
75 |
++#include <libavutil/channel_layout.h> |
76 |
+ |
77 |
+ #include "avcodec.h" |
78 |
+ |
79 |
|
80 |
diff --git a/media-video/vlc/files/vlc-2.2.8-freerdp-2.patch b/media-video/vlc/files/vlc-2.2.8-freerdp-2.patch |
81 |
new file mode 100644 |
82 |
index 0000000..5cee133 |
83 |
--- /dev/null |
84 |
+++ b/media-video/vlc/files/vlc-2.2.8-freerdp-2.patch |
85 |
@@ -0,0 +1,131 @@ |
86 |
+--- a/configure.ac |
87 |
++++ b/configure.ac |
88 |
+@@ -1957,7 +1957,7 @@ PKG_ENABLE_MODULES_VLC([VNC], [vnc], [li |
89 |
+ |
90 |
+ dnl RDP/Remote Desktop access module |
91 |
+ dnl |
92 |
+-PKG_ENABLE_MODULES_VLC([FREERDP], [rdp], [freerdp >= 1.0.1], (RDP/Remote Desktop client support) ) |
93 |
++PKG_ENABLE_MODULES_VLC([FREERDP], [rdp], [freerdp2 >= 1.0.1], (RDP/Remote Desktop client support) ) |
94 |
+ |
95 |
+ dnl |
96 |
+ dnl Real RTSP plugin |
97 |
+--- a/modules/access/rdp.c 2017-12-25 17:45:32.964429170 +0100 |
98 |
++++ b/modules/access/rdp.c 2017-12-25 17:53:15.114093670 +0100 |
99 |
+@@ -45,18 +45,6 @@ |
100 |
+ # include <freerdp/version.h> |
101 |
+ #endif |
102 |
+ |
103 |
+-#if !defined(FREERDP_VERSION_MAJOR) || \ |
104 |
+- (defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 1))) |
105 |
+-# define SoftwareGdi sw_gdi |
106 |
+-# define Fullscreen fullscreen |
107 |
+-# define ServerHostname hostname |
108 |
+-# define Username username |
109 |
+-# define Password password |
110 |
+-# define ServerPort port |
111 |
+-# define EncryptionMethods encryption |
112 |
+-# define ContextSize context_size |
113 |
+-#endif |
114 |
+- |
115 |
+ #include <errno.h> |
116 |
+ #ifdef HAVE_POLL |
117 |
+ # include <poll.h> |
118 |
+@@ -140,6 +128,7 @@ |
119 |
+ vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_context; |
120 |
+ demux_sys_t *p_sys = p_vlccontext->p_demux->p_sys; |
121 |
+ rdpGdi *p_gdi = p_context->gdi; |
122 |
++ unsigned bytesPerPixel; |
123 |
+ |
124 |
+ if ( p_sys->es ) |
125 |
+ { |
126 |
+@@ -149,19 +138,23 @@ |
127 |
+ |
128 |
+ /* Now init and fill es format */ |
129 |
+ vlc_fourcc_t i_chroma; |
130 |
+- switch( p_gdi->bytesPerPixel ) |
131 |
++ switch( p_gdi->dstFormat ) |
132 |
+ { |
133 |
+ default: |
134 |
+- case 16: |
135 |
++ msg_Dbg( p_vlccontext->p_demux, "unhandled dstFormat %x bpp", p_gdi->dstFormat); |
136 |
++ case PIXEL_FORMAT_BGR16: |
137 |
+ i_chroma = VLC_CODEC_RGB16; |
138 |
++ bytesPerPixel = 16; |
139 |
+ break; |
140 |
+- case 24: |
141 |
++ case PIXEL_FORMAT_BGR24: |
142 |
+ i_chroma = VLC_CODEC_RGB24; |
143 |
++ bytesPerPixel = 24; |
144 |
+ break; |
145 |
+- case 32: |
146 |
++ case PIXEL_FORMAT_BGRA32: |
147 |
+ i_chroma = VLC_CODEC_RGB32; |
148 |
++ bytesPerPixel = 32; |
149 |
+ break; |
150 |
+ } |
151 |
+ es_format_t fmt; |
152 |
+ es_format_Init( &fmt, VIDEO_ES, i_chroma ); |
153 |
+ |
154 |
+@@ -172,7 +165,7 @@ |
155 |
+ fmt.video.i_height = p_gdi->height; |
156 |
+ fmt.video.i_frame_rate_base = 1000; |
157 |
+ fmt.video.i_frame_rate = 1000 * p_sys->f_fps; |
158 |
+- p_sys->i_framebuffersize = p_gdi->width * p_gdi->height * p_gdi->bytesPerPixel; |
159 |
++ p_sys->i_framebuffersize = p_gdi->width * p_gdi->height * bytesPerPixel; |
160 |
+ |
161 |
+ if ( p_sys->p_block ) |
162 |
+ p_sys->p_block = block_Realloc( p_sys->p_block, 0, p_sys->i_framebuffersize ); |
163 |
+@@ -233,28 +226,19 @@ |
164 |
+ vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_instance->context; |
165 |
+ |
166 |
+ msg_Dbg( p_vlccontext->p_demux, "connected to desktop %dx%d (%d bpp)", |
167 |
+-#if defined(FREERDP_VERSION_MAJOR) && (FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 1)) |
168 |
+ p_instance->settings->DesktopWidth, |
169 |
+ p_instance->settings->DesktopHeight, |
170 |
+ p_instance->settings->ColorDepth |
171 |
+-#else |
172 |
+- p_instance->settings->width, |
173 |
+- p_instance->settings->height, |
174 |
+- p_instance->settings->color_depth |
175 |
+-#endif |
176 |
+ ); |
177 |
+ |
178 |
+ p_instance->update->DesktopResize = desktopResizeHandler; |
179 |
+ p_instance->update->BeginPaint = beginPaintHandler; |
180 |
+ p_instance->update->EndPaint = endPaintHandler; |
181 |
+ |
182 |
+- gdi_init( p_instance, |
183 |
+- CLRBUF_16BPP | |
184 |
+-#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && \ |
185 |
+- !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2)) |
186 |
+- CLRBUF_24BPP | |
187 |
+-#endif |
188 |
+- CLRBUF_32BPP, NULL ); |
189 |
++ if ( p_instance->settings->ColorDepth > 16 ) |
190 |
++ gdi_init( p_instance, PIXEL_FORMAT_XRGB32); |
191 |
++ else |
192 |
++ gdi_init( p_instance, PIXEL_FORMAT_RGB16); |
193 |
+ |
194 |
+ desktopResizeHandler( p_instance->context ); |
195 |
+ return true; |
196 |
+@@ -428,10 +412,6 @@ |
197 |
+ if ( p_sys->f_fps <= 0 ) p_sys->f_fps = 1.0; |
198 |
+ p_sys->i_frame_interval = 1000000 / p_sys->f_fps; |
199 |
+ |
200 |
+-#if FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR < 2 |
201 |
+- freerdp_channels_global_init(); |
202 |
+-#endif |
203 |
+- |
204 |
+ p_sys->p_instance = freerdp_new(); |
205 |
+ if ( !p_sys->p_instance ) |
206 |
+ { |
207 |
+@@ -506,9 +486,6 @@ |
208 |
+ |
209 |
+ freerdp_disconnect( p_sys->p_instance ); |
210 |
+ freerdp_free( p_sys->p_instance ); |
211 |
+-#if FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR < 2 |
212 |
+- freerdp_channels_global_uninit(); |
213 |
+-#endif |
214 |
+ |
215 |
+ if ( p_sys->p_block ) |
216 |
+ block_Release( p_sys->p_block ); |
217 |
|
218 |
diff --git a/media-video/vlc/files/vlc-2.2.8-libupnp-slot-1.8.patch b/media-video/vlc/files/vlc-2.2.8-libupnp-slot-1.8.patch |
219 |
new file mode 100644 |
220 |
index 0000000..ab501e4 |
221 |
--- /dev/null |
222 |
+++ b/media-video/vlc/files/vlc-2.2.8-libupnp-slot-1.8.patch |
223 |
@@ -0,0 +1,24 @@ |
224 |
+--- a/modules/services_discovery/upnp.hpp 2015-05-19 15:32:38.000000000 +0200 |
225 |
++++ b/modules/services_discovery/upnp.hpp 2017-12-09 14:07:08.551654458 +0100 |
226 |
+@@ -28,8 +28,8 @@ |
227 |
+ #include <vector> |
228 |
+ #include <string> |
229 |
+ |
230 |
+-#include <upnp/upnp.h> |
231 |
+-#include <upnp/upnptools.h> |
232 |
++#include <upnp-1.8/upnp.h> |
233 |
++#include <upnp-1.8/upnptools.h> |
234 |
+ |
235 |
+ #include <vlc_common.h> |
236 |
+ |
237 |
+--- a/configure.ac 2017-12-09 14:09:12.956370304 +0100 |
238 |
++++ b/configure.ac 2017-12-09 14:13:25.236710362 +0100 |
239 |
+@@ -4046,7 +4046,7 @@ |
240 |
+ dnl |
241 |
+ dnl UPnP Plugin (Intel SDK) |
242 |
+ dnl |
243 |
+-PKG_ENABLE_MODULES_VLC([UPNP], [upnp], [libupnp], [Intel UPNP SDK],[auto]) |
244 |
++PKG_ENABLE_MODULES_VLC([UPNP], [upnp], [libupnp-1.8], [Intel UPNP SDK],[auto]) |
245 |
+ |
246 |
+ EXTEND_HELP_STRING([Misc options:]) |
247 |
+ |
248 |
|
249 |
diff --git a/media-video/vlc/files/vlc-3.0.1-qt-5.11.patch b/media-video/vlc/files/vlc-3.0.1-qt-5.11.patch |
250 |
new file mode 100644 |
251 |
index 0000000..c99d898 |
252 |
--- /dev/null |
253 |
+++ b/media-video/vlc/files/vlc-3.0.1-qt-5.11.patch |
254 |
@@ -0,0 +1,10 @@ |
255 |
+--- a/modules/gui/qt/components/simple_preferences.cpp 2018-01-25 17:57:40.000000000 +0100 |
256 |
++++ b/modules/gui/qt/components/simple_preferences.cpp 2018-03-18 21:08:51.212556781 +0100 |
257 |
+@@ -33,6 +33,7 @@ |
258 |
+ #include <vlc_config_cat.h> |
259 |
+ #include <vlc_configuration.h> |
260 |
+ |
261 |
++#include <QButtonGroup> |
262 |
+ #include <QString> |
263 |
+ #include <QFont> |
264 |
+ #include <QToolButton> |
265 |
|
266 |
diff --git a/media-video/vlc/files/vlc-3.0.3-fix-disable-vlm.patch b/media-video/vlc/files/vlc-3.0.3-fix-disable-vlm.patch |
267 |
new file mode 100644 |
268 |
index 0000000..fe4eecb |
269 |
--- /dev/null |
270 |
+++ b/media-video/vlc/files/vlc-3.0.3-fix-disable-vlm.patch |
271 |
@@ -0,0 +1,42 @@ |
272 |
+From 49450a4ab90bba8530764c5cdb95d648aeda7d52 Mon Sep 17 00:00:00 2001 |
273 |
+From: =?utf8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@×××××××.fr> |
274 |
+Date: Mon, 28 May 2018 18:25:15 +0200 |
275 |
+Subject: [PATCH] qt: Fix build with --disable-vlm |
276 |
+MIME-Version: 1.0 |
277 |
+Content-Type: text/plain; charset=utf8 |
278 |
+Content-Transfer-Encoding: 8bit |
279 |
+ |
280 |
+Fix #20495 |
281 |
+ |
282 |
+(cherry picked from commit 44a635bd4ae16fec5295f6f8aee4dd2ffd7e97d8) |
283 |
+Signed-off-by: Hugo Beauzée-Luyssen <hugo@×××××××.fr> |
284 |
+--- |
285 |
+ modules/gui/qt/Makefile.am | 5 ++++- |
286 |
+ 1 file changed, 4 insertions(+), 1 deletion(-) |
287 |
+ |
288 |
+diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am |
289 |
+index cb77b14d96..c67f4afc13 100644 |
290 |
+--- a/modules/gui/qt/Makefile.am |
291 |
++++ b/modules/gui/qt/Makefile.am |
292 |
+@@ -191,7 +191,6 @@ nodist_libqt_plugin_la_SOURCES = \ |
293 |
+ gui/qt/dialogs/open.moc.cpp \ |
294 |
+ gui/qt/dialogs/openurl.moc.cpp \ |
295 |
+ gui/qt/dialogs/podcast_configuration.moc.cpp \ |
296 |
+- gui/qt/dialogs/vlm.moc.cpp \ |
297 |
+ gui/qt/dialogs/firstrun.moc.cpp \ |
298 |
+ gui/qt/dialogs/extensions.moc.cpp \ |
299 |
+ gui/qt/dialogs/fingerprintdialog.moc.cpp \ |
300 |
+@@ -445,6 +444,10 @@ EXTRA_DIST += gui/qt/vlc.qrc $(libqt_plugin_la_RES) |
301 |
+ |
302 |
+ nodist_libqt_plugin_la_SOURCES += gui/qt/resources.cpp |
303 |
+ |
304 |
++if ENABLE_VLM |
305 |
++nodist_libqt_plugin_la_SOURCES += gui/qt/dialogs/vlm.moc.cpp |
306 |
++endif |
307 |
++ |
308 |
+ gui/qt/resources.cpp: gui/qt/vlc.qrc $(libqt_plugin_la_RES) |
309 |
+ $(AM_V_GEN)$(RCC) -name vlc -o $@ $< |
310 |
+ |
311 |
+-- |
312 |
+2.11.0 |
313 |
+ |
314 |
|
315 |
diff --git a/media-video/vlc/files/vlc-3.0.3-fribidi-1.patch b/media-video/vlc/files/vlc-3.0.3-fribidi-1.patch |
316 |
new file mode 100644 |
317 |
index 0000000..4431025 |
318 |
--- /dev/null |
319 |
+++ b/media-video/vlc/files/vlc-3.0.3-fribidi-1.patch |
320 |
@@ -0,0 +1,80 @@ |
321 |
+From 26e2d3906658c30f2f88f4b1bc9630ec43bf5525 Mon Sep 17 00:00:00 2001 |
322 |
+From: Shaleen Jain <shaleen@××××.sh> |
323 |
+Date: Sun, 25 Feb 2018 18:42:27 +0530 |
324 |
+Subject: [PATCH] fribidi: update for version 1.0 |
325 |
+ |
326 |
+Update functions deprecated in version 1.0 when building with release 1.0 and |
327 |
+above. |
328 |
+ |
329 |
+Signed-off-by: Thomas Guillem <thomas@××××.fr> |
330 |
+--- |
331 |
+ modules/text_renderer/freetype/text_layout.c | 24 ++++++++++++++++++++ |
332 |
+ 1 file changed, 24 insertions(+) |
333 |
+ |
334 |
+diff --git a/modules/text_renderer/freetype/text_layout.c b/modules/text_renderer/freetype/text_layout.c |
335 |
+index 13efd567b46..1a28786d097 100644 |
336 |
+--- a/modules/text_renderer/freetype/text_layout.c |
337 |
++++ b/modules/text_renderer/freetype/text_layout.c |
338 |
+@@ -153,6 +153,9 @@ typedef struct paragraph_t |
339 |
+ |
340 |
+ #ifdef HAVE_FRIBIDI |
341 |
+ FriBidiCharType *p_types; |
342 |
++#if FRIBIDI_MAJOR_VERSION >= 1 |
343 |
++ FriBidiBracketType *p_btypes; |
344 |
++#endif |
345 |
+ FriBidiLevel *p_levels; |
346 |
+ FriBidiStrIndex *pi_reordered_indices; |
347 |
+ FriBidiParType paragraph_type; |
348 |
+@@ -361,6 +364,9 @@ static paragraph_t *NewParagraph( filter_t *p_filter, |
349 |
+ #ifdef HAVE_FRIBIDI |
350 |
+ p_paragraph->p_levels = vlc_alloc( i_size, sizeof( *p_paragraph->p_levels ) ); |
351 |
+ p_paragraph->p_types = vlc_alloc( i_size, sizeof( *p_paragraph->p_types ) ); |
352 |
++#if FRIBIDI_MAJOR_VERSION >= 1 |
353 |
++ p_paragraph->p_btypes = vlc_alloc( i_size, sizeof( *p_paragraph->p_btypes ) ); |
354 |
++#endif |
355 |
+ p_paragraph->pi_reordered_indices = |
356 |
+ vlc_alloc( i_size, sizeof( *p_paragraph->pi_reordered_indices ) ); |
357 |
+ |
358 |
+@@ -398,6 +404,9 @@ static paragraph_t *NewParagraph( filter_t *p_filter, |
359 |
+ #ifdef HAVE_FRIBIDI |
360 |
+ if( p_paragraph->p_levels ) free( p_paragraph->p_levels ); |
361 |
+ if( p_paragraph->p_types ) free( p_paragraph->p_types ); |
362 |
++#if FRIBIDI_MAJOR_VERSION >= 1 |
363 |
++ if( p_paragraph->p_btypes ) free( p_paragraph->p_btypes ); |
364 |
++#endif |
365 |
+ if( p_paragraph->pi_reordered_indices ) |
366 |
+ free( p_paragraph->pi_reordered_indices ); |
367 |
+ #endif |
368 |
+@@ -424,6 +433,9 @@ static void FreeParagraph( paragraph_t *p_paragraph ) |
369 |
+ #ifdef HAVE_FRIBIDI |
370 |
+ free( p_paragraph->pi_reordered_indices ); |
371 |
+ free( p_paragraph->p_types ); |
372 |
++#if FRIBIDI_MAJOR_VERSION >= 1 |
373 |
++ free( p_paragraph->p_btypes ); |
374 |
++#endif |
375 |
+ free( p_paragraph->p_levels ); |
376 |
+ #endif |
377 |
+ |
378 |
+@@ -436,10 +448,22 @@ static int AnalyzeParagraph( paragraph_t *p_paragraph ) |
379 |
+ fribidi_get_bidi_types( p_paragraph->p_code_points, |
380 |
+ p_paragraph->i_size, |
381 |
+ p_paragraph->p_types ); |
382 |
++#if FRIBIDI_MAJOR_VERSION >= 1 |
383 |
++ fribidi_get_bracket_types( p_paragraph->p_code_points, |
384 |
++ p_paragraph->i_size, |
385 |
++ p_paragraph->p_types, |
386 |
++ p_paragraph->p_btypes ); |
387 |
++ fribidi_get_par_embedding_levels_ex( p_paragraph->p_types, |
388 |
++ p_paragraph->p_btypes, |
389 |
++ p_paragraph->i_size, |
390 |
++ &p_paragraph->paragraph_type, |
391 |
++ p_paragraph->p_levels ); |
392 |
++#else |
393 |
+ fribidi_get_par_embedding_levels( p_paragraph->p_types, |
394 |
+ p_paragraph->i_size, |
395 |
+ &p_paragraph->paragraph_type, |
396 |
+ p_paragraph->p_levels ); |
397 |
++#endif |
398 |
+ |
399 |
+ #ifdef HAVE_HARFBUZZ |
400 |
+ hb_unicode_funcs_t *p_funcs = hb_unicode_funcs_get_default(); |
401 |
|
402 |
diff --git a/media-video/vlc/files/vlc-9999-libupnp-slot-1.8.patch b/media-video/vlc/files/vlc-9999-libupnp-slot-1.8.patch |
403 |
new file mode 100644 |
404 |
index 0000000..15ffc6a |
405 |
--- /dev/null |
406 |
+++ b/media-video/vlc/files/vlc-9999-libupnp-slot-1.8.patch |
407 |
@@ -0,0 +1,24 @@ |
408 |
+--- a/modules/services_discovery/upnp-wrapper.hpp 2017-12-25 18:17:33.358015500 +0100 |
409 |
++++ b/modules/services_discovery/upnp-wrapper.hpp 2017-12-25 18:30:45.158167813 +0100 |
410 |
+@@ -35,8 +35,8 @@ |
411 |
+ #include <algorithm> |
412 |
+ #include <assert.h> |
413 |
+ |
414 |
+-#include <upnp.h> |
415 |
+-#include <upnptools.h> |
416 |
++#include <upnp-1.8/upnp.h> |
417 |
++#include <upnp-1.8/upnptools.h> |
418 |
+ |
419 |
+ #if UPNP_VERSION < 10800 |
420 |
+ typedef void* UpnpEventPtr; |
421 |
+ |
422 |
+--- a/configure.ac 2017-12-09 14:09:12.956370304 +0100 |
423 |
++++ b/configure.ac 2017-12-09 14:13:25.236710362 +0100 |
424 |
+@@ -4046,7 +4046,7 @@ |
425 |
+ dnl |
426 |
+ dnl UPnP Plugin (Intel SDK) |
427 |
+ dnl |
428 |
+-PKG_ENABLE_MODULES_VLC([UPNP], [upnp], [libupnp], [Intel UPNP SDK],[auto]) |
429 |
++PKG_ENABLE_MODULES_VLC([UPNP], [upnp], [libupnp-1.8], [Intel UPNP SDK],[auto]) |
430 |
+ |
431 |
+ EXTEND_HELP_STRING([Misc options:]) |
432 |
|
433 |
diff --git a/media-video/vlc/metadata.xml b/media-video/vlc/metadata.xml |
434 |
new file mode 100644 |
435 |
index 0000000..63d4bab |
436 |
--- /dev/null |
437 |
+++ b/media-video/vlc/metadata.xml |
438 |
@@ -0,0 +1,63 @@ |
439 |
+<?xml version="1.0" encoding="UTF-8"?> |
440 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
441 |
+<pkgmetadata> |
442 |
+ <maintainer type="project"> |
443 |
+ <email>media-video@g.o</email> |
444 |
+ <name>Gentoo Video project</name> |
445 |
+ </maintainer> |
446 |
+ <use> |
447 |
+ <flag name="aom">Enable experimental support for AV1 codec</flag> |
448 |
+ <flag name="archive">Enable support for libarchive stream extractor</flag> |
449 |
+ <flag name="aribsub">Enable support for decoding ARIB STD-B24 subtitles</flag> |
450 |
+ <flag name="bluray">Enable libbluray for Blu-ray disc support</flag> |
451 |
+ <flag name="chromaprint">Enable libchromaprint for Chromaprint based audio fingerprinter support</flag> |
452 |
+ <flag name="chromecast">Enable experimental support for Google Chromecast</flag> |
453 |
+ <flag name="dc1394">Enable IIDC cameras support</flag> |
454 |
+ <flag name="directx">Enable Win32 DirectX, D3D11va and DxVA2 support</flag> |
455 |
+ <flag name="dvbpsi">Enable support for Mpeg-TS files (.ts, .m2ts, .mts) via <pkg>media-libs/libdvbpsi</pkg></flag> |
456 |
+ <flag name="encode">Enable streaming-output support and videolan manager to control multiple streams from within one instance</flag> |
457 |
+ <flag name="faad">Enable AAC audio decoding library support via media-libs/faad2</flag> |
458 |
+ <flag name="fdk">Enable the Fraunhofer AAC codec library</flag> |
459 |
+ <flag name="fluidsynth">Enable Fluidsynth MIDI software synthesis (with external sound fonts)</flag> |
460 |
+ <flag name="gcrypt">Enable cryptography support via libgcrypt</flag> |
461 |
+ <flag name="gme">Enable support for <pkg>media-libs/game-music-emu</pkg> for playing various video game music formats</flag> |
462 |
+ <flag name="gstreamer">Enable GStreamer based decoding support (currently supports only video decoding)</flag> |
463 |
+ <flag name="kate">Adds support for Ogg Kate subtitles via libkate</flag> |
464 |
+ <flag name="kms">Enable kernel mode setting video output plugin via <pkg>x11-libs/libdrm</pkg></flag> |
465 |
+ <flag name="libtar">Uses libtar instead of the built-in tar reader for reading custom skins</flag> |
466 |
+ <flag name="libtiger">Enable Ogg Kate subtitles rendering using libtiger</flag> |
467 |
+ <flag name="linsys">Enable support for Linux Linear Systems Ltd. SDI and HD-SDI input cards</flag> |
468 |
+ <flag name="live">Enable live555 streaming media support (client support for rtsp)</flag> |
469 |
+ <flag name="lua">Enable Lua scripting support, needed for including support for Jamendo (online music platform) and similar things</flag> |
470 |
+ <flag name="macosx-notifications">Enable Mac OS X notifications module (formerly growl)</flag> |
471 |
+ <flag name="macosx-qtkit">Enable Mac OS X qtkit module: qtcapture (video) and qtsound (audio) module</flag> |
472 |
+ <flag name="matroska">Enable matroska support using reference libraries (fallback on other existing matroska support if disabled, i.e., matroska enabled FFmpeg)</flag> |
473 |
+ <flag name="mpeg">Add libmpeg2 support for mpeg-1 and mpeg-2 video streams</flag> |
474 |
+ <flag name="nfs">Enable support for nfs protocol via <pkg>net-fs/libnfs</pkg></flag> |
475 |
+ <flag name="omxil">Enable OpenMAX Integration Layer codec module</flag> |
476 |
+ <flag name="opencv">Enable OpenCV (computer vision) filter module</flag> |
477 |
+ <flag name="optimisememory">Enable optimisation for memory rather than performance</flag> |
478 |
+ <flag name="opus">Support opus decoding via libopus</flag> |
479 |
+ <flag name="postproc">Enable image post-processing via libpostproc (part of FFmpeg)</flag> |
480 |
+ <flag name="projectm">Enable the projectM visualization plugin</flag> |
481 |
+ <flag name="rtsp">Enable real audio and RTSP modules</flag> |
482 |
+ <flag name="run-as-root">Allows vlc to start for root. Don't enable this unless you have a very specific (e.g. embedded) need for it!</flag> |
483 |
+ <flag name="schroedinger">Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec)</flag> |
484 |
+ <flag name="sdl-image">Enable sdl image video decoder (depends on sdl)</flag> |
485 |
+ <flag name="sftp">Enable libssh2 to support SFTP file transfer</flag> |
486 |
+ <flag name="shout">Enable libshout output</flag> |
487 |
+ <flag name="sid">Adds support for playing C64 SID files through <pkg>media-libs/libsidplay</pkg>:2</flag> |
488 |
+ <flag name="skins">Enable support for the skins2 interface</flag> |
489 |
+ <flag name="soxr">Enable SoX Resampler support via <pkg>media-libs/soxr</pkg></flag> |
490 |
+ <flag name="srt">Enable support for Secure Reliable Transport (SRT) via <pkg>net-libs/srt</pkg></flag> |
491 |
+ <flag name="tremor">Enable tremor, a fixed-point version of the Ogg Vorbis decoder</flag> |
492 |
+ <flag name="twolame">Enable twolame support (MPEG Audio Layer 2 encoder)</flag> |
493 |
+ <flag name="upnp">Enable support for the Intel SDK stack based UPnP discovery module instead of CyberLink</flag> |
494 |
+ <flag name="vpx">Enable the decoder(s) from the WebM VP8 / VP9 Codec SDK</flag> |
495 |
+ <flag name="wma-fixed">Enable fixed point WMA decoder</flag> |
496 |
+ <flag name="X">Enable support for e.g. fullscreen mode via X and the X C-language binding. It does not build a graphical interface</flag> |
497 |
+ <flag name="x265">Support X265 Encoder</flag> |
498 |
+ <flag name="zeroconf">Enable support for zero-configuration networking via avahi</flag> |
499 |
+ <flag name="zvbi">Enable support for teletext subtitles via the zvbi library</flag> |
500 |
+ </use> |
501 |
+</pkgmetadata> |
502 |
|
503 |
diff --git a/media-video/vlc/vlc-3.0.3-r1.ebuild b/media-video/vlc/vlc-3.0.3-r1.ebuild |
504 |
new file mode 100644 |
505 |
index 0000000..be1767e |
506 |
--- /dev/null |
507 |
+++ b/media-video/vlc/vlc-3.0.3-r1.ebuild |
508 |
@@ -0,0 +1,500 @@ |
509 |
+# Copyright 1999-2018 Gentoo Foundation |
510 |
+# Distributed under the terms of the GNU General Public License v2 |
511 |
+ |
512 |
+EAPI=6 |
513 |
+ |
514 |
+MY_PV="${PV/_/-}" |
515 |
+MY_PV="${MY_PV/-beta/-test}" |
516 |
+MY_P="${PN}-${MY_PV}" |
517 |
+if [[ ${PV} = *9999 ]] ; then |
518 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
519 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
520 |
+ else |
521 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
522 |
+ fi |
523 |
+ SCM="git-r3" |
524 |
+else |
525 |
+ if [[ ${MY_P} = ${P} ]] ; then |
526 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
527 |
+ else |
528 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
529 |
+ fi |
530 |
+ KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 -sparc x86 ~x86-fbsd" |
531 |
+fi |
532 |
+inherit autotools flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils ${SCM} |
533 |
+ |
534 |
+DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
535 |
+HOMEPAGE="https://www.videolan.org/vlc/" |
536 |
+ |
537 |
+LICENSE="LGPL-2.1 GPL-2" |
538 |
+SLOT="0/5-9" # vlc - vlccore |
539 |
+ |
540 |
+IUSE="a52 alsa altivec aom archive bidi bluray cddb chromaprint chromecast dbus dc1394 |
541 |
+ debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth fontconfig |
542 |
+ +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate libass libav libcaca |
543 |
+ libnotify +libsamplerate libtar libtiger linsys lirc live lua macosx-notifications |
544 |
+ macosx-qtkit matroska modplug mp3 mpeg mtp musepack ncurses neon nfs ogg |
545 |
+ omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5 rdp rtsp |
546 |
+ run-as-root samba schroedinger sdl-image sftp shout sid skins soxr speex srt ssl svg |
547 |
+ taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx |
548 |
+ wayland wma-fixed +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse |
549 |
+" |
550 |
+REQUIRED_USE=" |
551 |
+ chromecast? ( encode ) |
552 |
+ directx? ( ffmpeg ) |
553 |
+ fontconfig? ( truetype ) |
554 |
+ libcaca? ( X ) |
555 |
+ libtar? ( skins ) |
556 |
+ libtiger? ( kate ) |
557 |
+ postproc? ( ffmpeg ) |
558 |
+ skins? ( qt5 truetype X xml ) |
559 |
+ ssl? ( gcrypt ) |
560 |
+ vaapi? ( ffmpeg X ) |
561 |
+ vdpau? ( ffmpeg X ) |
562 |
+" |
563 |
+RDEPEND=" |
564 |
+ net-dns/libidn:= |
565 |
+ sys-libs/zlib:0[minizip] |
566 |
+ virtual/libintl:0 |
567 |
+ virtual/opengl |
568 |
+ a52? ( media-libs/a52dec:0 ) |
569 |
+ alsa? ( media-libs/alsa-lib:0 ) |
570 |
+ aom? ( media-libs/libaom:= ) |
571 |
+ archive? ( app-arch/libarchive:= ) |
572 |
+ bidi? ( |
573 |
+ dev-libs/fribidi:0 |
574 |
+ media-libs/freetype:2[harfbuzz] |
575 |
+ media-libs/harfbuzz |
576 |
+ virtual/ttf-fonts:0 |
577 |
+ ) |
578 |
+ bluray? ( media-libs/libbluray:0= ) |
579 |
+ cddb? ( media-libs/libcddb:0 ) |
580 |
+ chromaprint? ( media-libs/chromaprint:0= ) |
581 |
+ chromecast? ( |
582 |
+ >=dev-libs/protobuf-2.5.0:= |
583 |
+ >=net-libs/libmicrodns-0.0.9:= |
584 |
+ ) |
585 |
+ dbus? ( sys-apps/dbus:0 ) |
586 |
+ dc1394? ( |
587 |
+ media-libs/libdc1394:2 |
588 |
+ sys-libs/libraw1394:0 |
589 |
+ ) |
590 |
+ dts? ( media-libs/libdca:0 ) |
591 |
+ dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:0= ) |
592 |
+ dvd? ( |
593 |
+ >=media-libs/libdvdnav-4.9:0 |
594 |
+ >=media-libs/libdvdread-4.9:0 |
595 |
+ ) |
596 |
+ faad? ( media-libs/faad2:0 ) |
597 |
+ fdk? ( media-libs/fdk-aac:0= ) |
598 |
+ ffmpeg? ( |
599 |
+ !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] ) |
600 |
+ libav? ( >=media-video/libav-12.2:0=[vaapi?,vdpau?] ) |
601 |
+ ) |
602 |
+ flac? ( |
603 |
+ media-libs/flac:0 |
604 |
+ media-libs/libogg:0 |
605 |
+ ) |
606 |
+ fluidsynth? ( media-sound/fluidsynth:0 ) |
607 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
608 |
+ gcrypt? ( |
609 |
+ dev-libs/libgcrypt:0= |
610 |
+ dev-libs/libgpg-error:0 |
611 |
+ ) |
612 |
+ gme? ( media-libs/game-music-emu:0 ) |
613 |
+ gnome-keyring? ( app-crypt/libsecret ) |
614 |
+ gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
615 |
+ ieee1394? ( |
616 |
+ sys-libs/libavc1394:0 |
617 |
+ sys-libs/libraw1394:0 |
618 |
+ ) |
619 |
+ jack? ( virtual/jack ) |
620 |
+ jpeg? ( virtual/jpeg:0 ) |
621 |
+ kate? ( media-libs/libkate:0 ) |
622 |
+ libass? ( |
623 |
+ media-libs/fontconfig:1.0 |
624 |
+ media-libs/libass:0= |
625 |
+ ) |
626 |
+ libcaca? ( media-libs/libcaca:0 ) |
627 |
+ libnotify? ( |
628 |
+ dev-libs/glib:2 |
629 |
+ x11-libs/gdk-pixbuf:2 |
630 |
+ x11-libs/gtk+:3 |
631 |
+ x11-libs/libnotify:0 |
632 |
+ ) |
633 |
+ libsamplerate? ( media-libs/libsamplerate:0 ) |
634 |
+ libtar? ( dev-libs/libtar:0 ) |
635 |
+ libtiger? ( media-libs/libtiger:0 ) |
636 |
+ linsys? ( media-libs/zvbi ) |
637 |
+ lirc? ( app-misc/lirc:0 ) |
638 |
+ live? ( media-plugins/live:0 ) |
639 |
+ lua? ( >=dev-lang/lua-5.1:0 ) |
640 |
+ matroska? ( |
641 |
+ dev-libs/libebml:0= |
642 |
+ media-libs/libmatroska:0= |
643 |
+ ) |
644 |
+ modplug? ( media-libs/libmodplug:0 ) |
645 |
+ mp3? ( media-libs/libmad:0 ) |
646 |
+ mpeg? ( media-libs/libmpeg2:0 ) |
647 |
+ mtp? ( media-libs/libmtp:0= ) |
648 |
+ musepack? ( media-sound/musepack-tools:0 ) |
649 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
650 |
+ nfs? ( >=net-fs/libnfs-0.10.0:= ) |
651 |
+ ogg? ( media-libs/libogg:0 ) |
652 |
+ opencv? ( media-libs/opencv:0= ) |
653 |
+ opus? ( >=media-libs/opus-1.0.3:0 ) |
654 |
+ png? ( media-libs/libpng:0= ) |
655 |
+ postproc? ( libav? ( media-libs/libpostproc:0= ) ) |
656 |
+ projectm? ( |
657 |
+ media-fonts/dejavu:0 |
658 |
+ media-libs/libprojectm:0 |
659 |
+ ) |
660 |
+ pulseaudio? ( media-sound/pulseaudio:0 ) |
661 |
+ qt5? ( |
662 |
+ dev-qt/qtcore:5 |
663 |
+ dev-qt/qtgui:5 |
664 |
+ dev-qt/qtsvg:5 |
665 |
+ dev-qt/qtwidgets:5 |
666 |
+ X? ( |
667 |
+ dev-qt/qtx11extras:5 |
668 |
+ x11-libs/libX11 |
669 |
+ ) |
670 |
+ ) |
671 |
+ rdp? ( >=net-misc/freerdp-2.0.0_rc0:0=[client] ) |
672 |
+ samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
673 |
+ schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) |
674 |
+ sdl-image? ( media-libs/sdl-image:0 ) |
675 |
+ sftp? ( net-libs/libssh2:0 ) |
676 |
+ shout? ( media-libs/libshout:0 ) |
677 |
+ sid? ( media-libs/libsidplay:2 ) |
678 |
+ skins? ( |
679 |
+ x11-libs/libXext:0 |
680 |
+ x11-libs/libXinerama:0 |
681 |
+ x11-libs/libXpm:0 |
682 |
+ ) |
683 |
+ soxr? ( media-libs/soxr ) |
684 |
+ speex? ( |
685 |
+ >=media-libs/speex-1.2.0:0 |
686 |
+ media-libs/speexdsp:0 |
687 |
+ ) |
688 |
+ srt? ( net-libs/srt ) |
689 |
+ ssl? ( net-libs/gnutls:0 ) |
690 |
+ svg? ( |
691 |
+ gnome-base/librsvg:2 |
692 |
+ x11-libs/cairo:0 |
693 |
+ ) |
694 |
+ taglib? ( >=media-libs/taglib-1.9:0 ) |
695 |
+ theora? ( media-libs/libtheora:0 ) |
696 |
+ tremor? ( media-libs/tremor:0 ) |
697 |
+ truetype? ( |
698 |
+ media-libs/freetype:2 |
699 |
+ virtual/ttf-fonts:0 |
700 |
+ !fontconfig? ( media-fonts/dejavu:0 ) |
701 |
+ ) |
702 |
+ twolame? ( media-sound/twolame:0 ) |
703 |
+ udev? ( virtual/udev:0 ) |
704 |
+ upnp? ( net-libs/libupnp:= ) |
705 |
+ v4l? ( media-libs/libv4l:0 ) |
706 |
+ vaapi? ( x11-libs/libva:0=[drm,wayland?,X?] ) |
707 |
+ vdpau? ( x11-libs/libvdpau:0 ) |
708 |
+ vnc? ( net-libs/libvncserver:0 ) |
709 |
+ vorbis? ( media-libs/libvorbis:0 ) |
710 |
+ vpx? ( media-libs/libvpx:0= ) |
711 |
+ wayland? ( |
712 |
+ || ( |
713 |
+ >=dev-libs/wayland-1.15 |
714 |
+ ( |
715 |
+ <dev-libs/wayland-1.15 |
716 |
+ <media-libs/mesa-18.1.1-r1[egl] |
717 |
+ ) |
718 |
+ ) |
719 |
+ dev-libs/wayland-protocols |
720 |
+ ) |
721 |
+ X? ( |
722 |
+ x11-libs/libX11 |
723 |
+ x11-libs/libxcb |
724 |
+ x11-libs/xcb-util |
725 |
+ x11-libs/xcb-util-keysyms |
726 |
+ ) |
727 |
+ x264? ( media-libs/x264:0= ) |
728 |
+ x265? ( media-libs/x265:0= ) |
729 |
+ xml? ( dev-libs/libxml2:2 ) |
730 |
+ zeroconf? ( net-dns/avahi:0[dbus] ) |
731 |
+ zvbi? ( media-libs/zvbi ) |
732 |
+" |
733 |
+DEPEND="${RDEPEND} |
734 |
+ >=sys-devel/gettext-0.19.8:* |
735 |
+ virtual/pkgconfig:* |
736 |
+ amd64? ( dev-lang/yasm:* ) |
737 |
+ x86? ( dev-lang/yasm:* ) |
738 |
+ X? ( x11-base/xorg-proto ) |
739 |
+" |
740 |
+ |
741 |
+PATCHES=( |
742 |
+ "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
743 |
+ "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch # bug #593460 |
744 |
+ "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
745 |
+ "${FILESDIR}"/${PN}-3.0.1-qt-5.11.patch # TODO upstream |
746 |
+ "${FILESDIR}"/${P}-fix-disable-vlm.patch # bug 649798 |
747 |
+ "${FILESDIR}"/${P}-fribidi-1.patch # bug 662662 |
748 |
+) |
749 |
+ |
750 |
+DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
751 |
+ |
752 |
+S="${WORKDIR}/${MY_P}" |
753 |
+ |
754 |
+src_prepare() { |
755 |
+ default |
756 |
+ |
757 |
+ has_version '>=net-libs/libupnp-1.8.0' && \ |
758 |
+ eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
759 |
+ |
760 |
+ # Bootstrap when we are on a git checkout. |
761 |
+ if [[ ${PV} = *9999 ]] ; then |
762 |
+ ./bootstrap |
763 |
+ fi |
764 |
+ |
765 |
+ # Make it build with libtool 1.5 |
766 |
+ rm m4/lt* m4/libtool.m4 || die |
767 |
+ |
768 |
+ # We are not in a real git checkout due to the absence of a .git directory. |
769 |
+ touch src/revision.txt || die |
770 |
+ |
771 |
+ # Don't use --started-from-file when not using dbus. |
772 |
+ if ! use dbus ; then |
773 |
+ sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
774 |
+ fi |
775 |
+ |
776 |
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst |
777 |
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
778 |
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
779 |
+ |
780 |
+ eautoreconf |
781 |
+ |
782 |
+ # Disable automatic running of tests. |
783 |
+ find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
784 |
+} |
785 |
+ |
786 |
+src_configure() { |
787 |
+ local myeconfargs=( |
788 |
+ --disable-aa |
789 |
+ --disable-dependency-tracking |
790 |
+ --disable-optimizations |
791 |
+ --disable-update-check |
792 |
+ --enable-fast-install |
793 |
+ --enable-screen |
794 |
+ --enable-vcd |
795 |
+ --enable-vlc |
796 |
+ $(use_enable a52) |
797 |
+ $(use_enable alsa) |
798 |
+ $(use_enable altivec) |
799 |
+ $(use_enable aom) |
800 |
+ $(use_enable archive) |
801 |
+ $(use_enable bidi fribidi) |
802 |
+ $(use_enable bidi harfbuzz) |
803 |
+ $(use_enable bluray) |
804 |
+ $(use_enable cddb libcddb) |
805 |
+ $(use_enable chromaprint) |
806 |
+ $(use_enable chromecast) |
807 |
+ $(use_enable chromecast microdns) |
808 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
809 |
+ $(use_enable cpu_flags_x86_sse sse) |
810 |
+ $(use_enable dbus) |
811 |
+ $(use_enable dbus kwallet) |
812 |
+ $(use_enable dc1394) |
813 |
+ $(use_enable debug) |
814 |
+ $(use_enable directx) |
815 |
+ $(use_enable directx d3d11va) |
816 |
+ $(use_enable directx dxva2) |
817 |
+ $(use_enable dts dca) |
818 |
+ $(use_enable dvbpsi) |
819 |
+ $(use_enable dvd dvdnav) |
820 |
+ $(use_enable dvd dvdread) |
821 |
+ $(use_enable encode sout) |
822 |
+ $(use_enable encode vlm) |
823 |
+ $(use_enable faad) |
824 |
+ $(use_enable fdk fdkaac) |
825 |
+ $(use_enable ffmpeg avcodec) |
826 |
+ $(use_enable ffmpeg avformat) |
827 |
+ $(use_enable ffmpeg swscale) |
828 |
+ $(use_enable flac) |
829 |
+ $(use_enable fluidsynth) |
830 |
+ $(use_enable fontconfig) |
831 |
+ $(use_enable gcrypt libgcrypt) |
832 |
+ $(use_enable gme) |
833 |
+ $(use_enable gnome-keyring secret) |
834 |
+ $(use_enable gstreamer gst-decode) |
835 |
+ $(use_enable ieee1394 dv1394) |
836 |
+ $(use_enable jack) |
837 |
+ $(use_enable jpeg) |
838 |
+ $(use_enable kate) |
839 |
+ $(use_enable libass) |
840 |
+ $(use_enable libcaca caca) |
841 |
+ $(use_enable libnotify notify) |
842 |
+ $(use_enable libsamplerate samplerate) |
843 |
+ $(use_enable libtar) |
844 |
+ $(use_enable libtiger tiger) |
845 |
+ $(use_enable linsys) |
846 |
+ $(use_enable lirc) |
847 |
+ $(use_enable live live555) |
848 |
+ $(use_enable lua) |
849 |
+ $(use_enable macosx-notifications osx-notifications) |
850 |
+ $(use_enable macosx-qtkit) |
851 |
+ $(use_enable matroska) |
852 |
+ $(use_enable modplug mod) |
853 |
+ $(use_enable mp3 mad) |
854 |
+ $(use_enable mpeg libmpeg2) |
855 |
+ $(use_enable mtp) |
856 |
+ $(use_enable musepack mpc) |
857 |
+ $(use_enable ncurses) |
858 |
+ $(use_enable neon) |
859 |
+ $(use_enable ogg) |
860 |
+ $(use_enable omxil) |
861 |
+ $(use_enable omxil omxil-vout) |
862 |
+ $(use_enable opencv) |
863 |
+ $(use_enable optimisememory optimize-memory) |
864 |
+ $(use_enable opus) |
865 |
+ $(use_enable png) |
866 |
+ $(use_enable postproc) |
867 |
+ $(use_enable projectm) |
868 |
+ $(use_enable pulseaudio pulse) |
869 |
+ $(use_enable qt5 qt) |
870 |
+ $(use_enable rdp freerdp) |
871 |
+ $(use_enable rtsp realrtsp) |
872 |
+ $(use_enable run-as-root) |
873 |
+ $(use_enable samba smbclient) |
874 |
+ $(use_enable schroedinger) |
875 |
+ $(use_enable sdl-image) |
876 |
+ $(use_enable sftp) |
877 |
+ $(use_enable shout) |
878 |
+ $(use_enable sid) |
879 |
+ $(use_enable skins skins2) |
880 |
+ $(use_enable soxr) |
881 |
+ $(use_enable speex) |
882 |
+ $(use_enable srt) |
883 |
+ $(use_enable ssl gnutls) |
884 |
+ $(use_enable svg) |
885 |
+ $(use_enable svg svgdec) |
886 |
+ $(use_enable taglib) |
887 |
+ $(use_enable theora) |
888 |
+ $(use_enable tremor) |
889 |
+ $(use_enable twolame) |
890 |
+ $(use_enable udev) |
891 |
+ $(use_enable upnp) |
892 |
+ $(use_enable v4l v4l2) |
893 |
+ $(use_enable vaapi libva) |
894 |
+ $(use_enable vdpau) |
895 |
+ $(use_enable vnc) |
896 |
+ $(use_enable vorbis) |
897 |
+ $(use_enable vpx) |
898 |
+ $(use_enable wayland) |
899 |
+ $(use_enable wma-fixed) |
900 |
+ $(use_with X x) |
901 |
+ $(use_enable X xcb) |
902 |
+ $(use_enable X xvideo) |
903 |
+ $(use_enable x264) |
904 |
+ $(use_enable x265) |
905 |
+ $(use_enable xml libxml2) |
906 |
+ $(use_enable zeroconf avahi) |
907 |
+ $(use_enable zvbi) |
908 |
+ $(use_enable !zvbi telx) |
909 |
+ --disable-asdcp |
910 |
+ --disable-coverage |
911 |
+ --disable-cprof |
912 |
+ --disable-crystalhd |
913 |
+ --disable-decklink |
914 |
+ --disable-gles2 |
915 |
+ --disable-goom |
916 |
+ --disable-kai |
917 |
+ --disable-kva |
918 |
+ --disable-libplacebo |
919 |
+ --disable-maintainer-mode |
920 |
+ --disable-merge-ffmpeg |
921 |
+ --disable-mfx |
922 |
+ --disable-mmal |
923 |
+ --disable-opensles |
924 |
+ --disable-oss |
925 |
+ --disable-rpi-omxil |
926 |
+ --disable-shine |
927 |
+ --disable-sndio |
928 |
+ --disable-spatialaudio |
929 |
+ --disable-vsxu |
930 |
+ --disable-wasapi |
931 |
+ ) |
932 |
+ # ^ We don't have these disabled libraries in the Portage tree yet. |
933 |
+ |
934 |
+ # Compatibility fix for Samba 4. |
935 |
+ use samba && append-cppflags "-I/usr/include/samba-4.0" |
936 |
+ |
937 |
+ if use x86; then |
938 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
939 |
+ append-cflags $(test-flags-CC -fno-stack-check) |
940 |
+ # Bug 569774 |
941 |
+ replace-flags -Os -O2 |
942 |
+ fi |
943 |
+ |
944 |
+ # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
945 |
+ append-cxxflags -std=c++11 |
946 |
+ |
947 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
948 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
949 |
+ |
950 |
+ xdg_environment_reset # bug 608256 |
951 |
+ |
952 |
+ if use truetype || use bidi; then |
953 |
+ myeconfargs+=( --enable-freetype ) |
954 |
+ else |
955 |
+ myeconfargs+=( --disable-freetype ) |
956 |
+ fi |
957 |
+ |
958 |
+ if use truetype || use projectm; then |
959 |
+ local dejavu="/usr/share/fonts/dejavu/" |
960 |
+ myeconfargs+=( |
961 |
+ --with-default-font=${dejavu}/DejaVuSans.ttf |
962 |
+ --with-default-font-family=Sans |
963 |
+ --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
964 |
+ --with-default-monospace-font-family=Monospace |
965 |
+ ) |
966 |
+ fi |
967 |
+ |
968 |
+ econf ${myeconfargs[@]} |
969 |
+ |
970 |
+ # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
971 |
+ # Other values may break the build (bug 523144), so definition should not be removed. |
972 |
+ # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
973 |
+ sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
974 |
+} |
975 |
+ |
976 |
+src_test() { |
977 |
+ virtx emake check-TESTS |
978 |
+} |
979 |
+ |
980 |
+src_install() { |
981 |
+ default |
982 |
+ find "${D}" -name '*.la' -delete || die |
983 |
+} |
984 |
+ |
985 |
+pkg_postinst() { |
986 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
987 |
+ einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
988 |
+ "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" |
989 |
+ else |
990 |
+ ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
991 |
+ ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
992 |
+ ewarn "If you do not do it, vlc will take a long time to load." |
993 |
+ fi |
994 |
+ |
995 |
+ gnome2_icon_cache_update |
996 |
+ xdg_mimeinfo_database_update |
997 |
+ xdg_desktop_database_update |
998 |
+} |
999 |
+ |
1000 |
+pkg_postrm() { |
1001 |
+ if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
1002 |
+ rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
1003 |
+ fi |
1004 |
+ |
1005 |
+ gnome2_icon_cache_update |
1006 |
+ xdg_mimeinfo_database_update |
1007 |
+ xdg_desktop_database_update |
1008 |
+} |
1009 |
|
1010 |
diff --git a/media-video/vlc/vlc-3.0.9999.ebuild b/media-video/vlc/vlc-3.0.9999.ebuild |
1011 |
new file mode 100644 |
1012 |
index 0000000..de11890 |
1013 |
--- /dev/null |
1014 |
+++ b/media-video/vlc/vlc-3.0.9999.ebuild |
1015 |
@@ -0,0 +1,493 @@ |
1016 |
+# Copyright 1999-2018 Gentoo Foundation |
1017 |
+# Distributed under the terms of the GNU General Public License v2 |
1018 |
+ |
1019 |
+EAPI=6 |
1020 |
+ |
1021 |
+MY_PV="${PV/_/-}" |
1022 |
+MY_PV="${MY_PV/-beta/-test}" |
1023 |
+MY_P="${PN}-${MY_PV}" |
1024 |
+if [[ ${PV} = *9999 ]] ; then |
1025 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
1026 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
1027 |
+ else |
1028 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
1029 |
+ fi |
1030 |
+ SCM="git-r3" |
1031 |
+else |
1032 |
+ if [[ ${MY_P} = ${P} ]] ; then |
1033 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
1034 |
+ else |
1035 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
1036 |
+ fi |
1037 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
1038 |
+fi |
1039 |
+inherit autotools flag-o-matic gnome2-utils toolchain-funcs virtualx xdg-utils ${SCM} |
1040 |
+ |
1041 |
+DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
1042 |
+HOMEPAGE="https://www.videolan.org/vlc/" |
1043 |
+ |
1044 |
+LICENSE="LGPL-2.1 GPL-2" |
1045 |
+SLOT="0/5-9" # vlc - vlccore |
1046 |
+ |
1047 |
+IUSE="a52 alsa altivec aom archive aribsub bidi bluray cddb chromaprint chromecast dbus |
1048 |
+ dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth |
1049 |
+ fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate libass |
1050 |
+ libav libcaca libnotify +libsamplerate libtar libtiger linsys lirc live lua |
1051 |
+ macosx-notifications macosx-qtkit matroska modplug mp3 mpeg mtp musepack ncurses |
1052 |
+ neon nfs ogg omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5 |
1053 |
+ rdp rtsp run-as-root samba schroedinger sdl-image sftp shout sid skins soxr speex srt ssl |
1054 |
+ svg taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx |
1055 |
+ wayland wma-fixed +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse |
1056 |
+" |
1057 |
+REQUIRED_USE=" |
1058 |
+ chromecast? ( encode ) |
1059 |
+ directx? ( ffmpeg ) |
1060 |
+ fontconfig? ( truetype ) |
1061 |
+ libcaca? ( X ) |
1062 |
+ libtar? ( skins ) |
1063 |
+ libtiger? ( kate ) |
1064 |
+ postproc? ( ffmpeg ) |
1065 |
+ skins? ( qt5 truetype X xml ) |
1066 |
+ ssl? ( gcrypt ) |
1067 |
+ vaapi? ( ffmpeg X ) |
1068 |
+ vdpau? ( ffmpeg X ) |
1069 |
+" |
1070 |
+RDEPEND=" |
1071 |
+ net-dns/libidn:= |
1072 |
+ sys-libs/zlib:0[minizip] |
1073 |
+ virtual/libintl:0 |
1074 |
+ virtual/opengl |
1075 |
+ a52? ( media-libs/a52dec:0 ) |
1076 |
+ alsa? ( media-libs/alsa-lib:0 ) |
1077 |
+ aom? ( media-libs/libaom:= ) |
1078 |
+ archive? ( app-arch/libarchive:= ) |
1079 |
+ aribsub? ( media-libs/aribb24 ) |
1080 |
+ bidi? ( |
1081 |
+ dev-libs/fribidi:0 |
1082 |
+ media-libs/freetype:2[harfbuzz] |
1083 |
+ media-libs/harfbuzz |
1084 |
+ virtual/ttf-fonts:0 |
1085 |
+ ) |
1086 |
+ bluray? ( media-libs/libbluray:0= ) |
1087 |
+ cddb? ( media-libs/libcddb:0 ) |
1088 |
+ chromaprint? ( media-libs/chromaprint:0= ) |
1089 |
+ chromecast? ( |
1090 |
+ >=dev-libs/protobuf-2.5.0:= |
1091 |
+ >=net-libs/libmicrodns-0.0.9:= |
1092 |
+ ) |
1093 |
+ dbus? ( sys-apps/dbus:0 ) |
1094 |
+ dc1394? ( |
1095 |
+ media-libs/libdc1394:2 |
1096 |
+ sys-libs/libraw1394:0 |
1097 |
+ ) |
1098 |
+ dts? ( media-libs/libdca:0 ) |
1099 |
+ dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:0= ) |
1100 |
+ dvd? ( |
1101 |
+ >=media-libs/libdvdnav-4.9:0 |
1102 |
+ >=media-libs/libdvdread-4.9:0 |
1103 |
+ ) |
1104 |
+ faad? ( media-libs/faad2:0 ) |
1105 |
+ fdk? ( media-libs/fdk-aac:0= ) |
1106 |
+ ffmpeg? ( |
1107 |
+ !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] ) |
1108 |
+ libav? ( >=media-video/libav-12.2:0=[vaapi?,vdpau?] ) |
1109 |
+ ) |
1110 |
+ flac? ( |
1111 |
+ media-libs/flac:0 |
1112 |
+ media-libs/libogg:0 |
1113 |
+ ) |
1114 |
+ fluidsynth? ( media-sound/fluidsynth:0 ) |
1115 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
1116 |
+ gcrypt? ( |
1117 |
+ dev-libs/libgcrypt:0= |
1118 |
+ dev-libs/libgpg-error:0 |
1119 |
+ ) |
1120 |
+ gme? ( media-libs/game-music-emu:0 ) |
1121 |
+ gnome-keyring? ( app-crypt/libsecret ) |
1122 |
+ gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
1123 |
+ ieee1394? ( |
1124 |
+ sys-libs/libavc1394:0 |
1125 |
+ sys-libs/libraw1394:0 |
1126 |
+ ) |
1127 |
+ jack? ( virtual/jack ) |
1128 |
+ jpeg? ( virtual/jpeg:0 ) |
1129 |
+ kate? ( media-libs/libkate:0 ) |
1130 |
+ libass? ( |
1131 |
+ media-libs/fontconfig:1.0 |
1132 |
+ media-libs/libass:0= |
1133 |
+ ) |
1134 |
+ libcaca? ( media-libs/libcaca:0 ) |
1135 |
+ libnotify? ( |
1136 |
+ dev-libs/glib:2 |
1137 |
+ x11-libs/gdk-pixbuf:2 |
1138 |
+ x11-libs/gtk+:3 |
1139 |
+ x11-libs/libnotify:0 |
1140 |
+ ) |
1141 |
+ libsamplerate? ( media-libs/libsamplerate:0 ) |
1142 |
+ libtar? ( dev-libs/libtar:0 ) |
1143 |
+ libtiger? ( media-libs/libtiger:0 ) |
1144 |
+ linsys? ( media-libs/zvbi ) |
1145 |
+ lirc? ( app-misc/lirc:0 ) |
1146 |
+ live? ( media-plugins/live:0 ) |
1147 |
+ lua? ( >=dev-lang/lua-5.1:0 ) |
1148 |
+ matroska? ( |
1149 |
+ dev-libs/libebml:0= |
1150 |
+ media-libs/libmatroska:0= |
1151 |
+ ) |
1152 |
+ modplug? ( media-libs/libmodplug:0 ) |
1153 |
+ mp3? ( media-libs/libmad:0 ) |
1154 |
+ mpeg? ( media-libs/libmpeg2:0 ) |
1155 |
+ mtp? ( media-libs/libmtp:0= ) |
1156 |
+ musepack? ( media-sound/musepack-tools:0 ) |
1157 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
1158 |
+ nfs? ( >=net-fs/libnfs-0.10.0:= ) |
1159 |
+ ogg? ( media-libs/libogg:0 ) |
1160 |
+ opencv? ( media-libs/opencv:0= ) |
1161 |
+ opus? ( >=media-libs/opus-1.0.3:0 ) |
1162 |
+ png? ( media-libs/libpng:0= ) |
1163 |
+ postproc? ( libav? ( media-libs/libpostproc:0= ) ) |
1164 |
+ projectm? ( |
1165 |
+ media-fonts/dejavu:0 |
1166 |
+ media-libs/libprojectm:0 |
1167 |
+ ) |
1168 |
+ pulseaudio? ( media-sound/pulseaudio:0 ) |
1169 |
+ qt5? ( |
1170 |
+ dev-qt/qtcore:5 |
1171 |
+ dev-qt/qtgui:5 |
1172 |
+ dev-qt/qtsvg:5 |
1173 |
+ dev-qt/qtwidgets:5 |
1174 |
+ X? ( |
1175 |
+ dev-qt/qtx11extras:5 |
1176 |
+ x11-libs/libX11 |
1177 |
+ ) |
1178 |
+ ) |
1179 |
+ rdp? ( >=net-misc/freerdp-2.0.0_rc0:0=[client] ) |
1180 |
+ samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
1181 |
+ schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) |
1182 |
+ sdl-image? ( media-libs/sdl-image:0 ) |
1183 |
+ sftp? ( net-libs/libssh2:0 ) |
1184 |
+ shout? ( media-libs/libshout:0 ) |
1185 |
+ sid? ( media-libs/libsidplay:2 ) |
1186 |
+ skins? ( |
1187 |
+ x11-libs/libXext:0 |
1188 |
+ x11-libs/libXinerama:0 |
1189 |
+ x11-libs/libXpm:0 |
1190 |
+ ) |
1191 |
+ soxr? ( media-libs/soxr ) |
1192 |
+ speex? ( |
1193 |
+ >=media-libs/speex-1.2.0:0 |
1194 |
+ media-libs/speexdsp:0 |
1195 |
+ ) |
1196 |
+ srt? ( net-libs/srt ) |
1197 |
+ ssl? ( net-libs/gnutls:0 ) |
1198 |
+ svg? ( |
1199 |
+ gnome-base/librsvg:2 |
1200 |
+ x11-libs/cairo:0 |
1201 |
+ ) |
1202 |
+ taglib? ( >=media-libs/taglib-1.9:0 ) |
1203 |
+ theora? ( media-libs/libtheora:0 ) |
1204 |
+ tremor? ( media-libs/tremor:0 ) |
1205 |
+ truetype? ( |
1206 |
+ media-libs/freetype:2 |
1207 |
+ virtual/ttf-fonts:0 |
1208 |
+ !fontconfig? ( media-fonts/dejavu:0 ) |
1209 |
+ ) |
1210 |
+ twolame? ( media-sound/twolame:0 ) |
1211 |
+ udev? ( virtual/udev:0 ) |
1212 |
+ upnp? ( net-libs/libupnp:= ) |
1213 |
+ v4l? ( media-libs/libv4l:0 ) |
1214 |
+ vaapi? ( x11-libs/libva:0=[drm,wayland?,X?] ) |
1215 |
+ vdpau? ( x11-libs/libvdpau:0 ) |
1216 |
+ vnc? ( net-libs/libvncserver:0 ) |
1217 |
+ vorbis? ( media-libs/libvorbis:0 ) |
1218 |
+ vpx? ( media-libs/libvpx:0= ) |
1219 |
+ wayland? ( |
1220 |
+ >=dev-libs/wayland-1.15 |
1221 |
+ dev-libs/wayland-protocols |
1222 |
+ ) |
1223 |
+ X? ( |
1224 |
+ x11-libs/libX11 |
1225 |
+ x11-libs/libxcb |
1226 |
+ x11-libs/xcb-util |
1227 |
+ x11-libs/xcb-util-keysyms |
1228 |
+ ) |
1229 |
+ x264? ( media-libs/x264:0= ) |
1230 |
+ x265? ( media-libs/x265:0= ) |
1231 |
+ xml? ( dev-libs/libxml2:2 ) |
1232 |
+ zeroconf? ( net-dns/avahi:0[dbus] ) |
1233 |
+ zvbi? ( media-libs/zvbi ) |
1234 |
+" |
1235 |
+DEPEND="${RDEPEND} |
1236 |
+ >=sys-devel/gettext-0.19.8:* |
1237 |
+ virtual/pkgconfig:* |
1238 |
+ amd64? ( dev-lang/yasm:* ) |
1239 |
+ x86? ( dev-lang/yasm:* ) |
1240 |
+ X? ( x11-base/xorg-proto ) |
1241 |
+" |
1242 |
+ |
1243 |
+PATCHES=( |
1244 |
+ "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
1245 |
+ "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch # bug #593460 |
1246 |
+ "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
1247 |
+) |
1248 |
+ |
1249 |
+DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
1250 |
+ |
1251 |
+S="${WORKDIR}/${MY_P}" |
1252 |
+ |
1253 |
+src_prepare() { |
1254 |
+ default |
1255 |
+ |
1256 |
+ has_version '>=net-libs/libupnp-1.8.0' && \ |
1257 |
+ eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
1258 |
+ |
1259 |
+ # Bootstrap when we are on a git checkout. |
1260 |
+ if [[ ${PV} = *9999 ]] ; then |
1261 |
+ ./bootstrap |
1262 |
+ fi |
1263 |
+ |
1264 |
+ # Make it build with libtool 1.5 |
1265 |
+ rm m4/lt* m4/libtool.m4 || die |
1266 |
+ |
1267 |
+ # We are not in a real git checkout due to the absence of a .git directory. |
1268 |
+ touch src/revision.txt || die |
1269 |
+ |
1270 |
+ # Don't use --started-from-file when not using dbus. |
1271 |
+ if ! use dbus ; then |
1272 |
+ sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
1273 |
+ fi |
1274 |
+ |
1275 |
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst |
1276 |
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
1277 |
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
1278 |
+ |
1279 |
+ eautoreconf |
1280 |
+ |
1281 |
+ # Disable automatic running of tests. |
1282 |
+ find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
1283 |
+} |
1284 |
+ |
1285 |
+src_configure() { |
1286 |
+ local myeconfargs=( |
1287 |
+ --disable-aa |
1288 |
+ --disable-dependency-tracking |
1289 |
+ --disable-optimizations |
1290 |
+ --disable-update-check |
1291 |
+ --enable-fast-install |
1292 |
+ --enable-screen |
1293 |
+ --enable-vcd |
1294 |
+ --enable-vlc |
1295 |
+ $(use_enable a52) |
1296 |
+ $(use_enable alsa) |
1297 |
+ $(use_enable altivec) |
1298 |
+ $(use_enable aom) |
1299 |
+ $(use_enable archive) |
1300 |
+ $(use_enable aribsub) |
1301 |
+ $(use_enable bidi fribidi) |
1302 |
+ $(use_enable bidi harfbuzz) |
1303 |
+ $(use_enable bluray) |
1304 |
+ $(use_enable cddb libcddb) |
1305 |
+ $(use_enable chromaprint) |
1306 |
+ $(use_enable chromecast) |
1307 |
+ $(use_enable chromecast microdns) |
1308 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
1309 |
+ $(use_enable cpu_flags_x86_sse sse) |
1310 |
+ $(use_enable dbus) |
1311 |
+ $(use_enable dbus kwallet) |
1312 |
+ $(use_enable dc1394) |
1313 |
+ $(use_enable debug) |
1314 |
+ $(use_enable directx) |
1315 |
+ $(use_enable directx d3d11va) |
1316 |
+ $(use_enable directx dxva2) |
1317 |
+ $(use_enable dts dca) |
1318 |
+ $(use_enable dvbpsi) |
1319 |
+ $(use_enable dvd dvdnav) |
1320 |
+ $(use_enable dvd dvdread) |
1321 |
+ $(use_enable encode sout) |
1322 |
+ $(use_enable encode vlm) |
1323 |
+ $(use_enable faad) |
1324 |
+ $(use_enable fdk fdkaac) |
1325 |
+ $(use_enable ffmpeg avcodec) |
1326 |
+ $(use_enable ffmpeg avformat) |
1327 |
+ $(use_enable ffmpeg swscale) |
1328 |
+ $(use_enable flac) |
1329 |
+ $(use_enable fluidsynth) |
1330 |
+ $(use_enable fontconfig) |
1331 |
+ $(use_enable gcrypt libgcrypt) |
1332 |
+ $(use_enable gme) |
1333 |
+ $(use_enable gnome-keyring secret) |
1334 |
+ $(use_enable gstreamer gst-decode) |
1335 |
+ $(use_enable ieee1394 dv1394) |
1336 |
+ $(use_enable jack) |
1337 |
+ $(use_enable jpeg) |
1338 |
+ $(use_enable kate) |
1339 |
+ $(use_enable libass) |
1340 |
+ $(use_enable libcaca caca) |
1341 |
+ $(use_enable libnotify notify) |
1342 |
+ $(use_enable libsamplerate samplerate) |
1343 |
+ $(use_enable libtar) |
1344 |
+ $(use_enable libtiger tiger) |
1345 |
+ $(use_enable linsys) |
1346 |
+ $(use_enable lirc) |
1347 |
+ $(use_enable live live555) |
1348 |
+ $(use_enable lua) |
1349 |
+ $(use_enable macosx-notifications osx-notifications) |
1350 |
+ $(use_enable macosx-qtkit) |
1351 |
+ $(use_enable matroska) |
1352 |
+ $(use_enable modplug mod) |
1353 |
+ $(use_enable mp3 mad) |
1354 |
+ $(use_enable mpeg libmpeg2) |
1355 |
+ $(use_enable mtp) |
1356 |
+ $(use_enable musepack mpc) |
1357 |
+ $(use_enable ncurses) |
1358 |
+ $(use_enable neon) |
1359 |
+ $(use_enable ogg) |
1360 |
+ $(use_enable omxil) |
1361 |
+ $(use_enable omxil omxil-vout) |
1362 |
+ $(use_enable opencv) |
1363 |
+ $(use_enable optimisememory optimize-memory) |
1364 |
+ $(use_enable opus) |
1365 |
+ $(use_enable png) |
1366 |
+ $(use_enable postproc) |
1367 |
+ $(use_enable projectm) |
1368 |
+ $(use_enable pulseaudio pulse) |
1369 |
+ $(use_enable qt5 qt) |
1370 |
+ $(use_enable rdp freerdp) |
1371 |
+ $(use_enable rtsp realrtsp) |
1372 |
+ $(use_enable run-as-root) |
1373 |
+ $(use_enable samba smbclient) |
1374 |
+ $(use_enable schroedinger) |
1375 |
+ $(use_enable sdl-image) |
1376 |
+ $(use_enable sftp) |
1377 |
+ $(use_enable shout) |
1378 |
+ $(use_enable sid) |
1379 |
+ $(use_enable skins skins2) |
1380 |
+ $(use_enable soxr) |
1381 |
+ $(use_enable speex) |
1382 |
+ $(use_enable srt) |
1383 |
+ $(use_enable ssl gnutls) |
1384 |
+ $(use_enable svg) |
1385 |
+ $(use_enable svg svgdec) |
1386 |
+ $(use_enable taglib) |
1387 |
+ $(use_enable theora) |
1388 |
+ $(use_enable tremor) |
1389 |
+ $(use_enable twolame) |
1390 |
+ $(use_enable udev) |
1391 |
+ $(use_enable upnp) |
1392 |
+ $(use_enable v4l v4l2) |
1393 |
+ $(use_enable vaapi libva) |
1394 |
+ $(use_enable vdpau) |
1395 |
+ $(use_enable vnc) |
1396 |
+ $(use_enable vorbis) |
1397 |
+ $(use_enable vpx) |
1398 |
+ $(use_enable wayland) |
1399 |
+ $(use_enable wma-fixed) |
1400 |
+ $(use_with X x) |
1401 |
+ $(use_enable X xcb) |
1402 |
+ $(use_enable X xvideo) |
1403 |
+ $(use_enable x264) |
1404 |
+ $(use_enable x265) |
1405 |
+ $(use_enable xml libxml2) |
1406 |
+ $(use_enable zeroconf avahi) |
1407 |
+ $(use_enable zvbi) |
1408 |
+ $(use_enable !zvbi telx) |
1409 |
+ --disable-asdcp |
1410 |
+ --disable-coverage |
1411 |
+ --disable-cprof |
1412 |
+ --disable-crystalhd |
1413 |
+ --disable-decklink |
1414 |
+ --disable-gles2 |
1415 |
+ --disable-goom |
1416 |
+ --disable-kai |
1417 |
+ --disable-kva |
1418 |
+ --disable-libplacebo |
1419 |
+ --disable-maintainer-mode |
1420 |
+ --disable-merge-ffmpeg |
1421 |
+ --disable-mfx |
1422 |
+ --disable-mmal |
1423 |
+ --disable-opensles |
1424 |
+ --disable-oss |
1425 |
+ --disable-rpi-omxil |
1426 |
+ --disable-shine |
1427 |
+ --disable-sndio |
1428 |
+ --disable-spatialaudio |
1429 |
+ --disable-vsxu |
1430 |
+ --disable-wasapi |
1431 |
+ ) |
1432 |
+ # ^ We don't have these disabled libraries in the Portage tree yet. |
1433 |
+ |
1434 |
+ # Compatibility fix for Samba 4. |
1435 |
+ use samba && append-cppflags "-I/usr/include/samba-4.0" |
1436 |
+ |
1437 |
+ if use x86; then |
1438 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
1439 |
+ append-cflags $(test-flags-CC -fno-stack-check) |
1440 |
+ # Bug 569774 |
1441 |
+ replace-flags -Os -O2 |
1442 |
+ fi |
1443 |
+ |
1444 |
+ # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
1445 |
+ append-cxxflags -std=c++11 |
1446 |
+ |
1447 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
1448 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
1449 |
+ |
1450 |
+ xdg_environment_reset # bug 608256 |
1451 |
+ |
1452 |
+ if use truetype || use bidi; then |
1453 |
+ myeconfargs+=( --enable-freetype ) |
1454 |
+ else |
1455 |
+ myeconfargs+=( --disable-freetype ) |
1456 |
+ fi |
1457 |
+ |
1458 |
+ if use truetype || use projectm; then |
1459 |
+ local dejavu="/usr/share/fonts/dejavu/" |
1460 |
+ myeconfargs+=( |
1461 |
+ --with-default-font=${dejavu}/DejaVuSans.ttf |
1462 |
+ --with-default-font-family=Sans |
1463 |
+ --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
1464 |
+ --with-default-monospace-font-family=Monospace |
1465 |
+ ) |
1466 |
+ fi |
1467 |
+ |
1468 |
+ econf ${myeconfargs[@]} |
1469 |
+ |
1470 |
+ # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
1471 |
+ # Other values may break the build (bug 523144), so definition should not be removed. |
1472 |
+ # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
1473 |
+ sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
1474 |
+} |
1475 |
+ |
1476 |
+src_test() { |
1477 |
+ virtx emake check-TESTS |
1478 |
+} |
1479 |
+ |
1480 |
+src_install() { |
1481 |
+ default |
1482 |
+ find "${D}" -name '*.la' -delete || die |
1483 |
+} |
1484 |
+ |
1485 |
+pkg_postinst() { |
1486 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
1487 |
+ einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
1488 |
+ "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" |
1489 |
+ else |
1490 |
+ ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
1491 |
+ ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
1492 |
+ ewarn "If you do not do it, vlc will take a long time to load." |
1493 |
+ fi |
1494 |
+ |
1495 |
+ gnome2_icon_cache_update |
1496 |
+ xdg_mimeinfo_database_update |
1497 |
+ xdg_desktop_database_update |
1498 |
+} |
1499 |
+ |
1500 |
+pkg_postrm() { |
1501 |
+ if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
1502 |
+ rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
1503 |
+ fi |
1504 |
+ |
1505 |
+ gnome2_icon_cache_update |
1506 |
+ xdg_mimeinfo_database_update |
1507 |
+ xdg_desktop_database_update |
1508 |
+} |
1509 |
|
1510 |
diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild |
1511 |
new file mode 100644 |
1512 |
index 0000000..bc8a566 |
1513 |
--- /dev/null |
1514 |
+++ b/media-video/vlc/vlc-9999.ebuild |
1515 |
@@ -0,0 +1,493 @@ |
1516 |
+# Copyright 1999-2018 Gentoo Foundation |
1517 |
+# Distributed under the terms of the GNU General Public License v2 |
1518 |
+ |
1519 |
+EAPI=6 |
1520 |
+ |
1521 |
+MY_PV="${PV/_/-}" |
1522 |
+MY_PV="${MY_PV/-beta/-test}" |
1523 |
+MY_P="${PN}-${MY_PV}" |
1524 |
+if [[ ${PV} = *9999 ]] ; then |
1525 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
1526 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
1527 |
+ else |
1528 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
1529 |
+ fi |
1530 |
+ SCM="git-r3" |
1531 |
+else |
1532 |
+ if [[ ${MY_P} = ${P} ]] ; then |
1533 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
1534 |
+ else |
1535 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
1536 |
+ fi |
1537 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
1538 |
+fi |
1539 |
+inherit autotools flag-o-matic gnome2-utils toolchain-funcs virtualx xdg-utils ${SCM} |
1540 |
+ |
1541 |
+DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
1542 |
+HOMEPAGE="https://www.videolan.org/vlc/" |
1543 |
+ |
1544 |
+LICENSE="LGPL-2.1 GPL-2" |
1545 |
+SLOT="0/5-9" # vlc - vlccore |
1546 |
+ |
1547 |
+IUSE="a52 alsa altivec aom archive aribsub bidi bluray cddb chromaprint chromecast dbus |
1548 |
+ dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth |
1549 |
+ fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate kms libass |
1550 |
+ libav libcaca libnotify +libsamplerate libtar libtiger linsys lirc live lua |
1551 |
+ macosx-notifications macosx-qtkit matroska modplug mp3 mpeg mtp musepack ncurses |
1552 |
+ neon nfs ogg omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5 |
1553 |
+ rdp run-as-root samba schroedinger sdl-image sftp shout sid skins soxr speex srt ssl |
1554 |
+ svg taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx |
1555 |
+ wayland wma-fixed +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse |
1556 |
+" |
1557 |
+REQUIRED_USE=" |
1558 |
+ chromecast? ( encode ) |
1559 |
+ directx? ( ffmpeg ) |
1560 |
+ fontconfig? ( truetype ) |
1561 |
+ libcaca? ( X ) |
1562 |
+ libtar? ( skins ) |
1563 |
+ libtiger? ( kate ) |
1564 |
+ postproc? ( ffmpeg ) |
1565 |
+ skins? ( qt5 truetype X xml ) |
1566 |
+ ssl? ( gcrypt ) |
1567 |
+ vaapi? ( ffmpeg X ) |
1568 |
+ vdpau? ( ffmpeg X ) |
1569 |
+" |
1570 |
+RDEPEND=" |
1571 |
+ net-dns/libidn:= |
1572 |
+ sys-libs/zlib:0[minizip] |
1573 |
+ virtual/libintl:0 |
1574 |
+ virtual/opengl |
1575 |
+ a52? ( media-libs/a52dec:0 ) |
1576 |
+ alsa? ( media-libs/alsa-lib:0 ) |
1577 |
+ aom? ( media-libs/libaom:= ) |
1578 |
+ archive? ( app-arch/libarchive:= ) |
1579 |
+ aribsub? ( media-libs/aribb24 ) |
1580 |
+ bidi? ( |
1581 |
+ dev-libs/fribidi:0 |
1582 |
+ media-libs/freetype:2[harfbuzz] |
1583 |
+ media-libs/harfbuzz |
1584 |
+ virtual/ttf-fonts:0 |
1585 |
+ ) |
1586 |
+ bluray? ( media-libs/libbluray:0= ) |
1587 |
+ cddb? ( media-libs/libcddb:0 ) |
1588 |
+ chromaprint? ( media-libs/chromaprint:0= ) |
1589 |
+ chromecast? ( |
1590 |
+ >=dev-libs/protobuf-2.5.0:= |
1591 |
+ >=net-libs/libmicrodns-0.0.9:= |
1592 |
+ ) |
1593 |
+ dbus? ( sys-apps/dbus:0 ) |
1594 |
+ dc1394? ( |
1595 |
+ media-libs/libdc1394:2 |
1596 |
+ sys-libs/libraw1394:0 |
1597 |
+ ) |
1598 |
+ dts? ( media-libs/libdca:0 ) |
1599 |
+ dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:0= ) |
1600 |
+ dvd? ( |
1601 |
+ >=media-libs/libdvdnav-4.9:0 |
1602 |
+ >=media-libs/libdvdread-4.9:0 |
1603 |
+ ) |
1604 |
+ faad? ( media-libs/faad2:0 ) |
1605 |
+ fdk? ( media-libs/fdk-aac:0= ) |
1606 |
+ ffmpeg? ( |
1607 |
+ !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] ) |
1608 |
+ libav? ( >=media-video/libav-12.2:0=[vaapi?,vdpau?] ) |
1609 |
+ ) |
1610 |
+ flac? ( |
1611 |
+ media-libs/flac:0 |
1612 |
+ media-libs/libogg:0 |
1613 |
+ ) |
1614 |
+ fluidsynth? ( media-sound/fluidsynth:0 ) |
1615 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
1616 |
+ gcrypt? ( |
1617 |
+ dev-libs/libgcrypt:0= |
1618 |
+ dev-libs/libgpg-error:0 |
1619 |
+ ) |
1620 |
+ gme? ( media-libs/game-music-emu:0 ) |
1621 |
+ gnome-keyring? ( app-crypt/libsecret ) |
1622 |
+ gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
1623 |
+ ieee1394? ( |
1624 |
+ sys-libs/libavc1394:0 |
1625 |
+ sys-libs/libraw1394:0 |
1626 |
+ ) |
1627 |
+ jack? ( virtual/jack ) |
1628 |
+ jpeg? ( virtual/jpeg:0 ) |
1629 |
+ kate? ( media-libs/libkate:0 ) |
1630 |
+ kms? ( x11-libs/libdrm ) |
1631 |
+ libass? ( |
1632 |
+ media-libs/fontconfig:1.0 |
1633 |
+ media-libs/libass:0= |
1634 |
+ ) |
1635 |
+ libcaca? ( media-libs/libcaca:0 ) |
1636 |
+ libnotify? ( |
1637 |
+ dev-libs/glib:2 |
1638 |
+ x11-libs/gdk-pixbuf:2 |
1639 |
+ x11-libs/gtk+:3 |
1640 |
+ x11-libs/libnotify:0 |
1641 |
+ ) |
1642 |
+ libsamplerate? ( media-libs/libsamplerate:0 ) |
1643 |
+ libtar? ( dev-libs/libtar:0 ) |
1644 |
+ libtiger? ( media-libs/libtiger:0 ) |
1645 |
+ linsys? ( media-libs/zvbi ) |
1646 |
+ lirc? ( app-misc/lirc:0 ) |
1647 |
+ live? ( media-plugins/live:0 ) |
1648 |
+ lua? ( >=dev-lang/lua-5.1:0 ) |
1649 |
+ matroska? ( |
1650 |
+ dev-libs/libebml:0= |
1651 |
+ media-libs/libmatroska:0= |
1652 |
+ ) |
1653 |
+ modplug? ( media-libs/libmodplug:0 ) |
1654 |
+ mp3? ( media-libs/libmad:0 ) |
1655 |
+ mpeg? ( media-libs/libmpeg2:0 ) |
1656 |
+ mtp? ( media-libs/libmtp:0= ) |
1657 |
+ musepack? ( media-sound/musepack-tools:0 ) |
1658 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
1659 |
+ nfs? ( >=net-fs/libnfs-0.10.0:= ) |
1660 |
+ ogg? ( media-libs/libogg:0 ) |
1661 |
+ opencv? ( media-libs/opencv:0= ) |
1662 |
+ opus? ( >=media-libs/opus-1.0.3:0 ) |
1663 |
+ png? ( media-libs/libpng:0= ) |
1664 |
+ postproc? ( libav? ( media-libs/libpostproc:0= ) ) |
1665 |
+ projectm? ( |
1666 |
+ media-fonts/dejavu:0 |
1667 |
+ media-libs/libprojectm:0 |
1668 |
+ ) |
1669 |
+ pulseaudio? ( media-sound/pulseaudio:0 ) |
1670 |
+ qt5? ( |
1671 |
+ dev-qt/qtcore:5 |
1672 |
+ dev-qt/qtgui:5 |
1673 |
+ dev-qt/qtsvg:5 |
1674 |
+ dev-qt/qtwidgets:5 |
1675 |
+ X? ( |
1676 |
+ dev-qt/qtx11extras:5 |
1677 |
+ x11-libs/libX11 |
1678 |
+ ) |
1679 |
+ ) |
1680 |
+ rdp? ( >=net-misc/freerdp-2.0.0_rc0:0=[client] ) |
1681 |
+ samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
1682 |
+ schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) |
1683 |
+ sdl-image? ( media-libs/sdl-image:0 ) |
1684 |
+ sftp? ( net-libs/libssh2:0 ) |
1685 |
+ shout? ( media-libs/libshout:0 ) |
1686 |
+ sid? ( media-libs/libsidplay:2 ) |
1687 |
+ skins? ( |
1688 |
+ x11-libs/libXext:0 |
1689 |
+ x11-libs/libXinerama:0 |
1690 |
+ x11-libs/libXpm:0 |
1691 |
+ ) |
1692 |
+ soxr? ( media-libs/soxr ) |
1693 |
+ speex? ( |
1694 |
+ >=media-libs/speex-1.2.0:0 |
1695 |
+ media-libs/speexdsp:0 |
1696 |
+ ) |
1697 |
+ srt? ( net-libs/srt ) |
1698 |
+ ssl? ( net-libs/gnutls:0 ) |
1699 |
+ svg? ( |
1700 |
+ gnome-base/librsvg:2 |
1701 |
+ x11-libs/cairo:0 |
1702 |
+ ) |
1703 |
+ taglib? ( >=media-libs/taglib-1.9:0 ) |
1704 |
+ theora? ( media-libs/libtheora:0 ) |
1705 |
+ tremor? ( media-libs/tremor:0 ) |
1706 |
+ truetype? ( |
1707 |
+ media-libs/freetype:2 |
1708 |
+ virtual/ttf-fonts:0 |
1709 |
+ !fontconfig? ( media-fonts/dejavu:0 ) |
1710 |
+ ) |
1711 |
+ twolame? ( media-sound/twolame:0 ) |
1712 |
+ udev? ( virtual/udev:0 ) |
1713 |
+ upnp? ( net-libs/libupnp:= ) |
1714 |
+ v4l? ( media-libs/libv4l:0 ) |
1715 |
+ vaapi? ( x11-libs/libva:0=[drm,wayland?,X?] ) |
1716 |
+ vdpau? ( x11-libs/libvdpau:0 ) |
1717 |
+ vnc? ( net-libs/libvncserver:0 ) |
1718 |
+ vorbis? ( media-libs/libvorbis:0 ) |
1719 |
+ vpx? ( media-libs/libvpx:0= ) |
1720 |
+ wayland? ( |
1721 |
+ >=dev-libs/wayland-1.15 |
1722 |
+ >=dev-libs/wayland-protocols-1.12 |
1723 |
+ ) |
1724 |
+ X? ( |
1725 |
+ x11-libs/libX11 |
1726 |
+ x11-libs/libxcb[xkb] |
1727 |
+ x11-libs/libXcursor |
1728 |
+ x11-libs/libxkbcommon[X] |
1729 |
+ x11-libs/xcb-util |
1730 |
+ x11-libs/xcb-util-keysyms |
1731 |
+ ) |
1732 |
+ x264? ( media-libs/x264:0= ) |
1733 |
+ x265? ( media-libs/x265:0= ) |
1734 |
+ xml? ( dev-libs/libxml2:2 ) |
1735 |
+ zeroconf? ( net-dns/avahi:0[dbus] ) |
1736 |
+ zvbi? ( media-libs/zvbi ) |
1737 |
+" |
1738 |
+DEPEND="${RDEPEND} |
1739 |
+ >=sys-devel/gettext-0.19.8:* |
1740 |
+ virtual/pkgconfig:* |
1741 |
+ amd64? ( dev-lang/yasm:* ) |
1742 |
+ x86? ( dev-lang/yasm:* ) |
1743 |
+ X? ( x11-base/xorg-proto ) |
1744 |
+" |
1745 |
+ |
1746 |
+PATCHES=( |
1747 |
+ "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
1748 |
+ "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch # bug #593460 |
1749 |
+ "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
1750 |
+) |
1751 |
+ |
1752 |
+DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
1753 |
+ |
1754 |
+S="${WORKDIR}/${MY_P}" |
1755 |
+ |
1756 |
+src_prepare() { |
1757 |
+ default |
1758 |
+ |
1759 |
+ has_version '>=net-libs/libupnp-1.8.0' && \ |
1760 |
+ eapply "${FILESDIR}"/${P}-libupnp-slot-1.8.patch |
1761 |
+ |
1762 |
+ # Bootstrap when we are on a git checkout. |
1763 |
+ if [[ ${PV} = *9999 ]] ; then |
1764 |
+ ./bootstrap |
1765 |
+ fi |
1766 |
+ |
1767 |
+ # Make it build with libtool 1.5 |
1768 |
+ rm m4/lt* m4/libtool.m4 || die |
1769 |
+ |
1770 |
+ # We are not in a real git checkout due to the absence of a .git directory. |
1771 |
+ touch src/revision.txt || die |
1772 |
+ |
1773 |
+ # Don't use --started-from-file when not using dbus. |
1774 |
+ if ! use dbus ; then |
1775 |
+ sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
1776 |
+ fi |
1777 |
+ |
1778 |
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst |
1779 |
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
1780 |
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
1781 |
+ |
1782 |
+ eautoreconf |
1783 |
+ |
1784 |
+ # Disable automatic running of tests. |
1785 |
+ find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
1786 |
+} |
1787 |
+ |
1788 |
+src_configure() { |
1789 |
+ local myeconfargs=( |
1790 |
+ --disable-dependency-tracking |
1791 |
+ --disable-optimizations |
1792 |
+ --disable-update-check |
1793 |
+ --enable-fast-install |
1794 |
+ --enable-screen |
1795 |
+ --enable-vcd |
1796 |
+ --enable-vlc |
1797 |
+ $(use_enable a52) |
1798 |
+ $(use_enable alsa) |
1799 |
+ $(use_enable altivec) |
1800 |
+ $(use_enable aom) |
1801 |
+ $(use_enable archive) |
1802 |
+ $(use_enable aribsub) |
1803 |
+ $(use_enable bidi fribidi) |
1804 |
+ $(use_enable bidi harfbuzz) |
1805 |
+ $(use_enable bluray) |
1806 |
+ $(use_enable cddb libcddb) |
1807 |
+ $(use_enable chromaprint) |
1808 |
+ $(use_enable chromecast) |
1809 |
+ $(use_enable chromecast microdns) |
1810 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
1811 |
+ $(use_enable cpu_flags_x86_sse sse) |
1812 |
+ $(use_enable dbus) |
1813 |
+ $(use_enable dbus kwallet) |
1814 |
+ $(use_enable dc1394) |
1815 |
+ $(use_enable debug) |
1816 |
+ $(use_enable directx) |
1817 |
+ $(use_enable directx d3d11va) |
1818 |
+ $(use_enable directx dxva2) |
1819 |
+ $(use_enable dts dca) |
1820 |
+ $(use_enable dvbpsi) |
1821 |
+ $(use_enable dvd dvdnav) |
1822 |
+ $(use_enable dvd dvdread) |
1823 |
+ $(use_enable encode sout) |
1824 |
+ $(use_enable encode vlm) |
1825 |
+ $(use_enable faad) |
1826 |
+ $(use_enable fdk fdkaac) |
1827 |
+ $(use_enable ffmpeg avcodec) |
1828 |
+ $(use_enable ffmpeg avformat) |
1829 |
+ $(use_enable ffmpeg swscale) |
1830 |
+ $(use_enable flac) |
1831 |
+ $(use_enable fluidsynth) |
1832 |
+ $(use_enable fontconfig) |
1833 |
+ $(use_enable gcrypt libgcrypt) |
1834 |
+ $(use_enable gme) |
1835 |
+ $(use_enable gnome-keyring secret) |
1836 |
+ $(use_enable gstreamer gst-decode) |
1837 |
+ $(use_enable ieee1394 dv1394) |
1838 |
+ $(use_enable jack) |
1839 |
+ $(use_enable jpeg) |
1840 |
+ $(use_enable kate) |
1841 |
+ $(use_enable kms) |
1842 |
+ $(use_enable libass) |
1843 |
+ $(use_enable libcaca caca) |
1844 |
+ $(use_enable libnotify notify) |
1845 |
+ $(use_enable libsamplerate samplerate) |
1846 |
+ $(use_enable libtar) |
1847 |
+ $(use_enable libtiger tiger) |
1848 |
+ $(use_enable linsys) |
1849 |
+ $(use_enable lirc) |
1850 |
+ $(use_enable live live555) |
1851 |
+ $(use_enable lua) |
1852 |
+ $(use_enable macosx-notifications osx-notifications) |
1853 |
+ $(use_enable macosx-qtkit) |
1854 |
+ $(use_enable matroska) |
1855 |
+ $(use_enable modplug mod) |
1856 |
+ $(use_enable mp3 mad) |
1857 |
+ $(use_enable mpeg libmpeg2) |
1858 |
+ $(use_enable mtp) |
1859 |
+ $(use_enable musepack mpc) |
1860 |
+ $(use_enable ncurses) |
1861 |
+ $(use_enable neon) |
1862 |
+ $(use_enable ogg) |
1863 |
+ $(use_enable omxil) |
1864 |
+ $(use_enable opencv) |
1865 |
+ $(use_enable optimisememory optimize-memory) |
1866 |
+ $(use_enable opus) |
1867 |
+ $(use_enable png) |
1868 |
+ $(use_enable postproc) |
1869 |
+ $(use_enable projectm) |
1870 |
+ $(use_enable pulseaudio pulse) |
1871 |
+ $(use_enable qt5 qt) |
1872 |
+ $(use_enable rdp freerdp) |
1873 |
+ $(use_enable run-as-root) |
1874 |
+ $(use_enable samba smbclient) |
1875 |
+ $(use_enable schroedinger) |
1876 |
+ $(use_enable sdl-image) |
1877 |
+ $(use_enable sftp) |
1878 |
+ $(use_enable shout) |
1879 |
+ $(use_enable sid) |
1880 |
+ $(use_enable skins skins2) |
1881 |
+ $(use_enable soxr) |
1882 |
+ $(use_enable speex) |
1883 |
+ $(use_enable srt) |
1884 |
+ $(use_enable ssl gnutls) |
1885 |
+ $(use_enable svg) |
1886 |
+ $(use_enable svg svgdec) |
1887 |
+ $(use_enable taglib) |
1888 |
+ $(use_enable theora) |
1889 |
+ $(use_enable tremor) |
1890 |
+ $(use_enable twolame) |
1891 |
+ $(use_enable udev) |
1892 |
+ $(use_enable upnp) |
1893 |
+ $(use_enable v4l v4l2) |
1894 |
+ $(use_enable vaapi libva) |
1895 |
+ $(use_enable vdpau) |
1896 |
+ $(use_enable vnc) |
1897 |
+ $(use_enable vorbis) |
1898 |
+ $(use_enable vpx) |
1899 |
+ $(use_enable wayland) |
1900 |
+ $(use_enable wma-fixed) |
1901 |
+ $(use_with X x) |
1902 |
+ $(use_enable X xcb) |
1903 |
+ $(use_enable x264) |
1904 |
+ $(use_enable x265) |
1905 |
+ $(use_enable xml libxml2) |
1906 |
+ $(use_enable zeroconf avahi) |
1907 |
+ $(use_enable zvbi) |
1908 |
+ $(use_enable !zvbi telx) |
1909 |
+ --disable-asdcp |
1910 |
+ --disable-coverage |
1911 |
+ --disable-cprof |
1912 |
+ --disable-crystalhd |
1913 |
+ --disable-decklink |
1914 |
+ --disable-gles2 |
1915 |
+ --disable-goom |
1916 |
+ --disable-kai |
1917 |
+ --disable-kva |
1918 |
+ --disable-libplacebo |
1919 |
+ --disable-maintainer-mode |
1920 |
+ --disable-merge-ffmpeg |
1921 |
+ --disable-mfx |
1922 |
+ --disable-mmal |
1923 |
+ --disable-opensles |
1924 |
+ --disable-oss |
1925 |
+ --disable-rpi-omxil |
1926 |
+ --disable-shine |
1927 |
+ --disable-sndio |
1928 |
+ --disable-spatialaudio |
1929 |
+ --disable-vsxu |
1930 |
+ --disable-wasapi |
1931 |
+ ) |
1932 |
+ # ^ We don't have these disabled libraries in the Portage tree yet. |
1933 |
+ |
1934 |
+ # Compatibility fix for Samba 4. |
1935 |
+ use samba && append-cppflags "-I/usr/include/samba-4.0" |
1936 |
+ |
1937 |
+ if use x86; then |
1938 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
1939 |
+ append-cflags $(test-flags-CC -fno-stack-check) |
1940 |
+ # Bug 569774 |
1941 |
+ replace-flags -Os -O2 |
1942 |
+ fi |
1943 |
+ |
1944 |
+ # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
1945 |
+ append-cxxflags -std=c++11 |
1946 |
+ |
1947 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
1948 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
1949 |
+ |
1950 |
+ xdg_environment_reset # bug 608256 |
1951 |
+ |
1952 |
+ if use truetype || use bidi; then |
1953 |
+ myeconfargs+=( --enable-freetype ) |
1954 |
+ else |
1955 |
+ myeconfargs+=( --disable-freetype ) |
1956 |
+ fi |
1957 |
+ |
1958 |
+ if use truetype || use projectm; then |
1959 |
+ local dejavu="/usr/share/fonts/dejavu/" |
1960 |
+ myeconfargs+=( |
1961 |
+ --with-default-font=${dejavu}/DejaVuSans.ttf |
1962 |
+ --with-default-font-family=Sans |
1963 |
+ --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
1964 |
+ --with-default-monospace-font-family=Monospace |
1965 |
+ ) |
1966 |
+ fi |
1967 |
+ |
1968 |
+ econf ${myeconfargs[@]} |
1969 |
+ |
1970 |
+ # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
1971 |
+ # Other values may break the build (bug 523144), so definition should not be removed. |
1972 |
+ # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
1973 |
+ sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
1974 |
+} |
1975 |
+ |
1976 |
+src_test() { |
1977 |
+ virtx emake check-TESTS |
1978 |
+} |
1979 |
+ |
1980 |
+src_install() { |
1981 |
+ default |
1982 |
+ find "${D}" -name '*.la' -delete || die |
1983 |
+} |
1984 |
+ |
1985 |
+pkg_postinst() { |
1986 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/libexec/vlc/vlc-cache-gen" ]] ; then |
1987 |
+ einfo "Running /usr/libexec/vlc/vlc-cache-gen on /usr/libexec/vlc/plugins/" |
1988 |
+ "/usr/libexec/vlc/vlc-cache-gen" "/usr/libexec/vlc/plugins/" |
1989 |
+ else |
1990 |
+ ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
1991 |
+ ewarn "Please run /usr/libexec/vlc/vlc-cache-gen manually" |
1992 |
+ ewarn "If you do not do it, vlc will take a long time to load." |
1993 |
+ fi |
1994 |
+ |
1995 |
+ gnome2_icon_cache_update |
1996 |
+ xdg_mimeinfo_database_update |
1997 |
+ xdg_desktop_database_update |
1998 |
+} |
1999 |
+ |
2000 |
+pkg_postrm() { |
2001 |
+ if [[ -e /usr/libexec/vlc/plugins/plugins.dat ]]; then |
2002 |
+ rm /usr/libexec/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
2003 |
+ fi |
2004 |
+ |
2005 |
+ gnome2_icon_cache_update |
2006 |
+ xdg_mimeinfo_database_update |
2007 |
+ xdg_desktop_database_update |
2008 |
+} |