1 |
commit: 076307567eebf29a50f49703a6b371cfb6f5efce |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 23:33:41 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 23:33:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07630756 |
7 |
|
8 |
media-video/vlc: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/765040 |
11 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-video/vlc/Manifest | 1 - |
15 |
media-video/vlc/vlc-3.0.11.1-r1.ebuild | 492 ------------------------------ |
16 |
media-video/vlc/vlc-3.0.11.1-r101.ebuild | 503 ------------------------------- |
17 |
media-video/vlc/vlc-3.0.11.1.ebuild | 491 ------------------------------ |
18 |
media-video/vlc/vlc-3.0.12.1.ebuild | 499 ------------------------------ |
19 |
5 files changed, 1986 deletions(-) |
20 |
|
21 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
22 |
index 56e9864487a..a0891db0ebd 100644 |
23 |
--- a/media-video/vlc/Manifest |
24 |
+++ b/media-video/vlc/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
DIST vlc-3.0-3.0.12.1.tar.gz 34233801 BLAKE2B 0bc571d8f3f8aa40eee93fe8ab13bd1f37e288372d46b13998986899d03bf327b300a98ec5736bb9fe7bb58aae65c1d469786a4dfdb80f4cf8b5bbbb250ee45d SHA512 05b079dcfd4a21cdae7bb19e9d71f2fad33ca846852683c5d2ca6d45f779749ead420d5211b4acce76971d7ec2265d0d07f970f35f647dd446e337dc31aa0ec1 |
27 |
-DIST vlc-3.0.11.1.tar.xz 25886644 BLAKE2B b3cf3f8776086fcd45ca20918be8951960bf3d18c219d0d512f64bfe89d3e947300875b4b8e1a27742132400fd9a3b32f5e84afd08f52254899a23922a682361 SHA512 8ce1e2f11aabf847dc5c55cf21ce6d7c0419a1051b5f4795e36cd060eab82d5056e44b4c070b80af56744e6aa841ef538386d08bc3b397a444e7258b2ba3f76b |
28 |
|
29 |
diff --git a/media-video/vlc/vlc-3.0.11.1-r1.ebuild b/media-video/vlc/vlc-3.0.11.1-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 5191f531572..00000000000 |
32 |
--- a/media-video/vlc/vlc-3.0.11.1-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,492 +0,0 @@ |
35 |
-# Copyright 2000-2020 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=7 |
39 |
- |
40 |
-MY_PV="${PV/_/-}" |
41 |
-MY_PV="${MY_PV/-beta/-test}" |
42 |
-MY_P="${PN}-${MY_PV}" |
43 |
-if [[ ${PV} = *9999 ]] ; then |
44 |
- if [[ ${PV%.9999} != ${PV} ]] ; then |
45 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
46 |
- else |
47 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
48 |
- fi |
49 |
- inherit git-r3 |
50 |
-else |
51 |
- if [[ ${MY_P} = ${P} ]] ; then |
52 |
- SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
53 |
- else |
54 |
- SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
55 |
- fi |
56 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86" |
57 |
-fi |
58 |
-inherit autotools flag-o-matic toolchain-funcs virtualx xdg |
59 |
- |
60 |
-DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
61 |
-HOMEPAGE="https://www.videolan.org/vlc/" |
62 |
- |
63 |
-LICENSE="LGPL-2.1 GPL-2" |
64 |
-SLOT="0/5-9" # vlc - vlccore |
65 |
- |
66 |
-IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast |
67 |
- dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac |
68 |
- fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate |
69 |
- libass libcaca libnotify +libsamplerate libtar libtiger linsys lirc |
70 |
- live lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses |
71 |
- nfs ogg omxil optimisememory opus png projectm pulseaudio +qt5 rdp |
72 |
- run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl svg taglib |
73 |
- theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx wayland +X |
74 |
- x264 x265 xml zeroconf zvbi cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx |
75 |
- cpu_flags_x86_sse |
76 |
-" |
77 |
-REQUIRED_USE=" |
78 |
- chromecast? ( encode ) |
79 |
- directx? ( ffmpeg ) |
80 |
- fontconfig? ( truetype ) |
81 |
- libcaca? ( X ) |
82 |
- libtar? ( skins ) |
83 |
- libtiger? ( kate ) |
84 |
- skins? ( qt5 truetype X xml ) |
85 |
- ssl? ( gcrypt ) |
86 |
- vaapi? ( ffmpeg X ) |
87 |
- vdpau? ( ffmpeg X ) |
88 |
-" |
89 |
-BDEPEND=" |
90 |
- >=sys-devel/gettext-0.19.8 |
91 |
- virtual/pkgconfig |
92 |
- amd64? ( dev-lang/yasm ) |
93 |
- x86? ( dev-lang/yasm ) |
94 |
-" |
95 |
-RDEPEND=" |
96 |
- net-dns/libidn:= |
97 |
- sys-libs/zlib[minizip] |
98 |
- virtual/libintl |
99 |
- virtual/opengl |
100 |
- a52? ( media-libs/a52dec ) |
101 |
- alsa? ( media-libs/alsa-lib ) |
102 |
- aom? ( media-libs/libaom:= ) |
103 |
- archive? ( app-arch/libarchive:= ) |
104 |
- aribsub? ( media-libs/aribb24 ) |
105 |
- bidi? ( |
106 |
- dev-libs/fribidi |
107 |
- media-libs/freetype:2[harfbuzz] |
108 |
- media-libs/harfbuzz |
109 |
- virtual/ttf-fonts |
110 |
- ) |
111 |
- bluray? ( media-libs/libbluray:= ) |
112 |
- cddb? ( media-libs/libcddb ) |
113 |
- chromaprint? ( media-libs/chromaprint:= ) |
114 |
- chromecast? ( |
115 |
- >=dev-libs/protobuf-2.5.0:= |
116 |
- >=net-libs/libmicrodns-0.0.9:= |
117 |
- ) |
118 |
- dav1d? ( media-libs/dav1d:= ) |
119 |
- dbus? ( sys-apps/dbus ) |
120 |
- dc1394? ( |
121 |
- media-libs/libdc1394:2 |
122 |
- sys-libs/libraw1394 |
123 |
- ) |
124 |
- dts? ( media-libs/libdca ) |
125 |
- dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= ) |
126 |
- dvd? ( |
127 |
- >=media-libs/libdvdnav-4.9:0= |
128 |
- >=media-libs/libdvdread-4.9:0= |
129 |
- ) |
130 |
- faad? ( media-libs/faad2 ) |
131 |
- fdk? ( media-libs/fdk-aac:= ) |
132 |
- ffmpeg? ( >=media-video/ffmpeg-3.1.3:0=[postproc,vaapi?,vdpau?] ) |
133 |
- flac? ( |
134 |
- media-libs/flac |
135 |
- media-libs/libogg |
136 |
- ) |
137 |
- fluidsynth? ( media-sound/fluidsynth:= ) |
138 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
139 |
- gcrypt? ( |
140 |
- dev-libs/libgcrypt:0= |
141 |
- dev-libs/libgpg-error |
142 |
- ) |
143 |
- gme? ( media-libs/game-music-emu ) |
144 |
- gnome-keyring? ( app-crypt/libsecret ) |
145 |
- gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
146 |
- ieee1394? ( |
147 |
- sys-libs/libavc1394 |
148 |
- sys-libs/libraw1394 |
149 |
- ) |
150 |
- jack? ( virtual/jack ) |
151 |
- jpeg? ( virtual/jpeg:0 ) |
152 |
- kate? ( media-libs/libkate ) |
153 |
- libass? ( |
154 |
- media-libs/fontconfig:1.0 |
155 |
- media-libs/libass:= |
156 |
- ) |
157 |
- libcaca? ( media-libs/libcaca ) |
158 |
- libnotify? ( |
159 |
- dev-libs/glib:2 |
160 |
- x11-libs/gdk-pixbuf:2 |
161 |
- x11-libs/gtk+:3 |
162 |
- x11-libs/libnotify |
163 |
- ) |
164 |
- libsamplerate? ( media-libs/libsamplerate ) |
165 |
- libtar? ( dev-libs/libtar ) |
166 |
- libtiger? ( media-libs/libtiger ) |
167 |
- linsys? ( media-libs/zvbi ) |
168 |
- lirc? ( app-misc/lirc ) |
169 |
- live? ( media-plugins/live:= ) |
170 |
- lua? ( >=dev-lang/lua-5.1:0= ) |
171 |
- mad? ( media-libs/libmad ) |
172 |
- matroska? ( |
173 |
- >=dev-libs/libebml-1.3.6:= |
174 |
- media-libs/libmatroska:= |
175 |
- ) |
176 |
- modplug? ( >=media-libs/libmodplug-0.8.9.0 ) |
177 |
- mp3? ( media-sound/mpg123 ) |
178 |
- mpeg? ( media-libs/libmpeg2 ) |
179 |
- mtp? ( media-libs/libmtp:= ) |
180 |
- musepack? ( media-sound/musepack-tools ) |
181 |
- ncurses? ( sys-libs/ncurses:0=[unicode] ) |
182 |
- nfs? ( >=net-fs/libnfs-0.10.0:= ) |
183 |
- ogg? ( media-libs/libogg ) |
184 |
- opus? ( >=media-libs/opus-1.0.3 ) |
185 |
- png? ( media-libs/libpng:0= ) |
186 |
- projectm? ( |
187 |
- media-fonts/dejavu |
188 |
- media-libs/libprojectm |
189 |
- ) |
190 |
- pulseaudio? ( media-sound/pulseaudio ) |
191 |
- qt5? ( |
192 |
- dev-qt/qtcore:5 |
193 |
- dev-qt/qtgui:5 |
194 |
- dev-qt/qtsvg:5 |
195 |
- dev-qt/qtwidgets:5 |
196 |
- X? ( |
197 |
- dev-qt/qtx11extras:5 |
198 |
- x11-libs/libX11 |
199 |
- ) |
200 |
- ) |
201 |
- rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client(+)] ) |
202 |
- samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
203 |
- sdl-image? ( media-libs/sdl-image ) |
204 |
- sftp? ( net-libs/libssh2 ) |
205 |
- shout? ( media-libs/libshout ) |
206 |
- sid? ( media-libs/libsidplay:2 ) |
207 |
- skins? ( |
208 |
- x11-libs/libXext |
209 |
- x11-libs/libXinerama |
210 |
- x11-libs/libXpm |
211 |
- ) |
212 |
- soxr? ( >=media-libs/soxr-0.1.2 ) |
213 |
- speex? ( |
214 |
- >=media-libs/speex-1.2.0 |
215 |
- media-libs/speexdsp |
216 |
- ) |
217 |
- srt? ( >=net-libs/srt-1.4.2 ) |
218 |
- ssl? ( net-libs/gnutls:= ) |
219 |
- svg? ( |
220 |
- gnome-base/librsvg:2 |
221 |
- x11-libs/cairo |
222 |
- ) |
223 |
- taglib? ( >=media-libs/taglib-1.9 ) |
224 |
- theora? ( media-libs/libtheora ) |
225 |
- tremor? ( media-libs/tremor ) |
226 |
- truetype? ( |
227 |
- media-libs/freetype:2 |
228 |
- virtual/ttf-fonts |
229 |
- !fontconfig? ( media-fonts/dejavu ) |
230 |
- ) |
231 |
- twolame? ( media-sound/twolame ) |
232 |
- udev? ( virtual/udev ) |
233 |
- upnp? ( net-libs/libupnp:=[ipv6] ) |
234 |
- v4l? ( media-libs/libv4l:= ) |
235 |
- vaapi? ( x11-libs/libva:=[drm,wayland?,X?] ) |
236 |
- vdpau? ( x11-libs/libvdpau ) |
237 |
- vnc? ( net-libs/libvncserver ) |
238 |
- vorbis? ( media-libs/libvorbis ) |
239 |
- vpx? ( media-libs/libvpx:= ) |
240 |
- wayland? ( |
241 |
- >=dev-libs/wayland-1.15 |
242 |
- dev-libs/wayland-protocols |
243 |
- ) |
244 |
- X? ( |
245 |
- x11-libs/libX11 |
246 |
- x11-libs/libxcb |
247 |
- x11-libs/xcb-util |
248 |
- x11-libs/xcb-util-keysyms |
249 |
- ) |
250 |
- x264? ( >=media-libs/x264-0.0.20190214:= ) |
251 |
- x265? ( media-libs/x265:= ) |
252 |
- xml? ( dev-libs/libxml2:2 ) |
253 |
- zeroconf? ( net-dns/avahi[dbus] ) |
254 |
- zvbi? ( media-libs/zvbi ) |
255 |
-" |
256 |
-DEPEND="${RDEPEND} |
257 |
- X? ( x11-base/xorg-proto ) |
258 |
-" |
259 |
- |
260 |
-PATCHES=( |
261 |
- "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
262 |
- "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
263 |
- "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290 |
264 |
- "${FILESDIR}"/${PN}-3.0.8-qt-5.15.patch # TODO: upstream |
265 |
- "${FILESDIR}"/${PN}-3.0.11.1-srt-1.4.2.patch # bug 758062 |
266 |
-) |
267 |
- |
268 |
-DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
269 |
- |
270 |
-S="${WORKDIR}/${MY_P}" |
271 |
- |
272 |
-src_prepare() { |
273 |
- xdg_src_prepare # bug 608256 |
274 |
- |
275 |
- has_version 'net-libs/libupnp:1.8' && \ |
276 |
- eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
277 |
- |
278 |
- # Bootstrap when we are on a git checkout. |
279 |
- if [[ ${PV} = *9999 ]] ; then |
280 |
- ./bootstrap |
281 |
- fi |
282 |
- |
283 |
- # Make it build with libtool 1.5 |
284 |
- rm m4/lt* m4/libtool.m4 || die |
285 |
- |
286 |
- # We are not in a real git checkout due to the absence of a .git directory. |
287 |
- touch src/revision.txt || die |
288 |
- |
289 |
- # Don't use --started-from-file when not using dbus. |
290 |
- if ! use dbus ; then |
291 |
- sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
292 |
- fi |
293 |
- |
294 |
- # Disable running of vlc-cache-gen, we do that in pkg_postinst |
295 |
- sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
296 |
- -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
297 |
- |
298 |
- eautoreconf |
299 |
- |
300 |
- # Disable automatic running of tests. |
301 |
- find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
302 |
-} |
303 |
- |
304 |
-src_configure() { |
305 |
- local -x BUILDCC=$(tc-getBUILD_CC) |
306 |
- |
307 |
- local myeconfargs=( |
308 |
- --disable-aa |
309 |
- --disable-optimizations |
310 |
- --disable-rpath |
311 |
- --disable-update-check |
312 |
- --enable-fast-install |
313 |
- --enable-screen |
314 |
- --enable-vcd |
315 |
- --enable-vlc |
316 |
- $(use_enable a52) |
317 |
- $(use_enable alsa) |
318 |
- $(use_enable aom) |
319 |
- $(use_enable archive) |
320 |
- $(use_enable aribsub) |
321 |
- $(use_enable bidi fribidi) |
322 |
- $(use_enable bidi harfbuzz) |
323 |
- $(use_enable bluray) |
324 |
- $(use_enable cddb libcddb) |
325 |
- $(use_enable chromaprint) |
326 |
- $(use_enable chromecast) |
327 |
- $(use_enable chromecast microdns) |
328 |
- $(use_enable cpu_flags_arm_neon neon) |
329 |
- $(use_enable cpu_flags_ppc_altivec altivec) |
330 |
- $(use_enable cpu_flags_x86_mmx mmx) |
331 |
- $(use_enable cpu_flags_x86_sse sse) |
332 |
- $(use_enable dav1d) |
333 |
- $(use_enable dbus) |
334 |
- $(use_enable dbus kwallet) |
335 |
- $(use_enable dc1394) |
336 |
- $(use_enable debug) |
337 |
- $(use_enable directx) |
338 |
- $(use_enable directx d3d11va) |
339 |
- $(use_enable directx dxva2) |
340 |
- $(use_enable dts dca) |
341 |
- $(use_enable dvbpsi) |
342 |
- $(use_enable dvd dvdnav) |
343 |
- $(use_enable dvd dvdread) |
344 |
- $(use_enable encode sout) |
345 |
- $(use_enable encode vlm) |
346 |
- $(use_enable faad) |
347 |
- $(use_enable fdk fdkaac) |
348 |
- $(use_enable ffmpeg avcodec) |
349 |
- $(use_enable ffmpeg avformat) |
350 |
- $(use_enable ffmpeg postproc) |
351 |
- $(use_enable ffmpeg swscale) |
352 |
- $(use_enable flac) |
353 |
- $(use_enable fluidsynth) |
354 |
- $(use_enable fontconfig) |
355 |
- $(use_enable gcrypt libgcrypt) |
356 |
- $(use_enable gme) |
357 |
- $(use_enable gnome-keyring secret) |
358 |
- $(use_enable gstreamer gst-decode) |
359 |
- $(use_enable ieee1394 dv1394) |
360 |
- $(use_enable jack) |
361 |
- $(use_enable jpeg) |
362 |
- $(use_enable kate) |
363 |
- $(use_enable libass) |
364 |
- $(use_enable libcaca caca) |
365 |
- $(use_enable libnotify notify) |
366 |
- $(use_enable libsamplerate samplerate) |
367 |
- $(use_enable libtar) |
368 |
- $(use_enable libtiger tiger) |
369 |
- $(use_enable linsys) |
370 |
- $(use_enable lirc) |
371 |
- $(use_enable live live555) |
372 |
- $(use_enable lua) |
373 |
- $(use_enable macosx-notifications osx-notifications) |
374 |
- $(use_enable mad) |
375 |
- $(use_enable matroska) |
376 |
- $(use_enable modplug mod) |
377 |
- $(use_enable mp3 mpg123) |
378 |
- $(use_enable mpeg libmpeg2) |
379 |
- $(use_enable mtp) |
380 |
- $(use_enable musepack mpc) |
381 |
- $(use_enable ncurses) |
382 |
- $(use_enable nfs) |
383 |
- $(use_enable ogg) |
384 |
- $(use_enable omxil) |
385 |
- $(use_enable omxil omxil-vout) |
386 |
- $(use_enable optimisememory optimize-memory) |
387 |
- $(use_enable opus) |
388 |
- $(use_enable png) |
389 |
- $(use_enable projectm) |
390 |
- $(use_enable pulseaudio pulse) |
391 |
- $(use_enable qt5 qt) |
392 |
- $(use_enable rdp freerdp) |
393 |
- $(use_enable run-as-root) |
394 |
- $(use_enable samba smbclient) |
395 |
- $(use_enable sdl-image) |
396 |
- $(use_enable sftp) |
397 |
- $(use_enable shout) |
398 |
- $(use_enable sid) |
399 |
- $(use_enable skins skins2) |
400 |
- $(use_enable soxr) |
401 |
- $(use_enable speex) |
402 |
- $(use_enable srt) |
403 |
- $(use_enable ssl gnutls) |
404 |
- $(use_enable svg) |
405 |
- $(use_enable svg svgdec) |
406 |
- $(use_enable taglib) |
407 |
- $(use_enable theora) |
408 |
- $(use_enable tremor) |
409 |
- $(use_enable twolame) |
410 |
- $(use_enable udev) |
411 |
- $(use_enable upnp) |
412 |
- $(use_enable v4l v4l2) |
413 |
- $(use_enable vaapi libva) |
414 |
- $(use_enable vdpau) |
415 |
- $(use_enable vnc) |
416 |
- $(use_enable vorbis) |
417 |
- $(use_enable vpx) |
418 |
- $(use_enable wayland) |
419 |
- $(use_with X x) |
420 |
- $(use_enable X xcb) |
421 |
- $(use_enable X xvideo) |
422 |
- $(use_enable x264) |
423 |
- $(use_enable x264 x26410b) |
424 |
- $(use_enable x265) |
425 |
- $(use_enable xml libxml2) |
426 |
- $(use_enable zeroconf avahi) |
427 |
- $(use_enable zvbi) |
428 |
- $(use_enable !zvbi telx) |
429 |
- --with-kde-solid="${EPREFIX}"/usr/share/solid/actions |
430 |
- --disable-asdcp |
431 |
- --disable-coverage |
432 |
- --disable-cprof |
433 |
- --disable-crystalhd |
434 |
- --disable-decklink |
435 |
- --disable-gles2 |
436 |
- --disable-goom |
437 |
- --disable-kai |
438 |
- --disable-kva |
439 |
- --disable-libplacebo |
440 |
- --disable-maintainer-mode |
441 |
- --disable-merge-ffmpeg |
442 |
- --disable-mfx |
443 |
- --disable-mmal |
444 |
- --disable-opencv |
445 |
- --disable-opensles |
446 |
- --disable-oss |
447 |
- --disable-rpi-omxil |
448 |
- --disable-schroedinger |
449 |
- --disable-shine |
450 |
- --disable-sndio |
451 |
- --disable-spatialaudio |
452 |
- --disable-vsxu |
453 |
- --disable-wasapi |
454 |
- --disable-wma-fixed |
455 |
- ) |
456 |
- # ^ We don't have these disabled libraries in the Portage tree yet. |
457 |
- |
458 |
- # Compatibility fix for Samba 4. |
459 |
- use samba && append-cppflags "-I/usr/include/samba-4.0" |
460 |
- |
461 |
- if use x86; then |
462 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
463 |
- append-cflags $(test-flags-CC -fno-stack-check) |
464 |
- # Bug 569774 |
465 |
- replace-flags -Os -O2 |
466 |
- fi |
467 |
- |
468 |
- # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
469 |
- append-cxxflags -std=c++11 |
470 |
- |
471 |
- # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
472 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
473 |
- |
474 |
- if use truetype || use bidi; then |
475 |
- myeconfargs+=( --enable-freetype ) |
476 |
- else |
477 |
- myeconfargs+=( --disable-freetype ) |
478 |
- fi |
479 |
- |
480 |
- if use truetype || use projectm; then |
481 |
- local dejavu="${EPREFIX}/usr/share/fonts/dejavu/" |
482 |
- myeconfargs+=( |
483 |
- --with-default-font=${dejavu}/DejaVuSans.ttf |
484 |
- --with-default-font-family=Sans |
485 |
- --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
486 |
- --with-default-monospace-font-family=Monospace |
487 |
- ) |
488 |
- fi |
489 |
- |
490 |
- econf "${myeconfargs[@]}" |
491 |
- |
492 |
- # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
493 |
- # Other values may break the build (bug 523144), so definition should not be removed. |
494 |
- # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
495 |
- sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
496 |
-} |
497 |
- |
498 |
-src_test() { |
499 |
- virtx emake check-TESTS |
500 |
-} |
501 |
- |
502 |
-src_install() { |
503 |
- default |
504 |
- find "${D}" -name '*.la' -delete || die |
505 |
-} |
506 |
- |
507 |
-pkg_postinst() { |
508 |
- if [[ -z ${ROOT} ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
509 |
- einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
510 |
- "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" |
511 |
- else |
512 |
- ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
513 |
- ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
514 |
- ewarn "If you do not do it, vlc will take a long time to load." |
515 |
- fi |
516 |
- |
517 |
- xdg_pkg_postinst |
518 |
-} |
519 |
- |
520 |
-pkg_postrm() { |
521 |
- if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
522 |
- rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
523 |
- fi |
524 |
- |
525 |
- xdg_pkg_postrm |
526 |
-} |
527 |
|
528 |
diff --git a/media-video/vlc/vlc-3.0.11.1-r101.ebuild b/media-video/vlc/vlc-3.0.11.1-r101.ebuild |
529 |
deleted file mode 100644 |
530 |
index f07316c9278..00000000000 |
531 |
--- a/media-video/vlc/vlc-3.0.11.1-r101.ebuild |
532 |
+++ /dev/null |
533 |
@@ -1,503 +0,0 @@ |
534 |
-# Copyright 2000-2020 Gentoo Authors |
535 |
-# Distributed under the terms of the GNU General Public License v2 |
536 |
- |
537 |
-EAPI=7 |
538 |
- |
539 |
-LUA_COMPAT=( lua5-{1..2} ) |
540 |
- |
541 |
-MY_PV="${PV/_/-}" |
542 |
-MY_PV="${MY_PV/-beta/-test}" |
543 |
-MY_P="${PN}-${MY_PV}" |
544 |
-if [[ ${PV} = *9999 ]] ; then |
545 |
- if [[ ${PV%.9999} != ${PV} ]] ; then |
546 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
547 |
- else |
548 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
549 |
- fi |
550 |
- inherit git-r3 |
551 |
-else |
552 |
- if [[ ${MY_P} = ${P} ]] ; then |
553 |
- SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
554 |
- else |
555 |
- SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
556 |
- fi |
557 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86" |
558 |
-fi |
559 |
-inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg |
560 |
- |
561 |
-DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
562 |
-HOMEPAGE="https://www.videolan.org/vlc/" |
563 |
- |
564 |
-LICENSE="LGPL-2.1 GPL-2" |
565 |
-SLOT="0/5-9" # vlc - vlccore |
566 |
- |
567 |
-IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast |
568 |
- dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac |
569 |
- fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate |
570 |
- libass libcaca libnotify +libsamplerate libtar libtiger linsys lirc |
571 |
- live lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses |
572 |
- nfs ogg omxil optimisememory opus png projectm pulseaudio +qt5 rdp |
573 |
- run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl svg taglib |
574 |
- theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx wayland +X |
575 |
- x264 x265 xml zeroconf zvbi cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx |
576 |
- cpu_flags_x86_sse |
577 |
-" |
578 |
-REQUIRED_USE=" |
579 |
- chromecast? ( encode ) |
580 |
- directx? ( ffmpeg ) |
581 |
- fontconfig? ( truetype ) |
582 |
- libcaca? ( X ) |
583 |
- libtar? ( skins ) |
584 |
- libtiger? ( kate ) |
585 |
- lua? ( ${LUA_REQUIRED_USE} ) |
586 |
- skins? ( qt5 truetype X xml ) |
587 |
- ssl? ( gcrypt ) |
588 |
- vaapi? ( ffmpeg X ) |
589 |
- vdpau? ( ffmpeg X ) |
590 |
-" |
591 |
-BDEPEND=" |
592 |
- >=sys-devel/gettext-0.19.8 |
593 |
- virtual/pkgconfig |
594 |
- lua? ( ${LUA_DEPS} ) |
595 |
- amd64? ( dev-lang/yasm ) |
596 |
- x86? ( dev-lang/yasm ) |
597 |
-" |
598 |
-RDEPEND=" |
599 |
- net-dns/libidn:= |
600 |
- sys-libs/zlib[minizip] |
601 |
- virtual/libintl |
602 |
- virtual/opengl |
603 |
- a52? ( media-libs/a52dec ) |
604 |
- alsa? ( media-libs/alsa-lib ) |
605 |
- aom? ( media-libs/libaom:= ) |
606 |
- archive? ( app-arch/libarchive:= ) |
607 |
- aribsub? ( media-libs/aribb24 ) |
608 |
- bidi? ( |
609 |
- dev-libs/fribidi |
610 |
- media-libs/freetype:2[harfbuzz] |
611 |
- media-libs/harfbuzz |
612 |
- virtual/ttf-fonts |
613 |
- ) |
614 |
- bluray? ( media-libs/libbluray:= ) |
615 |
- cddb? ( media-libs/libcddb ) |
616 |
- chromaprint? ( media-libs/chromaprint:= ) |
617 |
- chromecast? ( |
618 |
- >=dev-libs/protobuf-2.5.0:= |
619 |
- >=net-libs/libmicrodns-0.0.9:= |
620 |
- ) |
621 |
- dav1d? ( media-libs/dav1d:= ) |
622 |
- dbus? ( sys-apps/dbus ) |
623 |
- dc1394? ( |
624 |
- media-libs/libdc1394:2 |
625 |
- sys-libs/libraw1394 |
626 |
- ) |
627 |
- dts? ( media-libs/libdca ) |
628 |
- dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= ) |
629 |
- dvd? ( |
630 |
- >=media-libs/libdvdnav-4.9:0= |
631 |
- >=media-libs/libdvdread-4.9:0= |
632 |
- ) |
633 |
- faad? ( media-libs/faad2 ) |
634 |
- fdk? ( media-libs/fdk-aac:= ) |
635 |
- ffmpeg? ( >=media-video/ffmpeg-3.1.3:0=[postproc,vaapi?,vdpau?] ) |
636 |
- flac? ( |
637 |
- media-libs/flac |
638 |
- media-libs/libogg |
639 |
- ) |
640 |
- fluidsynth? ( media-sound/fluidsynth:= ) |
641 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
642 |
- gcrypt? ( |
643 |
- dev-libs/libgcrypt:0= |
644 |
- dev-libs/libgpg-error |
645 |
- ) |
646 |
- gme? ( media-libs/game-music-emu ) |
647 |
- gnome-keyring? ( app-crypt/libsecret ) |
648 |
- gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
649 |
- ieee1394? ( |
650 |
- sys-libs/libavc1394 |
651 |
- sys-libs/libraw1394 |
652 |
- ) |
653 |
- jack? ( virtual/jack ) |
654 |
- jpeg? ( virtual/jpeg:0 ) |
655 |
- kate? ( media-libs/libkate ) |
656 |
- libass? ( |
657 |
- media-libs/fontconfig:1.0 |
658 |
- media-libs/libass:= |
659 |
- ) |
660 |
- libcaca? ( media-libs/libcaca ) |
661 |
- libnotify? ( |
662 |
- dev-libs/glib:2 |
663 |
- x11-libs/gdk-pixbuf:2 |
664 |
- x11-libs/gtk+:3 |
665 |
- x11-libs/libnotify |
666 |
- ) |
667 |
- libsamplerate? ( media-libs/libsamplerate ) |
668 |
- libtar? ( dev-libs/libtar ) |
669 |
- libtiger? ( media-libs/libtiger ) |
670 |
- linsys? ( media-libs/zvbi ) |
671 |
- lirc? ( app-misc/lirc ) |
672 |
- live? ( media-plugins/live:= ) |
673 |
- lua? ( ${LUA_DEPS} ) |
674 |
- mad? ( media-libs/libmad ) |
675 |
- matroska? ( |
676 |
- >=dev-libs/libebml-1.3.6:= |
677 |
- media-libs/libmatroska:= |
678 |
- ) |
679 |
- modplug? ( >=media-libs/libmodplug-0.8.9.0 ) |
680 |
- mp3? ( media-sound/mpg123 ) |
681 |
- mpeg? ( media-libs/libmpeg2 ) |
682 |
- mtp? ( media-libs/libmtp:= ) |
683 |
- musepack? ( media-sound/musepack-tools ) |
684 |
- ncurses? ( sys-libs/ncurses:0=[unicode] ) |
685 |
- nfs? ( >=net-fs/libnfs-0.10.0:= ) |
686 |
- ogg? ( media-libs/libogg ) |
687 |
- opus? ( >=media-libs/opus-1.0.3 ) |
688 |
- png? ( media-libs/libpng:0= ) |
689 |
- projectm? ( |
690 |
- media-fonts/dejavu |
691 |
- media-libs/libprojectm |
692 |
- ) |
693 |
- pulseaudio? ( media-sound/pulseaudio ) |
694 |
- qt5? ( |
695 |
- dev-qt/qtcore:5 |
696 |
- dev-qt/qtgui:5 |
697 |
- dev-qt/qtsvg:5 |
698 |
- dev-qt/qtwidgets:5 |
699 |
- X? ( |
700 |
- dev-qt/qtx11extras:5 |
701 |
- x11-libs/libX11 |
702 |
- ) |
703 |
- ) |
704 |
- rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client(+)] ) |
705 |
- samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
706 |
- sdl-image? ( media-libs/sdl-image ) |
707 |
- sftp? ( net-libs/libssh2 ) |
708 |
- shout? ( media-libs/libshout ) |
709 |
- sid? ( media-libs/libsidplay:2 ) |
710 |
- skins? ( |
711 |
- x11-libs/libXext |
712 |
- x11-libs/libXinerama |
713 |
- x11-libs/libXpm |
714 |
- ) |
715 |
- soxr? ( >=media-libs/soxr-0.1.2 ) |
716 |
- speex? ( |
717 |
- >=media-libs/speex-1.2.0 |
718 |
- media-libs/speexdsp |
719 |
- ) |
720 |
- srt? ( >=net-libs/srt-1.4.2 ) |
721 |
- ssl? ( net-libs/gnutls:= ) |
722 |
- svg? ( |
723 |
- gnome-base/librsvg:2 |
724 |
- x11-libs/cairo |
725 |
- ) |
726 |
- taglib? ( >=media-libs/taglib-1.9 ) |
727 |
- theora? ( media-libs/libtheora ) |
728 |
- tremor? ( media-libs/tremor ) |
729 |
- truetype? ( |
730 |
- media-libs/freetype:2 |
731 |
- virtual/ttf-fonts |
732 |
- !fontconfig? ( media-fonts/dejavu ) |
733 |
- ) |
734 |
- twolame? ( media-sound/twolame ) |
735 |
- udev? ( virtual/udev ) |
736 |
- upnp? ( net-libs/libupnp:=[ipv6] ) |
737 |
- v4l? ( media-libs/libv4l:= ) |
738 |
- vaapi? ( x11-libs/libva:=[drm,wayland?,X?] ) |
739 |
- vdpau? ( x11-libs/libvdpau ) |
740 |
- vnc? ( net-libs/libvncserver ) |
741 |
- vorbis? ( media-libs/libvorbis ) |
742 |
- vpx? ( media-libs/libvpx:= ) |
743 |
- wayland? ( |
744 |
- >=dev-libs/wayland-1.15 |
745 |
- dev-libs/wayland-protocols |
746 |
- ) |
747 |
- X? ( |
748 |
- x11-libs/libX11 |
749 |
- x11-libs/libxcb |
750 |
- x11-libs/xcb-util |
751 |
- x11-libs/xcb-util-keysyms |
752 |
- ) |
753 |
- x264? ( >=media-libs/x264-0.0.20190214:= ) |
754 |
- x265? ( media-libs/x265:= ) |
755 |
- xml? ( dev-libs/libxml2:2 ) |
756 |
- zeroconf? ( net-dns/avahi[dbus] ) |
757 |
- zvbi? ( media-libs/zvbi ) |
758 |
-" |
759 |
-DEPEND="${RDEPEND} |
760 |
- X? ( x11-base/xorg-proto ) |
761 |
-" |
762 |
- |
763 |
-PATCHES=( |
764 |
- "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
765 |
- "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
766 |
- "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290 |
767 |
- "${FILESDIR}"/${PN}-3.0.8-qt-5.15.patch # TODO: upstream |
768 |
- "${FILESDIR}"/${PN}-3.0.11.1-configure_lua_version.patch |
769 |
- "${FILESDIR}"/${PN}-3.0.11.1-srt-1.4.2.patch # bug 758062 |
770 |
-) |
771 |
- |
772 |
-DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
773 |
- |
774 |
-S="${WORKDIR}/${MY_P}" |
775 |
- |
776 |
-pkg_setup() { |
777 |
- if use lua; then |
778 |
- lua-single_pkg_setup |
779 |
- fi |
780 |
-} |
781 |
- |
782 |
-src_prepare() { |
783 |
- xdg_src_prepare # bug 608256 |
784 |
- |
785 |
- has_version 'net-libs/libupnp:1.8' && \ |
786 |
- eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
787 |
- |
788 |
- # Bootstrap when we are on a git checkout. |
789 |
- if [[ ${PV} = *9999 ]] ; then |
790 |
- ./bootstrap |
791 |
- fi |
792 |
- |
793 |
- # Make it build with libtool 1.5 |
794 |
- rm m4/lt* m4/libtool.m4 || die |
795 |
- |
796 |
- # We are not in a real git checkout due to the absence of a .git directory. |
797 |
- touch src/revision.txt || die |
798 |
- |
799 |
- # Don't use --started-from-file when not using dbus. |
800 |
- if ! use dbus ; then |
801 |
- sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
802 |
- fi |
803 |
- |
804 |
- # Disable running of vlc-cache-gen, we do that in pkg_postinst |
805 |
- sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
806 |
- -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
807 |
- |
808 |
- eautoreconf |
809 |
- |
810 |
- # Disable automatic running of tests. |
811 |
- find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
812 |
-} |
813 |
- |
814 |
-src_configure() { |
815 |
- local -x BUILDCC=$(tc-getBUILD_CC) |
816 |
- |
817 |
- local myeconfargs=( |
818 |
- --disable-aa |
819 |
- --disable-optimizations |
820 |
- --disable-rpath |
821 |
- --disable-update-check |
822 |
- --enable-fast-install |
823 |
- --enable-screen |
824 |
- --enable-vcd |
825 |
- --enable-vlc |
826 |
- $(use_enable a52) |
827 |
- $(use_enable alsa) |
828 |
- $(use_enable aom) |
829 |
- $(use_enable archive) |
830 |
- $(use_enable aribsub) |
831 |
- $(use_enable bidi fribidi) |
832 |
- $(use_enable bidi harfbuzz) |
833 |
- $(use_enable bluray) |
834 |
- $(use_enable cddb libcddb) |
835 |
- $(use_enable chromaprint) |
836 |
- $(use_enable chromecast) |
837 |
- $(use_enable chromecast microdns) |
838 |
- $(use_enable cpu_flags_arm_neon neon) |
839 |
- $(use_enable cpu_flags_ppc_altivec altivec) |
840 |
- $(use_enable cpu_flags_x86_mmx mmx) |
841 |
- $(use_enable cpu_flags_x86_sse sse) |
842 |
- $(use_enable dav1d) |
843 |
- $(use_enable dbus) |
844 |
- $(use_enable dbus kwallet) |
845 |
- $(use_enable dc1394) |
846 |
- $(use_enable debug) |
847 |
- $(use_enable directx) |
848 |
- $(use_enable directx d3d11va) |
849 |
- $(use_enable directx dxva2) |
850 |
- $(use_enable dts dca) |
851 |
- $(use_enable dvbpsi) |
852 |
- $(use_enable dvd dvdnav) |
853 |
- $(use_enable dvd dvdread) |
854 |
- $(use_enable encode sout) |
855 |
- $(use_enable encode vlm) |
856 |
- $(use_enable faad) |
857 |
- $(use_enable fdk fdkaac) |
858 |
- $(use_enable ffmpeg avcodec) |
859 |
- $(use_enable ffmpeg avformat) |
860 |
- $(use_enable ffmpeg postproc) |
861 |
- $(use_enable ffmpeg swscale) |
862 |
- $(use_enable flac) |
863 |
- $(use_enable fluidsynth) |
864 |
- $(use_enable fontconfig) |
865 |
- $(use_enable gcrypt libgcrypt) |
866 |
- $(use_enable gme) |
867 |
- $(use_enable gnome-keyring secret) |
868 |
- $(use_enable gstreamer gst-decode) |
869 |
- $(use_enable ieee1394 dv1394) |
870 |
- $(use_enable jack) |
871 |
- $(use_enable jpeg) |
872 |
- $(use_enable kate) |
873 |
- $(use_enable libass) |
874 |
- $(use_enable libcaca caca) |
875 |
- $(use_enable libnotify notify) |
876 |
- $(use_enable libsamplerate samplerate) |
877 |
- $(use_enable libtar) |
878 |
- $(use_enable libtiger tiger) |
879 |
- $(use_enable linsys) |
880 |
- $(use_enable lirc) |
881 |
- $(use_enable live live555) |
882 |
- $(use_enable lua) |
883 |
- $(use_enable macosx-notifications osx-notifications) |
884 |
- $(use_enable mad) |
885 |
- $(use_enable matroska) |
886 |
- $(use_enable modplug mod) |
887 |
- $(use_enable mp3 mpg123) |
888 |
- $(use_enable mpeg libmpeg2) |
889 |
- $(use_enable mtp) |
890 |
- $(use_enable musepack mpc) |
891 |
- $(use_enable ncurses) |
892 |
- $(use_enable nfs) |
893 |
- $(use_enable ogg) |
894 |
- $(use_enable omxil) |
895 |
- $(use_enable omxil omxil-vout) |
896 |
- $(use_enable optimisememory optimize-memory) |
897 |
- $(use_enable opus) |
898 |
- $(use_enable png) |
899 |
- $(use_enable projectm) |
900 |
- $(use_enable pulseaudio pulse) |
901 |
- $(use_enable qt5 qt) |
902 |
- $(use_enable rdp freerdp) |
903 |
- $(use_enable run-as-root) |
904 |
- $(use_enable samba smbclient) |
905 |
- $(use_enable sdl-image) |
906 |
- $(use_enable sftp) |
907 |
- $(use_enable shout) |
908 |
- $(use_enable sid) |
909 |
- $(use_enable skins skins2) |
910 |
- $(use_enable soxr) |
911 |
- $(use_enable speex) |
912 |
- $(use_enable srt) |
913 |
- $(use_enable ssl gnutls) |
914 |
- $(use_enable svg) |
915 |
- $(use_enable svg svgdec) |
916 |
- $(use_enable taglib) |
917 |
- $(use_enable theora) |
918 |
- $(use_enable tremor) |
919 |
- $(use_enable twolame) |
920 |
- $(use_enable udev) |
921 |
- $(use_enable upnp) |
922 |
- $(use_enable v4l v4l2) |
923 |
- $(use_enable vaapi libva) |
924 |
- $(use_enable vdpau) |
925 |
- $(use_enable vnc) |
926 |
- $(use_enable vorbis) |
927 |
- $(use_enable vpx) |
928 |
- $(use_enable wayland) |
929 |
- $(use_with X x) |
930 |
- $(use_enable X xcb) |
931 |
- $(use_enable X xvideo) |
932 |
- $(use_enable x264) |
933 |
- $(use_enable x264 x26410b) |
934 |
- $(use_enable x265) |
935 |
- $(use_enable xml libxml2) |
936 |
- $(use_enable zeroconf avahi) |
937 |
- $(use_enable zvbi) |
938 |
- $(use_enable !zvbi telx) |
939 |
- --with-kde-solid="${EPREFIX}"/usr/share/solid/actions |
940 |
- --disable-asdcp |
941 |
- --disable-coverage |
942 |
- --disable-cprof |
943 |
- --disable-crystalhd |
944 |
- --disable-decklink |
945 |
- --disable-gles2 |
946 |
- --disable-goom |
947 |
- --disable-kai |
948 |
- --disable-kva |
949 |
- --disable-libplacebo |
950 |
- --disable-maintainer-mode |
951 |
- --disable-merge-ffmpeg |
952 |
- --disable-mfx |
953 |
- --disable-mmal |
954 |
- --disable-opencv |
955 |
- --disable-opensles |
956 |
- --disable-oss |
957 |
- --disable-rpi-omxil |
958 |
- --disable-schroedinger |
959 |
- --disable-shine |
960 |
- --disable-sndio |
961 |
- --disable-spatialaudio |
962 |
- --disable-vsxu |
963 |
- --disable-wasapi |
964 |
- --disable-wma-fixed |
965 |
- ) |
966 |
- # ^ We don't have these disabled libraries in the Portage tree yet. |
967 |
- |
968 |
- # Compatibility fix for Samba 4. |
969 |
- use samba && append-cppflags "-I/usr/include/samba-4.0" |
970 |
- |
971 |
- if use x86; then |
972 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
973 |
- append-cflags $(test-flags-CC -fno-stack-check) |
974 |
- # Bug 569774 |
975 |
- replace-flags -Os -O2 |
976 |
- fi |
977 |
- |
978 |
- # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
979 |
- append-cxxflags -std=c++11 |
980 |
- |
981 |
- # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
982 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
983 |
- |
984 |
- if use truetype || use bidi; then |
985 |
- myeconfargs+=( --enable-freetype ) |
986 |
- else |
987 |
- myeconfargs+=( --disable-freetype ) |
988 |
- fi |
989 |
- |
990 |
- if use truetype || use projectm; then |
991 |
- local dejavu="${EPREFIX}/usr/share/fonts/dejavu/" |
992 |
- myeconfargs+=( |
993 |
- --with-default-font=${dejavu}/DejaVuSans.ttf |
994 |
- --with-default-font-family=Sans |
995 |
- --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
996 |
- --with-default-monospace-font-family=Monospace |
997 |
- ) |
998 |
- fi |
999 |
- |
1000 |
- econf "${myeconfargs[@]}" |
1001 |
- |
1002 |
- # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
1003 |
- # Other values may break the build (bug 523144), so definition should not be removed. |
1004 |
- # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
1005 |
- sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
1006 |
-} |
1007 |
- |
1008 |
-src_test() { |
1009 |
- virtx emake check-TESTS |
1010 |
-} |
1011 |
- |
1012 |
-src_install() { |
1013 |
- default |
1014 |
- find "${D}" -name '*.la' -delete || die |
1015 |
-} |
1016 |
- |
1017 |
-pkg_postinst() { |
1018 |
- if [[ -z ${ROOT} ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
1019 |
- einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
1020 |
- "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" |
1021 |
- else |
1022 |
- ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
1023 |
- ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
1024 |
- ewarn "If you do not do it, vlc will take a long time to load." |
1025 |
- fi |
1026 |
- |
1027 |
- xdg_pkg_postinst |
1028 |
-} |
1029 |
- |
1030 |
-pkg_postrm() { |
1031 |
- if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
1032 |
- rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
1033 |
- fi |
1034 |
- |
1035 |
- xdg_pkg_postrm |
1036 |
-} |
1037 |
|
1038 |
diff --git a/media-video/vlc/vlc-3.0.11.1.ebuild b/media-video/vlc/vlc-3.0.11.1.ebuild |
1039 |
deleted file mode 100644 |
1040 |
index 6de77540101..00000000000 |
1041 |
--- a/media-video/vlc/vlc-3.0.11.1.ebuild |
1042 |
+++ /dev/null |
1043 |
@@ -1,491 +0,0 @@ |
1044 |
-# Copyright 2000-2020 Gentoo Authors |
1045 |
-# Distributed under the terms of the GNU General Public License v2 |
1046 |
- |
1047 |
-EAPI=7 |
1048 |
- |
1049 |
-MY_PV="${PV/_/-}" |
1050 |
-MY_PV="${MY_PV/-beta/-test}" |
1051 |
-MY_P="${PN}-${MY_PV}" |
1052 |
-if [[ ${PV} = *9999 ]] ; then |
1053 |
- if [[ ${PV%.9999} != ${PV} ]] ; then |
1054 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
1055 |
- else |
1056 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
1057 |
- fi |
1058 |
- inherit git-r3 |
1059 |
-else |
1060 |
- if [[ ${MY_P} = ${P} ]] ; then |
1061 |
- SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
1062 |
- else |
1063 |
- SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
1064 |
- fi |
1065 |
- KEYWORDS="amd64 ~arm arm64 ppc ppc64 -sparc x86" |
1066 |
-fi |
1067 |
-inherit autotools flag-o-matic toolchain-funcs virtualx xdg |
1068 |
- |
1069 |
-DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
1070 |
-HOMEPAGE="https://www.videolan.org/vlc/" |
1071 |
- |
1072 |
-LICENSE="LGPL-2.1 GPL-2" |
1073 |
-SLOT="0/5-9" # vlc - vlccore |
1074 |
- |
1075 |
-IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast |
1076 |
- dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac |
1077 |
- fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate |
1078 |
- libass libcaca libnotify +libsamplerate libtar libtiger linsys lirc |
1079 |
- live lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses |
1080 |
- nfs ogg omxil optimisememory opus png projectm pulseaudio +qt5 rdp |
1081 |
- run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl svg taglib |
1082 |
- theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx wayland +X |
1083 |
- x264 x265 xml zeroconf zvbi cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx |
1084 |
- cpu_flags_x86_sse |
1085 |
-" |
1086 |
-REQUIRED_USE=" |
1087 |
- chromecast? ( encode ) |
1088 |
- directx? ( ffmpeg ) |
1089 |
- fontconfig? ( truetype ) |
1090 |
- libcaca? ( X ) |
1091 |
- libtar? ( skins ) |
1092 |
- libtiger? ( kate ) |
1093 |
- skins? ( qt5 truetype X xml ) |
1094 |
- ssl? ( gcrypt ) |
1095 |
- vaapi? ( ffmpeg X ) |
1096 |
- vdpau? ( ffmpeg X ) |
1097 |
-" |
1098 |
-BDEPEND=" |
1099 |
- >=sys-devel/gettext-0.19.8 |
1100 |
- virtual/pkgconfig |
1101 |
- amd64? ( dev-lang/yasm ) |
1102 |
- x86? ( dev-lang/yasm ) |
1103 |
-" |
1104 |
-RDEPEND=" |
1105 |
- net-dns/libidn:= |
1106 |
- sys-libs/zlib[minizip] |
1107 |
- virtual/libintl |
1108 |
- virtual/opengl |
1109 |
- a52? ( media-libs/a52dec ) |
1110 |
- alsa? ( media-libs/alsa-lib ) |
1111 |
- aom? ( media-libs/libaom:= ) |
1112 |
- archive? ( app-arch/libarchive:= ) |
1113 |
- aribsub? ( media-libs/aribb24 ) |
1114 |
- bidi? ( |
1115 |
- dev-libs/fribidi |
1116 |
- media-libs/freetype:2[harfbuzz] |
1117 |
- media-libs/harfbuzz |
1118 |
- virtual/ttf-fonts |
1119 |
- ) |
1120 |
- bluray? ( media-libs/libbluray:= ) |
1121 |
- cddb? ( media-libs/libcddb ) |
1122 |
- chromaprint? ( media-libs/chromaprint:= ) |
1123 |
- chromecast? ( |
1124 |
- >=dev-libs/protobuf-2.5.0:= |
1125 |
- >=net-libs/libmicrodns-0.0.9:= |
1126 |
- ) |
1127 |
- dav1d? ( media-libs/dav1d:= ) |
1128 |
- dbus? ( sys-apps/dbus ) |
1129 |
- dc1394? ( |
1130 |
- media-libs/libdc1394:2 |
1131 |
- sys-libs/libraw1394 |
1132 |
- ) |
1133 |
- dts? ( media-libs/libdca ) |
1134 |
- dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= ) |
1135 |
- dvd? ( |
1136 |
- >=media-libs/libdvdnav-4.9:0= |
1137 |
- >=media-libs/libdvdread-4.9:0= |
1138 |
- ) |
1139 |
- faad? ( media-libs/faad2 ) |
1140 |
- fdk? ( media-libs/fdk-aac:= ) |
1141 |
- ffmpeg? ( >=media-video/ffmpeg-3.1.3:0=[postproc,vaapi?,vdpau?] ) |
1142 |
- flac? ( |
1143 |
- media-libs/flac |
1144 |
- media-libs/libogg |
1145 |
- ) |
1146 |
- fluidsynth? ( media-sound/fluidsynth:= ) |
1147 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
1148 |
- gcrypt? ( |
1149 |
- dev-libs/libgcrypt:0= |
1150 |
- dev-libs/libgpg-error |
1151 |
- ) |
1152 |
- gme? ( media-libs/game-music-emu ) |
1153 |
- gnome-keyring? ( app-crypt/libsecret ) |
1154 |
- gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
1155 |
- ieee1394? ( |
1156 |
- sys-libs/libavc1394 |
1157 |
- sys-libs/libraw1394 |
1158 |
- ) |
1159 |
- jack? ( virtual/jack ) |
1160 |
- jpeg? ( virtual/jpeg:0 ) |
1161 |
- kate? ( media-libs/libkate ) |
1162 |
- libass? ( |
1163 |
- media-libs/fontconfig:1.0 |
1164 |
- media-libs/libass:= |
1165 |
- ) |
1166 |
- libcaca? ( media-libs/libcaca ) |
1167 |
- libnotify? ( |
1168 |
- dev-libs/glib:2 |
1169 |
- x11-libs/gdk-pixbuf:2 |
1170 |
- x11-libs/gtk+:3 |
1171 |
- x11-libs/libnotify |
1172 |
- ) |
1173 |
- libsamplerate? ( media-libs/libsamplerate ) |
1174 |
- libtar? ( dev-libs/libtar ) |
1175 |
- libtiger? ( media-libs/libtiger ) |
1176 |
- linsys? ( media-libs/zvbi ) |
1177 |
- lirc? ( app-misc/lirc ) |
1178 |
- live? ( media-plugins/live:= ) |
1179 |
- lua? ( >=dev-lang/lua-5.1:0= ) |
1180 |
- mad? ( media-libs/libmad ) |
1181 |
- matroska? ( |
1182 |
- >=dev-libs/libebml-1.3.6:= |
1183 |
- media-libs/libmatroska:= |
1184 |
- ) |
1185 |
- modplug? ( >=media-libs/libmodplug-0.8.9.0 ) |
1186 |
- mp3? ( media-sound/mpg123 ) |
1187 |
- mpeg? ( media-libs/libmpeg2 ) |
1188 |
- mtp? ( media-libs/libmtp:= ) |
1189 |
- musepack? ( media-sound/musepack-tools ) |
1190 |
- ncurses? ( sys-libs/ncurses:0=[unicode] ) |
1191 |
- nfs? ( >=net-fs/libnfs-0.10.0:= ) |
1192 |
- ogg? ( media-libs/libogg ) |
1193 |
- opus? ( >=media-libs/opus-1.0.3 ) |
1194 |
- png? ( media-libs/libpng:0= ) |
1195 |
- projectm? ( |
1196 |
- media-fonts/dejavu |
1197 |
- media-libs/libprojectm |
1198 |
- ) |
1199 |
- pulseaudio? ( media-sound/pulseaudio ) |
1200 |
- qt5? ( |
1201 |
- dev-qt/qtcore:5 |
1202 |
- dev-qt/qtgui:5 |
1203 |
- dev-qt/qtsvg:5 |
1204 |
- dev-qt/qtwidgets:5 |
1205 |
- X? ( |
1206 |
- dev-qt/qtx11extras:5 |
1207 |
- x11-libs/libX11 |
1208 |
- ) |
1209 |
- ) |
1210 |
- rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client(+)] ) |
1211 |
- samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
1212 |
- sdl-image? ( media-libs/sdl-image ) |
1213 |
- sftp? ( net-libs/libssh2 ) |
1214 |
- shout? ( media-libs/libshout ) |
1215 |
- sid? ( media-libs/libsidplay:2 ) |
1216 |
- skins? ( |
1217 |
- x11-libs/libXext |
1218 |
- x11-libs/libXinerama |
1219 |
- x11-libs/libXpm |
1220 |
- ) |
1221 |
- soxr? ( >=media-libs/soxr-0.1.2 ) |
1222 |
- speex? ( |
1223 |
- >=media-libs/speex-1.2.0 |
1224 |
- media-libs/speexdsp |
1225 |
- ) |
1226 |
- srt? ( net-libs/srt ) |
1227 |
- ssl? ( net-libs/gnutls:= ) |
1228 |
- svg? ( |
1229 |
- gnome-base/librsvg:2 |
1230 |
- x11-libs/cairo |
1231 |
- ) |
1232 |
- taglib? ( >=media-libs/taglib-1.9 ) |
1233 |
- theora? ( media-libs/libtheora ) |
1234 |
- tremor? ( media-libs/tremor ) |
1235 |
- truetype? ( |
1236 |
- media-libs/freetype:2 |
1237 |
- virtual/ttf-fonts |
1238 |
- !fontconfig? ( media-fonts/dejavu ) |
1239 |
- ) |
1240 |
- twolame? ( media-sound/twolame ) |
1241 |
- udev? ( virtual/udev ) |
1242 |
- upnp? ( net-libs/libupnp:=[ipv6] ) |
1243 |
- v4l? ( media-libs/libv4l:= ) |
1244 |
- vaapi? ( x11-libs/libva:=[drm,wayland?,X?] ) |
1245 |
- vdpau? ( x11-libs/libvdpau ) |
1246 |
- vnc? ( net-libs/libvncserver ) |
1247 |
- vorbis? ( media-libs/libvorbis ) |
1248 |
- vpx? ( media-libs/libvpx:= ) |
1249 |
- wayland? ( |
1250 |
- >=dev-libs/wayland-1.15 |
1251 |
- dev-libs/wayland-protocols |
1252 |
- ) |
1253 |
- X? ( |
1254 |
- x11-libs/libX11 |
1255 |
- x11-libs/libxcb |
1256 |
- x11-libs/xcb-util |
1257 |
- x11-libs/xcb-util-keysyms |
1258 |
- ) |
1259 |
- x264? ( >=media-libs/x264-0.0.20190214:= ) |
1260 |
- x265? ( media-libs/x265:= ) |
1261 |
- xml? ( dev-libs/libxml2:2 ) |
1262 |
- zeroconf? ( net-dns/avahi[dbus] ) |
1263 |
- zvbi? ( media-libs/zvbi ) |
1264 |
-" |
1265 |
-DEPEND="${RDEPEND} |
1266 |
- X? ( x11-base/xorg-proto ) |
1267 |
-" |
1268 |
- |
1269 |
-PATCHES=( |
1270 |
- "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
1271 |
- "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
1272 |
- "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290 |
1273 |
- "${FILESDIR}"/${PN}-3.0.8-qt-5.15.patch # TODO: upstream |
1274 |
-) |
1275 |
- |
1276 |
-DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
1277 |
- |
1278 |
-S="${WORKDIR}/${MY_P}" |
1279 |
- |
1280 |
-src_prepare() { |
1281 |
- xdg_src_prepare # bug 608256 |
1282 |
- |
1283 |
- has_version 'net-libs/libupnp:1.8' && \ |
1284 |
- eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
1285 |
- |
1286 |
- # Bootstrap when we are on a git checkout. |
1287 |
- if [[ ${PV} = *9999 ]] ; then |
1288 |
- ./bootstrap |
1289 |
- fi |
1290 |
- |
1291 |
- # Make it build with libtool 1.5 |
1292 |
- rm m4/lt* m4/libtool.m4 || die |
1293 |
- |
1294 |
- # We are not in a real git checkout due to the absence of a .git directory. |
1295 |
- touch src/revision.txt || die |
1296 |
- |
1297 |
- # Don't use --started-from-file when not using dbus. |
1298 |
- if ! use dbus ; then |
1299 |
- sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
1300 |
- fi |
1301 |
- |
1302 |
- # Disable running of vlc-cache-gen, we do that in pkg_postinst |
1303 |
- sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
1304 |
- -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
1305 |
- |
1306 |
- eautoreconf |
1307 |
- |
1308 |
- # Disable automatic running of tests. |
1309 |
- find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
1310 |
-} |
1311 |
- |
1312 |
-src_configure() { |
1313 |
- local -x BUILDCC=$(tc-getBUILD_CC) |
1314 |
- |
1315 |
- local myeconfargs=( |
1316 |
- --disable-aa |
1317 |
- --disable-optimizations |
1318 |
- --disable-rpath |
1319 |
- --disable-update-check |
1320 |
- --enable-fast-install |
1321 |
- --enable-screen |
1322 |
- --enable-vcd |
1323 |
- --enable-vlc |
1324 |
- $(use_enable a52) |
1325 |
- $(use_enable alsa) |
1326 |
- $(use_enable aom) |
1327 |
- $(use_enable archive) |
1328 |
- $(use_enable aribsub) |
1329 |
- $(use_enable bidi fribidi) |
1330 |
- $(use_enable bidi harfbuzz) |
1331 |
- $(use_enable bluray) |
1332 |
- $(use_enable cddb libcddb) |
1333 |
- $(use_enable chromaprint) |
1334 |
- $(use_enable chromecast) |
1335 |
- $(use_enable chromecast microdns) |
1336 |
- $(use_enable cpu_flags_arm_neon neon) |
1337 |
- $(use_enable cpu_flags_ppc_altivec altivec) |
1338 |
- $(use_enable cpu_flags_x86_mmx mmx) |
1339 |
- $(use_enable cpu_flags_x86_sse sse) |
1340 |
- $(use_enable dav1d) |
1341 |
- $(use_enable dbus) |
1342 |
- $(use_enable dbus kwallet) |
1343 |
- $(use_enable dc1394) |
1344 |
- $(use_enable debug) |
1345 |
- $(use_enable directx) |
1346 |
- $(use_enable directx d3d11va) |
1347 |
- $(use_enable directx dxva2) |
1348 |
- $(use_enable dts dca) |
1349 |
- $(use_enable dvbpsi) |
1350 |
- $(use_enable dvd dvdnav) |
1351 |
- $(use_enable dvd dvdread) |
1352 |
- $(use_enable encode sout) |
1353 |
- $(use_enable encode vlm) |
1354 |
- $(use_enable faad) |
1355 |
- $(use_enable fdk fdkaac) |
1356 |
- $(use_enable ffmpeg avcodec) |
1357 |
- $(use_enable ffmpeg avformat) |
1358 |
- $(use_enable ffmpeg postproc) |
1359 |
- $(use_enable ffmpeg swscale) |
1360 |
- $(use_enable flac) |
1361 |
- $(use_enable fluidsynth) |
1362 |
- $(use_enable fontconfig) |
1363 |
- $(use_enable gcrypt libgcrypt) |
1364 |
- $(use_enable gme) |
1365 |
- $(use_enable gnome-keyring secret) |
1366 |
- $(use_enable gstreamer gst-decode) |
1367 |
- $(use_enable ieee1394 dv1394) |
1368 |
- $(use_enable jack) |
1369 |
- $(use_enable jpeg) |
1370 |
- $(use_enable kate) |
1371 |
- $(use_enable libass) |
1372 |
- $(use_enable libcaca caca) |
1373 |
- $(use_enable libnotify notify) |
1374 |
- $(use_enable libsamplerate samplerate) |
1375 |
- $(use_enable libtar) |
1376 |
- $(use_enable libtiger tiger) |
1377 |
- $(use_enable linsys) |
1378 |
- $(use_enable lirc) |
1379 |
- $(use_enable live live555) |
1380 |
- $(use_enable lua) |
1381 |
- $(use_enable macosx-notifications osx-notifications) |
1382 |
- $(use_enable mad) |
1383 |
- $(use_enable matroska) |
1384 |
- $(use_enable modplug mod) |
1385 |
- $(use_enable mp3 mpg123) |
1386 |
- $(use_enable mpeg libmpeg2) |
1387 |
- $(use_enable mtp) |
1388 |
- $(use_enable musepack mpc) |
1389 |
- $(use_enable ncurses) |
1390 |
- $(use_enable nfs) |
1391 |
- $(use_enable ogg) |
1392 |
- $(use_enable omxil) |
1393 |
- $(use_enable omxil omxil-vout) |
1394 |
- $(use_enable optimisememory optimize-memory) |
1395 |
- $(use_enable opus) |
1396 |
- $(use_enable png) |
1397 |
- $(use_enable projectm) |
1398 |
- $(use_enable pulseaudio pulse) |
1399 |
- $(use_enable qt5 qt) |
1400 |
- $(use_enable rdp freerdp) |
1401 |
- $(use_enable run-as-root) |
1402 |
- $(use_enable samba smbclient) |
1403 |
- $(use_enable sdl-image) |
1404 |
- $(use_enable sftp) |
1405 |
- $(use_enable shout) |
1406 |
- $(use_enable sid) |
1407 |
- $(use_enable skins skins2) |
1408 |
- $(use_enable soxr) |
1409 |
- $(use_enable speex) |
1410 |
- $(use_enable srt) |
1411 |
- $(use_enable ssl gnutls) |
1412 |
- $(use_enable svg) |
1413 |
- $(use_enable svg svgdec) |
1414 |
- $(use_enable taglib) |
1415 |
- $(use_enable theora) |
1416 |
- $(use_enable tremor) |
1417 |
- $(use_enable twolame) |
1418 |
- $(use_enable udev) |
1419 |
- $(use_enable upnp) |
1420 |
- $(use_enable v4l v4l2) |
1421 |
- $(use_enable vaapi libva) |
1422 |
- $(use_enable vdpau) |
1423 |
- $(use_enable vnc) |
1424 |
- $(use_enable vorbis) |
1425 |
- $(use_enable vpx) |
1426 |
- $(use_enable wayland) |
1427 |
- $(use_with X x) |
1428 |
- $(use_enable X xcb) |
1429 |
- $(use_enable X xvideo) |
1430 |
- $(use_enable x264) |
1431 |
- $(use_enable x264 x26410b) |
1432 |
- $(use_enable x265) |
1433 |
- $(use_enable xml libxml2) |
1434 |
- $(use_enable zeroconf avahi) |
1435 |
- $(use_enable zvbi) |
1436 |
- $(use_enable !zvbi telx) |
1437 |
- --with-kde-solid="${EPREFIX}"/usr/share/solid/actions |
1438 |
- --disable-asdcp |
1439 |
- --disable-coverage |
1440 |
- --disable-cprof |
1441 |
- --disable-crystalhd |
1442 |
- --disable-decklink |
1443 |
- --disable-gles2 |
1444 |
- --disable-goom |
1445 |
- --disable-kai |
1446 |
- --disable-kva |
1447 |
- --disable-libplacebo |
1448 |
- --disable-maintainer-mode |
1449 |
- --disable-merge-ffmpeg |
1450 |
- --disable-mfx |
1451 |
- --disable-mmal |
1452 |
- --disable-opencv |
1453 |
- --disable-opensles |
1454 |
- --disable-oss |
1455 |
- --disable-rpi-omxil |
1456 |
- --disable-schroedinger |
1457 |
- --disable-shine |
1458 |
- --disable-sndio |
1459 |
- --disable-spatialaudio |
1460 |
- --disable-vsxu |
1461 |
- --disable-wasapi |
1462 |
- --disable-wma-fixed |
1463 |
- ) |
1464 |
- # ^ We don't have these disabled libraries in the Portage tree yet. |
1465 |
- |
1466 |
- # Compatibility fix for Samba 4. |
1467 |
- use samba && append-cppflags "-I/usr/include/samba-4.0" |
1468 |
- |
1469 |
- if use x86; then |
1470 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
1471 |
- append-cflags $(test-flags-CC -fno-stack-check) |
1472 |
- # Bug 569774 |
1473 |
- replace-flags -Os -O2 |
1474 |
- fi |
1475 |
- |
1476 |
- # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
1477 |
- append-cxxflags -std=c++11 |
1478 |
- |
1479 |
- # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
1480 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
1481 |
- |
1482 |
- if use truetype || use bidi; then |
1483 |
- myeconfargs+=( --enable-freetype ) |
1484 |
- else |
1485 |
- myeconfargs+=( --disable-freetype ) |
1486 |
- fi |
1487 |
- |
1488 |
- if use truetype || use projectm; then |
1489 |
- local dejavu="${EPREFIX}/usr/share/fonts/dejavu/" |
1490 |
- myeconfargs+=( |
1491 |
- --with-default-font=${dejavu}/DejaVuSans.ttf |
1492 |
- --with-default-font-family=Sans |
1493 |
- --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
1494 |
- --with-default-monospace-font-family=Monospace |
1495 |
- ) |
1496 |
- fi |
1497 |
- |
1498 |
- econf "${myeconfargs[@]}" |
1499 |
- |
1500 |
- # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
1501 |
- # Other values may break the build (bug 523144), so definition should not be removed. |
1502 |
- # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
1503 |
- sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
1504 |
-} |
1505 |
- |
1506 |
-src_test() { |
1507 |
- virtx emake check-TESTS |
1508 |
-} |
1509 |
- |
1510 |
-src_install() { |
1511 |
- default |
1512 |
- find "${D}" -name '*.la' -delete || die |
1513 |
-} |
1514 |
- |
1515 |
-pkg_postinst() { |
1516 |
- if [[ -z ${ROOT} ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
1517 |
- einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
1518 |
- "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" |
1519 |
- else |
1520 |
- ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
1521 |
- ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
1522 |
- ewarn "If you do not do it, vlc will take a long time to load." |
1523 |
- fi |
1524 |
- |
1525 |
- xdg_pkg_postinst |
1526 |
-} |
1527 |
- |
1528 |
-pkg_postrm() { |
1529 |
- if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
1530 |
- rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
1531 |
- fi |
1532 |
- |
1533 |
- xdg_pkg_postrm |
1534 |
-} |
1535 |
|
1536 |
diff --git a/media-video/vlc/vlc-3.0.12.1.ebuild b/media-video/vlc/vlc-3.0.12.1.ebuild |
1537 |
deleted file mode 100644 |
1538 |
index c3ba4141e5d..00000000000 |
1539 |
--- a/media-video/vlc/vlc-3.0.12.1.ebuild |
1540 |
+++ /dev/null |
1541 |
@@ -1,499 +0,0 @@ |
1542 |
-# Copyright 2000-2021 Gentoo Authors |
1543 |
-# Distributed under the terms of the GNU General Public License v2 |
1544 |
- |
1545 |
-EAPI=7 |
1546 |
- |
1547 |
-MY_PV="${PV/_/-}" |
1548 |
-MY_PV="${MY_PV/-beta/-test}" |
1549 |
-MY_P="${PN}-${MY_PV}" |
1550 |
-if [[ ${PV} = *9999 ]] ; then |
1551 |
- if [[ ${PV%.9999} != ${PV} ]] ; then |
1552 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
1553 |
- else |
1554 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
1555 |
- fi |
1556 |
- inherit git-r3 |
1557 |
-else |
1558 |
- SRC_URI="https://code.videolan.org/videolan/vlc-$(ver_cut 1-2)/-/archive/${PV}/vlc-$(ver_cut 1-2)-${PV}.tar.gz" |
1559 |
- S="${WORKDIR}/${PN}-$(ver_cut 1-2)-${PV}" |
1560 |
- #if [[ ${MY_P} = ${P} ]] ; then |
1561 |
- # SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
1562 |
- #else |
1563 |
- # SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
1564 |
- #fi |
1565 |
- KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 -sparc x86" |
1566 |
-fi |
1567 |
- |
1568 |
-inherit autotools flag-o-matic toolchain-funcs virtualx xdg |
1569 |
- |
1570 |
-DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
1571 |
-HOMEPAGE="https://www.videolan.org/vlc/" |
1572 |
-#S="${WORKDIR}/${MY_P}" |
1573 |
- |
1574 |
-LICENSE="LGPL-2.1 GPL-2" |
1575 |
-SLOT="0/5-9" # vlc - vlccore |
1576 |
- |
1577 |
-IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast |
1578 |
- dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac |
1579 |
- fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate |
1580 |
- libass libcaca libnotify +libsamplerate libtar libtiger linsys lirc |
1581 |
- live lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses |
1582 |
- nfs ogg omxil optimisememory opus png projectm pulseaudio +qt5 rdp |
1583 |
- run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl svg taglib |
1584 |
- theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx wayland +X |
1585 |
- x264 x265 xml zeroconf zvbi cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx |
1586 |
- cpu_flags_x86_sse |
1587 |
-" |
1588 |
-REQUIRED_USE=" |
1589 |
- chromecast? ( encode ) |
1590 |
- directx? ( ffmpeg ) |
1591 |
- fontconfig? ( truetype ) |
1592 |
- libcaca? ( X ) |
1593 |
- libtar? ( skins ) |
1594 |
- libtiger? ( kate ) |
1595 |
- skins? ( qt5 truetype X xml ) |
1596 |
- ssl? ( gcrypt ) |
1597 |
- vaapi? ( ffmpeg X ) |
1598 |
- vdpau? ( ffmpeg X ) |
1599 |
-" |
1600 |
-BDEPEND=" |
1601 |
- >=sys-devel/gettext-0.19.8 |
1602 |
- virtual/pkgconfig |
1603 |
- amd64? ( dev-lang/yasm ) |
1604 |
- x86? ( dev-lang/yasm ) |
1605 |
-" |
1606 |
-RDEPEND=" |
1607 |
- net-dns/libidn:= |
1608 |
- sys-libs/zlib[minizip] |
1609 |
- virtual/libintl |
1610 |
- virtual/opengl |
1611 |
- a52? ( media-libs/a52dec ) |
1612 |
- alsa? ( media-libs/alsa-lib ) |
1613 |
- aom? ( media-libs/libaom:= ) |
1614 |
- archive? ( app-arch/libarchive:= ) |
1615 |
- aribsub? ( media-libs/aribb24 ) |
1616 |
- bidi? ( |
1617 |
- dev-libs/fribidi |
1618 |
- media-libs/freetype:2[harfbuzz] |
1619 |
- media-libs/harfbuzz |
1620 |
- virtual/ttf-fonts |
1621 |
- ) |
1622 |
- bluray? ( media-libs/libbluray:= ) |
1623 |
- cddb? ( media-libs/libcddb ) |
1624 |
- chromaprint? ( media-libs/chromaprint:= ) |
1625 |
- chromecast? ( |
1626 |
- >=dev-libs/protobuf-2.5.0:= |
1627 |
- >=net-libs/libmicrodns-0.1.2:= |
1628 |
- ) |
1629 |
- dav1d? ( media-libs/dav1d:= ) |
1630 |
- dbus? ( sys-apps/dbus ) |
1631 |
- dc1394? ( |
1632 |
- media-libs/libdc1394:2 |
1633 |
- sys-libs/libraw1394 |
1634 |
- ) |
1635 |
- dts? ( media-libs/libdca ) |
1636 |
- dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= ) |
1637 |
- dvd? ( |
1638 |
- >=media-libs/libdvdnav-4.9:0= |
1639 |
- >=media-libs/libdvdread-4.9:0= |
1640 |
- ) |
1641 |
- faad? ( media-libs/faad2 ) |
1642 |
- fdk? ( media-libs/fdk-aac:= ) |
1643 |
- ffmpeg? ( >=media-video/ffmpeg-3.1.3:0=[postproc,vaapi?,vdpau?] ) |
1644 |
- flac? ( |
1645 |
- media-libs/flac |
1646 |
- media-libs/libogg |
1647 |
- ) |
1648 |
- fluidsynth? ( media-sound/fluidsynth:= ) |
1649 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
1650 |
- gcrypt? ( |
1651 |
- dev-libs/libgcrypt:0= |
1652 |
- dev-libs/libgpg-error |
1653 |
- ) |
1654 |
- gme? ( media-libs/game-music-emu ) |
1655 |
- gnome-keyring? ( app-crypt/libsecret ) |
1656 |
- gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
1657 |
- ieee1394? ( |
1658 |
- sys-libs/libavc1394 |
1659 |
- sys-libs/libraw1394 |
1660 |
- ) |
1661 |
- jack? ( virtual/jack ) |
1662 |
- jpeg? ( virtual/jpeg:0 ) |
1663 |
- kate? ( media-libs/libkate ) |
1664 |
- libass? ( |
1665 |
- media-libs/fontconfig:1.0 |
1666 |
- media-libs/libass:= |
1667 |
- ) |
1668 |
- libcaca? ( media-libs/libcaca ) |
1669 |
- libnotify? ( |
1670 |
- dev-libs/glib:2 |
1671 |
- x11-libs/gdk-pixbuf:2 |
1672 |
- x11-libs/gtk+:3 |
1673 |
- x11-libs/libnotify |
1674 |
- ) |
1675 |
- libsamplerate? ( media-libs/libsamplerate ) |
1676 |
- libtar? ( dev-libs/libtar ) |
1677 |
- libtiger? ( media-libs/libtiger ) |
1678 |
- linsys? ( media-libs/zvbi ) |
1679 |
- lirc? ( app-misc/lirc ) |
1680 |
- live? ( media-plugins/live:= ) |
1681 |
- lua? ( >=dev-lang/lua-5.1:0= ) |
1682 |
- mad? ( media-libs/libmad ) |
1683 |
- matroska? ( |
1684 |
- >=dev-libs/libebml-1.3.6:= |
1685 |
- media-libs/libmatroska:= |
1686 |
- ) |
1687 |
- modplug? ( >=media-libs/libmodplug-0.8.9.0 ) |
1688 |
- mp3? ( media-sound/mpg123 ) |
1689 |
- mpeg? ( media-libs/libmpeg2 ) |
1690 |
- mtp? ( media-libs/libmtp:= ) |
1691 |
- musepack? ( media-sound/musepack-tools ) |
1692 |
- ncurses? ( sys-libs/ncurses:0=[unicode] ) |
1693 |
- nfs? ( >=net-fs/libnfs-0.10.0:= ) |
1694 |
- ogg? ( media-libs/libogg ) |
1695 |
- opus? ( >=media-libs/opus-1.0.3 ) |
1696 |
- png? ( media-libs/libpng:0= ) |
1697 |
- projectm? ( |
1698 |
- media-fonts/dejavu |
1699 |
- media-libs/libprojectm:0= |
1700 |
- ) |
1701 |
- pulseaudio? ( media-sound/pulseaudio ) |
1702 |
- qt5? ( |
1703 |
- dev-qt/qtcore:5 |
1704 |
- dev-qt/qtgui:5 |
1705 |
- dev-qt/qtsvg:5 |
1706 |
- dev-qt/qtwidgets:5 |
1707 |
- X? ( |
1708 |
- dev-qt/qtx11extras:5 |
1709 |
- x11-libs/libX11 |
1710 |
- ) |
1711 |
- ) |
1712 |
- rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client(+)] ) |
1713 |
- samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
1714 |
- sdl-image? ( media-libs/sdl-image ) |
1715 |
- sftp? ( net-libs/libssh2 ) |
1716 |
- shout? ( media-libs/libshout ) |
1717 |
- sid? ( media-libs/libsidplay:2 ) |
1718 |
- skins? ( |
1719 |
- x11-libs/libXext |
1720 |
- x11-libs/libXinerama |
1721 |
- x11-libs/libXpm |
1722 |
- ) |
1723 |
- soxr? ( >=media-libs/soxr-0.1.2 ) |
1724 |
- speex? ( |
1725 |
- >=media-libs/speex-1.2.0 |
1726 |
- media-libs/speexdsp |
1727 |
- ) |
1728 |
- srt? ( >=net-libs/srt-1.4.2 ) |
1729 |
- ssl? ( net-libs/gnutls:= ) |
1730 |
- svg? ( |
1731 |
- gnome-base/librsvg:2 |
1732 |
- x11-libs/cairo |
1733 |
- ) |
1734 |
- taglib? ( >=media-libs/taglib-1.9 ) |
1735 |
- theora? ( media-libs/libtheora ) |
1736 |
- tremor? ( media-libs/tremor ) |
1737 |
- truetype? ( |
1738 |
- media-libs/freetype:2 |
1739 |
- virtual/ttf-fonts |
1740 |
- !fontconfig? ( media-fonts/dejavu ) |
1741 |
- ) |
1742 |
- twolame? ( media-sound/twolame ) |
1743 |
- udev? ( virtual/udev ) |
1744 |
- upnp? ( net-libs/libupnp:=[ipv6] ) |
1745 |
- v4l? ( media-libs/libv4l:= ) |
1746 |
- vaapi? ( x11-libs/libva:=[drm,wayland?,X?] ) |
1747 |
- vdpau? ( x11-libs/libvdpau ) |
1748 |
- vnc? ( net-libs/libvncserver ) |
1749 |
- vorbis? ( media-libs/libvorbis ) |
1750 |
- vpx? ( media-libs/libvpx:= ) |
1751 |
- wayland? ( |
1752 |
- >=dev-libs/wayland-1.15 |
1753 |
- dev-libs/wayland-protocols |
1754 |
- ) |
1755 |
- X? ( |
1756 |
- x11-libs/libX11 |
1757 |
- x11-libs/libxcb |
1758 |
- x11-libs/xcb-util |
1759 |
- x11-libs/xcb-util-keysyms |
1760 |
- ) |
1761 |
- x264? ( >=media-libs/x264-0.0.20190214:= ) |
1762 |
- x265? ( media-libs/x265:= ) |
1763 |
- xml? ( dev-libs/libxml2:2 ) |
1764 |
- zeroconf? ( net-dns/avahi[dbus] ) |
1765 |
- zvbi? ( media-libs/zvbi ) |
1766 |
-" |
1767 |
-DEPEND="${RDEPEND} |
1768 |
- X? ( x11-base/xorg-proto ) |
1769 |
-" |
1770 |
- |
1771 |
-PATCHES=( |
1772 |
- "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
1773 |
- "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
1774 |
- "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290 |
1775 |
- "${FILESDIR}"/${PN}-3.0.11.1-srt-1.4.2.patch # bug 758062 |
1776 |
-) |
1777 |
- |
1778 |
-DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
1779 |
- |
1780 |
-src_prepare() { |
1781 |
- xdg_src_prepare # bug 608256 |
1782 |
- |
1783 |
- has_version 'net-libs/libupnp:1.8' && \ |
1784 |
- eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
1785 |
- |
1786 |
- # Bootstrap when we are on a git checkout. |
1787 |
- if [[ ${PV} = *9999 ]] ; then |
1788 |
- ./bootstrap |
1789 |
- fi |
1790 |
- |
1791 |
- # Make it build with libtool 1.5 |
1792 |
- #rm m4/lt* m4/libtool.m4 || die |
1793 |
- |
1794 |
- # We are not in a real git checkout due to the absence of a .git directory. |
1795 |
- touch src/revision.txt || die |
1796 |
- |
1797 |
- # Don't use --started-from-file when not using dbus. |
1798 |
- if ! use dbus ; then |
1799 |
- sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
1800 |
- fi |
1801 |
- |
1802 |
- # Disable running of vlc-cache-gen, we do that in pkg_postinst |
1803 |
- sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
1804 |
- -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
1805 |
- |
1806 |
- eautoreconf |
1807 |
- |
1808 |
- # Disable automatic running of tests. |
1809 |
- find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
1810 |
-} |
1811 |
- |
1812 |
-src_configure() { |
1813 |
- local -x BUILDCC=$(tc-getBUILD_CC) |
1814 |
- |
1815 |
- local myeconfargs=( |
1816 |
- --disable-aa |
1817 |
- --disable-optimizations |
1818 |
- --disable-rpath |
1819 |
- --disable-update-check |
1820 |
- --enable-fast-install |
1821 |
- --enable-screen |
1822 |
- --enable-vcd |
1823 |
- --enable-vlc |
1824 |
- $(use_enable a52) |
1825 |
- $(use_enable alsa) |
1826 |
- $(use_enable aom) |
1827 |
- $(use_enable archive) |
1828 |
- $(use_enable aribsub) |
1829 |
- $(use_enable bidi fribidi) |
1830 |
- $(use_enable bidi harfbuzz) |
1831 |
- $(use_enable bluray) |
1832 |
- $(use_enable cddb libcddb) |
1833 |
- $(use_enable chromaprint) |
1834 |
- $(use_enable chromecast) |
1835 |
- $(use_enable chromecast microdns) |
1836 |
- $(use_enable cpu_flags_arm_neon neon) |
1837 |
- $(use_enable cpu_flags_ppc_altivec altivec) |
1838 |
- $(use_enable cpu_flags_x86_mmx mmx) |
1839 |
- $(use_enable cpu_flags_x86_sse sse) |
1840 |
- $(use_enable dav1d) |
1841 |
- $(use_enable dbus) |
1842 |
- $(use_enable dbus kwallet) |
1843 |
- $(use_enable dc1394) |
1844 |
- $(use_enable debug) |
1845 |
- $(use_enable directx) |
1846 |
- $(use_enable directx d3d11va) |
1847 |
- $(use_enable directx dxva2) |
1848 |
- $(use_enable dts dca) |
1849 |
- $(use_enable dvbpsi) |
1850 |
- $(use_enable dvd dvdnav) |
1851 |
- $(use_enable dvd dvdread) |
1852 |
- $(use_enable encode sout) |
1853 |
- $(use_enable encode vlm) |
1854 |
- $(use_enable faad) |
1855 |
- $(use_enable fdk fdkaac) |
1856 |
- $(use_enable ffmpeg avcodec) |
1857 |
- $(use_enable ffmpeg avformat) |
1858 |
- $(use_enable ffmpeg postproc) |
1859 |
- $(use_enable ffmpeg swscale) |
1860 |
- $(use_enable flac) |
1861 |
- $(use_enable fluidsynth) |
1862 |
- $(use_enable fontconfig) |
1863 |
- $(use_enable gcrypt libgcrypt) |
1864 |
- $(use_enable gme) |
1865 |
- $(use_enable gnome-keyring secret) |
1866 |
- $(use_enable gstreamer gst-decode) |
1867 |
- $(use_enable ieee1394 dv1394) |
1868 |
- $(use_enable jack) |
1869 |
- $(use_enable jpeg) |
1870 |
- $(use_enable kate) |
1871 |
- $(use_enable libass) |
1872 |
- $(use_enable libcaca caca) |
1873 |
- $(use_enable libnotify notify) |
1874 |
- $(use_enable libsamplerate samplerate) |
1875 |
- $(use_enable libtar) |
1876 |
- $(use_enable libtiger tiger) |
1877 |
- $(use_enable linsys) |
1878 |
- $(use_enable lirc) |
1879 |
- $(use_enable live live555) |
1880 |
- $(use_enable lua) |
1881 |
- $(use_enable macosx-notifications osx-notifications) |
1882 |
- $(use_enable mad) |
1883 |
- $(use_enable matroska) |
1884 |
- $(use_enable modplug mod) |
1885 |
- $(use_enable mp3 mpg123) |
1886 |
- $(use_enable mpeg libmpeg2) |
1887 |
- $(use_enable mtp) |
1888 |
- $(use_enable musepack mpc) |
1889 |
- $(use_enable ncurses) |
1890 |
- $(use_enable nfs) |
1891 |
- $(use_enable ogg) |
1892 |
- $(use_enable omxil) |
1893 |
- $(use_enable omxil omxil-vout) |
1894 |
- $(use_enable optimisememory optimize-memory) |
1895 |
- $(use_enable opus) |
1896 |
- $(use_enable png) |
1897 |
- $(use_enable projectm) |
1898 |
- $(use_enable pulseaudio pulse) |
1899 |
- $(use_enable qt5 qt) |
1900 |
- $(use_enable rdp freerdp) |
1901 |
- $(use_enable run-as-root) |
1902 |
- $(use_enable samba smbclient) |
1903 |
- $(use_enable sdl-image) |
1904 |
- $(use_enable sftp) |
1905 |
- $(use_enable shout) |
1906 |
- $(use_enable sid) |
1907 |
- $(use_enable skins skins2) |
1908 |
- $(use_enable soxr) |
1909 |
- $(use_enable speex) |
1910 |
- $(use_enable srt) |
1911 |
- $(use_enable ssl gnutls) |
1912 |
- $(use_enable svg) |
1913 |
- $(use_enable svg svgdec) |
1914 |
- $(use_enable taglib) |
1915 |
- $(use_enable theora) |
1916 |
- $(use_enable tremor) |
1917 |
- $(use_enable twolame) |
1918 |
- $(use_enable udev) |
1919 |
- $(use_enable upnp) |
1920 |
- $(use_enable v4l v4l2) |
1921 |
- $(use_enable vaapi libva) |
1922 |
- $(use_enable vdpau) |
1923 |
- $(use_enable vnc) |
1924 |
- $(use_enable vorbis) |
1925 |
- $(use_enable vpx) |
1926 |
- $(use_enable wayland) |
1927 |
- $(use_with X x) |
1928 |
- $(use_enable X xcb) |
1929 |
- $(use_enable X xvideo) |
1930 |
- $(use_enable x264) |
1931 |
- $(use_enable x264 x26410b) |
1932 |
- $(use_enable x265) |
1933 |
- $(use_enable xml libxml2) |
1934 |
- $(use_enable zeroconf avahi) |
1935 |
- $(use_enable zvbi) |
1936 |
- $(use_enable !zvbi telx) |
1937 |
- --with-kde-solid="${EPREFIX}"/usr/share/solid/actions |
1938 |
- --disable-asdcp |
1939 |
- --disable-coverage |
1940 |
- --disable-cprof |
1941 |
- --disable-crystalhd |
1942 |
- --disable-decklink |
1943 |
- --disable-gles2 |
1944 |
- --disable-goom |
1945 |
- --disable-kai |
1946 |
- --disable-kva |
1947 |
- --disable-libplacebo |
1948 |
- --disable-maintainer-mode |
1949 |
- --disable-merge-ffmpeg |
1950 |
- --disable-mfx |
1951 |
- --disable-mmal |
1952 |
- --disable-opencv |
1953 |
- --disable-opensles |
1954 |
- --disable-oss |
1955 |
- --disable-rpi-omxil |
1956 |
- --disable-schroedinger |
1957 |
- --disable-shine |
1958 |
- --disable-sndio |
1959 |
- --disable-spatialaudio |
1960 |
- --disable-vsxu |
1961 |
- --disable-wasapi |
1962 |
- --disable-wma-fixed |
1963 |
- ) |
1964 |
- # ^ We don't have these disabled libraries in the Portage tree yet. |
1965 |
- |
1966 |
- # Compatibility fix for Samba 4. |
1967 |
- use samba && append-cppflags "-I/usr/include/samba-4.0" |
1968 |
- |
1969 |
- if use x86; then |
1970 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
1971 |
- append-cflags $(test-flags-CC -fno-stack-check) |
1972 |
- # Bug 569774 |
1973 |
- replace-flags -Os -O2 |
1974 |
- fi |
1975 |
- |
1976 |
- # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
1977 |
- append-cxxflags -std=c++11 |
1978 |
- |
1979 |
- if use omxil; then |
1980 |
- # bug #723006 |
1981 |
- # https://trac.videolan.org/vlc/ticket/24617 |
1982 |
- append-cflags -fcommon |
1983 |
- fi |
1984 |
- |
1985 |
- # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
1986 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
1987 |
- |
1988 |
- if use truetype || use bidi; then |
1989 |
- myeconfargs+=( --enable-freetype ) |
1990 |
- else |
1991 |
- myeconfargs+=( --disable-freetype ) |
1992 |
- fi |
1993 |
- |
1994 |
- if use truetype || use projectm; then |
1995 |
- local dejavu="${EPREFIX}/usr/share/fonts/dejavu/" |
1996 |
- myeconfargs+=( |
1997 |
- --with-default-font=${dejavu}/DejaVuSans.ttf |
1998 |
- --with-default-font-family=Sans |
1999 |
- --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
2000 |
- --with-default-monospace-font-family=Monospace |
2001 |
- ) |
2002 |
- fi |
2003 |
- |
2004 |
- econf "${myeconfargs[@]}" |
2005 |
- |
2006 |
- # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
2007 |
- # Other values may break the build (bug 523144), so definition should not be removed. |
2008 |
- # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
2009 |
- sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
2010 |
-} |
2011 |
- |
2012 |
-src_test() { |
2013 |
- virtx emake check-TESTS |
2014 |
-} |
2015 |
- |
2016 |
-src_install() { |
2017 |
- default |
2018 |
- find "${ED}" -name '*.la' -delete || die |
2019 |
-} |
2020 |
- |
2021 |
-pkg_postinst() { |
2022 |
- if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
2023 |
- einfo "Running ${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/" |
2024 |
- "${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen" "${EROOT}/usr/$(get_libdir)/vlc/plugins/" |
2025 |
- else |
2026 |
- ewarn "We cannot run vlc-cache-gen (most likely ROOT != /)" |
2027 |
- ewarn "Please run ${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
2028 |
- ewarn "If you do not do it, vlc will take a long time to load." |
2029 |
- fi |
2030 |
- |
2031 |
- xdg_pkg_postinst |
2032 |
-} |
2033 |
- |
2034 |
-pkg_postrm() { |
2035 |
- if [[ -e "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
2036 |
- rm "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
2037 |
- fi |
2038 |
- |
2039 |
- xdg_pkg_postrm |
2040 |
-} |