Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/vlc/, media-video/vlc/files/
Date: Thu, 01 Aug 2019 15:34:52
Message-Id: 1564673677.552671e74c9871abb81f1505e8f56b29f769be28.asturm@gentoo
1 commit: 552671e74c9871abb81f1505e8f56b29f769be28
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 1 15:34:07 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 1 15:34:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=552671e7
7
8 media-video/vlc: Security cleanup
9
10 Bug: https://bugs.gentoo.org/688642
11 Package-Manager: Portage-2.3.69, Repoman-2.3.16
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 media-video/vlc/Manifest | 1 -
15 media-video/vlc/files/vlc-3.0.6-libav.patch | 12 -
16 media-video/vlc/files/vlc-3.0.6-libvpx-1.8.0.patch | 35 --
17 media-video/vlc/files/vlc-3.0.6-sftp.patch | 24 -
18 media-video/vlc/metadata.xml | 2 -
19 media-video/vlc/vlc-3.0.6-r1.ebuild | 502 ---------------------
20 6 files changed, 576 deletions(-)
21
22 diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest
23 index ee054fc54b8..e0939fc1c2b 100644
24 --- a/media-video/vlc/Manifest
25 +++ b/media-video/vlc/Manifest
26 @@ -1,2 +1 @@
27 -DIST vlc-3.0.6.tar.xz 25699704 BLAKE2B 91c43fa3ceb6f55a3808c64a661ca453f0872f01eecc801921eb1b9f9cc462478b1fcd6f7cc36f33b7e1085320710b27a42a3b7b49dd74338fe63a3a46f36b0f SHA512 7c72e98f30ce5c5a94d74e097fa9960442f89240079b042a729f8a33dd7fedee2538c86c99738ccef2eb27f29055f0221d4c70316e3312c5ebba9565eaa15c52
28 DIST vlc-3.0.7.1.tar.xz 26052372 BLAKE2B 349e967ff00db2fd5ea1a62deb12009ff0d85c56a82774aa4fedf7bffecd21b0c8c745f41eb4b9b4d36aaddcce95e79146901f318d18eab99f08e347841a8008 SHA512 6b99ae0564630a7a7ca9187c3bb954c601e384522ce93460b73f2dbf31787ce5828daca9f31c781b97db77872d76b6a3e871ff3401d70f1b5829fee7c4e847fd
29
30 diff --git a/media-video/vlc/files/vlc-3.0.6-libav.patch b/media-video/vlc/files/vlc-3.0.6-libav.patch
31 deleted file mode 100644
32 index 08e13f15fb6..00000000000
33 --- a/media-video/vlc/files/vlc-3.0.6-libav.patch
34 +++ /dev/null
35 @@ -1,12 +0,0 @@
36 ---- a/modules/codec/avcodec/fourcc.c 2019-02-27 22:57:55.878463261 +0100
37 -+++ a/modules/codec/avcodec/fourcc.c_orig 2018-10-28 12:11:19.000000000 +0100
38 -@@ -182,7 +182,9 @@
39 - /* AV_CODEC_ID_V210X */
40 - { VLC_CODEC_TMV, AV_CODEC_ID_TMV },
41 - { VLC_CODEC_V210, AV_CODEC_ID_V210 },
42 -+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 54, 50, 100 ) && LIBAVCODEC_VERSION_MICRO >= 100
43 - { VLC_CODEC_VUYA, AV_CODEC_ID_AYUV },
44 -+#endif
45 - /* AV_CODEC_ID_DPX */
46 - { VLC_CODEC_MAD, AV_CODEC_ID_MAD },
47 - { VLC_CODEC_FRWU, AV_CODEC_ID_FRWU },
48
49 diff --git a/media-video/vlc/files/vlc-3.0.6-libvpx-1.8.0.patch b/media-video/vlc/files/vlc-3.0.6-libvpx-1.8.0.patch
50 deleted file mode 100644
51 index 1b58a03cc8c..00000000000
52 --- a/media-video/vlc/files/vlc-3.0.6-libvpx-1.8.0.patch
53 +++ /dev/null
54 @@ -1,35 +0,0 @@
55 -From 5575fe3eb3fd46bada8662268b74d03493476a84 Mon Sep 17 00:00:00 2001
56 -From: Danny Milosavljevic <dannym@×××××××××××.org>
57 -Date: Mon, 11 Feb 2019 16:07:12 +0100
58 -Subject: [PATCH] codec: vpx: Detect libvpx 1.8.0 and, if detected, use fewer
59 - frame formats in the chroma_table
60 -
61 -Signed-off-by: Steve Lhomme <robux4@×××××.xyz>
62 ----
63 - modules/codec/vpx.c | 3 ++-
64 - 1 file changed, 2 insertions(+), 1 deletion(-)
65 -
66 -diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
67 -index f03c7fae62..59b3acdef7 100644
68 ---- a/modules/codec/vpx.c
69 -+++ b/modules/codec/vpx.c
70 -@@ -117,6 +117,7 @@ static const struct
71 - { VLC_CODEC_I440, VPX_IMG_FMT_I440, 8, 0 },
72 -
73 - { VLC_CODEC_YV12, VPX_IMG_FMT_YV12, 8, 0 },
74 -+#if VPX_IMAGE_ABI_VERSION < 5
75 - { VLC_CODEC_YUVA, VPX_IMG_FMT_444A, 8, 0 },
76 - { VLC_CODEC_YUYV, VPX_IMG_FMT_YUY2, 8, 0 },
77 - { VLC_CODEC_UYVY, VPX_IMG_FMT_UYVY, 8, 0 },
78 -@@ -129,7 +130,7 @@ static const struct
79 -
80 - { VLC_CODEC_ARGB, VPX_IMG_FMT_ARGB, 8, 0 },
81 - { VLC_CODEC_BGRA, VPX_IMG_FMT_ARGB_LE, 8, 0 },
82 --
83 -+#endif
84 - { VLC_CODEC_GBR_PLANAR, VPX_IMG_FMT_I444, 8, 1 },
85 - { VLC_CODEC_GBR_PLANAR_10L, VPX_IMG_FMT_I44416, 10, 1 },
86 -
87 ---
88 -2.11.0
89 -
90
91 diff --git a/media-video/vlc/files/vlc-3.0.6-sftp.patch b/media-video/vlc/files/vlc-3.0.6-sftp.patch
92 deleted file mode 100644
93 index 3092bf5a47c..00000000000
94 --- a/media-video/vlc/files/vlc-3.0.6-sftp.patch
95 +++ /dev/null
96 @@ -1,24 +0,0 @@
97 -From 11449b5cd8b415768e010d9b7c1d6ba3cea21f82 Mon Sep 17 00:00:00 2001
98 -From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@××××××.net>
99 -Date: Wed, 20 Mar 2019 05:20:30 +0200
100 -Subject: [PATCH] sftp: fix version for ECDSA known hosts (fixes #22060)
101 -
102 -1.8.x is a stable branch, separate from the feature branch that contains
103 -the ECDSA support.
104 ----
105 - modules/access/sftp.c | 2 +-
106 - 1 file changed, 1 insertion(+), 1 deletion(-)
107 -
108 -diff --git a/modules/access/sftp.c b/modules/access/sftp.c
109 -index e420b91ca93..dc7f6cc27f7 100644
110 ---- a/modules/access/sftp.c
111 -+++ b/modules/access/sftp.c
112 -@@ -307,7 +307,7 @@ static int Open( vlc_object_t* p_this )
113 - case LIBSSH2_HOSTKEY_TYPE_DSS:
114 - knownhost_fingerprint_algo = LIBSSH2_KNOWNHOST_KEY_SSHDSS;
115 - break;
116 --#if LIBSSH2_VERSION_NUM >= 0x010801
117 -+#if LIBSSH2_VERSION_NUM >= 0x010900
118 - case LIBSSH2_HOSTKEY_TYPE_ECDSA_256:
119 - knownhost_fingerprint_algo = LIBSSH2_KNOWNHOST_KEY_ECDSA_256;
120 - break;
121
122 diff --git a/media-video/vlc/metadata.xml b/media-video/vlc/metadata.xml
123 index f9ee39a780e..44071ce53b8 100644
124 --- a/media-video/vlc/metadata.xml
125 +++ b/media-video/vlc/metadata.xml
126 @@ -32,7 +32,6 @@
127 <flag name="live">Enable live555 streaming media support (client support for rtsp)</flag>
128 <flag name="lua">Enable Lua scripting support, needed for including support for Jamendo (online music platform) and similar things</flag>
129 <flag name="macosx-notifications">Enable Mac OS X notifications module (formerly growl)</flag>
130 - <flag name="macosx-qtkit">Enable Mac OS X qtkit module: qtcapture (video) and qtsound (audio) module</flag>
131 <flag name="matroska">Enable matroska support using reference libraries (fallback on other existing matroska support if disabled, i.e., matroska enabled FFmpeg)</flag>
132 <flag name="mpeg">Add libmpeg2 support for mpeg-1 and mpeg-2 video streams</flag>
133 <flag name="nfs">Enable support for nfs protocol via <pkg>net-fs/libnfs</pkg></flag>
134 @@ -53,7 +52,6 @@
135 <flag name="twolame">Enable twolame support (MPEG Audio Layer 2 encoder)</flag>
136 <flag name="upnp">Enable support for the Intel SDK stack based UPnP discovery module instead of CyberLink</flag>
137 <flag name="vpx">Enable the decoder(s) from the WebM VP8 / VP9 Codec SDK</flag>
138 - <flag name="wma-fixed">Enable fixed point WMA decoder</flag>
139 <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>
140 <flag name="x265">Support X265 Encoder</flag>
141 <flag name="zeroconf">Enable support for zero-configuration networking via avahi</flag>
142
143 diff --git a/media-video/vlc/vlc-3.0.6-r1.ebuild b/media-video/vlc/vlc-3.0.6-r1.ebuild
144 deleted file mode 100644
145 index 0ecf3c646c6..00000000000
146 --- a/media-video/vlc/vlc-3.0.6-r1.ebuild
147 +++ /dev/null
148 @@ -1,502 +0,0 @@
149 -# Copyright 1999-2019 Gentoo Authors
150 -# Distributed under the terms of the GNU General Public License v2
151 -
152 -EAPI=7
153 -
154 -MY_PV="${PV/_/-}"
155 -MY_PV="${MY_PV/-beta/-test}"
156 -MY_P="${PN}-${MY_PV}"
157 -if [[ ${PV} = *9999 ]] ; then
158 - if [[ ${PV%.9999} != ${PV} ]] ; then
159 - EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git"
160 - else
161 - EGIT_REPO_URI="https://git.videolan.org/git/vlc.git"
162 - fi
163 - inherit git-r3
164 -else
165 - if [[ ${MY_P} = ${P} ]] ; then
166 - SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
167 - else
168 - SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
169 - fi
170 - KEYWORDS="amd64 ~arm arm64 ppc ppc64 -sparc x86 ~x86-fbsd"
171 -fi
172 -inherit autotools flag-o-matic toolchain-funcs virtualx xdg
173 -
174 -DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
175 -HOMEPAGE="https://www.videolan.org/vlc/"
176 -
177 -LICENSE="LGPL-2.1 GPL-2"
178 -SLOT="0/5-9" # vlc - vlccore
179 -
180 -IUSE="a52 alsa altivec aom archive aribsub bidi bluray cddb chromaprint chromecast
181 - dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac
182 - fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate
183 - libass libav libcaca libnotify +libsamplerate libtar libtiger linsys lirc live lua
184 - macosx-notifications macosx-qtkit mad matroska modplug mp3 mpeg mtp musepack ncurses
185 - neon nfs ogg omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5
186 - rdp run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl
187 - svg taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx
188 - wayland wma-fixed +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse
189 -"
190 -REQUIRED_USE="
191 - chromecast? ( encode )
192 - directx? ( ffmpeg )
193 - fontconfig? ( truetype )
194 - libcaca? ( X )
195 - libtar? ( skins )
196 - libtiger? ( kate )
197 - postproc? ( ffmpeg )
198 - skins? ( qt5 truetype X xml )
199 - ssl? ( gcrypt )
200 - vaapi? ( ffmpeg X )
201 - vdpau? ( ffmpeg X )
202 -"
203 -BDEPEND="
204 - >=sys-devel/gettext-0.19.8
205 - virtual/pkgconfig
206 - amd64? ( dev-lang/yasm )
207 - x86? ( dev-lang/yasm )
208 -"
209 -RDEPEND="
210 - net-dns/libidn:=
211 - sys-libs/zlib[minizip]
212 - virtual/libintl
213 - virtual/opengl
214 - a52? ( media-libs/a52dec )
215 - alsa? ( media-libs/alsa-lib )
216 - aom? ( media-libs/libaom:= )
217 - archive? ( app-arch/libarchive:= )
218 - aribsub? ( media-libs/aribb24 )
219 - bidi? (
220 - dev-libs/fribidi
221 - media-libs/freetype:2[harfbuzz]
222 - media-libs/harfbuzz
223 - virtual/ttf-fonts
224 - )
225 - bluray? ( media-libs/libbluray:= )
226 - cddb? ( media-libs/libcddb )
227 - chromaprint? ( media-libs/chromaprint:= )
228 - chromecast? (
229 - >=dev-libs/protobuf-2.5.0:=
230 - >=net-libs/libmicrodns-0.0.9:=
231 - )
232 - dav1d? ( media-libs/dav1d )
233 - dbus? ( sys-apps/dbus )
234 - dc1394? (
235 - media-libs/libdc1394:2
236 - sys-libs/libraw1394
237 - )
238 - dts? ( media-libs/libdca )
239 - dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= )
240 - dvd? (
241 - >=media-libs/libdvdnav-4.9
242 - >=media-libs/libdvdread-4.9
243 - )
244 - faad? ( media-libs/faad2 )
245 - fdk? ( media-libs/fdk-aac:= )
246 - ffmpeg? (
247 - !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] )
248 - libav? ( >=media-video/libav-12.2:0=[vaapi?,vdpau?] )
249 - )
250 - flac? (
251 - media-libs/flac
252 - media-libs/libogg
253 - )
254 - fluidsynth? ( media-sound/fluidsynth:= )
255 - fontconfig? ( media-libs/fontconfig:1.0 )
256 - gcrypt? (
257 - dev-libs/libgcrypt:0=
258 - dev-libs/libgpg-error
259 - )
260 - gme? ( media-libs/game-music-emu )
261 - gnome-keyring? ( app-crypt/libsecret )
262 - gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
263 - ieee1394? (
264 - sys-libs/libavc1394
265 - sys-libs/libraw1394
266 - )
267 - jack? ( virtual/jack )
268 - jpeg? ( virtual/jpeg:0 )
269 - kate? ( media-libs/libkate )
270 - libass? (
271 - media-libs/fontconfig:1.0
272 - media-libs/libass:=
273 - )
274 - libcaca? ( media-libs/libcaca )
275 - libnotify? (
276 - dev-libs/glib:2
277 - x11-libs/gdk-pixbuf:2
278 - x11-libs/gtk+:3
279 - x11-libs/libnotify
280 - )
281 - libsamplerate? ( media-libs/libsamplerate )
282 - libtar? ( dev-libs/libtar )
283 - libtiger? ( media-libs/libtiger )
284 - linsys? ( media-libs/zvbi )
285 - lirc? ( app-misc/lirc )
286 - live? ( media-plugins/live:= )
287 - lua? ( >=dev-lang/lua-5.1:0= )
288 - mad? ( media-libs/libmad )
289 - matroska? (
290 - dev-libs/libebml:=
291 - media-libs/libmatroska:=
292 - )
293 - modplug? ( media-libs/libmodplug )
294 - mp3? ( media-sound/mpg123 )
295 - mpeg? ( media-libs/libmpeg2 )
296 - mtp? ( media-libs/libmtp:= )
297 - musepack? ( media-sound/musepack-tools )
298 - ncurses? ( sys-libs/ncurses:0=[unicode] )
299 - nfs? ( >=net-fs/libnfs-0.10.0:= )
300 - ogg? ( media-libs/libogg )
301 - opencv? ( media-libs/opencv:= )
302 - opus? ( >=media-libs/opus-1.0.3 )
303 - png? ( media-libs/libpng:0= )
304 - postproc? ( libav? ( media-libs/libpostproc ) )
305 - projectm? (
306 - media-fonts/dejavu
307 - media-libs/libprojectm
308 - )
309 - pulseaudio? ( media-sound/pulseaudio )
310 - qt5? (
311 - dev-qt/qtcore:5
312 - dev-qt/qtgui:5
313 - dev-qt/qtsvg:5
314 - dev-qt/qtwidgets:5
315 - X? (
316 - dev-qt/qtx11extras:5
317 - x11-libs/libX11
318 - )
319 - )
320 - rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client] )
321 - samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] )
322 - sdl-image? ( media-libs/sdl-image )
323 - sftp? ( net-libs/libssh2 )
324 - shout? ( media-libs/libshout )
325 - sid? ( media-libs/libsidplay:2 )
326 - skins? (
327 - x11-libs/libXext
328 - x11-libs/libXinerama
329 - x11-libs/libXpm
330 - )
331 - soxr? ( >=media-libs/soxr-0.1.2 )
332 - speex? (
333 - >=media-libs/speex-1.2.0
334 - media-libs/speexdsp
335 - )
336 - srt? ( net-libs/srt )
337 - ssl? ( net-libs/gnutls:= )
338 - svg? (
339 - gnome-base/librsvg:2
340 - x11-libs/cairo
341 - )
342 - taglib? ( >=media-libs/taglib-1.9 )
343 - theora? ( media-libs/libtheora )
344 - tremor? ( media-libs/tremor )
345 - truetype? (
346 - media-libs/freetype:2
347 - virtual/ttf-fonts
348 - !fontconfig? ( media-fonts/dejavu )
349 - )
350 - twolame? ( media-sound/twolame )
351 - udev? ( virtual/udev )
352 - upnp? ( net-libs/libupnp:= )
353 - v4l? ( media-libs/libv4l:= )
354 - vaapi? ( x11-libs/libva:=[drm,wayland?,X?] )
355 - vdpau? ( x11-libs/libvdpau )
356 - vnc? ( net-libs/libvncserver )
357 - vorbis? ( media-libs/libvorbis )
358 - vpx? ( media-libs/libvpx:= )
359 - wayland? (
360 - >=dev-libs/wayland-1.15
361 - dev-libs/wayland-protocols
362 - )
363 - X? (
364 - x11-libs/libX11
365 - x11-libs/libxcb
366 - x11-libs/xcb-util
367 - x11-libs/xcb-util-keysyms
368 - )
369 - x264? ( >=media-libs/x264-0.0.20160712:0= )
370 - x265? ( media-libs/x265:= )
371 - xml? ( dev-libs/libxml2:2 )
372 - zeroconf? ( net-dns/avahi[dbus] )
373 - zvbi? ( media-libs/zvbi )
374 -"
375 -DEPEND="${RDEPEND}
376 - X? ( x11-base/xorg-proto )
377 -"
378 -
379 -PATCHES=(
380 - "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system
381 - "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164
382 - "${FILESDIR}"/${P}-libvpx-1.8.0.patch # bug 677606
383 - "${FILESDIR}"/${P}-fdk-aac-2.0.0.patch # bug 672290
384 - "${FILESDIR}"/${P}-libav.patch
385 - "${FILESDIR}"/${P}-sftp.patch
386 -)
387 -
388 -DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt )
389 -
390 -S="${WORKDIR}/${MY_P}"
391 -
392 -src_prepare() {
393 - xdg_src_prepare # bug 608256
394 -
395 - has_version '>=net-libs/libupnp-1.8.0' && \
396 - eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch
397 -
398 - # Bootstrap when we are on a git checkout.
399 - if [[ ${PV} = *9999 ]] ; then
400 - ./bootstrap
401 - fi
402 -
403 - # Make it build with libtool 1.5
404 - rm m4/lt* m4/libtool.m4 || die
405 -
406 - # We are not in a real git checkout due to the absence of a .git directory.
407 - touch src/revision.txt || die
408 -
409 - # Don't use --started-from-file when not using dbus.
410 - if ! use dbus ; then
411 - sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
412 - fi
413 -
414 - # Disable running of vlc-cache-gen, we do that in pkg_postinst
415 - sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
416 - -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
417 -
418 - eautoreconf
419 -
420 - # Disable automatic running of tests.
421 - find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
422 -}
423 -
424 -src_configure() {
425 - local myeconfargs=(
426 - --disable-aa
427 - --disable-dependency-tracking
428 - --disable-optimizations
429 - --disable-rpath
430 - --disable-update-check
431 - --enable-fast-install
432 - --enable-screen
433 - --enable-vcd
434 - --enable-vlc
435 - $(use_enable a52)
436 - $(use_enable alsa)
437 - $(use_enable altivec)
438 - $(use_enable aom)
439 - $(use_enable archive)
440 - $(use_enable aribsub)
441 - $(use_enable bidi fribidi)
442 - $(use_enable bidi harfbuzz)
443 - $(use_enable bluray)
444 - $(use_enable cddb libcddb)
445 - $(use_enable chromaprint)
446 - $(use_enable chromecast)
447 - $(use_enable chromecast microdns)
448 - $(use_enable cpu_flags_x86_mmx mmx)
449 - $(use_enable cpu_flags_x86_sse sse)
450 - $(use_enable dav1d)
451 - $(use_enable dbus)
452 - $(use_enable dbus kwallet)
453 - $(use_enable dc1394)
454 - $(use_enable debug)
455 - $(use_enable directx)
456 - $(use_enable directx d3d11va)
457 - $(use_enable directx dxva2)
458 - $(use_enable dts dca)
459 - $(use_enable dvbpsi)
460 - $(use_enable dvd dvdnav)
461 - $(use_enable dvd dvdread)
462 - $(use_enable encode sout)
463 - $(use_enable encode vlm)
464 - $(use_enable faad)
465 - $(use_enable fdk fdkaac)
466 - $(use_enable ffmpeg avcodec)
467 - $(use_enable ffmpeg avformat)
468 - $(use_enable ffmpeg swscale)
469 - $(use_enable flac)
470 - $(use_enable fluidsynth)
471 - $(use_enable fontconfig)
472 - $(use_enable gcrypt libgcrypt)
473 - $(use_enable gme)
474 - $(use_enable gnome-keyring secret)
475 - $(use_enable gstreamer gst-decode)
476 - $(use_enable ieee1394 dv1394)
477 - $(use_enable jack)
478 - $(use_enable jpeg)
479 - $(use_enable kate)
480 - $(use_enable libass)
481 - $(use_enable libcaca caca)
482 - $(use_enable libnotify notify)
483 - $(use_enable libsamplerate samplerate)
484 - $(use_enable libtar)
485 - $(use_enable libtiger tiger)
486 - $(use_enable linsys)
487 - $(use_enable lirc)
488 - $(use_enable live live555)
489 - $(use_enable lua)
490 - $(use_enable macosx-notifications osx-notifications)
491 - $(use_enable macosx-qtkit)
492 - $(use_enable mad)
493 - $(use_enable matroska)
494 - $(use_enable modplug mod)
495 - $(use_enable mp3 mpg123)
496 - $(use_enable mpeg libmpeg2)
497 - $(use_enable mtp)
498 - $(use_enable musepack mpc)
499 - $(use_enable ncurses)
500 - $(use_enable neon)
501 - $(use_enable ogg)
502 - $(use_enable omxil)
503 - $(use_enable omxil omxil-vout)
504 - $(use_enable opencv)
505 - $(use_enable optimisememory optimize-memory)
506 - $(use_enable opus)
507 - $(use_enable png)
508 - $(use_enable postproc)
509 - $(use_enable projectm)
510 - $(use_enable pulseaudio pulse)
511 - $(use_enable qt5 qt)
512 - $(use_enable rdp freerdp)
513 - $(use_enable run-as-root)
514 - $(use_enable samba smbclient)
515 - $(use_enable sdl-image)
516 - $(use_enable sftp)
517 - $(use_enable shout)
518 - $(use_enable sid)
519 - $(use_enable skins skins2)
520 - $(use_enable soxr)
521 - $(use_enable speex)
522 - $(use_enable srt)
523 - $(use_enable ssl gnutls)
524 - $(use_enable svg)
525 - $(use_enable svg svgdec)
526 - $(use_enable taglib)
527 - $(use_enable theora)
528 - $(use_enable tremor)
529 - $(use_enable twolame)
530 - $(use_enable udev)
531 - $(use_enable upnp)
532 - $(use_enable v4l v4l2)
533 - $(use_enable vaapi libva)
534 - $(use_enable vdpau)
535 - $(use_enable vnc)
536 - $(use_enable vorbis)
537 - $(use_enable vpx)
538 - $(use_enable wayland)
539 - $(use_enable wma-fixed)
540 - $(use_with X x)
541 - $(use_enable X xcb)
542 - $(use_enable X xvideo)
543 - $(use_enable x264)
544 - $(use_enable x265)
545 - $(use_enable xml libxml2)
546 - $(use_enable zeroconf avahi)
547 - $(use_enable zvbi)
548 - $(use_enable !zvbi telx)
549 - --with-kde-solid=/usr/share/solid/actions
550 - --disable-asdcp
551 - --disable-coverage
552 - --disable-cprof
553 - --disable-crystalhd
554 - --disable-decklink
555 - --disable-gles2
556 - --disable-goom
557 - --disable-kai
558 - --disable-kva
559 - --disable-libplacebo
560 - --disable-maintainer-mode
561 - --disable-merge-ffmpeg
562 - --disable-mfx
563 - --disable-mmal
564 - --disable-opensles
565 - --disable-oss
566 - --disable-rpi-omxil
567 - --disable-schroedinger
568 - --disable-shine
569 - --disable-sndio
570 - --disable-spatialaudio
571 - --disable-vsxu
572 - --disable-wasapi
573 - )
574 - # ^ We don't have these disabled libraries in the Portage tree yet.
575 -
576 - if use x264 && has_version ">=media-libs/x264-0.0.20190214"; then
577 - myeconfargs+=( --enable-x26410b )
578 - else
579 - myeconfargs+=( --disable-x26410b )
580 - fi
581 -
582 - # Compatibility fix for Samba 4.
583 - use samba && append-cppflags "-I/usr/include/samba-4.0"
584 -
585 - if use x86; then
586 - # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
587 - append-cflags $(test-flags-CC -fno-stack-check)
588 - # Bug 569774
589 - replace-flags -Os -O2
590 - fi
591 -
592 - # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8
593 - append-cxxflags -std=c++11
594 -
595 - # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
596 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
597 -
598 - if use truetype || use bidi; then
599 - myeconfargs+=( --enable-freetype )
600 - else
601 - myeconfargs+=( --disable-freetype )
602 - fi
603 -
604 - if use truetype || use projectm; then
605 - local dejavu="/usr/share/fonts/dejavu/"
606 - myeconfargs+=(
607 - --with-default-font=${dejavu}/DejaVuSans.ttf
608 - --with-default-font-family=Sans
609 - --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
610 - --with-default-monospace-font-family=Monospace
611 - )
612 - fi
613 -
614 - econf "${myeconfargs[@]}"
615 -
616 - # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
617 - # Other values may break the build (bug 523144), so definition should not be removed.
618 - # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h
619 - sed -i '1i#undef _FORTIFY_SOURCE' config.h || die
620 -}
621 -
622 -src_test() {
623 - virtx emake check-TESTS
624 -}
625 -
626 -src_install() {
627 - default
628 - find "${D}" -name '*.la' -delete || die
629 -}
630 -
631 -pkg_postinst() {
632 - if [[ -z ${ROOT} ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then
633 - einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
634 - "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/"
635 - else
636 - ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
637 - ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
638 - ewarn "If you do not do it, vlc will take a long time to load."
639 - fi
640 -
641 - xdg_pkg_postinst
642 -}
643 -
644 -pkg_postrm() {
645 - if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
646 - rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
647 - fi
648 -
649 - xdg_pkg_postrm
650 -}