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/files/, media-video/vlc/
Date: Tue, 29 May 2018 14:41:28
Message-Id: 1527604874.693736686b836589030cd38562bacf7ea492d545.asturm@gentoo
1 commit: 693736686b836589030cd38562bacf7ea492d545
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 29 14:40:37 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue May 29 14:41:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69373668
7
8 media-video/vlc: Drop 3.0.1-r1
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 media-video/vlc/Manifest | 1 -
13 media-video/vlc/files/vlc-3.0.1-arm-neon-fix.patch | 65 ---
14 media-video/vlc/vlc-3.0.1-r1.ebuild | 498 ---------------------
15 3 files changed, 564 deletions(-)
16
17 diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest
18 index a5f18bc13c4..d3a85a7c167 100644
19 --- a/media-video/vlc/Manifest
20 +++ b/media-video/vlc/Manifest
21 @@ -1,3 +1,2 @@
22 DIST vlc-2.2.8.tar.xz 22137276 BLAKE2B 10780f79a5c45c44b8fb76f229512da3932883da4a1b292745cabc8544ed251a080813ef233c9438766f3e635bee40ef64b929f3d43e0d457907093be1edd2f9 SHA512 adde16f4b4bd2d94f104bb3b99995df6bf4603bc67333c7615cb8d1d31ca63440b6b0aa93de9ccf0dba717cf905577c7d0bca7baba63caf401790b82eac3e04a
23 -DIST vlc-3.0.1.tar.xz 25174040 BLAKE2B 10121ef74f90ee7103d5958b49b7b187a3b8a1cd0bb36a9d97f409a7500285594d89721cb17add80d2a3d8d0f607ed4ec46986b9a9faa4a9d7c67c1eb7d60dca SHA512 f2ba7586e8fb8c04484e62809265ec998e875b1eff03262bbf463370277a318816cbb8d260901c774e59443393b16b040cb714019c80e051578008abbf91b13c
24 DIST vlc-3.0.2.tar.xz 25175492 BLAKE2B c0f2bebd9df491ff511f6bbdf27dc21b5676c5fbcb992a2d8e231ad7c1d276c4e50e39784e4fc1445af44ecf8a1a23f7fbc4e1cef200b2365b25eeb604fd5e8c SHA512 907a999dfa00fbc378e46689b2c32a09ea324b47a92b2183f2a1ade2c2c1ec205517580000a3c615d17b15d6885ee0ac51894944b90077968cb30ff58745497f
25
26 diff --git a/media-video/vlc/files/vlc-3.0.1-arm-neon-fix.patch b/media-video/vlc/files/vlc-3.0.1-arm-neon-fix.patch
27 deleted file mode 100644
28 index 6ea45d5abf0..00000000000
29 --- a/media-video/vlc/files/vlc-3.0.1-arm-neon-fix.patch
30 +++ /dev/null
31 @@ -1,65 +0,0 @@
32 -From: Janne Grunau <janne-vlc@××××××.net>
33 -Date: Mon, 19 Feb 2018 00:47:53 +0100
34 -Subject: arm: make the assembler functions compatible with non ELF/gas
35 - platforms
36 -MIME-Version: 1.0
37 -Content-Type: text/plain; charset="utf-8"
38 -Content-Transfer-Encoding: 8bit
39 -
40 -Allow assembling arm neon functions for IOS and arm windows.
41 -
42 -Signed-off-by: Martin Storsjö <martin@××××××.st>
43 -(cherry picked from commit ec4d9649d1c03fe8f578db38b41dccdf5e11b005)
44 -Signed-off-by: Thomas Guillem <thomas@××××.fr>
45 -
46 -[Add modules/arm_neon/asm.S missing from orig tarball.]
47 ----
48 - modules/arm_neon/asm.S | 39 +++++++++++++++++++++++++++++++++++++++
49 - 1 file changed, 39 insertions(+)
50 - create mode 100644 modules/arm_neon/asm.S
51 -
52 -diff --git a/modules/arm_neon/asm.S b/modules/arm_neon/asm.S
53 -new file mode 100644
54 -index 0000000..728391e
55 ---- /dev/null
56 -+++ b/modules/arm_neon/asm.S
57 -@@ -0,0 +1,39 @@
58 -+/*
59 -+ * Copyright (c) 2018 Janne Grunau <janne-libav@××××××.net>
60 -+ *
61 -+ * This program is free software; you can redistribute it and/or
62 -+ * modify it under the terms of the GNU Lesser General Public
63 -+ * License as published by the Free Software Foundation; either
64 -+ * version 2.1 of the License, or (at your option) any later version.
65 -+ *
66 -+ * This program is distributed in the hope that it will be useful,
67 -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
68 -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
69 -+ * Lesser General Public License for more details.
70 -+ *
71 -+ * You should have received a copy of the GNU Lesser General Public
72 -+ * License along with this program; if not, write to the Free Software
73 -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
74 -+ */
75 -+
76 -+#ifdef __APPLE__
77 -+# define EXTERN_ASM _
78 -+#else
79 -+# define EXTERN_ASM
80 -+#endif
81 -+
82 -+#if defined(__APPLE__) || defined(_WIN32)
83 -+# define HAVE_AS_ARCH_DIRECTIVE 0
84 -+# define HAVE_AS_FPU_DIRECTIVE 0
85 -+#else
86 -+# define HAVE_AS_ARCH_DIRECTIVE 1
87 -+# define HAVE_AS_FPU_DIRECTIVE 1
88 -+#endif
89 -+
90 -+.macro function name
91 -+ .globl EXTERN_ASM\name
92 -+#ifdef __ELF__
93 -+ .type EXTERN_ASM\name, %function
94 -+#endif
95 -+EXTERN_ASM\name:
96 -+.endm
97
98 diff --git a/media-video/vlc/vlc-3.0.1-r1.ebuild b/media-video/vlc/vlc-3.0.1-r1.ebuild
99 deleted file mode 100644
100 index 1ac9c9a5b14..00000000000
101 --- a/media-video/vlc/vlc-3.0.1-r1.ebuild
102 +++ /dev/null
103 @@ -1,498 +0,0 @@
104 -# Copyright 1999-2018 Gentoo Foundation
105 -# Distributed under the terms of the GNU General Public License v2
106 -
107 -EAPI=6
108 -
109 -MY_PV="${PV/_/-}"
110 -MY_PV="${MY_PV/-beta/-test}"
111 -MY_P="${PN}-${MY_PV}"
112 -if [[ ${PV} = *9999 ]] ; then
113 - if [[ ${PV%.9999} != ${PV} ]] ; then
114 - EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git"
115 - else
116 - EGIT_REPO_URI="https://git.videolan.org/git/vlc.git"
117 - fi
118 - SCM="git-r3"
119 -else
120 - if [[ ${MY_P} = ${P} ]] ; then
121 - SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
122 - else
123 - SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
124 - fi
125 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd"
126 -fi
127 -inherit autotools flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils ${SCM}
128 -
129 -DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
130 -HOMEPAGE="https://www.videolan.org/vlc/"
131 -
132 -LICENSE="LGPL-2.1 GPL-2"
133 -SLOT="0/5-9" # vlc - vlccore
134 -
135 -IUSE="a52 alsa altivec aom archive bidi bluray cddb chromaprint chromecast dbus dc1394
136 - debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth fontconfig
137 - +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate libass libav libcaca
138 - libnotify +libsamplerate libtar libtiger linsys lirc live lua macosx-notifications
139 - macosx-qtkit matroska microdns modplug mp3 mpeg mtp musepack ncurses neon nfs ogg
140 - omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5 rdp rtsp
141 - run-as-root samba schroedinger sdl-image sftp shout sid skins soxr speex ssl svg
142 - taglib theora tremor truetype twolame udev upnp vaapi v4l vcd vdpau vnc vorbis vpx
143 - wayland wma-fixed +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse
144 -"
145 -REQUIRED_USE="
146 - chromecast? ( encode )
147 - directx? ( ffmpeg )
148 - fontconfig? ( truetype )
149 - libcaca? ( X )
150 - libtar? ( skins )
151 - libtiger? ( kate )
152 - postproc? ( ffmpeg )
153 - skins? ( qt5 truetype X xml )
154 - ssl? ( gcrypt )
155 - vaapi? ( ffmpeg X )
156 - vdpau? ( ffmpeg X )
157 -"
158 -RDEPEND="
159 - net-dns/libidn:0
160 - sys-libs/zlib:0[minizip]
161 - virtual/libintl:0
162 - virtual/opengl
163 - a52? ( media-libs/a52dec:0 )
164 - alsa? ( media-libs/alsa-lib:0 )
165 - aom? ( media-libs/libaom:= )
166 - archive? ( app-arch/libarchive:= )
167 - bidi? (
168 - dev-libs/fribidi:0
169 - media-libs/freetype:2[harfbuzz]
170 - media-libs/harfbuzz
171 - virtual/ttf-fonts:0
172 - )
173 - bluray? ( media-libs/libbluray:0= )
174 - cddb? ( media-libs/libcddb:0 )
175 - chromaprint? ( media-libs/chromaprint:0= )
176 - chromecast? ( >=dev-libs/protobuf-2.5.0:= )
177 - dbus? ( sys-apps/dbus:0 )
178 - dc1394? (
179 - media-libs/libdc1394:2
180 - sys-libs/libraw1394:0
181 - )
182 - dts? ( media-libs/libdca:0 )
183 - dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:0= )
184 - dvd? (
185 - >=media-libs/libdvdnav-4.9:0
186 - >=media-libs/libdvdread-4.9:0
187 - )
188 - faad? ( media-libs/faad2:0 )
189 - fdk? ( media-libs/fdk-aac:0= )
190 - ffmpeg? (
191 - !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] )
192 - libav? ( >=media-video/libav-11.8:0=[vaapi?,vdpau?] )
193 - )
194 - flac? (
195 - media-libs/flac:0
196 - media-libs/libogg:0
197 - )
198 - fluidsynth? ( media-sound/fluidsynth:0 )
199 - fontconfig? ( media-libs/fontconfig:1.0 )
200 - gcrypt? (
201 - dev-libs/libgcrypt:0=
202 - dev-libs/libgpg-error:0
203 - )
204 - gme? ( media-libs/game-music-emu:0 )
205 - gnome-keyring? ( app-crypt/libsecret )
206 - gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
207 - ieee1394? (
208 - sys-libs/libavc1394:0
209 - sys-libs/libraw1394:0
210 - )
211 - jack? ( virtual/jack )
212 - jpeg? ( virtual/jpeg:0 )
213 - kate? ( media-libs/libkate:0 )
214 - libass? (
215 - media-libs/fontconfig:1.0
216 - media-libs/libass:0=
217 - )
218 - libcaca? ( media-libs/libcaca:0 )
219 - libnotify? (
220 - dev-libs/glib:2
221 - x11-libs/gdk-pixbuf:2
222 - x11-libs/gtk+:3
223 - x11-libs/libnotify:0
224 - )
225 - libsamplerate? ( media-libs/libsamplerate:0 )
226 - libtar? ( dev-libs/libtar:0 )
227 - libtiger? ( media-libs/libtiger:0 )
228 - linsys? ( media-libs/zvbi )
229 - lirc? ( app-misc/lirc:0 )
230 - live? ( media-plugins/live:0 )
231 - lua? ( >=dev-lang/lua-5.1:0 )
232 - matroska? (
233 - dev-libs/libebml:0=
234 - media-libs/libmatroska:0=
235 - )
236 - microdns? ( >=net-libs/libmicrodns-0.0.9:= )
237 - modplug? ( media-libs/libmodplug:0 )
238 - mp3? ( media-libs/libmad:0 )
239 - mpeg? ( media-libs/libmpeg2:0 )
240 - mtp? ( media-libs/libmtp:0= )
241 - musepack? ( media-sound/musepack-tools:0 )
242 - ncurses? ( sys-libs/ncurses:0=[unicode] )
243 - nfs? ( >=net-fs/libnfs-0.10.0:= )
244 - ogg? ( media-libs/libogg:0 )
245 - opencv? ( media-libs/opencv:0= )
246 - opus? ( >=media-libs/opus-1.0.3:0 )
247 - png? ( media-libs/libpng:0= )
248 - postproc? ( libav? ( media-libs/libpostproc:0= ) )
249 - projectm? (
250 - media-fonts/dejavu:0
251 - media-libs/libprojectm:0
252 - )
253 - pulseaudio? ( media-sound/pulseaudio:0 )
254 - qt5? (
255 - dev-qt/qtcore:5
256 - dev-qt/qtgui:5
257 - dev-qt/qtsvg:5
258 - dev-qt/qtwidgets:5
259 - X? (
260 - dev-qt/qtx11extras:5
261 - x11-libs/libX11
262 - )
263 - )
264 - rdp? ( >=net-misc/freerdp-2.0.0_rc0:0=[client] )
265 - samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] )
266 - schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
267 - sdl-image? ( media-libs/sdl-image:0 )
268 - sftp? ( net-libs/libssh2:0 )
269 - shout? ( media-libs/libshout:0 )
270 - sid? ( media-libs/libsidplay:2 )
271 - skins? (
272 - x11-libs/libXext:0
273 - x11-libs/libXinerama:0
274 - x11-libs/libXpm:0
275 - )
276 - soxr? ( media-libs/soxr )
277 - speex? (
278 - >=media-libs/speex-1.2.0:0
279 - media-libs/speexdsp:0
280 - )
281 - ssl? ( net-libs/gnutls:0 )
282 - svg? (
283 - gnome-base/librsvg:2
284 - x11-libs/cairo:0
285 - )
286 - taglib? ( >=media-libs/taglib-1.9:0 )
287 - theora? ( media-libs/libtheora:0 )
288 - tremor? ( media-libs/tremor:0 )
289 - truetype? (
290 - media-libs/freetype:2
291 - virtual/ttf-fonts:0
292 - !fontconfig? ( media-fonts/dejavu:0 )
293 - )
294 - twolame? ( media-sound/twolame:0 )
295 - udev? ( virtual/udev:0 )
296 - upnp? ( net-libs/libupnp:= )
297 - v4l? ( media-libs/libv4l:0 )
298 - vaapi? ( x11-libs/libva:0=[drm,wayland?,X?] )
299 - vcd? ( >=dev-libs/libcdio-0.78.2:0 )
300 - vdpau? ( x11-libs/libvdpau:0 )
301 - vnc? ( net-libs/libvncserver:0 )
302 - vorbis? ( media-libs/libvorbis:0 )
303 - vpx? ( media-libs/libvpx:0= )
304 - wayland? (
305 - dev-libs/wayland
306 - dev-libs/wayland-protocols
307 - )
308 - X? (
309 - x11-libs/libX11
310 - x11-libs/libxcb
311 - x11-libs/xcb-util
312 - x11-libs/xcb-util-keysyms
313 - )
314 - x264? ( media-libs/x264:0= )
315 - x265? ( media-libs/x265:0= )
316 - xml? ( dev-libs/libxml2:2 )
317 - zeroconf? ( net-dns/avahi:0[dbus] )
318 - zvbi? ( media-libs/zvbi )
319 -"
320 -DEPEND="${RDEPEND}
321 - >=sys-devel/gettext-0.19.8:*
322 - virtual/pkgconfig:*
323 - amd64? ( dev-lang/yasm:* )
324 - x86? ( dev-lang/yasm:* )
325 - X? ( x11-base/xorg-proto )
326 -"
327 -
328 -PATCHES=(
329 - "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system
330 - "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch # bug #593460
331 - "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164
332 - "${FILESDIR}"/${P}-arm-neon-fix.patch # bug 649798
333 - "${FILESDIR}"/${P}-qt-5.11.patch # TODO upstream
334 -)
335 -
336 -DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt )
337 -
338 -S="${WORKDIR}/${MY_P}"
339 -
340 -pkg_pretend() {
341 - # https://bugs.gentoo.org/647668
342 - if use chromecast && ! use microdns; then
343 - einfo "USE=microdns is required for Chromecast autodetection support"
344 - fi
345 -}
346 -
347 -src_prepare() {
348 - default
349 -
350 - has_version '>=net-libs/libupnp-1.8.0' && \
351 - eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch
352 -
353 - # Bootstrap when we are on a git checkout.
354 - if [[ ${PV} = *9999 ]] ; then
355 - ./bootstrap
356 - fi
357 -
358 - # Make it build with libtool 1.5
359 - rm m4/lt* m4/libtool.m4 || die
360 -
361 - # We are not in a real git checkout due to the absence of a .git directory.
362 - touch src/revision.txt || die
363 -
364 - # Don't use --started-from-file when not using dbus.
365 - if ! use dbus ; then
366 - sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
367 - fi
368 -
369 - # Disable running of vlc-cache-gen, we do that in pkg_postinst
370 - sed -e "/test.*build.*host/s/\$(host)/nothanks/" \
371 - -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen"
372 -
373 - eautoreconf
374 -
375 - # Disable automatic running of tests.
376 - find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
377 -}
378 -
379 -src_configure() {
380 - local myeconfargs=(
381 - --disable-aa
382 - --disable-dependency-tracking
383 - --disable-optimizations
384 - --disable-update-check
385 - --enable-fast-install
386 - --enable-screen
387 - --enable-vlc
388 - $(use_enable a52)
389 - $(use_enable alsa)
390 - $(use_enable altivec)
391 - $(use_enable aom)
392 - $(use_enable archive)
393 - $(use_enable bidi fribidi)
394 - $(use_enable bidi harfbuzz)
395 - $(use_enable bluray)
396 - $(use_enable cddb libcddb)
397 - $(use_enable chromaprint)
398 - $(use_enable chromecast)
399 - $(use_enable cpu_flags_x86_mmx mmx)
400 - $(use_enable cpu_flags_x86_sse sse)
401 - $(use_enable dbus)
402 - $(use_enable dbus kwallet)
403 - $(use_enable dc1394)
404 - $(use_enable debug)
405 - $(use_enable directx)
406 - $(use_enable directx d3d11va)
407 - $(use_enable directx dxva2)
408 - $(use_enable dts dca)
409 - $(use_enable dvbpsi)
410 - $(use_enable dvd dvdnav)
411 - $(use_enable dvd dvdread)
412 - $(use_enable encode sout)
413 - $(use_enable encode vlm)
414 - $(use_enable faad)
415 - $(use_enable fdk fdkaac)
416 - $(use_enable ffmpeg avcodec)
417 - $(use_enable ffmpeg avformat)
418 - $(use_enable ffmpeg swscale)
419 - $(use_enable flac)
420 - $(use_enable fluidsynth)
421 - $(use_enable fontconfig)
422 - $(use_enable gcrypt libgcrypt)
423 - $(use_enable gme)
424 - $(use_enable gnome-keyring secret)
425 - $(use_enable gstreamer gst-decode)
426 - $(use_enable ieee1394 dv1394)
427 - $(use_enable jack)
428 - $(use_enable jpeg)
429 - $(use_enable kate)
430 - $(use_enable libass)
431 - $(use_enable libcaca caca)
432 - $(use_enable libnotify notify)
433 - $(use_enable libsamplerate samplerate)
434 - $(use_enable libtar)
435 - $(use_enable libtiger tiger)
436 - $(use_enable linsys)
437 - $(use_enable lirc)
438 - $(use_enable live live555)
439 - $(use_enable lua)
440 - $(use_enable macosx-notifications osx-notifications)
441 - $(use_enable macosx-qtkit)
442 - $(use_enable matroska)
443 - $(use_enable microdns)
444 - $(use_enable modplug mod)
445 - $(use_enable mp3 mad)
446 - $(use_enable mpeg libmpeg2)
447 - $(use_enable mtp)
448 - $(use_enable musepack mpc)
449 - $(use_enable ncurses)
450 - $(use_enable neon)
451 - $(use_enable ogg)
452 - $(use_enable omxil)
453 - $(use_enable omxil omxil-vout)
454 - $(use_enable opencv)
455 - $(use_enable optimisememory optimize-memory)
456 - $(use_enable opus)
457 - $(use_enable png)
458 - $(use_enable postproc)
459 - $(use_enable projectm)
460 - $(use_enable pulseaudio pulse)
461 - $(use_enable qt5 qt)
462 - $(use_enable rdp freerdp)
463 - $(use_enable rtsp realrtsp)
464 - $(use_enable run-as-root)
465 - $(use_enable samba smbclient)
466 - $(use_enable schroedinger)
467 - $(use_enable sdl-image)
468 - $(use_enable sftp)
469 - $(use_enable shout)
470 - $(use_enable sid)
471 - $(use_enable skins skins2)
472 - $(use_enable soxr)
473 - $(use_enable speex)
474 - $(use_enable ssl gnutls)
475 - $(use_enable svg)
476 - $(use_enable svg svgdec)
477 - $(use_enable taglib)
478 - $(use_enable theora)
479 - $(use_enable tremor)
480 - $(use_enable twolame)
481 - $(use_enable udev)
482 - $(use_enable upnp)
483 - $(use_enable v4l v4l2)
484 - $(use_enable vaapi libva)
485 - $(use_enable vcd)
486 - $(use_enable vdpau)
487 - $(use_enable vnc)
488 - $(use_enable vorbis)
489 - $(use_enable vpx)
490 - $(use_enable wayland)
491 - $(use_enable wma-fixed)
492 - $(use_with X x)
493 - $(use_enable X xcb)
494 - $(use_enable X xvideo)
495 - $(use_enable x264)
496 - $(use_enable x265)
497 - $(use_enable xml libxml2)
498 - $(use_enable zeroconf avahi)
499 - $(use_enable zvbi)
500 - $(use_enable !zvbi telx)
501 - --disable-asdcp
502 - --disable-coverage
503 - --disable-cprof
504 - --disable-crystalhd
505 - --disable-decklink
506 - --disable-gles2
507 - --disable-goom
508 - --disable-kai
509 - --disable-kva
510 - --disable-libplacebo
511 - --disable-maintainer-mode
512 - --disable-merge-ffmpeg
513 - --disable-mfx
514 - --disable-mmal
515 - --disable-opensles
516 - --disable-oss
517 - --disable-rpi-omxil
518 - --disable-shine
519 - --disable-sndio
520 - --disable-spatialaudio
521 - --disable-srt
522 - --disable-vsxu
523 - --disable-wasapi
524 - )
525 - # ^ We don't have these disabled libraries in the Portage tree yet.
526 -
527 - # Compatibility fix for Samba 4.
528 - use samba && append-cppflags "-I/usr/include/samba-4.0"
529 -
530 - if use x86; then
531 - # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
532 - append-cflags $(test-flags-CC -fno-stack-check)
533 - # Bug 569774
534 - replace-flags -Os -O2
535 - fi
536 -
537 - # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8
538 - append-cxxflags -std=c++11
539 -
540 - # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
541 - append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
542 -
543 - xdg_environment_reset # bug 608256
544 -
545 - if use truetype || use bidi; then
546 - myeconfargs+=( --enable-freetype )
547 - else
548 - myeconfargs+=( --disable-freetype )
549 - fi
550 -
551 - if use truetype || use projectm; then
552 - local dejavu="/usr/share/fonts/dejavu/"
553 - myeconfargs+=(
554 - --with-default-font=${dejavu}/DejaVuSans.ttf
555 - --with-default-font-family=Sans
556 - --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
557 - --with-default-monospace-font-family=Monospace
558 - )
559 - fi
560 -
561 - econf ${myeconfargs[@]}
562 -
563 - # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
564 - # Other values may break the build (bug 523144), so definition should not be removed.
565 - # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h
566 - sed -i '1i#undef _FORTIFY_SOURCE' config.h || die
567 -}
568 -
569 -src_test() {
570 - virtx emake check-TESTS
571 -}
572 -
573 -src_install() {
574 - default
575 - find "${D}" -name '*.la' -delete || die
576 -}
577 -
578 -pkg_postinst() {
579 - if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then
580 - einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
581 - "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/"
582 - else
583 - ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
584 - ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
585 - ewarn "If you do not do it, vlc will take a long time to load."
586 - fi
587 -
588 - gnome2_icon_cache_update
589 - xdg_mimeinfo_database_update
590 - xdg_desktop_database_update
591 -}
592 -
593 -pkg_postrm() {
594 - if [[ -e /usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
595 - rm /usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
596 - fi
597 -
598 - gnome2_icon_cache_update
599 - xdg_mimeinfo_database_update
600 - xdg_desktop_database_update
601 -}