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