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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.136 Revision 1.156
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.136 2011/04/03 11:17:09 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.156 2011/12/09 19:58:47 aballier Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git 9 SCM=git-2
10 EGIT_BOOTSTRAP="bootstrap" 10 EGIT_BOOTSTRAP="bootstrap"
11 EGIT_BRANCH=master
12 EGIT_PROJECT=${P}
13 if [ "${PV%.9999}" != "${PV}" ] ; then 11 if [ "${PV%.9999}" != "${PV}" ] ; then
14 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git" 12 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
15 else 13 else
16 EGIT_REPO_URI="git://git.videolan.org/vlc.git" 14 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
17 fi 15 fi
21 19
22MY_PV="${PV/_/-}" 20MY_PV="${PV/_/-}"
23MY_PV="${MY_PV/-beta/-test}" 21MY_PV="${MY_PV/-beta/-test}"
24MY_P="${PN}-${MY_PV}" 22MY_P="${PN}-${MY_PV}"
25 23
26PATCHLEVEL="93" 24PATCHLEVEL="101"
27DESCRIPTION="VLC media player - Video player and streamer" 25DESCRIPTION="VLC media player - Video player and streamer"
28HOMEPAGE="http://www.videolan.org/vlc/" 26HOMEPAGE="http://www.videolan.org/vlc/"
29if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild 27if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
30 SRC_URI="" 28 SRC_URI=""
31elif [[ "${MY_P}" == "${P}" ]]; then 29elif [[ "${MY_P}" == "${P}" ]]; then
32 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" 30 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
33else 31else
34 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2" 32 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
35fi 33fi
36 34
37SRC_URI="${SRC_URI} 35SRC_URI="${SRC_URI}
38 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" 36 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
39 37
48IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec 46IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
49 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac direct2d 47 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac direct2d
50 directfb directx dshow dts dvb dvd dxva2 elibc_glibc egl +encode 48 directfb directx dshow dts dvb dvd dxva2 elibc_glibc egl +encode
51 fbosd fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls 49 fbosd fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
52 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify 50 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
53 libproxy libtiger libv4l2 linsys libtar lirc live lua +macosx +macosx-audio 51 libproxy libsamplerate libtiger libv4l2 linsys libtar lirc live lua +macosx
54 +macosx-dialog-provider +macosx-eyetv +macosx-quartztext +macosx-qtcapture 52 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
55 +macosx-vout matroska media-library mmx modplug mp3 mpeg mtp musepack 53 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
56 ncurses neon ogg omxil opengl optimisememory oss png portaudio +postproc 54 mtp musepack ncurses neon ogg omxil opengl optimisememory oss png portaudio
57 projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger sdl 55 +postproc projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger
58 sdl-image shine shout sid skins speex sqlite sse svg +swscale 56 sdl sdl-image shine shout sid skins speex sqlite sse svg +swscale switcher
59 switcher taglib theora truetype twolame udev upnp v4l2 vaapi vcdx vlm vorbis 57 taglib theora truetype twolame udev upnp vaapi vcdx vlm vorbis waveout
60 waveout win32codecs wingdi wma-fixed +X x264 +xcb xml xosd xv zvbi" 58 win32codecs wingdi wma-fixed +X x264 +xcb xml xosd xv zvbi"
61 59
62RDEPEND=" 60RDEPEND="
63 sys-libs/zlib 61 >=sys-libs/zlib-1.2.5.1-r2[minizip]
64 a52? ( >=media-libs/a52dec-0.7.4-r3 ) 62 a52? ( >=media-libs/a52dec-0.7.4-r3 )
65 aalib? ( media-libs/aalib ) 63 aalib? ( media-libs/aalib )
66 aac? ( >=media-libs/faad2-2.6.1 ) 64 aac? ( >=media-libs/faad2-2.6.1 )
67 alsa? ( >=media-libs/alsa-lib-1.0.23 ) 65 alsa? ( >=media-libs/alsa-lib-1.0.23 )
68 avahi? ( >=net-dns/avahi-0.6[dbus] ) 66 avahi? ( >=net-dns/avahi-0.6[dbus] )
69 avcodec? ( virtual/ffmpeg ) 67 avcodec? ( virtual/ffmpeg )
70 avformat? ( virtual/ffmpeg ) 68 avformat? ( virtual/ffmpeg )
71 bidi? ( >=dev-libs/fribidi-0.10.4 ) 69 bidi? ( >=dev-libs/fribidi-0.10.4 )
72 bluray? ( media-libs/libbluray ) 70 bluray? ( >=media-libs/libbluray-0.2.1 )
73 cddb? ( >=media-libs/libcddb-1.2.0 ) 71 cddb? ( >=media-libs/libcddb-1.2.0 )
74 dbus? ( >=sys-apps/dbus-1.0.2 ) 72 dbus? ( >=sys-apps/dbus-1.0.2 )
75 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 ) 73 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
76 dirac? ( >=media-video/dirac-0.10.0 ) 74 dirac? ( >=media-video/dirac-0.10.0 )
77 directfb? ( dev-libs/DirectFB sys-libs/zlib ) 75 directfb? ( dev-libs/DirectFB sys-libs/zlib )
84 fluidsynth? ( media-sound/fluidsynth ) 82 fluidsynth? ( media-sound/fluidsynth )
85 fontconfig? ( media-libs/fontconfig ) 83 fontconfig? ( media-libs/fontconfig )
86 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 ) 84 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
87 gme? ( media-libs/game-music-emu ) 85 gme? ( media-libs/game-music-emu )
88 gnome? ( gnome-base/gnome-vfs ) 86 gnome? ( gnome-base/gnome-vfs )
89 gnutls? ( >=net-libs/gnutls-1.7.4 ) 87 gnutls? ( >=net-libs/gnutls-2.0.0 )
90 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 ) 88 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
91 ios-vout? ( virtual/opengl ) 89 ios-vout? ( virtual/opengl )
92 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) 90 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
93 kate? ( >=media-libs/libkate-0.1.1 ) 91 kate? ( >=media-libs/libkate-0.1.1 )
94 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig ) 92 libass? ( >=media-libs/libass-0.9.8 media-libs/fontconfig )
95 libcaca? ( >=media-libs/libcaca-0.99_beta14 ) 93 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
96 libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 ) 94 libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 )
97 libproxy? ( net-libs/libproxy ) 95 libproxy? ( net-libs/libproxy )
96 libsamplerate? ( media-libs/libsamplerate )
98 libtar? ( >=dev-libs/libtar-1.2.11-r3 ) 97 libtar? ( >=dev-libs/libtar-1.2.11-r3 )
99 libtiger? ( media-libs/libtiger ) 98 libtiger? ( media-libs/libtiger )
100 linsys? ( >=media-libs/zvbi-0.2.28 ) 99 linsys? ( >=media-libs/zvbi-0.2.28 )
101 lirc? ( app-misc/lirc ) 100 lirc? ( app-misc/lirc )
102 live? ( >=media-plugins/live-2010.10.15 ) 101 live? ( >=media-plugins/live-2010.10.15 )
108 mpeg? ( >=media-libs/libmpeg2-0.3.2 ) 107 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
109 mtp? ( >=media-libs/libmtp-1.0.0 ) 108 mtp? ( >=media-libs/libmtp-1.0.0 )
110 musepack? ( >=media-sound/musepack-tools-444 ) 109 musepack? ( >=media-sound/musepack-tools-444 )
111 ncurses? ( sys-libs/ncurses ) 110 ncurses? ( sys-libs/ncurses )
112 ogg? ( media-libs/libogg ) 111 ogg? ( media-libs/libogg )
113 opengl? ( virtual/opengl || ( >=x11-libs/libX11-1.3.99.901 <x11-libs/libX11-1.3.99.901[xcb] ) ) 112 opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 )
114 png? ( media-libs/libpng sys-libs/zlib ) 113 png? ( media-libs/libpng sys-libs/zlib )
115 portaudio? ( >=media-libs/portaudio-19_pre ) 114 portaudio? ( >=media-libs/portaudio-19_pre )
116 postproc? ( virtual/ffmpeg ) 115 postproc? ( virtual/ffmpeg )
117 projectm? ( media-libs/libprojectm ) 116 projectm? ( media-libs/libprojectm )
118 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 ) 117 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
119 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 ) 118 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 ) ) 119 samba? ( >=net-fs/samba-3.4.6[smbclient] )
121 schroedinger? ( >=media-libs/schroedinger-1.0.10 ) 120 schroedinger? ( >=media-libs/schroedinger-1.0.10 )
122 sdl? ( >=media-libs/libsdl-1.2.8 121 sdl? ( >=media-libs/libsdl-1.2.8
123 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) ) 122 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
124 shout? ( media-libs/libshout ) 123 shout? ( media-libs/libshout )
125 sid? ( media-libs/libsidplay:2 ) 124 sid? ( media-libs/libsidplay:2 )
128 sqlite? ( >=dev-db/sqlite-3.6.0:3 ) 127 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
129 svg? ( >=gnome-base/librsvg-2.9.0 ) 128 svg? ( >=gnome-base/librsvg-2.9.0 )
130 swscale? ( virtual/ffmpeg ) 129 swscale? ( virtual/ffmpeg )
131 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib ) 130 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
132 theora? ( >=media-libs/libtheora-1.0_beta3 ) 131 theora? ( >=media-libs/libtheora-1.0_beta3 )
133 truetype? ( media-libs/freetype media-fonts/dejavu ) 132 truetype? ( media-libs/freetype virtual/ttf-fonts
133 !fontconfig? ( media-fonts/dejavu ) )
134 twolame? ( media-sound/twolame ) 134 twolame? ( media-sound/twolame )
135 udev? ( >=sys-fs/udev-142 ) 135 udev? ( >=sys-fs/udev-142 )
136 upnp? ( net-libs/libupnp ) 136 upnp? ( net-libs/libupnp )
137 libv4l2? ( media-libs/libv4l ) 137 libv4l2? ( media-libs/libv4l )
138 vaapi? ( x11-libs/libva ) 138 vaapi? ( x11-libs/libva )
139 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 ) 139 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
140 vorbis? ( media-libs/libvorbis ) 140 vorbis? ( media-libs/libvorbis )
141 win32codecs? ( media-libs/win32codecs ) 141 win32codecs? ( media-libs/win32codecs )
142 X? ( x11-libs/libX11 ) 142 X? ( x11-libs/libX11 )
143 x264? ( >=media-libs/x264-0.0.20090923 ) 143 x264? ( >=media-libs/x264-0.0.20090923 )
144 xcb? ( >=x11-libs/libxcb-1.1.90.1 >=x11-libs/xcb-util-0.3.4 ) 144 xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 )
145 xml? ( dev-libs/libxml2 ) 145 xml? ( dev-libs/libxml2 )
146 xosd? ( x11-libs/xosd ) 146 xosd? ( x11-libs/xosd )
147 zvbi? ( >=media-libs/zvbi-0.2.25 ) 147 zvbi? ( >=media-libs/zvbi-0.2.25 )
148 " 148 "
149 149
150DEPEND="${RDEPEND} 150DEPEND="${RDEPEND}
151 alsa? ( >=media-sound/alsa-headers-1.0.23 ) 151 alsa? ( >=media-sound/alsa-headers-1.0.23 )
152 dvb? ( sys-kernel/linux-headers )
153 fbosd? ( sys-kernel/linux-headers ) 152 fbosd? ( sys-kernel/linux-headers )
154 kde? ( >=kde-base/kdelibs-4 ) 153 kde? ( >=kde-base/kdelibs-4 )
155 v4l2? ( >=sys-kernel/linux-headers-2.6.25 )
156 xcb? ( x11-proto/xproto ) 154 xcb? ( x11-proto/xproto )
155 app-arch/xz-utils
157 dev-util/pkgconfig" 156 dev-util/pkgconfig"
158 157
159REQUIRED_USE=" 158REQUIRED_USE="
160 aalib? ( X ) 159 aalib? ( X )
161 bidi? ( truetype ) 160 bidi? ( truetype )
165 ffmpeg? ( avcodec avformat postproc swscale ) 164 ffmpeg? ( avcodec avformat postproc swscale )
166 fontconfig? ( truetype ) 165 fontconfig? ( truetype )
167 gnutls? ( gcrypt ) 166 gnutls? ( gcrypt )
168 libtar? ( skins ) 167 libtar? ( skins )
169 libtiger? ( kate ) 168 libtiger? ( kate )
170 libv4l2? ( v4l2 )
171 media-library? ( sqlite ) 169 media-library? ( sqlite )
172 qt4? ( X ) 170 qt4? ( X )
173 sdl? ( X ) 171 sdl? ( X )
174 skins? ( truetype qt4 X ) 172 skins? ( truetype qt4 X )
175 switcher? ( avcodec ) 173 switcher? ( avcodec )
176 vaapi? ( avcodec X ) 174 vaapi? ( avcodec X )
177 vlm? ( encode ) 175 vlm? ( encode )
176 xosd? ( X )
178 xv? ( xcb ) 177 xv? ( xcb )
179" 178"
180 179
181S="${WORKDIR}/${MY_P}" 180S="${WORKDIR}/${MY_P}"
182 181
183src_unpack() { 182src_unpack() {
184 unpack ${A} 183 unpack ${A}
185 if [ "${PV%9999}" != "${PV}" ] ; then 184 if [ "${PV%9999}" != "${PV}" ] ; then
186 git_src_unpack 185 git-2_src_unpack
187 fi 186 fi
188} 187}
189 188
190src_prepare() { 189src_prepare() {
191 if [ "${PV%9999}" != "${PV}" ] ; then
192 git_src_prepare
193 fi
194 # Make it build with libtool 1.5 190 # Make it build with libtool 1.5
195 rm -f m4/lt* m4/libtool.m4 191 rm -f m4/lt* m4/libtool.m4
196 192
197 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" 193 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
198 eautoreconf 194 eautoreconf
226 $(use_enable directx) \ 222 $(use_enable directx) \
227 $(use_enable dc1394) \ 223 $(use_enable dc1394) \
228 $(use_enable debug) \ 224 $(use_enable debug) \
229 $(use_enable dshow) \ 225 $(use_enable dshow) \
230 $(use_enable dts dca) \ 226 $(use_enable dts dca) \
231 $(use_enable dvb) \ 227 $(use_enable dvb dvbpsi) \
232 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ 228 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
233 $(use_enable dxva2) \ 229 $(use_enable dxva2) \
234 $(use_enable egl) \ 230 $(use_enable egl) \
235 $(use_enable encode sout) \ 231 $(use_enable encode sout) \
236 $(use_enable fbosd) \ 232 $(use_enable fbosd) \
237 $(use_enable flac) \ 233 $(use_enable flac) \
238 $(use_enable fluidsynth) \ 234 $(use_enable fluidsynth) \
239 $(use_enable fontconfig) \ 235 $(use_enable fontconfig) \
236 $(use_enable gcrypt libgcrypt) \
240 $(use_enable gme) \ 237 $(use_enable gme) \
241 $(use_enable gnome gnomevfs) \ 238 $(use_enable gnome gnomevfs) \
242 $(use_enable gnutls) \ 239 $(use_enable gnutls) \
243 $(use_enable growl) \ 240 $(use_enable growl) \
244 $(use_enable httpd) \ 241 $(use_enable httpd) \
247 $(use_enable jack) \ 244 $(use_enable jack) \
248 $(use_enable kate) \ 245 $(use_enable kate) \
249 $(use_with kde kde-solid) \ 246 $(use_with kde kde-solid) \
250 $(use_enable libass) \ 247 $(use_enable libass) \
251 $(use_enable libcaca caca) \ 248 $(use_enable libcaca caca) \
252 $(use_enable gcrypt libgcrypt) \
253 $(use_enable libnotify notify) \ 249 $(use_enable libnotify notify) \
254 $(use_enable libproxy) \ 250 $(use_enable libproxy) \
251 $(use_enable libsamplerate samplerate) \
255 $(use_enable libtar) \ 252 $(use_enable libtar) \
256 $(use_enable libtiger tiger) \ 253 $(use_enable libtiger tiger) \
257 $(use_enable libv4l2) \ 254 $(use_enable libv4l2) \
258 $(use_enable linsys) \ 255 $(use_enable linsys) \
259 $(use_enable lirc) \ 256 $(use_enable lirc) \
260 $(use_enable live live555) \ 257 $(use_enable live live555) \
261 $(use_enable lua) \ 258 $(use_enable lua) \
262 $(use_enable macosx-audio) \ 259 $(use_enable macosx-audio) \
263 $(use_enable macosx-dialog-provider) \ 260 $(use_enable macosx-dialog-provider) \
264 $(use_enable macosx-eyetv) \ 261 $(use_enable macosx-eyetv) \
265 $(use_enable macosx-qtcapture) \ 262 $(use_enable macosx-qtkit) \
266 $(use_enable macosx-quartztext) \ 263 $(use_enable macosx-quartztext) \
267 $(use_enable macosx-vout) \ 264 $(use_enable macosx-vout) \
268 $(use_enable matroska mkv) \ 265 $(use_enable matroska mkv) \
269 $(use_enable media-library) \ 266 $(use_enable media-library) \
270 $(use_enable mmx) \ 267 $(use_enable mmx) \
307 $(use_enable theora) \ 304 $(use_enable theora) \
308 $(use_enable truetype freetype) \ 305 $(use_enable truetype freetype) \
309 $(use_enable twolame) \ 306 $(use_enable twolame) \
310 $(use_enable udev) \ 307 $(use_enable udev) \
311 $(use_enable upnp) \ 308 $(use_enable upnp) \
312 $(use_enable v4l2) \
313 $(use_enable vcdx) \ 309 $(use_enable vcdx) \
314 $(use_enable vaapi libva) \ 310 $(use_enable vaapi libva) \
315 $(use_enable vlm) \ 311 $(use_enable vlm) \
316 $(use_enable vorbis) \ 312 $(use_enable vorbis) \
317 $(use_enable waveout) \ 313 $(use_enable waveout) \
324 $(use_enable xml libxml2) \ 320 $(use_enable xml libxml2) \
325 $(use_enable xosd) \ 321 $(use_enable xosd) \
326 $(use_enable xv xvideo) \ 322 $(use_enable xv xvideo) \
327 $(use_enable zvbi) $(use_enable !zvbi telx) \ 323 $(use_enable zvbi) $(use_enable !zvbi telx) \
328 --disable-optimizations \ 324 --disable-optimizations \
325 --without-tuning \
329 --enable-fast-install 326 --enable-fast-install
330} 327}
331 328
332src_install() { 329src_install() {
333 emake DESTDIR="${D}" install || die "make install failed" 330 emake DESTDIR="${D}" install || die "make install failed"
334 331
335 dodoc AUTHORS HACKING THANKS NEWS README \ 332 dodoc AUTHORS THANKS NEWS README \
336 doc/fortunes.txt doc/intf-vcd.txt 333 doc/fortunes.txt doc/intf-vcd.txt
337 334
338 # Punt useless libtool's .la files 335 # Punt useless libtool's .la files
339 find "${D}" -name '*.la' -delete 336 find "${D}" -name '*.la' -delete
340} 337}

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.156

  ViewVC Help
Powered by ViewVC 1.1.20