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