1 |
commit: 64075778226b4d96ecccb8ac01c7ffc905eba036 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 25 19:11:44 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 25 19:27:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64075778 |
7 |
|
8 |
media-video/vlc: 3.0.7.1 version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/688650 |
11 |
Package-Manager: Portage-2.3.67, 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/vlc-3.0.7.1.ebuild | 494 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 495 insertions(+) |
17 |
|
18 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
19 |
index c4effaed86b..64f629a67a4 100644 |
20 |
--- a/media-video/vlc/Manifest |
21 |
+++ b/media-video/vlc/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST vlc-3.0.6.tar.xz 25699704 BLAKE2B 91c43fa3ceb6f55a3808c64a661ca453f0872f01eecc801921eb1b9f9cc462478b1fcd6f7cc36f33b7e1085320710b27a42a3b7b49dd74338fe63a3a46f36b0f SHA512 7c72e98f30ce5c5a94d74e097fa9960442f89240079b042a729f8a33dd7fedee2538c86c99738ccef2eb27f29055f0221d4c70316e3312c5ebba9565eaa15c52 |
24 |
+DIST vlc-3.0.7.1.tar.xz 26052372 BLAKE2B 349e967ff00db2fd5ea1a62deb12009ff0d85c56a82774aa4fedf7bffecd21b0c8c745f41eb4b9b4d36aaddcce95e79146901f318d18eab99f08e347841a8008 SHA512 6b99ae0564630a7a7ca9187c3bb954c601e384522ce93460b73f2dbf31787ce5828daca9f31c781b97db77872d76b6a3e871ff3401d70f1b5829fee7c4e847fd |
25 |
DIST vlc-3.0.7.tar.xz 26059760 BLAKE2B 552ba7dce17219a632a011203e45405085ea39ec5b4bf062f9e94501fc4c24ea5a8c73f96690fd2b6d8e15be3fedcb9c5d01e5fced3a8725bf21e1e63655393f SHA512 0ee2407b44c6ed33e4c4089a9e00702dd65eb9a50173ca4028411ddd6de51fdee1f437de48941b2a9e449e647d14e16907be35daeb273b3ddfec92e0cd330bec |
26 |
|
27 |
diff --git a/media-video/vlc/vlc-3.0.7.1.ebuild b/media-video/vlc/vlc-3.0.7.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..329fb3dedb9 |
30 |
--- /dev/null |
31 |
+++ b/media-video/vlc/vlc-3.0.7.1.ebuild |
32 |
@@ -0,0 +1,494 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+MY_PV="${PV/_/-}" |
39 |
+MY_PV="${MY_PV/-beta/-test}" |
40 |
+MY_P="${PN}-${MY_PV}" |
41 |
+if [[ ${PV} = *9999 ]] ; then |
42 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
43 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
44 |
+ else |
45 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
46 |
+ fi |
47 |
+ inherit git-r3 |
48 |
+else |
49 |
+ if [[ ${MY_P} = ${P} ]] ; then |
50 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
51 |
+ else |
52 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
53 |
+ fi |
54 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
55 |
+fi |
56 |
+inherit autotools flag-o-matic toolchain-funcs virtualx xdg |
57 |
+ |
58 |
+DESCRIPTION="Media player and framework with support for most multimedia files and streaming" |
59 |
+HOMEPAGE="https://www.videolan.org/vlc/" |
60 |
+ |
61 |
+LICENSE="LGPL-2.1 GPL-2" |
62 |
+SLOT="0/5-9" # vlc - vlccore |
63 |
+ |
64 |
+IUSE="a52 alsa altivec aom archive aribsub bidi bluray cddb chromaprint chromecast |
65 |
+ dav1d dbus dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac |
66 |
+ fluidsynth fontconfig +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate |
67 |
+ libass libav libcaca libnotify +libsamplerate libtar libtiger linsys lirc |
68 |
+ live lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses |
69 |
+ neon nfs ogg omxil opencv optimisememory opus png postproc projectm pulseaudio |
70 |
+ +qt5 rdp run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl |
71 |
+ svg taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx |
72 |
+ wayland +X x264 x265 xml zeroconf zvbi cpu_flags_x86_mmx cpu_flags_x86_sse |
73 |
+" |
74 |
+REQUIRED_USE=" |
75 |
+ chromecast? ( encode ) |
76 |
+ directx? ( ffmpeg ) |
77 |
+ fontconfig? ( truetype ) |
78 |
+ libcaca? ( X ) |
79 |
+ libtar? ( skins ) |
80 |
+ libtiger? ( kate ) |
81 |
+ postproc? ( ffmpeg ) |
82 |
+ skins? ( qt5 truetype X xml ) |
83 |
+ ssl? ( gcrypt ) |
84 |
+ vaapi? ( ffmpeg X ) |
85 |
+ vdpau? ( ffmpeg X ) |
86 |
+" |
87 |
+BDEPEND=" |
88 |
+ >=sys-devel/gettext-0.19.8 |
89 |
+ virtual/pkgconfig |
90 |
+ amd64? ( dev-lang/yasm ) |
91 |
+ x86? ( dev-lang/yasm ) |
92 |
+" |
93 |
+RDEPEND=" |
94 |
+ net-dns/libidn:= |
95 |
+ sys-libs/zlib[minizip] |
96 |
+ virtual/libintl |
97 |
+ virtual/opengl |
98 |
+ a52? ( media-libs/a52dec ) |
99 |
+ alsa? ( media-libs/alsa-lib ) |
100 |
+ aom? ( media-libs/libaom:= ) |
101 |
+ archive? ( app-arch/libarchive:= ) |
102 |
+ aribsub? ( media-libs/aribb24 ) |
103 |
+ bidi? ( |
104 |
+ dev-libs/fribidi |
105 |
+ media-libs/freetype:2[harfbuzz] |
106 |
+ media-libs/harfbuzz |
107 |
+ virtual/ttf-fonts |
108 |
+ ) |
109 |
+ bluray? ( media-libs/libbluray:= ) |
110 |
+ cddb? ( media-libs/libcddb ) |
111 |
+ chromaprint? ( media-libs/chromaprint:= ) |
112 |
+ chromecast? ( |
113 |
+ >=dev-libs/protobuf-2.5.0:= |
114 |
+ >=net-libs/libmicrodns-0.0.9:= |
115 |
+ ) |
116 |
+ dav1d? ( media-libs/dav1d ) |
117 |
+ dbus? ( sys-apps/dbus ) |
118 |
+ dc1394? ( |
119 |
+ media-libs/libdc1394:2 |
120 |
+ sys-libs/libraw1394 |
121 |
+ ) |
122 |
+ dts? ( media-libs/libdca ) |
123 |
+ dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= ) |
124 |
+ dvd? ( |
125 |
+ >=media-libs/libdvdnav-4.9 |
126 |
+ >=media-libs/libdvdread-4.9 |
127 |
+ ) |
128 |
+ faad? ( media-libs/faad2 ) |
129 |
+ fdk? ( media-libs/fdk-aac:= ) |
130 |
+ ffmpeg? ( |
131 |
+ !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] ) |
132 |
+ libav? ( >=media-video/libav-12.2:0=[vaapi?,vdpau?] ) |
133 |
+ ) |
134 |
+ flac? ( |
135 |
+ media-libs/flac |
136 |
+ media-libs/libogg |
137 |
+ ) |
138 |
+ fluidsynth? ( media-sound/fluidsynth:= ) |
139 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
140 |
+ gcrypt? ( |
141 |
+ dev-libs/libgcrypt:0= |
142 |
+ dev-libs/libgpg-error |
143 |
+ ) |
144 |
+ gme? ( media-libs/game-music-emu ) |
145 |
+ gnome-keyring? ( app-crypt/libsecret ) |
146 |
+ gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
147 |
+ ieee1394? ( |
148 |
+ sys-libs/libavc1394 |
149 |
+ sys-libs/libraw1394 |
150 |
+ ) |
151 |
+ jack? ( virtual/jack ) |
152 |
+ jpeg? ( virtual/jpeg:0 ) |
153 |
+ kate? ( media-libs/libkate ) |
154 |
+ libass? ( |
155 |
+ media-libs/fontconfig:1.0 |
156 |
+ media-libs/libass:= |
157 |
+ ) |
158 |
+ libcaca? ( media-libs/libcaca ) |
159 |
+ libnotify? ( |
160 |
+ dev-libs/glib:2 |
161 |
+ x11-libs/gdk-pixbuf:2 |
162 |
+ x11-libs/gtk+:3 |
163 |
+ x11-libs/libnotify |
164 |
+ ) |
165 |
+ libsamplerate? ( media-libs/libsamplerate ) |
166 |
+ libtar? ( dev-libs/libtar ) |
167 |
+ libtiger? ( media-libs/libtiger ) |
168 |
+ linsys? ( media-libs/zvbi ) |
169 |
+ lirc? ( app-misc/lirc ) |
170 |
+ live? ( media-plugins/live:= ) |
171 |
+ lua? ( >=dev-lang/lua-5.1:0= ) |
172 |
+ mad? ( media-libs/libmad ) |
173 |
+ matroska? ( |
174 |
+ dev-libs/libebml:= |
175 |
+ media-libs/libmatroska:= |
176 |
+ ) |
177 |
+ modplug? ( media-libs/libmodplug ) |
178 |
+ mp3? ( media-sound/mpg123 ) |
179 |
+ mpeg? ( media-libs/libmpeg2 ) |
180 |
+ mtp? ( media-libs/libmtp:= ) |
181 |
+ musepack? ( media-sound/musepack-tools ) |
182 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
183 |
+ nfs? ( >=net-fs/libnfs-0.10.0:= ) |
184 |
+ ogg? ( media-libs/libogg ) |
185 |
+ opencv? ( media-libs/opencv:= ) |
186 |
+ opus? ( >=media-libs/opus-1.0.3 ) |
187 |
+ png? ( media-libs/libpng:0= ) |
188 |
+ postproc? ( libav? ( media-libs/libpostproc ) ) |
189 |
+ projectm? ( |
190 |
+ media-fonts/dejavu |
191 |
+ media-libs/libprojectm |
192 |
+ ) |
193 |
+ pulseaudio? ( media-sound/pulseaudio ) |
194 |
+ qt5? ( |
195 |
+ dev-qt/qtcore:5 |
196 |
+ dev-qt/qtgui:5 |
197 |
+ dev-qt/qtsvg:5 |
198 |
+ dev-qt/qtwidgets:5 |
199 |
+ X? ( |
200 |
+ dev-qt/qtx11extras:5 |
201 |
+ x11-libs/libX11 |
202 |
+ ) |
203 |
+ ) |
204 |
+ rdp? ( >=net-misc/freerdp-2.0.0_rc0:=[client] ) |
205 |
+ samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
206 |
+ sdl-image? ( media-libs/sdl-image ) |
207 |
+ sftp? ( net-libs/libssh2 ) |
208 |
+ shout? ( media-libs/libshout ) |
209 |
+ sid? ( media-libs/libsidplay:2 ) |
210 |
+ skins? ( |
211 |
+ x11-libs/libXext |
212 |
+ x11-libs/libXinerama |
213 |
+ x11-libs/libXpm |
214 |
+ ) |
215 |
+ soxr? ( >=media-libs/soxr-0.1.2 ) |
216 |
+ speex? ( |
217 |
+ >=media-libs/speex-1.2.0 |
218 |
+ media-libs/speexdsp |
219 |
+ ) |
220 |
+ srt? ( net-libs/srt ) |
221 |
+ ssl? ( net-libs/gnutls:= ) |
222 |
+ svg? ( |
223 |
+ gnome-base/librsvg:2 |
224 |
+ x11-libs/cairo |
225 |
+ ) |
226 |
+ taglib? ( >=media-libs/taglib-1.9 ) |
227 |
+ theora? ( media-libs/libtheora ) |
228 |
+ tremor? ( media-libs/tremor ) |
229 |
+ truetype? ( |
230 |
+ media-libs/freetype:2 |
231 |
+ virtual/ttf-fonts |
232 |
+ !fontconfig? ( media-fonts/dejavu ) |
233 |
+ ) |
234 |
+ twolame? ( media-sound/twolame ) |
235 |
+ udev? ( virtual/udev ) |
236 |
+ upnp? ( net-libs/libupnp:= ) |
237 |
+ v4l? ( media-libs/libv4l:= ) |
238 |
+ vaapi? ( x11-libs/libva:=[drm,wayland?,X?] ) |
239 |
+ vdpau? ( x11-libs/libvdpau ) |
240 |
+ vnc? ( net-libs/libvncserver ) |
241 |
+ vorbis? ( media-libs/libvorbis ) |
242 |
+ vpx? ( media-libs/libvpx:= ) |
243 |
+ wayland? ( |
244 |
+ >=dev-libs/wayland-1.15 |
245 |
+ dev-libs/wayland-protocols |
246 |
+ ) |
247 |
+ X? ( |
248 |
+ x11-libs/libX11 |
249 |
+ x11-libs/libxcb |
250 |
+ x11-libs/xcb-util |
251 |
+ x11-libs/xcb-util-keysyms |
252 |
+ ) |
253 |
+ x264? ( >=media-libs/x264-0.0.20190214:= ) |
254 |
+ x265? ( media-libs/x265:= ) |
255 |
+ xml? ( dev-libs/libxml2:2 ) |
256 |
+ zeroconf? ( net-dns/avahi[dbus] ) |
257 |
+ zvbi? ( media-libs/zvbi ) |
258 |
+" |
259 |
+DEPEND="${RDEPEND} |
260 |
+ X? ( x11-base/xorg-proto ) |
261 |
+" |
262 |
+ |
263 |
+PATCHES=( |
264 |
+ "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
265 |
+ "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
266 |
+ "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290 |
267 |
+) |
268 |
+ |
269 |
+DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
270 |
+ |
271 |
+S="${WORKDIR}/${MY_P}" |
272 |
+ |
273 |
+src_prepare() { |
274 |
+ xdg_src_prepare # bug 608256 |
275 |
+ |
276 |
+ has_version '>=net-libs/libupnp-1.8.0' && \ |
277 |
+ eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
278 |
+ |
279 |
+ # Bootstrap when we are on a git checkout. |
280 |
+ if [[ ${PV} = *9999 ]] ; then |
281 |
+ ./bootstrap |
282 |
+ fi |
283 |
+ |
284 |
+ # Make it build with libtool 1.5 |
285 |
+ rm m4/lt* m4/libtool.m4 || die |
286 |
+ |
287 |
+ # We are not in a real git checkout due to the absence of a .git directory. |
288 |
+ touch src/revision.txt || die |
289 |
+ |
290 |
+ # Don't use --started-from-file when not using dbus. |
291 |
+ if ! use dbus ; then |
292 |
+ sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
293 |
+ fi |
294 |
+ |
295 |
+ # Disable running of vlc-cache-gen, we do that in pkg_postinst |
296 |
+ sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
297 |
+ -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
298 |
+ |
299 |
+ eautoreconf |
300 |
+ |
301 |
+ # Disable automatic running of tests. |
302 |
+ find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
303 |
+} |
304 |
+ |
305 |
+src_configure() { |
306 |
+ local myeconfargs=( |
307 |
+ --disable-aa |
308 |
+ --disable-dependency-tracking |
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 altivec) |
319 |
+ $(use_enable aom) |
320 |
+ $(use_enable archive) |
321 |
+ $(use_enable aribsub) |
322 |
+ $(use_enable bidi fribidi) |
323 |
+ $(use_enable bidi harfbuzz) |
324 |
+ $(use_enable bluray) |
325 |
+ $(use_enable cddb libcddb) |
326 |
+ $(use_enable chromaprint) |
327 |
+ $(use_enable chromecast) |
328 |
+ $(use_enable chromecast microdns) |
329 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
330 |
+ $(use_enable cpu_flags_x86_sse sse) |
331 |
+ $(use_enable dav1d) |
332 |
+ $(use_enable dbus) |
333 |
+ $(use_enable dbus kwallet) |
334 |
+ $(use_enable dc1394) |
335 |
+ $(use_enable debug) |
336 |
+ $(use_enable directx) |
337 |
+ $(use_enable directx d3d11va) |
338 |
+ $(use_enable directx dxva2) |
339 |
+ $(use_enable dts dca) |
340 |
+ $(use_enable dvbpsi) |
341 |
+ $(use_enable dvd dvdnav) |
342 |
+ $(use_enable dvd dvdread) |
343 |
+ $(use_enable encode sout) |
344 |
+ $(use_enable encode vlm) |
345 |
+ $(use_enable faad) |
346 |
+ $(use_enable fdk fdkaac) |
347 |
+ $(use_enable ffmpeg avcodec) |
348 |
+ $(use_enable ffmpeg avformat) |
349 |
+ $(use_enable ffmpeg swscale) |
350 |
+ $(use_enable flac) |
351 |
+ $(use_enable fluidsynth) |
352 |
+ $(use_enable fontconfig) |
353 |
+ $(use_enable gcrypt libgcrypt) |
354 |
+ $(use_enable gme) |
355 |
+ $(use_enable gnome-keyring secret) |
356 |
+ $(use_enable gstreamer gst-decode) |
357 |
+ $(use_enable ieee1394 dv1394) |
358 |
+ $(use_enable jack) |
359 |
+ $(use_enable jpeg) |
360 |
+ $(use_enable kate) |
361 |
+ $(use_enable libass) |
362 |
+ $(use_enable libcaca caca) |
363 |
+ $(use_enable libnotify notify) |
364 |
+ $(use_enable libsamplerate samplerate) |
365 |
+ $(use_enable libtar) |
366 |
+ $(use_enable libtiger tiger) |
367 |
+ $(use_enable linsys) |
368 |
+ $(use_enable lirc) |
369 |
+ $(use_enable live live555) |
370 |
+ $(use_enable lua) |
371 |
+ $(use_enable macosx-notifications osx-notifications) |
372 |
+ $(use_enable mad) |
373 |
+ $(use_enable matroska) |
374 |
+ $(use_enable modplug mod) |
375 |
+ $(use_enable mp3 mpg123) |
376 |
+ $(use_enable mpeg libmpeg2) |
377 |
+ $(use_enable mtp) |
378 |
+ $(use_enable musepack mpc) |
379 |
+ $(use_enable ncurses) |
380 |
+ $(use_enable neon) |
381 |
+ $(use_enable ogg) |
382 |
+ $(use_enable omxil) |
383 |
+ $(use_enable omxil omxil-vout) |
384 |
+ $(use_enable opencv) |
385 |
+ $(use_enable optimisememory optimize-memory) |
386 |
+ $(use_enable opus) |
387 |
+ $(use_enable png) |
388 |
+ $(use_enable postproc) |
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=/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-macosx-qtkit |
441 |
+ --disable-maintainer-mode |
442 |
+ --disable-merge-ffmpeg |
443 |
+ --disable-mfx |
444 |
+ --disable-mmal |
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="/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 |
+} |