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