/[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.72 Revision 1.78
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.72 2010/05/19 07:32:11 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.78 2010/06/25 09:18:24 aballier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
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 vaapi 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 59 !!<=media-video/vlc-1.0.99999
60 sys-libs/zlib 60 sys-libs/zlib
61 >=media-libs/libdvbpsi-0.1.6 61 >=media-libs/libdvbpsi-0.1.6
80 fluidsynth? ( media-sound/fluidsynth ) 80 fluidsynth? ( media-sound/fluidsynth )
81 fontconfig? ( media-libs/fontconfig ) 81 fontconfig? ( media-libs/fontconfig )
82 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 ) 82 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
83 ggi? ( media-libs/libggi ) 83 ggi? ( media-libs/libggi )
84 gnome? ( gnome-base/gnome-vfs ) 84 gnome? ( gnome-base/gnome-vfs )
85 gnutls? ( >=net-libs/gnutls-1.7.4 ) 85 gnutls? ( >=net-libs/gnutls-1.7.4 >=dev-libs/libgcrypt-1.2.0 )
86 id3tag? ( media-libs/libid3tag sys-libs/zlib ) 86 id3tag? ( media-libs/libid3tag sys-libs/zlib )
87 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 ) 87 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 ) 88 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
89 kate? ( >=media-libs/libkate-0.1.1 ) 89 kate? ( >=media-libs/libkate-0.1.1 )
90 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig ) 90 libass? ( >=media-libs/libass-0.9.6 media-libs/fontconfig )
99 >=dev-libs/libebml-0.7.6 99 >=dev-libs/libebml-0.7.6
100 >=media-libs/libmatroska-0.8.0 ) 100 >=media-libs/libmatroska-0.8.0 )
101 modplug? ( >=media-libs/libmodplug-0.8 ) 101 modplug? ( >=media-libs/libmodplug-0.8 )
102 mp3? ( media-libs/libmad ) 102 mp3? ( media-libs/libmad )
103 mpeg? ( >=media-libs/libmpeg2-0.3.2 ) 103 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
104 mtp? ( >=media-libs/libmtp-0.3.0 ) 104 mtp? ( >=media-libs/libmtp-1.0.0 )
105 musepack? ( >=media-sound/musepack-tools-444 ) 105 musepack? ( >=media-sound/musepack-tools-444 )
106 ncurses? ( sys-libs/ncurses ) 106 ncurses? ( sys-libs/ncurses )
107 nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt ) 107 nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt )
108 ogg? ( media-libs/libogg ) 108 ogg? ( media-libs/libogg )
109 opengl? ( virtual/opengl ) 109 opengl? ( virtual/opengl x11-libs/libX11[xcb] )
110 png? ( media-libs/libpng sys-libs/zlib ) 110 png? ( media-libs/libpng sys-libs/zlib )
111 projectm? ( media-libs/libprojectm ) 111 projectm? ( media-libs/libprojectm )
112 pulseaudio? ( >=media-sound/pulseaudio-0.9.11 x11-libs/libX11 ) 112 pulseaudio? ( >=media-sound/pulseaudio-0.9.11
113 !X? ( >=media-sound/pulseaudio-0.9.11[-X] ) )
113 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 x11-libs/libX11 ) 114 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 x11-libs/libX11 )
114 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 ) 115 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
115 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] 116 samba? ( || ( >=net-fs/samba-3.4.6[smbclient]
116 <net-fs/samba-3.4 ) ) 117 <net-fs/samba-3.4 ) )
117 schroedinger? ( >=media-libs/schroedinger-1.0.6 ) 118 schroedinger? ( >=media-libs/schroedinger-1.0.6 )
138 v4l? ( libv4l? ( media-libs/libv4l ) ) 139 v4l? ( libv4l? ( media-libs/libv4l ) )
139 vaapi? ( x11-libs/libva >=media-video/ffmpeg-0.5_p22846 ) 140 vaapi? ( x11-libs/libva >=media-video/ffmpeg-0.5_p22846 )
140 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 ) 141 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
141 vorbis? ( media-libs/libvorbis ) 142 vorbis? ( media-libs/libvorbis )
142 win32codecs? ( media-libs/win32codecs ) 143 win32codecs? ( media-libs/win32codecs )
144 X? ( x11-libs/libX11 )
143 x264? ( >=media-libs/x264-0.0.20090923 ) 145 x264? ( >=media-libs/x264-0.0.20090923 )
144 xcb? ( x11-libs/libxcb x11-libs/xcb-util ) 146 xcb? ( x11-libs/libxcb x11-libs/xcb-util )
145 xml? ( dev-libs/libxml2 ) 147 xml? ( dev-libs/libxml2 )
146 xosd? ( x11-libs/xosd ) 148 xosd? ( x11-libs/xosd )
147 zvbi? ( >=media-libs/zvbi-0.2.25 ) 149 zvbi? ( >=media-libs/zvbi-0.2.25 )
181 die "Unmerge vlc 1.0.x first" 183 die "Unmerge vlc 1.0.x first"
182 fi 184 fi
183 185
184 # Useflags we need to forcefuly enable 186 # Useflags we need to forcefuly enable
185 vlc_use_force remoteosd gcrypt 187 vlc_use_force remoteosd gcrypt
188 vlc_use_force gnutls gcrypt
186 vlc_use_force skins truetype 189 vlc_use_force skins truetype
187 vlc_use_force skins qt4 190 vlc_use_force skins qt4
188 vlc_use_force vlm stream 191 vlc_use_force vlm stream
189 vlc_use_force vaapi ffmpeg 192 vlc_use_force vaapi ffmpeg
190 193
321 $(use_enable vaapi libva) \ 324 $(use_enable vaapi libva) \
322 $(use_enable vlm) \ 325 $(use_enable vlm) \
323 $(use_enable vorbis) \ 326 $(use_enable vorbis) \
324 $(use_enable win32codecs loader) \ 327 $(use_enable win32codecs loader) \
325 $(use_enable wma-fixed) \ 328 $(use_enable wma-fixed) \
329 $(use_with X x) \
326 $(use_enable x264) \ 330 $(use_enable x264) \
327 $(use_enable xcb) \ 331 $(use_enable xcb) \
328 $(use_enable xml libxml2) \ 332 $(use_enable xml libxml2) \
329 $(use_enable xosd) \ 333 $(use_enable xosd) \
330 $(use_enable xv xvideo) \ 334 $(use_enable xv xvideo) \
335 --enable-fast-install \ 339 --enable-fast-install \
336 $(vlc_use_enable_force vlm sout) \ 340 $(vlc_use_enable_force vlm sout) \
337 $(vlc_use_enable_force skins qt4) \ 341 $(vlc_use_enable_force skins qt4) \
338 $(vlc_use_enable_force skins freetype) \ 342 $(vlc_use_enable_force skins freetype) \
339 $(vlc_use_enable_force remoteosd libgcrypt) \ 343 $(vlc_use_enable_force remoteosd libgcrypt) \
344 $(vlc_use_enable_force gnutls libgcrypt) \
340 $(vlc_use_enable_force vaapi avcodec) 345 $(vlc_use_enable_force vaapi avcodec)
341} 346}
342 347
343src_install() { 348src_install() {
344 emake DESTDIR="${D}" install || die "make install failed" 349 emake DESTDIR="${D}" install || die "make install failed"
354 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ 359 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
355 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" 360 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
356 fi 361 fi
357 362
358 use skins || rm -rf "${D}/usr/share/vlc/skins2" 363 use skins || rm -rf "${D}/usr/share/vlc/skins2"
359
360 for res in 16 32 48; do
361 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
362 newins "${S}"/share/vlc${res}x${res}.png vlc.png
363 done
364} 364}
365 365
366pkg_postinst() { 366pkg_postinst() {
367 gnome2_pkg_postinst 367 gnome2_pkg_postinst
368 368
369 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then 369 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
370 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" 370 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
371 "/usr/$(get_libdir)/vlc/vlc-cache-gen" "/usr/$(get_libdir)/vlc/plugins/" 371 "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
372 else 372 else
373 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" 373 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
374 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" 374 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
375 ewarn "If you do not do it, vlc will take a long time to load." 375 ewarn "If you do not do it, vlc will take a long time to load."
376 fi 376 fi

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.20