/[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.70 Revision 1.82
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.70 2010/05/14 16:39:41 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.82 2010/07/18 10:16:06 aballier Exp $
4 4
5EAPI="2" 5EAPI="3"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git 9 SCM=git
10 EGIT_BOOTSTRAP="bootstrap" 10 EGIT_BOOTSTRAP="bootstrap"
22MY_PV="${PV/_/-}" 22MY_PV="${PV/_/-}"
23MY_PV="${MY_PV/-beta/-test}" 23MY_PV="${MY_PV/-beta/-test}"
24MY_P="${PN}-${MY_PV}" 24MY_P="${PN}-${MY_PV}"
25VLC_SNAPSHOT_TIME="0013" 25VLC_SNAPSHOT_TIME="0013"
26 26
27PATCHLEVEL="85" 27PATCHLEVEL="86"
28DESCRIPTION="VLC media player - Video player and streamer" 28DESCRIPTION="VLC media player - Video player and streamer"
29HOMEPAGE="http://www.videolan.org/vlc/" 29HOMEPAGE="http://www.videolan.org/vlc/"
30if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild 30if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
31 SRC_URI="" 31 SRC_URI=""
32elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org 32elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
50 +gcrypt ggi gnome gnutls httpd id3tag ieee1394 jack kate kde libass libcaca 50 +gcrypt ggi gnome gnutls httpd id3tag ieee1394 jack kate kde libass libcaca
51 libnotify libproxy libtiger libv4l libv4l2 lirc live lua matroska mmx 51 libnotify libproxy libtiger libv4l libv4l2 lirc live lua matroska mmx
52 modplug mp3 mpeg mtp musepack ncurses nsplugin ogg opengl optimisememory oss 52 modplug mp3 mpeg mtp musepack ncurses nsplugin ogg opengl optimisememory oss
53 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba 53 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba
54 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream 54 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream
55 svg svga taglib theora truetype twolame udev upnp v4l v4l2 vcdx vlm 55 svg svga taglib theora truetype twolame udev upnp v4l v4l2 vaapi vcdx vlm
56 vorbis win32codecs wma-fixed x264 +xcb xml xosd xv zvbi" 56 vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi"
57 57
58RDEPEND=" 58RDEPEND="
59 !!<=media-video/vlc-1.0.99999
60 sys-libs/zlib 59 sys-libs/zlib
61 >=media-libs/libdvbpsi-0.1.6 60 >=media-libs/libdvbpsi-0.1.6
62 a52? ( >=media-libs/a52dec-0.7.4-r3 ) 61 a52? ( >=media-libs/a52dec-0.7.4-r3 )
63 aalib? ( media-libs/aalib ) 62 aalib? ( media-libs/aalib )
64 aac? ( >=media-libs/faad2-2.6.1 ) 63 aac? ( >=media-libs/faad2-2.6.1 )
65 alsa? ( media-libs/alsa-lib ) 64 alsa? ( media-libs/alsa-lib )
66 avahi? ( >=net-dns/avahi-0.6[dbus] ) 65 avahi? ( >=net-dns/avahi-0.6[dbus] )
67 bidi? ( >=dev-libs/fribidi-0.10.4 ) 66 bidi? ( >=dev-libs/fribidi-0.10.4 )
68 cdda? ( cddb? ( >=media-libs/libcddb-1.2.0 ) ) 67 cdda? ( cddb? ( >=media-libs/libcddb-1.2.0 ) )
69 dbus? ( >=sys-apps/dbus-1.0.2 ) 68 dbus? ( >=sys-apps/dbus-1.0.2 )
70 dc1394? ( >=sys-libs/libraw1394-2.0.1 69 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
71 >=media-libs/libdc1394-2.0.2 )
72 dirac? ( >=media-video/dirac-0.10.0 ) 70 dirac? ( >=media-video/dirac-0.10.0 )
73 directfb? ( dev-libs/DirectFB sys-libs/zlib ) 71 directfb? ( dev-libs/DirectFB sys-libs/zlib )
74 dts? ( media-libs/libdca ) 72 dts? ( media-libs/libdca )
75 dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 ) 73 dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 )
76 elibc_glibc? ( >=sys-libs/glibc-2.8 ) 74 elibc_glibc? ( >=sys-libs/glibc-2.8 )
77 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20090201 ) 75 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20090201 )
78 flac? ( media-libs/libogg 76 flac? ( media-libs/libogg >=media-libs/flac-1.1.2 )
79 >=media-libs/flac-1.1.2 )
80 fluidsynth? ( media-sound/fluidsynth ) 77 fluidsynth? ( media-sound/fluidsynth )
81 fontconfig? ( media-libs/fontconfig ) 78 fontconfig? ( media-libs/fontconfig )
82 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 ) 79 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
83 ggi? ( media-libs/libggi ) 80 ggi? ( media-libs/libggi )
84 gnome? ( gnome-base/gnome-vfs ) 81 gnome? ( gnome-base/gnome-vfs )
85 gnutls? ( >=net-libs/gnutls-1.7.4 ) 82 gnutls? ( >=net-libs/gnutls-1.7.4 >=dev-libs/libgcrypt-1.2.0 )
86 id3tag? ( media-libs/libid3tag sys-libs/zlib ) 83 id3tag? ( media-libs/libid3tag sys-libs/zlib )
87 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 ) 84 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
88 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) 85 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
89 kate? ( >=media-libs/libkate-0.1.1 ) 86 kate? ( >=media-libs/libkate-0.1.1 )
90 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig ) 87 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig )
93 libproxy? ( net-libs/libproxy ) 90 libproxy? ( net-libs/libproxy )
94 libtiger? ( media-libs/libtiger ) 91 libtiger? ( media-libs/libtiger )
95 lirc? ( app-misc/lirc ) 92 lirc? ( app-misc/lirc )
96 live? ( >=media-plugins/live-2008.07.06 ) 93 live? ( >=media-plugins/live-2008.07.06 )
97 lua? ( >=dev-lang/lua-5.1 ) 94 lua? ( >=dev-lang/lua-5.1 )
98 matroska? ( 95 matroska? ( >=dev-libs/libebml-0.7.6 >=media-libs/libmatroska-0.8.0 )
99 >=dev-libs/libebml-0.7.6
100 >=media-libs/libmatroska-0.8.0 )
101 modplug? ( >=media-libs/libmodplug-0.8 ) 96 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
102 mp3? ( media-libs/libmad ) 97 mp3? ( media-libs/libmad )
103 mpeg? ( >=media-libs/libmpeg2-0.3.2 ) 98 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
104 mtp? ( >=media-libs/libmtp-0.3.0 ) 99 mtp? ( >=media-libs/libmtp-1.0.0 )
105 musepack? ( >=media-sound/musepack-tools-444 ) 100 musepack? ( >=media-sound/musepack-tools-444 )
106 ncurses? ( sys-libs/ncurses ) 101 ncurses? ( sys-libs/ncurses )
107 nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt ) 102 nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt )
108 ogg? ( media-libs/libogg ) 103 ogg? ( media-libs/libogg )
109 opengl? ( virtual/opengl ) 104 opengl? ( virtual/opengl x11-libs/libX11[xcb] )
110 png? ( media-libs/libpng sys-libs/zlib ) 105 png? ( media-libs/libpng sys-libs/zlib )
111 projectm? ( media-libs/libprojectm ) 106 projectm? ( media-libs/libprojectm )
112 pulseaudio? ( >=media-sound/pulseaudio-0.9.11 ) 107 pulseaudio? ( >=media-sound/pulseaudio-0.9.11
108 !X? ( >=media-sound/pulseaudio-0.9.11[-X] ) )
113 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 x11-libs/libX11 ) 109 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 x11-libs/libX11 )
114 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 ) 110 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
115 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] 111 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] <net-fs/samba-3.4 ) )
116 <net-fs/samba-3.4 ) )
117 schroedinger? ( >=media-libs/schroedinger-1.0.6 ) 112 schroedinger? ( >=media-libs/schroedinger-1.0.6 )
118 sdl? ( >=media-libs/libsdl-1.2.8 113 sdl? ( >=media-libs/libsdl-1.2.8
119 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) ) 114 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
120 shout? ( media-libs/libshout ) 115 shout? ( media-libs/libshout )
121 skins? ( 116 skins? (
127 sqlite? ( >=dev-db/sqlite-3.6.0:3 ) 122 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
128 svg? ( >=gnome-base/librsvg-2.9.0 ) 123 svg? ( >=gnome-base/librsvg-2.9.0 )
129 svga? ( media-libs/svgalib ) 124 svga? ( media-libs/svgalib )
130 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib ) 125 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
131 theora? ( >=media-libs/libtheora-1.0_beta3 ) 126 theora? ( >=media-libs/libtheora-1.0_beta3 )
132 truetype? ( media-libs/freetype 127 truetype? ( media-libs/freetype media-fonts/dejavu )
133 media-fonts/dejavu )
134 twolame? ( media-sound/twolame ) 128 twolame? ( media-sound/twolame )
135 udev? ( >=sys-fs/udev-142 ) 129 udev? ( >=sys-fs/udev-142 )
136 upnp? ( net-libs/libupnp ) 130 upnp? ( net-libs/libupnp )
137 v4l2? ( libv4l2? ( media-libs/libv4l ) ) 131 v4l2? ( libv4l2? ( media-libs/libv4l ) )
138 v4l? ( libv4l? ( media-libs/libv4l ) ) 132 v4l? ( libv4l? ( media-libs/libv4l ) )
133 vaapi? ( x11-libs/libva >=media-video/ffmpeg-0.5_p22846 )
139 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 ) 134 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
140 vorbis? ( media-libs/libvorbis ) 135 vorbis? ( media-libs/libvorbis )
141 win32codecs? ( media-libs/win32codecs ) 136 win32codecs? ( media-libs/win32codecs )
137 X? ( x11-libs/libX11 )
142 x264? ( >=media-libs/x264-0.0.20090923 ) 138 x264? ( >=media-libs/x264-0.0.20090923 )
143 xcb? ( x11-libs/libxcb x11-libs/xcb-util ) 139 xcb? ( x11-libs/libxcb x11-libs/xcb-util )
144 xml? ( dev-libs/libxml2 ) 140 xml? ( dev-libs/libxml2 )
145 xosd? ( x11-libs/xosd ) 141 xosd? ( x11-libs/xosd )
146 zvbi? ( >=media-libs/zvbi-0.2.25 ) 142 zvbi? ( >=media-libs/zvbi-0.2.25 )
147 " 143 "
148 144
149DEPEND="${RDEPEND} 145DEPEND="${RDEPEND}
146 !!<=media-video/vlc-1.0.99999
150 dvb? ( sys-kernel/linux-headers ) 147 dvb? ( sys-kernel/linux-headers )
151 kde? ( >=kde-base/kdelibs-4 ) 148 kde? ( >=kde-base/kdelibs-4 )
152 v4l? ( sys-kernel/linux-headers ) 149 v4l? ( sys-kernel/linux-headers )
153 v4l2? ( >=sys-kernel/linux-headers-2.6.25 ) 150 v4l2? ( >=sys-kernel/linux-headers-2.6.25 )
154 xcb? ( x11-proto/xproto ) 151 xcb? ( x11-proto/xproto )
171vlc_use_enable_force() { 168vlc_use_enable_force() {
172 use $1 && echo "--enable-$2" 169 use $1 && echo "--enable-$2"
173} 170}
174 171
175pkg_setup() { 172pkg_setup() {
176 if has_version '<=media-video/vlc-1.0.99999'; then
177 eerror "Please unmerge vlc-1.0.x first before installing ${P}"
178 eerror "If you don't do that, some plugins will get linked against"
179 eerror "the old ${PN} version and will not work."
180 die "Unmerge vlc 1.0.x first"
181 fi
182
183 # Useflags we need to forcefuly enable 173 # Useflags we need to forcefuly enable
184 vlc_use_force remoteosd gcrypt 174 vlc_use_force remoteosd gcrypt
175 vlc_use_force gnutls gcrypt
185 vlc_use_force skins truetype 176 vlc_use_force skins truetype
186 vlc_use_force skins qt4 177 vlc_use_force skins qt4
187 vlc_use_force vlm stream 178 vlc_use_force vlm stream
179 vlc_use_force vaapi ffmpeg
188 180
189 # Useflags that will be automagically discarded if deps are not met 181 # Useflags that will be automagically discarded if deps are not met
190 vlc_use_needs bidi truetype 182 vlc_use_needs bidi truetype
191 vlc_use_needs cddb cdda 183 vlc_use_needs cddb cdda
192 vlc_use_needs fontconfig truetype 184 vlc_use_needs fontconfig truetype
314 $(use_enable udev) \ 306 $(use_enable udev) \
315 $(use_enable upnp) \ 307 $(use_enable upnp) \
316 $(use_enable v4l) \ 308 $(use_enable v4l) \
317 $(use_enable v4l2) \ 309 $(use_enable v4l2) \
318 $(use_enable vcdx) \ 310 $(use_enable vcdx) \
311 $(use_enable vaapi libva) \
319 $(use_enable vlm) \ 312 $(use_enable vlm) \
320 $(use_enable vorbis) \ 313 $(use_enable vorbis) \
321 $(use_enable win32codecs loader) \ 314 $(use_enable win32codecs loader) \
322 $(use_enable wma-fixed) \ 315 $(use_enable wma-fixed) \
316 $(use_with X x) \
323 $(use_enable x264) \ 317 $(use_enable x264) \
324 $(use_enable xcb) \ 318 $(use_enable xcb) \
325 $(use_enable xml libxml2) \ 319 $(use_enable xml libxml2) \
326 $(use_enable xosd) \ 320 $(use_enable xosd) \
327 $(use_enable xv xvideo) \ 321 $(use_enable xv xvideo) \
331 --disable-optimizations \ 325 --disable-optimizations \
332 --enable-fast-install \ 326 --enable-fast-install \
333 $(vlc_use_enable_force vlm sout) \ 327 $(vlc_use_enable_force vlm sout) \
334 $(vlc_use_enable_force skins qt4) \ 328 $(vlc_use_enable_force skins qt4) \
335 $(vlc_use_enable_force skins freetype) \ 329 $(vlc_use_enable_force skins freetype) \
336 $(vlc_use_enable_force remoteosd libgcrypt) 330 $(vlc_use_enable_force remoteosd libgcrypt) \
331 $(vlc_use_enable_force gnutls libgcrypt) \
332 $(vlc_use_enable_force vaapi avcodec)
337} 333}
338 334
339src_install() { 335src_install() {
340 emake DESTDIR="${D}" install || die "make install failed" 336 emake DESTDIR="${D}" install || die "make install failed"
341 337
350 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ 346 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
351 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" 347 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
352 fi 348 fi
353 349
354 use skins || rm -rf "${D}/usr/share/vlc/skins2" 350 use skins || rm -rf "${D}/usr/share/vlc/skins2"
355
356 for res in 16 32 48; do
357 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
358 newins "${S}"/share/vlc${res}x${res}.png vlc.png
359 done
360} 351}
361 352
362pkg_postinst() { 353pkg_postinst() {
363 gnome2_pkg_postinst 354 gnome2_pkg_postinst
364 355
365 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then 356 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
366 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" 357 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
367 "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" 358 "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
368 else 359 else
369 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" 360 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
370 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" 361 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
371 ewarn "If you do not do it, vlc will take a long time to load." 362 ewarn "If you do not do it, vlc will take a long time to load."
372 fi 363 fi

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.82

  ViewVC Help
Powered by ViewVC 1.1.20