/[gentoo-x86]/media-video/vlc/vlc-9999.ebuild
Gentoo

Contents of /media-video/vlc/vlc-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.131 - (show annotations) (download)
Mon Mar 21 11:50:00 2011 UTC (3 years, 9 months ago) by aballier
Branch: MAIN
Changes since 1.130: +4 -7 lines
merge dvb and dvbpsi useflags as per upstream, remove fbcon one

(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.130 2011/03/04 12:03:34 aballier Exp $
4
5 EAPI="4"
6
7 SCM=""
8 if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git
10 EGIT_BOOTSTRAP="bootstrap"
11 EGIT_BRANCH=master
12 EGIT_PROJECT=${P}
13 if [ "${PV%.9999}" != "${PV}" ] ; then
14 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
15 else
16 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
17 fi
18 fi
19
20 inherit eutils multilib autotools toolchain-funcs flag-o-matic ${SCM}
21
22 MY_PV="${PV/_/-}"
23 MY_PV="${MY_PV/-beta/-test}"
24 MY_P="${PN}-${MY_PV}"
25
26 PATCHLEVEL="89"
27 DESCRIPTION="VLC media player - Video player and streamer"
28 HOMEPAGE="http://www.videolan.org/vlc/"
29 if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
30 SRC_URI=""
31 elif [[ "${MY_P}" == "${P}" ]]; then
32 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
33 else
34 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
35 fi
36
37 SRC_URI="${SRC_URI}
38 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
39
40 LICENSE="GPL-2"
41 SLOT="0"
42
43 if [ "${PV%9999}" = "${PV}" ] ; then
44 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
45 else
46 KEYWORDS=""
47 fi
48 IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
49 +avformat bda bidi bluray cdda cddb dbus dc1394 debug dirac direct2d
50 directfb directx dshow dts dvb dvd dxva2 elibc_glibc egl +encode
51 fbosd fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
52 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
53 libproxy libtiger libv4l2 linsys libtar lirc live lua +macosx +macosx-audio
54 +macosx-dialog-provider +macosx-eyetv +macosx-quartztext +macosx-qtcapture
55 +macosx-vout matroska media-library mmx modplug mp3 mpeg mtp musepack
56 ncurses neon ogg omxil opengl optimisememory oss png portaudio +postproc
57 projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger sdl
58 sdl-image shine shout sid skins snapshot speex sqlite sse svg +swscale
59 switcher taglib theora truetype twolame udev upnp v4l2 vaapi vcdx vlm vorbis
60 waveout win32codecs wingdi wma-fixed +X x264 +xcb xml xosd xv zvbi"
61
62 RDEPEND="
63 sys-libs/zlib
64 a52? ( >=media-libs/a52dec-0.7.4-r3 )
65 aalib? ( media-libs/aalib )
66 aac? ( >=media-libs/faad2-2.6.1 )
67 alsa? ( >=media-libs/alsa-lib-1.0.23 )
68 avahi? ( >=net-dns/avahi-0.6[dbus] )
69 avcodec? ( >=media-video/ffmpeg-0.6 )
70 avformat? ( >=media-video/ffmpeg-0.6 )
71 bidi? ( >=dev-libs/fribidi-0.10.4 )
72 bluray? ( media-libs/libbluray )
73 cddb? ( >=media-libs/libcddb-1.2.0 )
74 dbus? ( >=sys-apps/dbus-1.0.2 )
75 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
76 dirac? ( >=media-video/dirac-0.10.0 )
77 directfb? ( dev-libs/DirectFB sys-libs/zlib )
78 dts? ( media-libs/libdca )
79 dvb? ( >=media-libs/libdvbpsi-0.1.6 )
80 dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 )
81 egl? ( virtual/opengl )
82 elibc_glibc? ( >=sys-libs/glibc-2.8 )
83 flac? ( media-libs/libogg >=media-libs/flac-1.1.2 )
84 fluidsynth? ( media-sound/fluidsynth )
85 fontconfig? ( media-libs/fontconfig )
86 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
87 gme? ( media-libs/game-music-emu )
88 gnome? ( gnome-base/gnome-vfs )
89 gnutls? ( >=net-libs/gnutls-1.7.4 )
90 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
91 ios-vout? ( virtual/opengl )
92 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
93 kate? ( >=media-libs/libkate-0.1.1 )
94 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig )
95 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
96 libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 )
97 libproxy? ( net-libs/libproxy )
98 libtar? ( >=dev-libs/libtar-1.2.11-r3 )
99 libtiger? ( media-libs/libtiger )
100 linsys? ( >=media-libs/zvbi-0.2.28 )
101 lirc? ( app-misc/lirc )
102 live? ( >=media-plugins/live-2010.10.15 )
103 lua? ( >=dev-lang/lua-5.1 )
104 macosx-vout? ( virtual/opengl )
105 matroska? ( >=dev-libs/libebml-1.0.0 >=media-libs/libmatroska-1.0.0 )
106 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
107 mp3? ( media-libs/libmad )
108 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
109 mtp? ( >=media-libs/libmtp-1.0.0 )
110 musepack? ( >=media-sound/musepack-tools-444 )
111 ncurses? ( sys-libs/ncurses )
112 ogg? ( media-libs/libogg )
113 opengl? ( virtual/opengl || ( >=x11-libs/libX11-1.3.99.901 <x11-libs/libX11-1.3.99.901[xcb] ) )
114 png? ( media-libs/libpng sys-libs/zlib )
115 portaudio? ( >=media-libs/portaudio-19_pre )
116 postproc? ( >=media-video/ffmpeg-0.6 )
117 projectm? ( media-libs/libprojectm )
118 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
119 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 )
120 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] <net-fs/samba-3.4 ) )
121 schroedinger? ( >=media-libs/schroedinger-1.0.6 )
122 sdl? ( >=media-libs/libsdl-1.2.8
123 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
124 shout? ( media-libs/libshout )
125 sid? ( media-libs/libsidplay:2 )
126 skins? ( x11-libs/libXext x11-libs/libXpm )
127 speex? ( media-libs/speex )
128 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
129 svg? ( >=gnome-base/librsvg-2.9.0 )
130 swscale? ( >=media-video/ffmpeg-0.6 )
131 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
132 theora? ( >=media-libs/libtheora-1.0_beta3 )
133 truetype? ( media-libs/freetype media-fonts/dejavu )
134 twolame? ( media-sound/twolame )
135 udev? ( >=sys-fs/udev-142 )
136 upnp? ( net-libs/libupnp )
137 libv4l2? ( media-libs/libv4l )
138 vaapi? ( x11-libs/libva )
139 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
140 vorbis? ( media-libs/libvorbis )
141 win32codecs? ( media-libs/win32codecs )
142 X? ( x11-libs/libX11 )
143 x264? ( >=media-libs/x264-0.0.20090923 )
144 xcb? ( >=x11-libs/libxcb-1.1.90.1 >=x11-libs/xcb-util-0.3.4 )
145 xml? ( dev-libs/libxml2 )
146 xosd? ( x11-libs/xosd )
147 zvbi? ( >=media-libs/zvbi-0.2.25 )
148 "
149
150 DEPEND="${RDEPEND}
151 !!<=media-video/vlc-1.1.99999
152 alsa? ( >=media-sound/alsa-headers-1.0.23 )
153 dvb? ( sys-kernel/linux-headers )
154 fbosd? ( sys-kernel/linux-headers )
155 kde? ( >=kde-base/kdelibs-4 )
156 v4l2? ( >=sys-kernel/linux-headers-2.6.25 )
157 xcb? ( x11-proto/xproto )
158 dev-util/pkgconfig"
159
160 REQUIRED_USE="
161 aalib? ( X )
162 bidi? ( truetype )
163 cddb? ( cdda )
164 dxva2? ( avcodec )
165 egl? ( X )
166 ffmpeg? ( avcodec avformat postproc swscale )
167 fontconfig? ( truetype )
168 gnutls? ( gcrypt )
169 libtar? ( skins )
170 libtiger? ( kate )
171 libv4l2? ( v4l2 )
172 media-library? ( sqlite )
173 qt4? ( X )
174 sdl? ( X )
175 skins? ( truetype qt4 X )
176 switcher? ( avcodec )
177 vaapi? ( avcodec X )
178 vlm? ( encode )
179 xv? ( xcb )
180 "
181
182 S="${WORKDIR}/${MY_P}"
183
184 src_unpack() {
185 unpack ${A}
186 if [ "${PV%9999}" != "${PV}" ] ; then
187 git_src_unpack
188 fi
189 }
190
191 src_prepare() {
192 if [ "${PV%9999}" != "${PV}" ] ; then
193 git_src_prepare
194 fi
195 # Make it build with libtool 1.5
196 rm -f m4/lt* m4/libtool.m4
197
198 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
199 eautoreconf
200 }
201
202 src_configure() {
203 # needs libresid-builder from libsidplay:2 which is in another directory...
204 # FIXME!
205 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
206
207 econf \
208 --docdir=/usr/share/doc/${PF} \
209 $(use_enable a52) \
210 $(use_enable aalib aa) \
211 $(use_enable aac faad) \
212 $(use_enable alsa) \
213 $(use_enable altivec) \
214 $(use_enable atmo) \
215 $(use_enable audioqueue) \
216 $(use_enable avahi bonjour) \
217 $(use_enable avcodec) \
218 $(use_enable avformat) \
219 $(use_enable bda) \
220 $(use_enable bidi fribidi) \
221 $(use_enable bluray) \
222 $(use_enable cdda vcd) \
223 $(use_enable cddb libcddb) \
224 $(use_enable dbus) $(use_enable dbus dbus-control) \
225 $(use_enable dirac) \
226 $(use_enable direct2d) \
227 $(use_enable directfb) \
228 $(use_enable directx) \
229 $(use_enable dc1394) \
230 $(use_enable debug) \
231 $(use_enable dshow) \
232 $(use_enable dts dca) \
233 $(use_enable dvb) \
234 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
235 $(use_enable dxva2) \
236 $(use_enable egl) \
237 $(use_enable encode sout) \
238 $(use_enable fbosd) \
239 $(use_enable flac) \
240 $(use_enable fluidsynth) \
241 $(use_enable fontconfig) \
242 $(use_enable gme) \
243 $(use_enable gnome gnomevfs) \
244 $(use_enable gnutls) \
245 $(use_enable growl) \
246 $(use_enable httpd) \
247 $(use_enable ieee1394 dv) \
248 $(use_enable ios-vout) \
249 $(use_enable jack) \
250 $(use_enable kate) \
251 $(use_with kde kde-solid) \
252 $(use_enable libass) \
253 $(use_enable libcaca caca) \
254 $(use_enable gcrypt libgcrypt) \
255 $(use_enable libnotify notify) \
256 $(use_enable libproxy) \
257 $(use_enable libtar) \
258 $(use_enable libtiger tiger) \
259 $(use_enable libv4l2) \
260 $(use_enable linsys) \
261 $(use_enable lirc) \
262 $(use_enable live live555) \
263 $(use_enable lua) \
264 $(use_enable macosx-audio) \
265 $(use_enable macosx-dialog-provider) \
266 $(use_enable macosx-eyetv) \
267 $(use_enable macosx-qtcapture) \
268 $(use_enable macosx-quartztext) \
269 $(use_enable macosx-vout) \
270 $(use_enable matroska mkv) \
271 $(use_enable media-library) \
272 $(use_enable mmx) \
273 $(use_enable modplug mod) \
274 $(use_enable mp3 mad) \
275 $(use_enable mpeg libmpeg2) \
276 $(use_enable mtp) \
277 $(use_enable musepack mpc) \
278 $(use_enable ncurses) \
279 $(use_enable neon) \
280 $(use_enable ogg) \
281 $(use_enable omxil) \
282 $(use_enable opengl glx) \
283 $(use_enable optimisememory optimize-memory) \
284 $(use_enable oss) \
285 $(use_enable png) \
286 $(use_enable portaudio) \
287 $(use_enable postproc) \
288 $(use_enable projectm) \
289 $(use_enable pulseaudio pulse) \
290 $(use_enable pvr) \
291 $(use_enable qt4) \
292 $(use_enable rtsp realrtsp) \
293 $(use_enable run-as-root) \
294 $(use_enable samba smb) \
295 $(use_enable schroedinger) \
296 $(use_enable sdl) \
297 $(use_enable sdl-image) \
298 $(use_enable shine) \
299 $(use_enable sid) \
300 $(use_enable shout) \
301 $(use_enable skins skins2) \
302 $(use_enable snapshot) \
303 $(use_enable speex) \
304 $(use_enable sqlite) \
305 $(use_enable sse) \
306 $(use_enable svg) \
307 $(use_enable switcher) \
308 $(use_enable swscale) \
309 $(use_enable taglib) \
310 $(use_enable theora) \
311 $(use_enable truetype freetype) \
312 $(use_enable twolame) \
313 $(use_enable udev) \
314 $(use_enable upnp) \
315 $(use_enable v4l2) \
316 $(use_enable vcdx) \
317 $(use_enable vaapi libva) \
318 $(use_enable vlm) \
319 $(use_enable vorbis) \
320 $(use_enable waveout) \
321 $(use_enable win32codecs loader) \
322 $(use_enable wingdi) \
323 $(use_enable wma-fixed) \
324 $(use_with X x) \
325 $(use_enable x264) \
326 $(use_enable xcb) \
327 $(use_enable xml libxml2) \
328 $(use_enable xosd) \
329 $(use_enable xv xvideo) \
330 $(use_enable zvbi) $(use_enable !zvbi telx) \
331 --disable-optimizations \
332 --enable-fast-install
333 }
334
335 src_install() {
336 emake DESTDIR="${D}" install || die "make install failed"
337
338 dodoc AUTHORS HACKING THANKS NEWS README \
339 doc/fortunes.txt doc/intf-vcd.txt
340
341 # Punt useless libtool's .la files
342 find "${D}" -name '*.la' -delete
343 }
344
345 pkg_postinst() {
346 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
347 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
348 "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
349 else
350 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
351 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
352 ewarn "If you do not do it, vlc will take a long time to load."
353 fi
354 }

  ViewVC Help
Powered by ViewVC 1.1.20