Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mgorny:master commit in: media-video/vlc/
Date: Mon, 05 Sep 2011 08:57:48
Message-Id: 9c81d0fb00a8751e81413fb1da07f2c7b5e5549c.mgorny@gentoo
1 commit: 9c81d0fb00a8751e81413fb1da07f2c7b5e5549c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 5 08:28:16 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 5 08:28:16 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=9c81d0fb
7
8 media-video/vlc: Sync vlc from gx86.
9
10 (Portage version: 2.2.0_alpha51_p82/git/Linux x86_64, signed Manifest commit with key 42B9401D)
11
12 ---
13 media-video/vlc/Manifest | 16 ++
14 media-video/vlc/metadata.xml | 81 ++++++++
15 media-video/vlc/vlc-1.1.11.ebuild | 379 +++++++++++++++++++++++++++++++++++++
16 3 files changed, 476 insertions(+), 0 deletions(-)
17
18 diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest
19 new file mode 100644
20 index 0000000..3cc9a5b
21 --- /dev/null
22 +++ b/media-video/vlc/Manifest
23 @@ -0,0 +1,16 @@
24 +-----BEGIN PGP SIGNED MESSAGE-----
25 +Hash: SHA256
26 +
27 +DIST vlc-1.1.11.tar.bz2 26319862 RMD160 fa8a32a8e81a5f707b3cace6fa9808d5d7cb9fe6 SHA1 068e75bdbfe6e595a4db14ad49e05688c8b1d5ad SHA256 682560be08b82bedfaf30d8a611d80093c5883c1de72fcbcf05715b8e9f4e1cb
28 +DIST vlc-patches-99.tar.bz2 3353 RMD160 5e4961b7a6036ddcd609af1ce001f9be8cd6e525 SHA1 b26e969bcf05751fc0fe2ffd17b5be03d7a184aa SHA256 79b68b6879b737a714075d2437a7615525242412f7cf084277ace2cbeec567e9
29 +EBUILD vlc-1.1.11.ebuild 12384 RMD160 baebd0d8c7a926d61176191d3aff5fa284ab8e78 SHA1 cbfcec81d702064b389d40b292c0227b353dd102 SHA256 d952dcb9df1c097fc21f09aad4baa30c2a3d86abc3560b32167a71df93c694cb
30 +MISC metadata.xml 6478 RMD160 7ddf32170a0d306d753eb1c567bab738871f93ee SHA1 fc20ca23fbef32370d86fdaa1154d5eb744ca6a2 SHA256 c72d228750d1d28196388c2bedc79de711a14e0c1c664eaedbb1ad63467955f8
31 +-----BEGIN PGP SIGNATURE-----
32 +Version: GnuPG v2.0.18 (GNU/Linux)
33 +
34 +iJwEAQEIAAYFAk5kiCAACgkQfXuS5UK5QB1YOQP/anwX4LpRK2kED6pRlQ9+Alg+
35 +1LpN0MbR11apgfo1j+cv7OGiZPokWhbn2jl4Jh0b88i6aWxw/FDyK5/FPwaTN2w3
36 +s3RqULbCicQIcZhOrbaYpf4AEEgXZau9KcS4QpGThypBCCCkJ9HryiFuslQC6Yho
37 +fwiJJsn5+VJDc0zFQzc=
38 +=5BG5
39 +-----END PGP SIGNATURE-----
40
41 diff --git a/media-video/vlc/metadata.xml b/media-video/vlc/metadata.xml
42 new file mode 100644
43 index 0000000..d076a80
44 --- /dev/null
45 +++ b/media-video/vlc/metadata.xml
46 @@ -0,0 +1,81 @@
47 +<?xml version="1.0" encoding="UTF-8"?>
48 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
49 +<pkgmetadata>
50 + <herd>video</herd>
51 + <maintainer>
52 + <email>aballier@g.o</email>
53 + <name>Alexis Ballier</name>
54 + </maintainer>
55 + <use>
56 + <flag name="atmo">Enables support for AtmoLight (homebrew Ambient Lighting Technology)</flag>
57 + <flag name="audioqueue">Enables AudioQueue audio module for Mac OS X.</flag>
58 + <flag name="avcodec">Enables libavcodec support for video/audio encoding/decoding. libavcodec is part of FFmpeg.</flag>
59 + <flag name="avformat">Enables libformat support for reading and writing various media containers. libavformat is part of FFmpeg.</flag>
60 + <flag name="bluray">Enables libbluray for Blu-ray disc support.</flag>
61 + <flag name="dc1394">Enables IIDC cameras support.</flag>
62 + <flag name="dirac">Enable Dirac video support (an advanced royalty-free video compression format) via the reference library: dirac.</flag>
63 + <flag name="direct2d">Enable Win7/VistaPU Direct2D support.</flag>
64 + <flag name="directx">Enable Win32 DirectX support.</flag>
65 + <flag name="dshow">Enables Win32 DirectShow support.</flag>
66 + <flag name="dxva2">Enables Win32 DxVA2 support.</flag>
67 + <flag name="egl">Enables EGL video output module.</flag>
68 + <flag name="fbosd">Enables the framebuffer overlay plugin.</flag>
69 + <flag name="fluidsynth">Enables Fluidsynth MIDI software synthesis (with external sound fonts).</flag>
70 + <flag name="gcrypt">Enables cryptography support via libgcrypt.</flag>
71 + <flag name="gme">Enables support for <pkg>media-libs/game-music-emu</pkg> for playing various video game music formats.</flag>
72 + <flag name="gnome">Adds support for GNOME's filesystem abstraction layer, <pkg>gnome-base/gnome-vfs</pkg>. This flag is not GUI-related.</flag>
73 + <flag name="growl">Enables growl notification support (over UDP for remote access and native on OSX)</flag>
74 + <flag name="httpd">Enables a web based interface for vlc.</flag>
75 + <flag name="id3tag">Enables id3tag metadata reader plugin.</flag>
76 + <flag name="ios-vout">Enables iPhone OS video output.</flag>
77 + <flag name="kate">Adds support for Ogg Kate subtitles via libkate.</flag>
78 + <flag name="libass">Enables subtitles support using libass.</flag>
79 + <flag name="libproxy">Enables support for proxy settings in the HTTP access module.</flag>
80 + <flag name="libv4l">Enables Libv4l Video4Linux support.</flag>
81 + <flag name="libv4l2">Enables Libv4l2 Video4Linux2 support (for conversion
82 + from various video formats to standard ones, needed to use v4l2 devices
83 + with strange formats).</flag>
84 + <flag name="libtar">Uses libtar instead of the built-in tar reader for reading custom skins.</flag>
85 + <flag name="libtiger">Enables Ogg Kate subtitles rendering using libtiger.</flag>
86 + <flag name="linsys">Enables support for Linux Linear Systems Ltd. SDI and HD-SDI input cards.</flag>
87 + <flag name="live">Enables live555 streaming media support (client support for rtsp).</flag>
88 + <flag name="macosx">Enables Mac OS X gui support.</flag>
89 + <flag name="macosx-audio">Enables Mac OS X audio module.</flag>
90 + <flag name="macosx-dialog-provider">Enables Mac OS X dialog module.</flag>
91 + <flag name="macosx-eyetv">Enables Mac OS X EyeTV (TNT Tuner) module.</flag>
92 + <flag name="macosx-quartztext">Enables Mac OS X quartz text module.</flag>
93 + <flag name="macosx-qtcapture">Enables Mac OS X qtcapture (iSight) module.</flag>
94 + <flag name="macosx-vout">Enables Mac OS X video output module.</flag>
95 + <flag name="matroska">Enables matroska support using reference libraries (fallback on other existing matroska support if disabled, i.e., matroska enabled FFmpeg)</flag>
96 + <flag name="media-library">Build the (sqlite based) media library.</flag>
97 + <flag name="neon">Enables NEON optimizations for arm processors.</flag>
98 + <flag name="omxil">Enables OpenMAX Integration Layer codec module.</flag>
99 + <flag name="optimisememory">Enable optimisation for memory rather than performance.</flag>
100 + <flag name="postproc">Enables image post-processing via libpostproc (part of FFmpeg).</flag>
101 + <flag name="projectm">Enables the projectM visualization plugin.</flag>
102 + <flag name="pvr">Enables PVR cards access module.</flag>
103 + <flag name="qt4" restrict="&gt;=media-video/vlc-0.9">Builds a <pkg>x11-libs/qt</pkg> based frontend. It is now the most up-to-date graphical interface available.</flag>
104 + <flag name="remoteosd">Enables RemoteOSD plugin (VNC client as video filter).</flag>
105 + <flag name="rtsp">Enables real audio and RTSP modules.</flag>
106 + <flag name="run-as-root">Allows vlc to start for root. Don't enable this unless you have a very specific (e.g. embedded) need for it!</flag>
107 + <flag name="schroedinger">Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec).</flag>
108 + <flag name="sid">Adds support for playing C64 SID files through <pkg>media-libs/libsidplay-2</pkg>.</flag>
109 + <flag name="sdl-image">Enables sdl image video decoder (depends on sdl)</flag>
110 + <flag name="shine">Enables shine fixed point mp3 encoder.</flag>
111 + <flag name="shout">Enables libshout output.</flag>
112 + <flag name="skins">Enables support for the skins2 interface.</flag>
113 + <flag name="stream">Enables sout module for audio/video data streaming/transcoding/etc..</flag>
114 + <flag name="switcher">Enables MPEG2 video switcher stream output module.</flag>
115 + <flag name="swscale">Enables image scaling and conversion via libswscale (part of FFmpeg).</flag>
116 + <flag name="twolame">Enables twolame support (MPEG Audio Layer 2 encoder).</flag>
117 + <flag name="upnp">Enables support for Intel UPnP stack.</flag>
118 + <flag name="vaapi">Enables VAAPI (Video Acceleration API) for hardware decoding</flag>
119 + <flag name="vcdx">Enables VCD with navigation via libvcdinfo (depends on cdio)</flag>
120 + <flag name="vlm">New videolan (media) manager (vlm), a little manager designed to launch and manage multiple streams from within one instance of VLC.</flag>
121 + <flag name="waveout">Enable win32 waveOut plugin.</flag>
122 + <flag name="wingdi">Enable Win32 GDI module.</flag>
123 + <flag name="wma-fixed">Enables fixed point WMA decoder.</flag>
124 + <flag name="X">Enables support for, e.g., fullscreen mode via the X Window System. By itself, this flag does not build a graphical interface.</flag>
125 + <flag name="zvbi">Enables support for teletext subtitles via the zvbi library.</flag>
126 + </use>
127 +</pkgmetadata>
128
129 diff --git a/media-video/vlc/vlc-1.1.11.ebuild b/media-video/vlc/vlc-1.1.11.ebuild
130 new file mode 100644
131 index 0000000..160deb6
132 --- /dev/null
133 +++ b/media-video/vlc/vlc-1.1.11.ebuild
134 @@ -0,0 +1,379 @@
135 +# Copyright 1999-2011 Gentoo Foundation
136 +# Distributed under the terms of the GNU General Public License v2
137 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-1.1.11.ebuild,v 1.5 2011/08/27 17:38:21 armin76 Exp $
138 +
139 +EAPI="3"
140 +
141 +SCM=""
142 +if [ "${PV%9999}" != "${PV}" ] ; then
143 + SCM=git
144 + EGIT_BOOTSTRAP="bootstrap"
145 + EGIT_BRANCH=master
146 + EGIT_PROJECT=${P}
147 + if [ "${PV%.9999}" != "${PV}" ] ; then
148 + EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
149 + else
150 + EGIT_REPO_URI="git://git.videolan.org/vlc.git"
151 + fi
152 +fi
153 +
154 +inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic ${SCM}
155 +
156 +MY_PV="${PV/_/-}"
157 +MY_PV="${MY_PV/-beta/-test}"
158 +MY_P="${PN}-${MY_PV}"
159 +VLC_SNAPSHOT_TIME="0013"
160 +
161 +PATCHLEVEL="99"
162 +DESCRIPTION="VLC media player - Video player and streamer"
163 +HOMEPAGE="http://www.videolan.org/vlc/"
164 +if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
165 + SRC_URI=""
166 +elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
167 + SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
168 + MY_P="${P/_alpha*/}-git"
169 +elif [[ "${MY_P}" == "${P}" ]]; then
170 + SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
171 +else
172 + SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
173 +fi
174 +
175 +SRC_URI="${SRC_URI}
176 + mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
177 +
178 +LICENSE="GPL-2"
179 +SLOT="0"
180 +
181 +if [ "${PV%9999}" = "${PV}" ] ; then
182 + KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
183 +else
184 + KEYWORDS=""
185 +fi
186 +IUSE="a52 aac aalib alsa altivec atmo avahi bidi cdda cddb dbus dc1394
187 + debug dirac directfb dts dvb dvd elibc_glibc fbcon fluidsynth +ffmpeg flac fontconfig
188 + +gcrypt ggi gme gnome gnutls httpd id3tag ieee1394 jack kate kde libass libcaca
189 + libnotify libproxy libtiger libv4l libv4l2 lirc live lua matroska mmx
190 + modplug mp3 mpeg mtp musepack ncurses nsplugin ogg opengl optimisememory oss
191 + png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba
192 + schroedinger sdl sdl-image shine shout skins speex sqlite sse stream
193 + svg svga taglib theora truetype twolame udev upnp v4l v4l2 vaapi vcdx vlm
194 + vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi"
195 +
196 +RDEPEND="
197 + sys-libs/zlib
198 + >=media-libs/libdvbpsi-0.1.6
199 + a52? ( >=media-libs/a52dec-0.7.4-r3 )
200 + aalib? ( media-libs/aalib x11-libs/libX11 )
201 + aac? ( >=media-libs/faad2-2.6.1 )
202 + alsa? ( >=media-libs/alsa-lib-1.0.23 )
203 + avahi? ( >=net-dns/avahi-0.6[dbus] )
204 + bidi? ( >=dev-libs/fribidi-0.10.4 )
205 + cdda? ( cddb? ( >=media-libs/libcddb-1.2.0 ) )
206 + dbus? ( >=sys-apps/dbus-1.0.2 )
207 + dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
208 + dirac? ( >=media-video/dirac-0.10.0 )
209 + directfb? ( dev-libs/DirectFB sys-libs/zlib )
210 + dts? ( media-libs/libdca )
211 + dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 )
212 + elibc_glibc? ( >=sys-libs/glibc-2.8 )
213 + ffmpeg? ( virtual/ffmpeg )
214 + flac? ( media-libs/libogg >=media-libs/flac-1.1.2 )
215 + fluidsynth? ( media-sound/fluidsynth )
216 + fontconfig? ( media-libs/fontconfig )
217 + gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
218 + ggi? ( media-libs/libggi )
219 + gme? ( media-libs/game-music-emu )
220 + gnome? ( gnome-base/gnome-vfs )
221 + gnutls? ( >=net-libs/gnutls-1.7.4 >=dev-libs/libgcrypt-1.2.0 )
222 + id3tag? ( media-libs/libid3tag sys-libs/zlib )
223 + ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
224 + jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
225 + kate? ( >=media-libs/libkate-0.1.1 )
226 + libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig )
227 + libcaca? ( >=media-libs/libcaca-0.99_beta14 )
228 + libnotify? ( x11-libs/libnotify )
229 + libproxy? ( net-libs/libproxy )
230 + libtiger? ( media-libs/libtiger )
231 + lirc? ( app-misc/lirc )
232 + live? ( >=media-plugins/live-2008.07.06 )
233 + lua? ( >=dev-lang/lua-5.1 )
234 + matroska? ( >=dev-libs/libebml-0.7.6 >=media-libs/libmatroska-0.8.0 )
235 + modplug? ( >=media-libs/libmodplug-0.8.8.1 )
236 + mp3? ( media-libs/libmad )
237 + mpeg? ( >=media-libs/libmpeg2-0.3.2 )
238 + mtp? ( >=media-libs/libmtp-1.0.0 )
239 + musepack? ( >=media-sound/musepack-tools-444 )
240 + ncurses? ( sys-libs/ncurses )
241 + nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt x11-libs/libxcb x11-libs/xcb-util )
242 + ogg? ( media-libs/libogg )
243 + opengl? ( virtual/opengl || ( >=x11-libs/libX11-1.3.99.901 <x11-libs/libX11-1.3.99.901[xcb] ) )
244 + png? ( media-libs/libpng sys-libs/zlib )
245 + projectm? ( media-libs/libprojectm )
246 + pulseaudio? ( || ( >=media-sound/pulseaudio-0.9.22
247 + ( >=media-sound/pulseaudio-0.9.11 x11-libs/libX11 ) ) )
248 + qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 x11-libs/libX11 )
249 + remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
250 + samba? ( || ( >=net-fs/samba-3.4.6[smbclient] <net-fs/samba-3.4 ) )
251 + schroedinger? ( >=media-libs/schroedinger-1.0.10 )
252 + sdl? ( >=media-libs/libsdl-1.2.8 x11-libs/libX11
253 + sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
254 + shout? ( media-libs/libshout )
255 + skins? (
256 + x11-libs/qt-gui:4 x11-libs/qt-core:4
257 + x11-libs/libXext x11-libs/libX11
258 + media-libs/freetype media-fonts/dejavu
259 + )
260 + speex? ( media-libs/speex )
261 + sqlite? ( >=dev-db/sqlite-3.6.0:3 )
262 + svg? ( >=gnome-base/librsvg-2.9.0 )
263 + svga? ( media-libs/svgalib )
264 + taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
265 + theora? ( >=media-libs/libtheora-1.0_beta3 )
266 + truetype? ( media-libs/freetype media-fonts/dejavu )
267 + twolame? ( media-sound/twolame )
268 + udev? ( >=sys-fs/udev-142 )
269 + upnp? ( net-libs/libupnp )
270 + v4l2? ( libv4l2? ( media-libs/libv4l ) )
271 + v4l? ( libv4l? ( media-libs/libv4l ) )
272 + vaapi? ( x11-libs/libva virtual/ffmpeg )
273 + vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
274 + vorbis? ( media-libs/libvorbis )
275 + win32codecs? ( media-libs/win32codecs )
276 + X? ( x11-libs/libX11 )
277 + x264? ( >=media-libs/x264-0.0.20090923 )
278 + xcb? ( x11-libs/libxcb x11-libs/xcb-util )
279 + xml? ( dev-libs/libxml2 )
280 + xosd? ( x11-libs/xosd )
281 + zvbi? ( >=media-libs/zvbi-0.2.25 )
282 + "
283 +
284 +DEPEND="${RDEPEND}
285 + !!<=media-video/vlc-1.0.99999
286 + alsa? ( >=media-sound/alsa-headers-1.0.23 )
287 + dvb? ( sys-kernel/linux-headers )
288 + kde? ( >=kde-base/kdelibs-4 )
289 + v4l? ( sys-kernel/linux-headers )
290 + v4l2? ( >=sys-kernel/linux-headers-2.6.25 )
291 + xcb? ( x11-proto/xproto )
292 + dev-util/pkgconfig"
293 +
294 +S="${WORKDIR}/${MY_P}"
295 +
296 +# Displays a warning if the first use flag is set but the second is not
297 +vlc_use_needs() {
298 + use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled."
299 +}
300 +
301 +# Notify the user that some useflag have been forced on
302 +vlc_use_force() {
303 + use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled."
304 +}
305 +
306 +# Use when $1 depends strictly on $2
307 +# if use $1 then enable $2
308 +vlc_use_enable_force() {
309 + use $1 && echo "--enable-$2"
310 +}
311 +
312 +pkg_setup() {
313 + # Useflags we need to forcefuly enable
314 + vlc_use_force remoteosd gcrypt
315 + vlc_use_force gnutls gcrypt
316 + vlc_use_force skins truetype
317 + vlc_use_force skins qt4
318 + vlc_use_force vlm stream
319 + vlc_use_force vaapi ffmpeg
320 + vlc_use_force nsplugin xcb
321 + has_version '<media-sound/pulseaudio-0.9.22' && vlc_use_force pulseaudio X
322 + vlc_use_force sdl X
323 + vlc_use_force aalib X
324 +
325 + # Useflags that will be automagically discarded if deps are not met
326 + vlc_use_needs bidi truetype
327 + vlc_use_needs cddb cdda
328 + vlc_use_needs fontconfig truetype
329 + vlc_use_needs libv4l2 v4l2
330 + vlc_use_needs libv4l v4l
331 + vlc_use_needs libtiger kate
332 + vlc_use_needs xv xcb
333 +
334 + if use qt4 || use skins ; then
335 + qt4_pkg_setup
336 + else
337 + ewarn "You have disabled the qt4 useflag, ${PN} will not have any"
338 + ewarn "graphical interface. Maybe that is not what you want..."
339 + fi
340 +}
341 +
342 +src_unpack() {
343 + unpack ${A}
344 + if [ "${PV%9999}" != "${PV}" ] ; then
345 + git_src_unpack
346 + fi
347 +}
348 +
349 +src_prepare() {
350 + if [ "${PV%9999}" != "${PV}" ] ; then
351 + git_src_prepare
352 + fi
353 + # Make it build with libtool 1.5
354 + rm -f m4/lt* m4/libtool.m4
355 +
356 + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
357 + eautoreconf
358 +}
359 +
360 +src_configure() {
361 +
362 + # It would fail if -fforce-addr is used due to too few registers...
363 + use x86 && filter-flags -fforce-addr
364 +
365 + econf \
366 + $(use_enable a52) \
367 + $(use_enable aalib aa) \
368 + $(use_enable aac faad) \
369 + $(use_enable alsa) \
370 + $(use_enable altivec) \
371 + --disable-asademux \
372 + $(use_enable atmo) \
373 + $(use_enable avahi bonjour) \
374 + $(use_enable bidi fribidi) \
375 + $(use_enable cdda vcd) \
376 + $(use_enable cddb libcddb) \
377 + $(use_enable dbus) $(use_enable dbus dbus-control) \
378 + $(use_enable dirac) \
379 + $(use_enable directfb) \
380 + $(use_enable dc1394) \
381 + $(use_enable debug) \
382 + $(use_enable dts dca) \
383 + $(use_enable dvb) \
384 + $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
385 + $(use_enable fbcon fb) \
386 + $(use_enable ffmpeg avcodec) $(use_enable ffmpeg avformat) $(use_enable ffmpeg swscale) $(use_enable ffmpeg postproc) \
387 + $(use_enable flac) \
388 + $(use_enable fluidsynth) \
389 + $(use_enable fontconfig) \
390 + $(use_enable ggi) \
391 + $(use_enable gme) \
392 + $(use_enable gnome gnomevfs) \
393 + $(use_enable gnutls) \
394 + $(use_enable httpd) \
395 + $(use_enable id3tag) \
396 + $(use_enable ieee1394 dv) \
397 + $(use_enable jack) \
398 + $(use_enable kate) \
399 + $(use_with kde kde-solid) \
400 + $(use_enable libass) \
401 + $(use_enable libcaca caca) \
402 + $(use_enable gcrypt libgcrypt) \
403 + $(use_enable libnotify notify) \
404 + $(use_enable libproxy) \
405 + --disable-libtar \
406 + $(use_enable libtiger tiger) \
407 + $(use_enable libv4l) \
408 + $(use_enable libv4l2) \
409 + $(use_enable lirc) \
410 + $(use_enable live live555) \
411 + $(use_enable lua) \
412 + $(use_enable matroska mkv) \
413 + $(use_enable mmx) \
414 + $(use_enable modplug mod) \
415 + $(use_enable mp3 mad) \
416 + $(use_enable mpeg libmpeg2) \
417 + $(use_enable mtp) \
418 + $(use_enable musepack mpc) \
419 + $(use_enable ncurses) \
420 + $(use_enable nsplugin mozilla) --with-mozilla-pkg=libxul \
421 + $(use_enable ogg) \
422 + $(use_enable opengl glx) $(use_enable opengl) \
423 + $(use_enable optimisememory optimize-memory) \
424 + $(use_enable oss) \
425 + $(use_enable png) \
426 + --disable-portaudio \
427 + $(use_enable projectm) \
428 + $(use_enable pulseaudio pulse) \
429 + $(use_enable pvr) \
430 + $(use_enable qt4) \
431 + $(use_enable remoteosd) \
432 + $(use_enable rtsp realrtsp) \
433 + $(use_enable run-as-root) \
434 + $(use_enable samba smb) \
435 + $(use_enable schroedinger) \
436 + $(use_enable sdl) \
437 + $(use_enable sdl-image) \
438 + $(use_enable shine) \
439 + $(use_enable shout) \
440 + $(use_enable skins skins2) \
441 + $(use_enable speex) \
442 + $(use_enable sqlite) \
443 + $(use_enable sse) \
444 + $(use_enable stream sout) \
445 + $(use_enable svg) \
446 + $(use_enable svga svgalib) \
447 + $(use_enable taglib) \
448 + $(use_enable theora) \
449 + $(use_enable truetype freetype) \
450 + $(use_enable twolame) \
451 + $(use_enable udev) \
452 + $(use_enable upnp) \
453 + $(use_enable v4l) \
454 + $(use_enable v4l2) \
455 + $(use_enable vcdx) \
456 + $(use_enable vaapi libva) \
457 + $(use_enable vlm) \
458 + $(use_enable vorbis) \
459 + $(use_enable win32codecs loader) \
460 + $(use_enable wma-fixed) \
461 + $(use_with X x) \
462 + $(use_enable x264) \
463 + $(use_enable xcb) \
464 + $(use_enable xml libxml2) \
465 + $(use_enable xosd) \
466 + $(use_enable xv xvideo) \
467 + $(use_enable zvbi) $(use_enable !zvbi telx) \
468 + --disable-snapshot \
469 + --disable-growl \
470 + --disable-optimizations \
471 + --enable-fast-install \
472 + $(vlc_use_enable_force vlm sout) \
473 + $(vlc_use_enable_force skins qt4) \
474 + $(vlc_use_enable_force skins freetype) \
475 + $(vlc_use_enable_force remoteosd libgcrypt) \
476 + $(vlc_use_enable_force gnutls libgcrypt) \
477 + $(vlc_use_enable_force vaapi avcodec) \
478 + $(vlc_use_enable_force nsplugin xcb) \
479 + $(has_version '<media-sound/pulseaudio-0.9.22' && use pulseaudio && echo '--with-x') \
480 + $(use sdl && echo '--with-x') \
481 + $(use aalib && echo '--with-x')
482 +}
483 +
484 +src_install() {
485 + emake DESTDIR="${D}" install || die "make install failed"
486 +
487 + dodoc AUTHORS HACKING THANKS NEWS README \
488 + doc/fortunes.txt doc/intf-vcd.txt
489 +
490 + rm -rf "${D}/usr/share/doc/vlc" \
491 + "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
492 +
493 + if use nsplugin; then
494 + dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
495 + mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
496 + "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
497 + fi
498 +
499 + use skins || rm -rf "${D}/usr/share/vlc/skins2"
500 +}
501 +
502 +pkg_postinst() {
503 + gnome2_pkg_postinst
504 +
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" -f "/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 +}