1 |
commit: 4e8c7bab64a398c03dc1f937034631fc545ec346 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 12:11:55 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 15:41:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e8c7bab |
7 |
|
8 |
media-video/vlc: Drop 3.0.14-r7 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-video/vlc/Manifest | 1 - |
14 |
media-video/vlc/files/vlc-3.0.12.1-limits-p1.patch | 32 -- |
15 |
media-video/vlc/files/vlc-3.0.12.1-limits-p2.patch | 48 -- |
16 |
media-video/vlc/vlc-3.0.14-r7.ebuild | 514 --------------------- |
17 |
4 files changed, 595 deletions(-) |
18 |
|
19 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
20 |
index 7098c1b0265..fecc89d899f 100644 |
21 |
--- a/media-video/vlc/Manifest |
22 |
+++ b/media-video/vlc/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST vlc-3.0-3.0.14.tar.gz 34355555 BLAKE2B e8182229da1fe4f73b640fad8005ec3fc49da70f289bd32c33fcec51bf81d393b067a795626bad57c87499e8de181ac3ce159e572431e794586753c4a7c32597 SHA512 6d366c0f17a8bda7f588ab1818d985bccd076dd821bc83dd7d06827d463931e56cb06ca934622ee2cda4a76b0fbe265a66e4566e9307abc768b76174020f0150 |
25 |
DIST vlc-3.0.16.tar.xz 26439328 BLAKE2B 1971b88f3faf6d3b019c3fcb83108242bb218f1472dc3c1763a8eaa996befcb36a685a75beb8c2513e3365e77a9df6623d194ef511b5271e3114f2f46588e1ff SHA512 35cdf191071224d0cf1b5a83c00773ff87b9e5bfcf0f5523f7edd53f75b23eda6b27bb49ffa97d69a1d176b8fe4786d959aeeb00d4380beab71c9f7e6b7c7298 |
26 |
|
27 |
diff --git a/media-video/vlc/files/vlc-3.0.12.1-limits-p1.patch b/media-video/vlc/files/vlc-3.0.12.1-limits-p1.patch |
28 |
deleted file mode 100644 |
29 |
index aaa61a546ad..00000000000 |
30 |
--- a/media-video/vlc/files/vlc-3.0.12.1-limits-p1.patch |
31 |
+++ /dev/null |
32 |
@@ -1,32 +0,0 @@ |
33 |
-https://bugs.gentoo.org/767796 |
34 |
- |
35 |
-From: Robert-André Mauchin <zebob.m@×××××.com> |
36 |
-Date: Mon, 14 Dec 2020 02:23:52 +0000 (+0100) |
37 |
-Subject: hls: add missing <limits> include |
38 |
-X-Git-Url: https://git.videolan.org/?p=vlc.git;a=commitdiff_plain;h=3aea33378b0b317b99fce2eeaca8b31bf7cc6aba |
39 |
- |
40 |
-hls: add missing <limits> include |
41 |
- |
42 |
-Compilation would fail with: |
43 |
- |
44 |
-> error: 'numeric_limits' is not a member of 'std' |
45 |
- |
46 |
-without this include because of some hardening build |
47 |
-flags mandated on Fedora Linux, with GCC 11. |
48 |
- |
49 |
-Refs #25325 |
50 |
- |
51 |
-Signed-off-by: Robert-André Mauchin <zebob.m@×××××.com> |
52 |
-Signed-off-by: Alexandre Janniaux <ajanni@×××××××××.io> |
53 |
---- |
54 |
- |
55 |
---- a/modules/demux/hls/playlist/Parser.cpp |
56 |
-+++ b/modules/demux/hls/playlist/Parser.cpp |
57 |
-@@ -42,6 +42,7 @@ |
58 |
- #include <map> |
59 |
- #include <cctype> |
60 |
- #include <algorithm> |
61 |
-+#include <limits> |
62 |
- |
63 |
- using namespace adaptive; |
64 |
- using namespace adaptive::playlist; |
65 |
|
66 |
diff --git a/media-video/vlc/files/vlc-3.0.12.1-limits-p2.patch b/media-video/vlc/files/vlc-3.0.12.1-limits-p2.patch |
67 |
deleted file mode 100644 |
68 |
index 3832b2a1877..00000000000 |
69 |
--- a/media-video/vlc/files/vlc-3.0.12.1-limits-p2.patch |
70 |
+++ /dev/null |
71 |
@@ -1,48 +0,0 @@ |
72 |
-https://bugs.gentoo.org/767796 |
73 |
- |
74 |
-From: Robert-André Mauchin <zebob.m@×××××.com> |
75 |
-Date: Mon, 14 Dec 2020 02:23:52 +0000 (+0100) |
76 |
-Subject: adaptive: add missing <limits> include |
77 |
-X-Git-Url: https://git.videolan.org/?p=vlc.git;a=commitdiff_plain;h=e3de1b709b258d2b0e316d927f5c828bdb1a738a |
78 |
- |
79 |
-adaptive: add missing <limits> include |
80 |
- |
81 |
-Compilation would fail with: |
82 |
- |
83 |
-> error: 'numeric_limits' is not a member of 'std' |
84 |
- |
85 |
-without this include because of some hardening build |
86 |
-flags mandated on Fedora Linux, with GCC 11. |
87 |
- |
88 |
-Refs #25325 |
89 |
- |
90 |
-Signed-off-by: Robert-André Mauchin <zebob.m@×××××.com> |
91 |
-Signed-off-by: Alexandre Janniaux <ajanni@×××××××××.io> |
92 |
---- |
93 |
- |
94 |
---- a/modules/demux/adaptive/playlist/Inheritables.cpp |
95 |
-+++ b/modules/demux/adaptive/playlist/Inheritables.cpp |
96 |
-@@ -29,3 +29,4 @@ |
97 |
-+#include <limits> |
98 |
- |
99 |
- using namespace adaptive::playlist; |
100 |
- using namespace adaptive; |
101 |
---- a/modules/demux/adaptive/playlist/SegmentInformation.cpp |
102 |
-+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp |
103 |
-@@ -34,6 +34,7 @@ |
104 |
- |
105 |
- #include <algorithm> |
106 |
- #include <cassert> |
107 |
-+#include <limits> |
108 |
- |
109 |
- using namespace adaptive::playlist; |
110 |
- |
111 |
---- a/modules/demux/adaptive/playlist/SegmentTimeline.cpp |
112 |
-+++ b/modules/demux/adaptive/playlist/SegmentTimeline.cpp |
113 |
-@@ -29,5 +29,6 @@ |
114 |
- |
115 |
- #include <algorithm> |
116 |
-+#include <limits> |
117 |
- |
118 |
- using namespace adaptive::playlist; |
119 |
- |
120 |
|
121 |
diff --git a/media-video/vlc/vlc-3.0.14-r7.ebuild b/media-video/vlc/vlc-3.0.14-r7.ebuild |
122 |
deleted file mode 100644 |
123 |
index dadbb25cc1a..00000000000 |
124 |
--- a/media-video/vlc/vlc-3.0.14-r7.ebuild |
125 |
+++ /dev/null |
126 |
@@ -1,514 +0,0 @@ |
127 |
-# Copyright 2000-2021 Gentoo Authors |
128 |
-# Distributed under the terms of the GNU General Public License v2 |
129 |
- |
130 |
-EAPI=7 |
131 |
- |
132 |
-LUA_COMPAT=( lua5-{1..2} ) |
133 |
- |
134 |
-MY_PV="${PV/_/-}" |
135 |
-MY_PV="${MY_PV/-beta/-test}" |
136 |
-MY_P="${PN}-${MY_PV}" |
137 |
-if [[ ${PV} = *9999 ]] ; then |
138 |
- if [[ ${PV%.9999} != ${PV} ]] ; then |
139 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
140 |
- else |
141 |
- EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
142 |
- fi |
143 |
- inherit git-r3 |
144 |
-else |
145 |
- SRC_URI="https://code.videolan.org/videolan/vlc-$(ver_cut 1-2)/-/archive/${PV}/vlc-$(ver_cut 1-2)-${PV}.tar.gz" |
146 |
- S="${WORKDIR}/${PN}-$(ver_cut 1-2)-${PV}" |
147 |
- #if [[ ${MY_P} = ${P} ]] ; then |
148 |
- # SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
149 |
- #else |
150 |
- # SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
151 |
- #fi |
152 |
- KEYWORDS="amd64 ~arm arm64 ppc ppc64 -sparc x86" |
153 |
-fi |
154 |
- |
155 |
-inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg |
156 |
- |
157 |
-DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
158 |
-HOMEPAGE="https://www.videolan.org/vlc/" |
159 |
- |
160 |
-LICENSE="LGPL-2.1 GPL-2" |
161 |
-SLOT="0/5-9" # vlc - vlccore |
162 |
- |
163 |
-IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast |
164 |
- dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac |
165 |
- fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate |
166 |
- libass libcaca libnotify +libsamplerate libtar libtiger linsys lirc |
167 |
- live lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses |
168 |
- nfs ogg omxil optimisememory opus png projectm pulseaudio +qt5 rdp |
169 |
- run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl svg taglib |
170 |
- theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vpx wayland +X |
171 |
- x264 x265 xml zeroconf zvbi cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx |
172 |
- cpu_flags_x86_sse |
173 |
-" |
174 |
-REQUIRED_USE=" |
175 |
- chromecast? ( encode ) |
176 |
- directx? ( ffmpeg ) |
177 |
- fontconfig? ( truetype ) |
178 |
- libcaca? ( X ) |
179 |
- libtar? ( skins ) |
180 |
- libtiger? ( kate ) |
181 |
- lua? ( ${LUA_REQUIRED_USE} ) |
182 |
- skins? ( qt5 truetype X xml ) |
183 |
- ssl? ( gcrypt ) |
184 |
- vaapi? ( ffmpeg X ) |
185 |
- vdpau? ( ffmpeg X ) |
186 |
-" |
187 |
-BDEPEND=" |
188 |
- >=sys-devel/gettext-0.19.8 |
189 |
- virtual/pkgconfig |
190 |
- lua? ( ${LUA_DEPS} ) |
191 |
- amd64? ( dev-lang/yasm ) |
192 |
- x86? ( dev-lang/yasm ) |
193 |
-" |
194 |
-RDEPEND=" |
195 |
- media-libs/libvorbis |
196 |
- net-dns/libidn:= |
197 |
- sys-libs/zlib[minizip] |
198 |
- virtual/libintl |
199 |
- virtual/opengl |
200 |
- a52? ( media-libs/a52dec ) |
201 |
- alsa? ( media-libs/alsa-lib ) |
202 |
- aom? ( media-libs/libaom:= ) |
203 |
- archive? ( app-arch/libarchive:= ) |
204 |
- aribsub? ( media-libs/aribb24 ) |
205 |
- bidi? ( |
206 |
- dev-libs/fribidi |
207 |
- media-libs/freetype:2[harfbuzz] |
208 |
- media-libs/harfbuzz:= |
209 |
- virtual/ttf-fonts |
210 |
- ) |
211 |
- bluray? ( >=media-libs/libbluray-1.3.0:= ) |
212 |
- cddb? ( media-libs/libcddb ) |
213 |
- chromaprint? ( media-libs/chromaprint:= ) |
214 |
- chromecast? ( |
215 |
- >=dev-libs/protobuf-2.5.0:= |
216 |
- >=net-libs/libmicrodns-0.1.2:= |
217 |
- ) |
218 |
- dav1d? ( media-libs/dav1d:= ) |
219 |
- dbus? ( sys-apps/dbus ) |
220 |
- dc1394? ( |
221 |
- media-libs/libdc1394:2 |
222 |
- sys-libs/libraw1394 |
223 |
- ) |
224 |
- dts? ( media-libs/libdca ) |
225 |
- dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= ) |
226 |
- dvd? ( |
227 |
- >=media-libs/libdvdnav-6.1.1:0= |
228 |
- >=media-libs/libdvdread-6.1.2:0= |
229 |
- ) |
230 |
- faad? ( media-libs/faad2 ) |
231 |
- fdk? ( media-libs/fdk-aac:= ) |
232 |
- ffmpeg? ( >=media-video/ffmpeg-3.1.3:0=[postproc,vaapi?,vdpau?] ) |
233 |
- flac? ( |
234 |
- media-libs/flac |
235 |
- media-libs/libogg |
236 |
- ) |
237 |
- fluidsynth? ( media-sound/fluidsynth:= ) |
238 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
239 |
- gcrypt? ( |
240 |
- dev-libs/libgcrypt:0= |
241 |
- dev-libs/libgpg-error |
242 |
- ) |
243 |
- gme? ( media-libs/game-music-emu ) |
244 |
- gnome-keyring? ( app-crypt/libsecret ) |
245 |
- gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
246 |
- ieee1394? ( |
247 |
- sys-libs/libavc1394 |
248 |
- sys-libs/libraw1394 |
249 |
- ) |
250 |
- jack? ( virtual/jack ) |
251 |
- jpeg? ( virtual/jpeg:0 ) |
252 |
- kate? ( media-libs/libkate ) |
253 |
- libass? ( |
254 |
- media-libs/fontconfig:1.0 |
255 |
- media-libs/libass:= |
256 |
- ) |
257 |
- libcaca? ( media-libs/libcaca ) |
258 |
- libnotify? ( |
259 |
- dev-libs/glib:2 |
260 |
- x11-libs/gdk-pixbuf:2 |
261 |
- x11-libs/gtk+:3 |
262 |
- x11-libs/libnotify |
263 |
- ) |
264 |
- libsamplerate? ( media-libs/libsamplerate ) |
265 |
- libtar? ( dev-libs/libtar ) |
266 |
- libtiger? ( media-libs/libtiger ) |
267 |
- linsys? ( media-libs/zvbi ) |
268 |
- lirc? ( app-misc/lirc ) |
269 |
- live? ( >=media-plugins/live-2021.05.22:= ) |
270 |
- lua? ( ${LUA_DEPS} ) |
271 |
- mad? ( media-libs/libmad ) |
272 |
- matroska? ( |
273 |
- >=dev-libs/libebml-1.4.2:= |
274 |
- media-libs/libmatroska:= |
275 |
- ) |
276 |
- modplug? ( >=media-libs/libmodplug-0.8.9.0 ) |
277 |
- mp3? ( media-sound/mpg123 ) |
278 |
- mpeg? ( media-libs/libmpeg2 ) |
279 |
- mtp? ( media-libs/libmtp:= ) |
280 |
- musepack? ( media-sound/musepack-tools ) |
281 |
- ncurses? ( sys-libs/ncurses:=[unicode(+)] ) |
282 |
- nfs? ( >=net-fs/libnfs-0.10.0:= ) |
283 |
- ogg? ( media-libs/libogg ) |
284 |
- opus? ( >=media-libs/opus-1.0.3 ) |
285 |
- png? ( media-libs/libpng:0= ) |
286 |
- projectm? ( |
287 |
- media-fonts/dejavu |
288 |
- >=media-libs/libprojectm-3.1.12:0= |
289 |
- ) |
290 |
- pulseaudio? ( media-sound/pulseaudio ) |
291 |
- qt5? ( |
292 |
- dev-qt/qtcore:5 |
293 |
- dev-qt/qtgui:5 |
294 |
- dev-qt/qtsvg:5 |
295 |
- dev-qt/qtwidgets:5 |
296 |
- X? ( |
297 |
- dev-qt/qtx11extras:5 |
298 |
- x11-libs/libX11 |
299 |
- ) |
300 |
- ) |
301 |
- rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client(+)] ) |
302 |
- samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
303 |
- sdl-image? ( media-libs/sdl-image ) |
304 |
- sftp? ( net-libs/libssh2 ) |
305 |
- shout? ( media-libs/libshout ) |
306 |
- sid? ( media-libs/libsidplay:2 ) |
307 |
- skins? ( |
308 |
- x11-libs/libXext |
309 |
- x11-libs/libXinerama |
310 |
- x11-libs/libXpm |
311 |
- ) |
312 |
- soxr? ( >=media-libs/soxr-0.1.2 ) |
313 |
- speex? ( |
314 |
- >=media-libs/speex-1.2.0 |
315 |
- media-libs/speexdsp |
316 |
- ) |
317 |
- srt? ( >=net-libs/srt-1.4.2:= ) |
318 |
- ssl? ( net-libs/gnutls:= ) |
319 |
- svg? ( |
320 |
- gnome-base/librsvg:2 |
321 |
- x11-libs/cairo |
322 |
- ) |
323 |
- taglib? ( >=media-libs/taglib-1.9 ) |
324 |
- theora? ( media-libs/libtheora ) |
325 |
- tremor? ( media-libs/tremor ) |
326 |
- truetype? ( |
327 |
- media-libs/freetype:2 |
328 |
- virtual/ttf-fonts |
329 |
- !fontconfig? ( media-fonts/dejavu ) |
330 |
- ) |
331 |
- twolame? ( media-sound/twolame ) |
332 |
- udev? ( virtual/udev ) |
333 |
- upnp? ( net-libs/libupnp:=[ipv6] ) |
334 |
- v4l? ( media-libs/libv4l:= ) |
335 |
- vaapi? ( x11-libs/libva:=[drm,wayland?,X?] ) |
336 |
- vdpau? ( x11-libs/libvdpau ) |
337 |
- vnc? ( net-libs/libvncserver ) |
338 |
- vpx? ( media-libs/libvpx:= ) |
339 |
- wayland? ( |
340 |
- >=dev-libs/wayland-1.15 |
341 |
- dev-libs/wayland-protocols |
342 |
- ) |
343 |
- X? ( |
344 |
- x11-libs/libX11 |
345 |
- x11-libs/libxcb |
346 |
- x11-libs/xcb-util |
347 |
- x11-libs/xcb-util-keysyms |
348 |
- ) |
349 |
- x264? ( >=media-libs/x264-0.0.20190214:= ) |
350 |
- x265? ( media-libs/x265:= ) |
351 |
- xml? ( dev-libs/libxml2:2 ) |
352 |
- zeroconf? ( net-dns/avahi[dbus] ) |
353 |
- zvbi? ( media-libs/zvbi ) |
354 |
-" |
355 |
-DEPEND="${RDEPEND} |
356 |
- X? ( x11-base/xorg-proto ) |
357 |
-" |
358 |
- |
359 |
-PATCHES=( |
360 |
- "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
361 |
- "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
362 |
- "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290 |
363 |
- "${FILESDIR}"/${PN}-3.0.11.1-configure_lua_version.patch |
364 |
- "${FILESDIR}"/${PN}-3.0.11.1-srt-1.4.2.patch # bug 758062 |
365 |
- "${FILESDIR}"/${PN}-3.0.13-srt-1.3.0.patch |
366 |
- "${FILESDIR}"/${PN}-3.0.14-fix-live-address-api.patch # bug 795798 |
367 |
-) |
368 |
- |
369 |
-DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
370 |
- |
371 |
-pkg_setup() { |
372 |
- if use lua; then |
373 |
- lua-single_pkg_setup |
374 |
- fi |
375 |
-} |
376 |
- |
377 |
-src_prepare() { |
378 |
- xdg_src_prepare # bug 608256 |
379 |
- |
380 |
- has_version 'net-libs/libupnp:1.8' && \ |
381 |
- eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
382 |
- |
383 |
- # Bootstrap when we are on a git checkout. |
384 |
- if [[ ${PV} = *9999 ]] ; then |
385 |
- ./bootstrap |
386 |
- fi |
387 |
- |
388 |
- # Make it build with libtool 1.5 |
389 |
- #rm m4/lt* m4/libtool.m4 || die |
390 |
- |
391 |
- # We are not in a real git checkout due to the absence of a .git directory. |
392 |
- touch src/revision.txt || die |
393 |
- |
394 |
- # Don't use --started-from-file when not using dbus. |
395 |
- if ! use dbus ; then |
396 |
- sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
397 |
- fi |
398 |
- |
399 |
- # Disable running of vlc-cache-gen, we do that in pkg_postinst |
400 |
- sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
401 |
- -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
402 |
- |
403 |
- # Fix gettext version mismatch errors. |
404 |
- sed -i -e s/GETTEXT_VERSION/GETTEXT_REQUIRE_VERSION/ configure.ac || die |
405 |
- |
406 |
- eautoreconf |
407 |
- |
408 |
- # Disable automatic running of tests. |
409 |
- find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
410 |
-} |
411 |
- |
412 |
-src_configure() { |
413 |
- local -x BUILDCC=$(tc-getBUILD_CC) |
414 |
- |
415 |
- local myeconfargs=( |
416 |
- --disable-aa |
417 |
- --disable-optimizations |
418 |
- --disable-rpath |
419 |
- --disable-update-check |
420 |
- --enable-fast-install |
421 |
- --enable-screen |
422 |
- --enable-vcd |
423 |
- --enable-vlc |
424 |
- --enable-vorbis |
425 |
- $(use_enable a52) |
426 |
- $(use_enable alsa) |
427 |
- $(use_enable aom) |
428 |
- $(use_enable archive) |
429 |
- $(use_enable aribsub) |
430 |
- $(use_enable bidi fribidi) |
431 |
- $(use_enable bidi harfbuzz) |
432 |
- $(use_enable bluray) |
433 |
- $(use_enable cddb libcddb) |
434 |
- $(use_enable chromaprint) |
435 |
- $(use_enable chromecast) |
436 |
- $(use_enable chromecast microdns) |
437 |
- $(use_enable cpu_flags_arm_neon neon) |
438 |
- $(use_enable cpu_flags_ppc_altivec altivec) |
439 |
- $(use_enable cpu_flags_x86_mmx mmx) |
440 |
- $(use_enable cpu_flags_x86_sse sse) |
441 |
- $(use_enable dav1d) |
442 |
- $(use_enable dbus) |
443 |
- $(use_enable dbus kwallet) |
444 |
- $(use_enable dc1394) |
445 |
- $(use_enable debug) |
446 |
- $(use_enable directx) |
447 |
- $(use_enable directx d3d11va) |
448 |
- $(use_enable directx dxva2) |
449 |
- $(use_enable dts dca) |
450 |
- $(use_enable dvbpsi) |
451 |
- $(use_enable dvd dvdnav) |
452 |
- $(use_enable dvd dvdread) |
453 |
- $(use_enable encode sout) |
454 |
- $(use_enable encode vlm) |
455 |
- $(use_enable faad) |
456 |
- $(use_enable fdk fdkaac) |
457 |
- $(use_enable ffmpeg avcodec) |
458 |
- $(use_enable ffmpeg avformat) |
459 |
- $(use_enable ffmpeg postproc) |
460 |
- $(use_enable ffmpeg swscale) |
461 |
- $(use_enable flac) |
462 |
- $(use_enable fluidsynth) |
463 |
- $(use_enable fontconfig) |
464 |
- $(use_enable gcrypt libgcrypt) |
465 |
- $(use_enable gme) |
466 |
- $(use_enable gnome-keyring secret) |
467 |
- $(use_enable gstreamer gst-decode) |
468 |
- $(use_enable ieee1394 dv1394) |
469 |
- $(use_enable jack) |
470 |
- $(use_enable jpeg) |
471 |
- $(use_enable kate) |
472 |
- $(use_enable libass) |
473 |
- $(use_enable libcaca caca) |
474 |
- $(use_enable libnotify notify) |
475 |
- $(use_enable libsamplerate samplerate) |
476 |
- $(use_enable libtar) |
477 |
- $(use_enable libtiger tiger) |
478 |
- $(use_enable linsys) |
479 |
- $(use_enable lirc) |
480 |
- $(use_enable live live555) |
481 |
- $(use_enable lua) |
482 |
- $(use_enable macosx-notifications osx-notifications) |
483 |
- $(use_enable mad) |
484 |
- $(use_enable matroska) |
485 |
- $(use_enable modplug mod) |
486 |
- $(use_enable mp3 mpg123) |
487 |
- $(use_enable mpeg libmpeg2) |
488 |
- $(use_enable mtp) |
489 |
- $(use_enable musepack mpc) |
490 |
- $(use_enable ncurses) |
491 |
- $(use_enable nfs) |
492 |
- $(use_enable ogg) |
493 |
- $(use_enable omxil) |
494 |
- $(use_enable omxil omxil-vout) |
495 |
- $(use_enable optimisememory optimize-memory) |
496 |
- $(use_enable opus) |
497 |
- $(use_enable png) |
498 |
- $(use_enable projectm) |
499 |
- $(use_enable pulseaudio pulse) |
500 |
- $(use_enable qt5 qt) |
501 |
- $(use_enable rdp freerdp) |
502 |
- $(use_enable run-as-root) |
503 |
- $(use_enable samba smbclient) |
504 |
- $(use_enable sdl-image) |
505 |
- $(use_enable sftp) |
506 |
- $(use_enable shout) |
507 |
- $(use_enable sid) |
508 |
- $(use_enable skins skins2) |
509 |
- $(use_enable soxr) |
510 |
- $(use_enable speex) |
511 |
- $(use_enable srt) |
512 |
- $(use_enable ssl gnutls) |
513 |
- $(use_enable svg) |
514 |
- $(use_enable svg svgdec) |
515 |
- $(use_enable taglib) |
516 |
- $(use_enable theora) |
517 |
- $(use_enable tremor) |
518 |
- $(use_enable twolame) |
519 |
- $(use_enable udev) |
520 |
- $(use_enable upnp) |
521 |
- $(use_enable v4l v4l2) |
522 |
- $(use_enable vaapi libva) |
523 |
- $(use_enable vdpau) |
524 |
- $(use_enable vnc) |
525 |
- $(use_enable vpx) |
526 |
- $(use_enable wayland) |
527 |
- $(use_with X x) |
528 |
- $(use_enable X xcb) |
529 |
- $(use_enable X xvideo) |
530 |
- $(use_enable x264) |
531 |
- $(use_enable x264 x26410b) |
532 |
- $(use_enable x265) |
533 |
- $(use_enable xml libxml2) |
534 |
- $(use_enable zeroconf avahi) |
535 |
- $(use_enable zvbi) |
536 |
- $(use_enable !zvbi telx) |
537 |
- --with-kde-solid="${EPREFIX}"/usr/share/solid/actions |
538 |
- --disable-asdcp |
539 |
- --disable-coverage |
540 |
- --disable-cprof |
541 |
- --disable-crystalhd |
542 |
- --disable-decklink |
543 |
- --disable-gles2 |
544 |
- --disable-goom |
545 |
- --disable-kai |
546 |
- --disable-kva |
547 |
- --disable-libplacebo |
548 |
- --disable-maintainer-mode |
549 |
- --disable-merge-ffmpeg |
550 |
- --disable-mfx |
551 |
- --disable-mmal |
552 |
- --disable-opencv |
553 |
- --disable-opensles |
554 |
- --disable-oss |
555 |
- --disable-rpi-omxil |
556 |
- --disable-schroedinger |
557 |
- --disable-shine |
558 |
- --disable-sndio |
559 |
- --disable-spatialaudio |
560 |
- --disable-vsxu |
561 |
- --disable-wasapi |
562 |
- --disable-wma-fixed |
563 |
- ) |
564 |
- # ^ We don't have these disabled libraries in the Portage tree yet. |
565 |
- |
566 |
- # Compatibility fix for Samba 4. |
567 |
- use samba && append-cppflags "-I/usr/include/samba-4.0" |
568 |
- |
569 |
- if use x86; then |
570 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
571 |
- append-cflags $(test-flags-CC -fno-stack-check) |
572 |
- # Bug 569774 |
573 |
- replace-flags -Os -O2 |
574 |
- fi |
575 |
- |
576 |
- # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
577 |
- append-cxxflags -std=c++11 |
578 |
- |
579 |
- if use omxil; then |
580 |
- # bug #723006 |
581 |
- # https://trac.videolan.org/vlc/ticket/24617 |
582 |
- append-cflags -fcommon |
583 |
- fi |
584 |
- |
585 |
- # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
586 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
587 |
- |
588 |
- if use truetype || use bidi; then |
589 |
- myeconfargs+=( --enable-freetype ) |
590 |
- else |
591 |
- myeconfargs+=( --disable-freetype ) |
592 |
- fi |
593 |
- |
594 |
- if use truetype || use projectm; then |
595 |
- local dejavu="${EPREFIX}/usr/share/fonts/dejavu/" |
596 |
- myeconfargs+=( |
597 |
- --with-default-font=${dejavu}/DejaVuSans.ttf |
598 |
- --with-default-font-family=Sans |
599 |
- --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
600 |
- --with-default-monospace-font-family=Monospace |
601 |
- ) |
602 |
- fi |
603 |
- |
604 |
- econf "${myeconfargs[@]}" |
605 |
- |
606 |
- # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
607 |
- # Other values may break the build (bug 523144), so definition should not be removed. |
608 |
- # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
609 |
- sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
610 |
-} |
611 |
- |
612 |
-src_test() { |
613 |
- virtx emake check-TESTS |
614 |
-} |
615 |
- |
616 |
-src_install() { |
617 |
- default |
618 |
- find "${ED}" -name '*.la' -delete || die |
619 |
-} |
620 |
- |
621 |
-pkg_postinst() { |
622 |
- if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
623 |
- einfo "Running ${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/" |
624 |
- "${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen" "${EROOT}/usr/$(get_libdir)/vlc/plugins/" |
625 |
- else |
626 |
- ewarn "We cannot run vlc-cache-gen (most likely ROOT != /)" |
627 |
- ewarn "Please run ${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
628 |
- ewarn "If you do not do it, vlc will take a long time to load." |
629 |
- fi |
630 |
- |
631 |
- xdg_pkg_postinst |
632 |
-} |
633 |
- |
634 |
-pkg_postrm() { |
635 |
- if [[ -e "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then |
636 |
- rm "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat" |
637 |
- fi |
638 |
- |
639 |
- xdg_pkg_postrm |
640 |
-} |