1 |
commit: 15950630e827b0d50d809d4f3d76c97b21c1c10f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 10 20:17:20 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 10 21:10:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15950630 |
7 |
|
8 |
media-video/vlc: Drop 3.0.2-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/657168 |
11 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
12 |
|
13 |
media-video/vlc/Manifest | 1 - |
14 |
media-video/vlc/vlc-3.0.2-r1.ebuild | 497 ------------------------------------ |
15 |
2 files changed, 498 deletions(-) |
16 |
|
17 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
18 |
index 86b22b14ecb..82d849bd006 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.2.tar.xz 25175492 BLAKE2B c0f2bebd9df491ff511f6bbdf27dc21b5676c5fbcb992a2d8e231ad7c1d276c4e50e39784e4fc1445af44ecf8a1a23f7fbc4e1cef200b2365b25eeb604fd5e8c SHA512 907a999dfa00fbc378e46689b2c32a09ea324b47a92b2183f2a1ade2c2c1ec205517580000a3c615d17b15d6885ee0ac51894944b90077968cb30ff58745497f |
24 |
DIST vlc-3.0.3.tar.xz 24941592 BLAKE2B dd6e27b10064ecae1c6f64459d2ed172d09f8dc1414c4d96bf66e8b3104154154229bb5d638955c855b6cf471b8630196b170db94b61506c7e0dd42bec8fbb20 SHA512 1569cefa6623b2631a832679bc9a63ebeba222901e5221d254e896a68d2ee467054da8de9eda566924e80a11bb29a673a9f0c4243793845547d8027b58a238ab |
25 |
|
26 |
diff --git a/media-video/vlc/vlc-3.0.2-r1.ebuild b/media-video/vlc/vlc-3.0.2-r1.ebuild |
27 |
deleted file mode 100644 |
28 |
index 27977bca29e..00000000000 |
29 |
--- a/media-video/vlc/vlc-3.0.2-r1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,497 +0,0 @@ |
32 |
-# Copyright 1999-2018 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=6 |
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 |
- SCM="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 ~x86-fbsd" |
54 |
-fi |
55 |
-inherit autotools flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils ${SCM} |
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 bidi bluray cddb chromaprint chromecast dbus dc1394 |
64 |
- debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth fontconfig |
65 |
- +gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate libass libav libcaca |
66 |
- libnotify +libsamplerate libtar libtiger linsys lirc live lua macosx-notifications |
67 |
- macosx-qtkit matroska microdns modplug mp3 mpeg mtp musepack ncurses neon nfs ogg |
68 |
- omxil opencv optimisememory opus png postproc projectm pulseaudio +qt5 rdp rtsp |
69 |
- run-as-root samba schroedinger sdl-image sftp shout sid skins soxr speex srt ssl svg |
70 |
- taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vorbis vpx |
71 |
- wayland wma-fixed +X x264 x265 xml zeroconf zvbi 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 |
-RDEPEND=" |
87 |
- net-dns/libidn:= |
88 |
- sys-libs/zlib:0[minizip] |
89 |
- virtual/libintl:0 |
90 |
- virtual/opengl |
91 |
- a52? ( media-libs/a52dec:0 ) |
92 |
- alsa? ( media-libs/alsa-lib:0 ) |
93 |
- aom? ( media-libs/libaom:= ) |
94 |
- archive? ( app-arch/libarchive:= ) |
95 |
- bidi? ( |
96 |
- dev-libs/fribidi:0 |
97 |
- media-libs/freetype:2[harfbuzz] |
98 |
- media-libs/harfbuzz |
99 |
- virtual/ttf-fonts:0 |
100 |
- ) |
101 |
- bluray? ( media-libs/libbluray:0= ) |
102 |
- cddb? ( media-libs/libcddb:0 ) |
103 |
- chromaprint? ( media-libs/chromaprint:0= ) |
104 |
- chromecast? ( >=dev-libs/protobuf-2.5.0:= ) |
105 |
- dbus? ( sys-apps/dbus:0 ) |
106 |
- dc1394? ( |
107 |
- media-libs/libdc1394:2 |
108 |
- sys-libs/libraw1394:0 |
109 |
- ) |
110 |
- dts? ( media-libs/libdca:0 ) |
111 |
- dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:0= ) |
112 |
- dvd? ( |
113 |
- >=media-libs/libdvdnav-4.9:0 |
114 |
- >=media-libs/libdvdread-4.9:0 |
115 |
- ) |
116 |
- faad? ( media-libs/faad2:0 ) |
117 |
- fdk? ( media-libs/fdk-aac:0= ) |
118 |
- ffmpeg? ( |
119 |
- !libav? ( >=media-video/ffmpeg-3.1.3:0=[vaapi?,vdpau?] ) |
120 |
- libav? ( >=media-video/libav-11.8:0=[vaapi?,vdpau?] ) |
121 |
- ) |
122 |
- flac? ( |
123 |
- media-libs/flac:0 |
124 |
- media-libs/libogg:0 |
125 |
- ) |
126 |
- fluidsynth? ( media-sound/fluidsynth:0 ) |
127 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
128 |
- gcrypt? ( |
129 |
- dev-libs/libgcrypt:0= |
130 |
- dev-libs/libgpg-error:0 |
131 |
- ) |
132 |
- gme? ( media-libs/game-music-emu:0 ) |
133 |
- gnome-keyring? ( app-crypt/libsecret ) |
134 |
- gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
135 |
- ieee1394? ( |
136 |
- sys-libs/libavc1394:0 |
137 |
- sys-libs/libraw1394:0 |
138 |
- ) |
139 |
- jack? ( virtual/jack ) |
140 |
- jpeg? ( virtual/jpeg:0 ) |
141 |
- kate? ( media-libs/libkate:0 ) |
142 |
- libass? ( |
143 |
- media-libs/fontconfig:1.0 |
144 |
- media-libs/libass:0= |
145 |
- ) |
146 |
- libcaca? ( media-libs/libcaca:0 ) |
147 |
- libnotify? ( |
148 |
- dev-libs/glib:2 |
149 |
- x11-libs/gdk-pixbuf:2 |
150 |
- x11-libs/gtk+:3 |
151 |
- x11-libs/libnotify:0 |
152 |
- ) |
153 |
- libsamplerate? ( media-libs/libsamplerate:0 ) |
154 |
- libtar? ( dev-libs/libtar:0 ) |
155 |
- libtiger? ( media-libs/libtiger:0 ) |
156 |
- linsys? ( media-libs/zvbi ) |
157 |
- lirc? ( app-misc/lirc:0 ) |
158 |
- live? ( media-plugins/live:0 ) |
159 |
- lua? ( >=dev-lang/lua-5.1:0 ) |
160 |
- matroska? ( |
161 |
- dev-libs/libebml:0= |
162 |
- media-libs/libmatroska:0= |
163 |
- ) |
164 |
- microdns? ( >=net-libs/libmicrodns-0.0.9:= ) |
165 |
- modplug? ( media-libs/libmodplug:0 ) |
166 |
- mp3? ( media-libs/libmad:0 ) |
167 |
- mpeg? ( media-libs/libmpeg2:0 ) |
168 |
- mtp? ( media-libs/libmtp:0= ) |
169 |
- musepack? ( media-sound/musepack-tools:0 ) |
170 |
- ncurses? ( sys-libs/ncurses:0=[unicode] ) |
171 |
- nfs? ( >=net-fs/libnfs-0.10.0:= ) |
172 |
- ogg? ( media-libs/libogg:0 ) |
173 |
- opencv? ( media-libs/opencv:0= ) |
174 |
- opus? ( >=media-libs/opus-1.0.3:0 ) |
175 |
- png? ( media-libs/libpng:0= ) |
176 |
- postproc? ( libav? ( media-libs/libpostproc:0= ) ) |
177 |
- projectm? ( |
178 |
- media-fonts/dejavu:0 |
179 |
- media-libs/libprojectm:0 |
180 |
- ) |
181 |
- pulseaudio? ( media-sound/pulseaudio:0 ) |
182 |
- qt5? ( |
183 |
- dev-qt/qtcore:5 |
184 |
- dev-qt/qtgui:5 |
185 |
- dev-qt/qtsvg:5 |
186 |
- dev-qt/qtwidgets:5 |
187 |
- X? ( |
188 |
- dev-qt/qtx11extras:5 |
189 |
- x11-libs/libX11 |
190 |
- ) |
191 |
- ) |
192 |
- rdp? ( >=net-misc/freerdp-2.0.0_rc0:0=[client] ) |
193 |
- samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] ) |
194 |
- schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) |
195 |
- sdl-image? ( media-libs/sdl-image:0 ) |
196 |
- sftp? ( net-libs/libssh2:0 ) |
197 |
- shout? ( media-libs/libshout:0 ) |
198 |
- sid? ( media-libs/libsidplay:2 ) |
199 |
- skins? ( |
200 |
- x11-libs/libXext:0 |
201 |
- x11-libs/libXinerama:0 |
202 |
- x11-libs/libXpm:0 |
203 |
- ) |
204 |
- soxr? ( media-libs/soxr ) |
205 |
- speex? ( |
206 |
- >=media-libs/speex-1.2.0:0 |
207 |
- media-libs/speexdsp:0 |
208 |
- ) |
209 |
- srt? ( net-libs/srt ) |
210 |
- ssl? ( net-libs/gnutls:0 ) |
211 |
- svg? ( |
212 |
- gnome-base/librsvg:2 |
213 |
- x11-libs/cairo:0 |
214 |
- ) |
215 |
- taglib? ( >=media-libs/taglib-1.9:0 ) |
216 |
- theora? ( media-libs/libtheora:0 ) |
217 |
- tremor? ( media-libs/tremor:0 ) |
218 |
- truetype? ( |
219 |
- media-libs/freetype:2 |
220 |
- virtual/ttf-fonts:0 |
221 |
- !fontconfig? ( media-fonts/dejavu:0 ) |
222 |
- ) |
223 |
- twolame? ( media-sound/twolame:0 ) |
224 |
- udev? ( virtual/udev:0 ) |
225 |
- upnp? ( net-libs/libupnp:= ) |
226 |
- v4l? ( media-libs/libv4l:0 ) |
227 |
- vaapi? ( x11-libs/libva:0=[drm,wayland?,X?] ) |
228 |
- vdpau? ( x11-libs/libvdpau:0 ) |
229 |
- vnc? ( net-libs/libvncserver:0 ) |
230 |
- vorbis? ( media-libs/libvorbis:0 ) |
231 |
- vpx? ( media-libs/libvpx:0= ) |
232 |
- wayland? ( |
233 |
- dev-libs/wayland |
234 |
- dev-libs/wayland-protocols |
235 |
- ) |
236 |
- X? ( |
237 |
- x11-libs/libX11 |
238 |
- x11-libs/libxcb |
239 |
- x11-libs/xcb-util |
240 |
- x11-libs/xcb-util-keysyms |
241 |
- ) |
242 |
- x264? ( media-libs/x264:0= ) |
243 |
- x265? ( media-libs/x265:0= ) |
244 |
- xml? ( dev-libs/libxml2:2 ) |
245 |
- zeroconf? ( net-dns/avahi:0[dbus] ) |
246 |
- zvbi? ( media-libs/zvbi ) |
247 |
-" |
248 |
-DEPEND="${RDEPEND} |
249 |
- >=sys-devel/gettext-0.19.8:* |
250 |
- virtual/pkgconfig:* |
251 |
- amd64? ( dev-lang/yasm:* ) |
252 |
- x86? ( dev-lang/yasm:* ) |
253 |
- X? ( x11-base/xorg-proto ) |
254 |
-" |
255 |
- |
256 |
-PATCHES=( |
257 |
- "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system |
258 |
- "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch # bug #593460 |
259 |
- "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164 |
260 |
- "${FILESDIR}"/${PN}-3.0.1-qt-5.11.patch # TODO upstream |
261 |
-) |
262 |
- |
263 |
-DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt ) |
264 |
- |
265 |
-S="${WORKDIR}/${MY_P}" |
266 |
- |
267 |
-pkg_pretend() { |
268 |
- # https://bugs.gentoo.org/647668 |
269 |
- if use chromecast && ! use microdns; then |
270 |
- einfo "USE=microdns is required for Chromecast autodetection support" |
271 |
- fi |
272 |
-} |
273 |
- |
274 |
-src_prepare() { |
275 |
- default |
276 |
- |
277 |
- has_version '>=net-libs/libupnp-1.8.0' && \ |
278 |
- eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch |
279 |
- |
280 |
- # Bootstrap when we are on a git checkout. |
281 |
- if [[ ${PV} = *9999 ]] ; then |
282 |
- ./bootstrap |
283 |
- fi |
284 |
- |
285 |
- # Make it build with libtool 1.5 |
286 |
- rm m4/lt* m4/libtool.m4 || die |
287 |
- |
288 |
- # We are not in a real git checkout due to the absence of a .git directory. |
289 |
- touch src/revision.txt || die |
290 |
- |
291 |
- # Don't use --started-from-file when not using dbus. |
292 |
- if ! use dbus ; then |
293 |
- sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
294 |
- fi |
295 |
- |
296 |
- # Disable running of vlc-cache-gen, we do that in pkg_postinst |
297 |
- sed -e "/test.*build.*host/s/\$(host)/nothanks/" \ |
298 |
- -i Makefile.am -i bin/Makefile.am || die "Failed to disable vlc-cache-gen" |
299 |
- |
300 |
- eautoreconf |
301 |
- |
302 |
- # Disable automatic running of tests. |
303 |
- find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
304 |
-} |
305 |
- |
306 |
-src_configure() { |
307 |
- local myeconfargs=( |
308 |
- --disable-aa |
309 |
- --disable-dependency-tracking |
310 |
- --disable-optimizations |
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 bidi fribidi) |
322 |
- $(use_enable bidi harfbuzz) |
323 |
- $(use_enable bluray) |
324 |
- $(use_enable cddb libcddb) |
325 |
- $(use_enable chromaprint) |
326 |
- $(use_enable chromecast) |
327 |
- $(use_enable cpu_flags_x86_mmx mmx) |
328 |
- $(use_enable cpu_flags_x86_sse sse) |
329 |
- $(use_enable dbus) |
330 |
- $(use_enable dbus kwallet) |
331 |
- $(use_enable dc1394) |
332 |
- $(use_enable debug) |
333 |
- $(use_enable directx) |
334 |
- $(use_enable directx d3d11va) |
335 |
- $(use_enable directx dxva2) |
336 |
- $(use_enable dts dca) |
337 |
- $(use_enable dvbpsi) |
338 |
- $(use_enable dvd dvdnav) |
339 |
- $(use_enable dvd dvdread) |
340 |
- $(use_enable encode sout) |
341 |
- $(use_enable encode vlm) |
342 |
- $(use_enable faad) |
343 |
- $(use_enable fdk fdkaac) |
344 |
- $(use_enable ffmpeg avcodec) |
345 |
- $(use_enable ffmpeg avformat) |
346 |
- $(use_enable ffmpeg swscale) |
347 |
- $(use_enable flac) |
348 |
- $(use_enable fluidsynth) |
349 |
- $(use_enable fontconfig) |
350 |
- $(use_enable gcrypt libgcrypt) |
351 |
- $(use_enable gme) |
352 |
- $(use_enable gnome-keyring secret) |
353 |
- $(use_enable gstreamer gst-decode) |
354 |
- $(use_enable ieee1394 dv1394) |
355 |
- $(use_enable jack) |
356 |
- $(use_enable jpeg) |
357 |
- $(use_enable kate) |
358 |
- $(use_enable libass) |
359 |
- $(use_enable libcaca caca) |
360 |
- $(use_enable libnotify notify) |
361 |
- $(use_enable libsamplerate samplerate) |
362 |
- $(use_enable libtar) |
363 |
- $(use_enable libtiger tiger) |
364 |
- $(use_enable linsys) |
365 |
- $(use_enable lirc) |
366 |
- $(use_enable live live555) |
367 |
- $(use_enable lua) |
368 |
- $(use_enable macosx-notifications osx-notifications) |
369 |
- $(use_enable macosx-qtkit) |
370 |
- $(use_enable matroska) |
371 |
- $(use_enable microdns) |
372 |
- $(use_enable modplug mod) |
373 |
- $(use_enable mp3 mad) |
374 |
- $(use_enable mpeg libmpeg2) |
375 |
- $(use_enable mtp) |
376 |
- $(use_enable musepack mpc) |
377 |
- $(use_enable ncurses) |
378 |
- $(use_enable neon) |
379 |
- $(use_enable ogg) |
380 |
- $(use_enable omxil) |
381 |
- $(use_enable omxil omxil-vout) |
382 |
- $(use_enable opencv) |
383 |
- $(use_enable optimisememory optimize-memory) |
384 |
- $(use_enable opus) |
385 |
- $(use_enable png) |
386 |
- $(use_enable postproc) |
387 |
- $(use_enable projectm) |
388 |
- $(use_enable pulseaudio pulse) |
389 |
- $(use_enable qt5 qt) |
390 |
- $(use_enable rdp freerdp) |
391 |
- $(use_enable rtsp realrtsp) |
392 |
- $(use_enable run-as-root) |
393 |
- $(use_enable samba smbclient) |
394 |
- $(use_enable schroedinger) |
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_enable wma-fixed) |
420 |
- $(use_with X x) |
421 |
- $(use_enable X xcb) |
422 |
- $(use_enable X xvideo) |
423 |
- $(use_enable x264) |
424 |
- $(use_enable x265) |
425 |
- $(use_enable xml libxml2) |
426 |
- $(use_enable zeroconf avahi) |
427 |
- $(use_enable zvbi) |
428 |
- $(use_enable !zvbi telx) |
429 |
- --disable-asdcp |
430 |
- --disable-coverage |
431 |
- --disable-cprof |
432 |
- --disable-crystalhd |
433 |
- --disable-decklink |
434 |
- --disable-gles2 |
435 |
- --disable-goom |
436 |
- --disable-kai |
437 |
- --disable-kva |
438 |
- --disable-libplacebo |
439 |
- --disable-maintainer-mode |
440 |
- --disable-merge-ffmpeg |
441 |
- --disable-mfx |
442 |
- --disable-mmal |
443 |
- --disable-opensles |
444 |
- --disable-oss |
445 |
- --disable-rpi-omxil |
446 |
- --disable-shine |
447 |
- --disable-sndio |
448 |
- --disable-spatialaudio |
449 |
- --disable-vsxu |
450 |
- --disable-wasapi |
451 |
- ) |
452 |
- # ^ We don't have these disabled libraries in the Portage tree yet. |
453 |
- |
454 |
- # Compatibility fix for Samba 4. |
455 |
- use samba && append-cppflags "-I/usr/include/samba-4.0" |
456 |
- |
457 |
- if use x86; then |
458 |
- # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
459 |
- append-cflags $(test-flags-CC -fno-stack-check) |
460 |
- # Bug 569774 |
461 |
- replace-flags -Os -O2 |
462 |
- fi |
463 |
- |
464 |
- # VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8 |
465 |
- append-cxxflags -std=c++11 |
466 |
- |
467 |
- # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
468 |
- append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
469 |
- |
470 |
- xdg_environment_reset # bug 608256 |
471 |
- |
472 |
- if use truetype || use bidi; then |
473 |
- myeconfargs+=( --enable-freetype ) |
474 |
- else |
475 |
- myeconfargs+=( --disable-freetype ) |
476 |
- fi |
477 |
- |
478 |
- if use truetype || use projectm; then |
479 |
- local dejavu="/usr/share/fonts/dejavu/" |
480 |
- myeconfargs+=( |
481 |
- --with-default-font=${dejavu}/DejaVuSans.ttf |
482 |
- --with-default-font-family=Sans |
483 |
- --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
484 |
- --with-default-monospace-font-family=Monospace |
485 |
- ) |
486 |
- fi |
487 |
- |
488 |
- econf ${myeconfargs[@]} |
489 |
- |
490 |
- # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
491 |
- # Other values may break the build (bug 523144), so definition should not be removed. |
492 |
- # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h |
493 |
- sed -i '1i#undef _FORTIFY_SOURCE' config.h || die |
494 |
-} |
495 |
- |
496 |
-src_test() { |
497 |
- virtx emake check-TESTS |
498 |
-} |
499 |
- |
500 |
-src_install() { |
501 |
- default |
502 |
- find "${D}" -name '*.la' -delete || die |
503 |
-} |
504 |
- |
505 |
-pkg_postinst() { |
506 |
- if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
507 |
- einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
508 |
- "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" |
509 |
- else |
510 |
- ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
511 |
- ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
512 |
- ewarn "If you do not do it, vlc will take a long time to load." |
513 |
- fi |
514 |
- |
515 |
- gnome2_icon_cache_update |
516 |
- xdg_mimeinfo_database_update |
517 |
- xdg_desktop_database_update |
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 |
- gnome2_icon_cache_update |
526 |
- xdg_mimeinfo_database_update |
527 |
- xdg_desktop_database_update |
528 |
-} |