1 |
commit: d34ccab3608f4bdcf61c981ea068c4b2fd76ab1f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 9 12:22:07 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 9 13:52:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d34ccab3 |
7 |
|
8 |
media-video/vlc: 2.2.8 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.17, Repoman-2.3.6 |
11 |
|
12 |
media-video/vlc/Manifest | 1 + |
13 |
media-video/vlc/vlc-2.2.8.ebuild | 472 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 473 insertions(+) |
15 |
|
16 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
17 |
index 13410442626..de4c1aabd8c 100644 |
18 |
--- a/media-video/vlc/Manifest |
19 |
+++ b/media-video/vlc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST vlc-2.2.6.tar.xz 22198720 BLAKE2B a3d5d75551908a92c894ca18b36fd165ea0d6a99d1729c311f2051dfe1dd5eb7bf5045b08652e7a1d335212416a3e2d077f37157c7ae4773a5ecc2c49e39f5a6 SHA512 9aff5922eb8b3c6a24e6153c367b0170dbc67602ae3e9304f52d2da00c9081d66cc98abd722b7c95b6c7d2e6cc7c86f21f9cba42c7d4bf29ca97d0f2d3553f8d |
22 |
+DIST vlc-2.2.8.tar.xz 22137276 BLAKE2B 10780f79a5c45c44b8fb76f229512da3932883da4a1b292745cabc8544ed251a080813ef233c9438766f3e635bee40ef64b929f3d43e0d457907093be1edd2f9 SHA512 adde16f4b4bd2d94f104bb3b99995df6bf4603bc67333c7615cb8d1d31ca63440b6b0aa93de9ccf0dba717cf905577c7d0bca7baba63caf401790b82eac3e04a |
23 |
|
24 |
diff --git a/media-video/vlc/vlc-2.2.8.ebuild b/media-video/vlc/vlc-2.2.8.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..d9e786bf1f5 |
27 |
--- /dev/null |
28 |
+++ b/media-video/vlc/vlc-2.2.8.ebuild |
29 |
@@ -0,0 +1,472 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+MY_PV="${PV/_/-}" |
36 |
+MY_PV="${MY_PV/-beta/-test}" |
37 |
+MY_P="${PN}-${MY_PV}" |
38 |
+if [[ ${PV} = *9999 ]] ; then |
39 |
+ if [[ ${PV%.9999} != ${PV} ]] ; then |
40 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc/vlc-${PV%.9999}.git" |
41 |
+ else |
42 |
+ EGIT_REPO_URI="https://git.videolan.org/git/vlc.git" |
43 |
+ fi |
44 |
+ SCM="git-r3" |
45 |
+else |
46 |
+ if [[ ${MY_P} = ${P} ]] ; then |
47 |
+ SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
48 |
+ else |
49 |
+ SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
50 |
+ fi |
51 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
52 |
+fi |
53 |
+inherit autotools flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils ${SCM} |
54 |
+ |
55 |
+DESCRIPTION="VLC media player - Video player and streamer" |
56 |
+HOMEPAGE="https://www.videolan.org/vlc/" |
57 |
+ |
58 |
+LICENSE="LGPL-2.1 GPL-2" |
59 |
+SLOT="0/5-8" # vlc - vlccore |
60 |
+ |
61 |
+IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec +avformat bidi bluray cdda |
62 |
+ cddb chromaprint dbus dc1394 debug directfb directx dts dvb +dvbpsi dvd dxva2 |
63 |
+ elibc_glibc +encode faad fdk fluidsynth +ffmpeg flac fontconfig +gcrypt gme |
64 |
+ gnome gnutls growl gstreamer httpd ieee1394 jack jpeg kate libass libav |
65 |
+ libcaca libnotify +libsamplerate libtiger linsys libtar lirc live lua |
66 |
+ macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit |
67 |
+ matroska cpu_flags_x86_mmx modplug mp3 mpeg mtp musepack ncurses neon ogg |
68 |
+ omxil opencv opengl optimisememory opus png postproc projectm pulseaudio |
69 |
+ qt4 +qt5 rdp rtsp run-as-root samba schroedinger sdl sdl-image sftp shout |
70 |
+ sid skins speex cpu_flags_x86_sse svg +swscale taglib theora tremor truetype |
71 |
+ twolame udev upnp vaapi v4l vcdx vdpau vlm vnc vorbis vpx wma-fixed +X |
72 |
+ x264 x265 +xcb xml xv zeroconf zvbi |
73 |
+" |
74 |
+REQUIRED_USE=" |
75 |
+ aalib? ( X ) |
76 |
+ bidi? ( truetype ) |
77 |
+ cddb? ( cdda ) |
78 |
+ dvb? ( dvbpsi ) |
79 |
+ dxva2? ( avcodec ) |
80 |
+ ffmpeg? ( avcodec avformat swscale ) |
81 |
+ fontconfig? ( truetype ) |
82 |
+ gnutls? ( gcrypt ) |
83 |
+ httpd? ( lua ) |
84 |
+ libcaca? ( X ) |
85 |
+ libtar? ( skins ) |
86 |
+ libtiger? ( kate ) |
87 |
+ qt4? ( X ) |
88 |
+ qt5? ( X ) |
89 |
+ sdl? ( X ) |
90 |
+ skins? ( truetype X xml || ( qt4 qt5 ) ) |
91 |
+ vaapi? ( avcodec X ) |
92 |
+ vdpau? ( X ) |
93 |
+ vlm? ( encode ) |
94 |
+ xv? ( xcb ) |
95 |
+" |
96 |
+RDEPEND=" |
97 |
+ dev-libs/libgpg-error:0 |
98 |
+ net-dns/libidn:0 |
99 |
+ sys-libs/zlib:0[minizip] |
100 |
+ virtual/libintl:0 |
101 |
+ a52? ( >=media-libs/a52dec-0.7.4-r3:0 ) |
102 |
+ aalib? ( media-libs/aalib:0 ) |
103 |
+ alsa? ( >=media-libs/alsa-lib-1.0.24:0 ) |
104 |
+ avcodec? ( |
105 |
+ !libav? ( media-video/ffmpeg:0= ) |
106 |
+ libav? ( media-video/libav:0= ) |
107 |
+ ) |
108 |
+ avformat? ( |
109 |
+ !libav? ( media-video/ffmpeg:0= ) |
110 |
+ libav? ( media-video/libav:0= ) |
111 |
+ ) |
112 |
+ bidi? ( dev-libs/fribidi:0 ) |
113 |
+ bluray? ( >=media-libs/libbluray-0.3:0= ) |
114 |
+ cddb? ( >=media-libs/libcddb-1.2:0 ) |
115 |
+ chromaprint? ( >=media-libs/chromaprint-0.6:0 ) |
116 |
+ dbus? ( >=sys-apps/dbus-1.6:0 ) |
117 |
+ dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.1:2 ) |
118 |
+ directfb? ( dev-libs/DirectFB:0 ) |
119 |
+ dts? ( >=media-libs/libdca-0.0.5:0 ) |
120 |
+ dvbpsi? ( >=media-libs/libdvbpsi-1.0.0:0= ) |
121 |
+ dvd? ( >=media-libs/libdvdread-4.9:0 >=media-libs/libdvdnav-4.9:0 ) |
122 |
+ elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 ) |
123 |
+ faad? ( >=media-libs/faad2-2.6.1:0 ) |
124 |
+ fdk? ( media-libs/fdk-aac:0 ) |
125 |
+ flac? ( >=media-libs/libogg-1:0 >=media-libs/flac-1.1.2:0 ) |
126 |
+ fluidsynth? ( >=media-sound/fluidsynth-1.1.2:0 ) |
127 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
128 |
+ gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0= ) |
129 |
+ gme? ( media-libs/game-music-emu:0 ) |
130 |
+ gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 ) |
131 |
+ gnutls? ( >=net-libs/gnutls-3.0.20:0 ) |
132 |
+ gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
133 |
+ ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 ) |
134 |
+ jack? ( virtual/jack ) |
135 |
+ jpeg? ( virtual/jpeg:0 ) |
136 |
+ kate? ( >=media-libs/libkate-0.3:0 ) |
137 |
+ libass? ( >=media-libs/libass-0.9.8:0= media-libs/fontconfig:1.0 ) |
138 |
+ libcaca? ( >=media-libs/libcaca-0.99_beta14:0 ) |
139 |
+ libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 ) |
140 |
+ libsamplerate? ( media-libs/libsamplerate:0 ) |
141 |
+ libtar? ( >=dev-libs/libtar-1.2.11-r3:0 ) |
142 |
+ libtiger? ( >=media-libs/libtiger-0.3.1:0 ) |
143 |
+ linsys? ( >=media-libs/zvbi-0.2.28:0 ) |
144 |
+ lirc? ( app-misc/lirc:0 ) |
145 |
+ live? ( >=media-plugins/live-2011.12.23:0 ) |
146 |
+ lua? ( >=dev-lang/lua-5.1:0 ) |
147 |
+ matroska? ( >=dev-libs/libebml-1:0= >=media-libs/libmatroska-1:0= ) |
148 |
+ modplug? ( >=media-libs/libmodplug-0.8.4:0 !~media-libs/libmodplug-0.8.8 ) |
149 |
+ mp3? ( media-libs/libmad:0 ) |
150 |
+ mpeg? ( >=media-libs/libmpeg2-0.3.2:0 ) |
151 |
+ mtp? ( >=media-libs/libmtp-1:0 ) |
152 |
+ musepack? ( >=media-sound/musepack-tools-444:0 ) |
153 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
154 |
+ ogg? ( >=media-libs/libogg-1:0 ) |
155 |
+ opencv? ( >media-libs/opencv-2:0= ) |
156 |
+ opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 ) |
157 |
+ opus? ( >=media-libs/opus-1.0.3:0 ) |
158 |
+ png? ( media-libs/libpng:0= ) |
159 |
+ postproc? ( |
160 |
+ !libav? ( >=media-video/ffmpeg-2.2:0= ) |
161 |
+ libav? ( media-libs/libpostproc:0= ) |
162 |
+ ) |
163 |
+ projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 ) |
164 |
+ pulseaudio? ( >=media-sound/pulseaudio-1:0 ) |
165 |
+ !qt5? ( qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) ) |
166 |
+ qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 ) |
167 |
+ rdp? ( =net-misc/freerdp-1*:0=[client] ) |
168 |
+ samba? ( >=net-fs/samba-4.0.0_alpha1:0[client] ) |
169 |
+ schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) |
170 |
+ sdl? ( >=media-libs/libsdl-1.2.10:0 |
171 |
+ sdl-image? ( >=media-libs/sdl-image-1.2.10:0 ) ) |
172 |
+ sftp? ( net-libs/libssh2:0 ) |
173 |
+ shout? ( >=media-libs/libshout-2.1:0 ) |
174 |
+ sid? ( media-libs/libsidplay:2 ) |
175 |
+ skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 ) |
176 |
+ speex? ( >=media-libs/speex-1.2.0:0 media-libs/speexdsp:0 ) |
177 |
+ svg? ( >=gnome-base/librsvg-2.9:2 >=x11-libs/cairo-1.13.1:0 ) |
178 |
+ swscale? ( |
179 |
+ !libav? ( media-video/ffmpeg:0= ) |
180 |
+ libav? ( media-video/libav:0= ) |
181 |
+ ) |
182 |
+ taglib? ( >=media-libs/taglib-1.9:0 ) |
183 |
+ theora? ( >=media-libs/libtheora-1.0_beta3:0 ) |
184 |
+ tremor? ( media-libs/tremor:0 ) |
185 |
+ truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0 |
186 |
+ !fontconfig? ( media-fonts/dejavu:0 ) ) |
187 |
+ twolame? ( media-sound/twolame:0 ) |
188 |
+ udev? ( >=virtual/udev-142:0 ) |
189 |
+ upnp? ( net-libs/libupnp:= ) |
190 |
+ v4l? ( media-libs/libv4l:0 ) |
191 |
+ vaapi? ( |
192 |
+ x11-libs/libva:0[X,drm] |
193 |
+ !libav? ( media-video/ffmpeg:0=[vaapi] ) |
194 |
+ libav? ( media-video/libav:0=[vaapi] ) |
195 |
+ ) |
196 |
+ vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 ) |
197 |
+ vdpau? ( |
198 |
+ x11-libs/libvdpau:0 |
199 |
+ !libav? ( media-video/ffmpeg:0= ) |
200 |
+ libav? ( >=media-video/libav-10:0= ) |
201 |
+ ) |
202 |
+ vnc? ( >=net-libs/libvncserver-0.9.9:0 ) |
203 |
+ vorbis? ( media-libs/libvorbis:0 ) |
204 |
+ vpx? ( media-libs/libvpx:0= ) |
205 |
+ X? ( x11-libs/libX11:0 ) |
206 |
+ x264? ( media-libs/x264:0= ) |
207 |
+ x265? ( media-libs/x265:0= ) |
208 |
+ xcb? ( x11-libs/libxcb:0 x11-libs/xcb-util:0 x11-libs/xcb-util-keysyms:0 ) |
209 |
+ xml? ( dev-libs/libxml2:2 ) |
210 |
+ zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
211 |
+ zvbi? ( media-libs/zvbi:0 ) |
212 |
+" |
213 |
+DEPEND="${RDEPEND} |
214 |
+ app-arch/xz-utils:0 |
215 |
+ >=sys-devel/gettext-0.18.3:* |
216 |
+ virtual/pkgconfig:* |
217 |
+ amd64? ( dev-lang/yasm:* ) |
218 |
+ x86? ( dev-lang/yasm:* ) |
219 |
+ xcb? ( x11-proto/xproto:0 ) |
220 |
+" |
221 |
+ |
222 |
+PATCHES=( |
223 |
+ # Fix build system mistake. |
224 |
+ "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch |
225 |
+ |
226 |
+ # Bug #541678 |
227 |
+ "${FILESDIR}"/qt4-select.patch |
228 |
+ |
229 |
+ # Allow QT5.5 since Gentoo has a patched QTwidgets |
230 |
+ "${FILESDIR}"/${PN}-2.2.2-qt5widgets.patch |
231 |
+ |
232 |
+ # Bug #575072 |
233 |
+ "${FILESDIR}"/${PN}-2.2.4-relax_ffmpeg.patch |
234 |
+ "${FILESDIR}"/${PN}-2.2.4-ffmpeg3.patch |
235 |
+ |
236 |
+ # Bug #589396 |
237 |
+ "${FILESDIR}"/${PN}-2.2.4-cxx0x.patch |
238 |
+ |
239 |
+ # Bug #594126, #629294 |
240 |
+ "${FILESDIR}"/${PN}-2.2.6-decoder-lock-scope.patch |
241 |
+ "${FILESDIR}"/${PN}-2.2.4-alsa-large-buffers.patch |
242 |
+ |
243 |
+ # Bug #593460 |
244 |
+ "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch |
245 |
+ |
246 |
+ "${FILESDIR}"/${P}-libupnp-compat.patch |
247 |
+) |
248 |
+ |
249 |
+DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt ) |
250 |
+ |
251 |
+S="${WORKDIR}/${MY_P}" |
252 |
+ |
253 |
+src_prepare() { |
254 |
+ default |
255 |
+ |
256 |
+ has_version '>=net-libs/libupnp-1.8.0' && eapply "${FILESDIR}"/${P}-libupnp-slot-1.8.patch |
257 |
+ |
258 |
+ # Bootstrap when we are on a git checkout. |
259 |
+ if [[ ${PV} = *9999 ]] ; then |
260 |
+ ./bootstrap |
261 |
+ fi |
262 |
+ |
263 |
+ # Make it build with libtool 1.5 |
264 |
+ rm -f m4/lt* m4/libtool.m4 || die |
265 |
+ |
266 |
+ # We are not in a real git checkout due to the absence of a .git directory. |
267 |
+ touch src/revision.txt || die |
268 |
+ |
269 |
+ # Don't use --started-from-file when not using dbus. |
270 |
+ if ! use dbus ; then |
271 |
+ sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
272 |
+ fi |
273 |
+ |
274 |
+ eautoreconf |
275 |
+ |
276 |
+ # Disable automatic running of tests. |
277 |
+ find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
278 |
+ |
279 |
+ # If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt |
280 |
+ # version may be used. Setting QT_SELECT environment variable will enforce correct binaries. |
281 |
+ if use qt5; then |
282 |
+ export QT_SELECT=qt5 |
283 |
+ elif use qt4; then |
284 |
+ export QT_SELECT=qt4 |
285 |
+ fi |
286 |
+} |
287 |
+ |
288 |
+src_configure() { |
289 |
+ local myconf |
290 |
+ |
291 |
+ # Compatibility fix for Samba 4. |
292 |
+ use samba && append-cppflags "-I/usr/include/samba-4.0" |
293 |
+ |
294 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996 |
295 |
+ use x86 && append-cflags $(test-flags-CC -fno-stack-check) |
296 |
+ |
297 |
+ # FIXME: Needs libresid-builder from libsidplay:2 which is in another directory... |
298 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
299 |
+ |
300 |
+ if use truetype || use projectm ; then |
301 |
+ local dejavu="/usr/share/fonts/dejavu/" |
302 |
+ myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \ |
303 |
+ --with-default-font-family=Sans \ |
304 |
+ --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
305 |
+ --with-default-monospace-font-family=Monospace" |
306 |
+ fi |
307 |
+ |
308 |
+ if use qt5 ; then |
309 |
+ myconf+=" --enable-qt=5" |
310 |
+ else |
311 |
+ if use qt4 ; then |
312 |
+ myconf+=" --enable-qt=4" |
313 |
+ else |
314 |
+ myconf+=" --disable-qt" |
315 |
+ fi |
316 |
+ fi |
317 |
+ |
318 |
+ econf \ |
319 |
+ ${myconf} \ |
320 |
+ --enable-vlc \ |
321 |
+ --docdir=/usr/share/doc/${PF} \ |
322 |
+ --disable-dependency-tracking \ |
323 |
+ --disable-optimizations \ |
324 |
+ --disable-update-check \ |
325 |
+ --enable-fast-install \ |
326 |
+ --enable-screen \ |
327 |
+ $(use_enable a52) \ |
328 |
+ $(use_enable aalib aa) \ |
329 |
+ $(use_enable alsa) \ |
330 |
+ $(use_enable altivec) \ |
331 |
+ $(use_enable atmo) \ |
332 |
+ $(use_enable audioqueue) \ |
333 |
+ $(use_enable avcodec) \ |
334 |
+ $(use_enable avformat) \ |
335 |
+ $(use_enable bidi fribidi) \ |
336 |
+ $(use_enable bluray) \ |
337 |
+ $(use_enable cdda vcd) \ |
338 |
+ $(use_enable cddb libcddb) \ |
339 |
+ $(use_enable chromaprint) \ |
340 |
+ $(use_enable dbus) \ |
341 |
+ $(use_enable directfb) \ |
342 |
+ $(use_enable directx) \ |
343 |
+ $(use_enable dc1394) \ |
344 |
+ $(use_enable debug) \ |
345 |
+ $(use_enable dts dca) \ |
346 |
+ $(use_enable dvbpsi) \ |
347 |
+ $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ |
348 |
+ $(use_enable dxva2) \ |
349 |
+ $(use_enable encode sout) \ |
350 |
+ $(use_enable faad) \ |
351 |
+ $(use_enable fdk fdkaac) \ |
352 |
+ $(use_enable flac) \ |
353 |
+ $(use_enable fluidsynth) \ |
354 |
+ $(use_enable fontconfig) \ |
355 |
+ $(use_enable gcrypt libgcrypt) \ |
356 |
+ $(use_enable gme) \ |
357 |
+ $(use_enable gnome gnomevfs) \ |
358 |
+ $(use_enable gnutls) \ |
359 |
+ $(use_enable growl) \ |
360 |
+ $(use_enable gstreamer gst-decode) \ |
361 |
+ $(use_enable httpd) \ |
362 |
+ $(use_enable ieee1394 dv1394) \ |
363 |
+ $(use_enable jack) \ |
364 |
+ $(use_enable jpeg) \ |
365 |
+ $(use_enable kate) \ |
366 |
+ $(use_enable libass) \ |
367 |
+ $(use_enable libcaca caca) \ |
368 |
+ $(use_enable libnotify notify) \ |
369 |
+ $(use_enable libsamplerate samplerate) \ |
370 |
+ $(use_enable libtar) \ |
371 |
+ $(use_enable libtiger tiger) \ |
372 |
+ $(use_enable linsys) \ |
373 |
+ $(use_enable lirc) \ |
374 |
+ $(use_enable live live555) \ |
375 |
+ $(use_enable lua) \ |
376 |
+ $(use_enable macosx-dialog-provider) \ |
377 |
+ $(use_enable macosx-eyetv) \ |
378 |
+ $(use_enable macosx-qtkit) \ |
379 |
+ $(use_enable macosx-quartztext) \ |
380 |
+ $(use_enable matroska mkv) \ |
381 |
+ $(use_enable cpu_flags_x86_mmx mmx) \ |
382 |
+ $(use_enable modplug mod) \ |
383 |
+ $(use_enable mp3 mad) \ |
384 |
+ $(use_enable mpeg libmpeg2) \ |
385 |
+ $(use_enable mtp) \ |
386 |
+ $(use_enable musepack mpc) \ |
387 |
+ $(use_enable ncurses) \ |
388 |
+ $(use_enable neon) \ |
389 |
+ $(use_enable ogg) $(use_enable ogg mux_ogg) \ |
390 |
+ $(use_enable omxil) \ |
391 |
+ $(use_enable omxil omxil-vout) \ |
392 |
+ $(use_enable opencv) \ |
393 |
+ $(use_enable opengl glspectrum) \ |
394 |
+ $(use_enable opus) \ |
395 |
+ $(use_enable optimisememory optimize-memory) \ |
396 |
+ $(use_enable png) \ |
397 |
+ $(use_enable postproc) \ |
398 |
+ $(use_enable projectm) \ |
399 |
+ $(use_enable pulseaudio pulse) \ |
400 |
+ $(use_enable rdp freerdp) \ |
401 |
+ $(use_enable rtsp realrtsp) \ |
402 |
+ $(use_enable run-as-root) \ |
403 |
+ $(use_enable samba smbclient) \ |
404 |
+ $(use_enable schroedinger) \ |
405 |
+ $(use_enable sdl) \ |
406 |
+ $(use_enable sdl-image) \ |
407 |
+ $(use_enable sid) \ |
408 |
+ $(use_enable sftp) \ |
409 |
+ $(use_enable shout) \ |
410 |
+ $(use_enable skins skins2) \ |
411 |
+ $(use_enable speex) \ |
412 |
+ $(use_enable cpu_flags_x86_sse sse) \ |
413 |
+ $(use_enable svg) \ |
414 |
+ $(use_enable svg svgdec) \ |
415 |
+ $(use_enable swscale) \ |
416 |
+ $(use_enable taglib) \ |
417 |
+ $(use_enable theora) \ |
418 |
+ $(use_enable tremor) \ |
419 |
+ $(use_enable truetype freetype) \ |
420 |
+ $(use_enable twolame) \ |
421 |
+ $(use_enable udev) \ |
422 |
+ $(use_enable upnp) \ |
423 |
+ $(use_enable v4l v4l2) \ |
424 |
+ $(use_enable vaapi libva) \ |
425 |
+ $(use_enable vcdx) \ |
426 |
+ $(use_enable vdpau) \ |
427 |
+ $(use_enable vlm) \ |
428 |
+ $(use_enable vnc) \ |
429 |
+ $(use_enable vorbis) \ |
430 |
+ $(use_enable vpx) \ |
431 |
+ $(use_enable wma-fixed) \ |
432 |
+ $(use_with X x) \ |
433 |
+ $(use_enable x264) \ |
434 |
+ $(use_enable x265) \ |
435 |
+ $(use_enable xcb) \ |
436 |
+ $(use_enable xml libxml2) \ |
437 |
+ $(use_enable xv xvideo) \ |
438 |
+ $(use_enable zeroconf bonjour) \ |
439 |
+ $(use_enable zvbi) $(use_enable !zvbi telx) \ |
440 |
+ --disable-asdcp \ |
441 |
+ --disable-coverage \ |
442 |
+ --disable-cprof \ |
443 |
+ --disable-crystalhd \ |
444 |
+ --disable-decklink \ |
445 |
+ --disable-gles1 \ |
446 |
+ --disable-gles2 \ |
447 |
+ --disable-goom \ |
448 |
+ --disable-kai \ |
449 |
+ --disable-kva \ |
450 |
+ --disable-maintainer-mode \ |
451 |
+ --disable-merge-ffmpeg \ |
452 |
+ --disable-mfx \ |
453 |
+ --disable-mmal-codec \ |
454 |
+ --disable-mmal-vout \ |
455 |
+ --disable-opensles \ |
456 |
+ --disable-oss \ |
457 |
+ --disable-quicktime \ |
458 |
+ --disable-rpi-omxil \ |
459 |
+ --disable-shine \ |
460 |
+ --disable-sndio \ |
461 |
+ --disable-vda \ |
462 |
+ --disable-vsxu \ |
463 |
+ --disable-wasapi |
464 |
+ |
465 |
+ # ^ We don't have these disabled libraries in the Portage tree yet. |
466 |
+ |
467 |
+ # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
468 |
+ # Other values of _FORTIFY_SOURCE may break the build (bug 523144), so definition should not be removed from config.h. |
469 |
+ # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the very start of config.h file |
470 |
+ sed -i '1i#undef _FORTIFY_SOURCE' "${S}"/config.h || die |
471 |
+} |
472 |
+ |
473 |
+src_test() { |
474 |
+ virtx emake check-TESTS |
475 |
+} |
476 |
+ |
477 |
+src_install() { |
478 |
+ default |
479 |
+ find "${D}" -name '*.la' -delete || die |
480 |
+} |
481 |
+ |
482 |
+pkg_postinst() { |
483 |
+ if [[ "$ROOT" = "/" ]] && [[ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then |
484 |
+ einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
485 |
+ "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/" |
486 |
+ else |
487 |
+ ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
488 |
+ ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
489 |
+ ewarn "If you do not do it, vlc will take a long time to load." |
490 |
+ fi |
491 |
+ |
492 |
+ gnome2_icon_cache_update |
493 |
+ xdg_mimeinfo_database_update |
494 |
+ xdg_desktop_database_update |
495 |
+} |
496 |
+ |
497 |
+pkg_postrm() { |
498 |
+ gnome2_icon_cache_update |
499 |
+ xdg_mimeinfo_database_update |
500 |
+ xdg_desktop_database_update |
501 |
+} |