/[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.74 Revision 1.80
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.74 2010/05/25 07:02:33 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.80 2010/07/03 04:48:09 zmedico 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"
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 +X 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 )
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-1.0.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
113 !X? ( >=media-sound/pulseaudio-0.9.11[-X] ) ) 108 !X? ( >=media-sound/pulseaudio-0.9.11[-X] ) )
114 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 )
115 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 ) 110 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
116 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] 111 samba? ( || ( >=net-fs/samba-3.4.6[smbclient] <net-fs/samba-3.4 ) )
117 <net-fs/samba-3.4 ) )
118 schroedinger? ( >=media-libs/schroedinger-1.0.6 ) 112 schroedinger? ( >=media-libs/schroedinger-1.0.6 )
119 sdl? ( >=media-libs/libsdl-1.2.8 113 sdl? ( >=media-libs/libsdl-1.2.8
120 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) ) 114 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
121 shout? ( media-libs/libshout ) 115 shout? ( media-libs/libshout )
122 skins? ( 116 skins? (
128 sqlite? ( >=dev-db/sqlite-3.6.0:3 ) 122 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
129 svg? ( >=gnome-base/librsvg-2.9.0 ) 123 svg? ( >=gnome-base/librsvg-2.9.0 )
130 svga? ( media-libs/svgalib ) 124 svga? ( media-libs/svgalib )
131 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib ) 125 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
132 theora? ( >=media-libs/libtheora-1.0_beta3 ) 126 theora? ( >=media-libs/libtheora-1.0_beta3 )
133 truetype? ( media-libs/freetype 127 truetype? ( media-libs/freetype media-fonts/dejavu )
134 media-fonts/dejavu )
135 twolame? ( media-sound/twolame ) 128 twolame? ( media-sound/twolame )
136 udev? ( >=sys-fs/udev-142 ) 129 udev? ( >=sys-fs/udev-142 )
137 upnp? ( net-libs/libupnp ) 130 upnp? ( net-libs/libupnp )
138 v4l2? ( libv4l2? ( media-libs/libv4l ) ) 131 v4l2? ( libv4l2? ( media-libs/libv4l ) )
139 v4l? ( libv4l? ( media-libs/libv4l ) ) 132 v4l? ( libv4l? ( media-libs/libv4l ) )
148 xosd? ( x11-libs/xosd ) 141 xosd? ( x11-libs/xosd )
149 zvbi? ( >=media-libs/zvbi-0.2.25 ) 142 zvbi? ( >=media-libs/zvbi-0.2.25 )
150 " 143 "
151 144
152DEPEND="${RDEPEND} 145DEPEND="${RDEPEND}
146 !!<=media-video/vlc-1.0.99999
153 dvb? ( sys-kernel/linux-headers ) 147 dvb? ( sys-kernel/linux-headers )
154 kde? ( >=kde-base/kdelibs-4 ) 148 kde? ( >=kde-base/kdelibs-4 )
155 v4l? ( sys-kernel/linux-headers ) 149 v4l? ( sys-kernel/linux-headers )
156 v4l2? ( >=sys-kernel/linux-headers-2.6.25 ) 150 v4l2? ( >=sys-kernel/linux-headers-2.6.25 )
157 xcb? ( x11-proto/xproto ) 151 xcb? ( x11-proto/xproto )
174vlc_use_enable_force() { 168vlc_use_enable_force() {
175 use $1 && echo "--enable-$2" 169 use $1 && echo "--enable-$2"
176} 170}
177 171
178pkg_setup() { 172pkg_setup() {
179 if has_version '<=media-video/vlc-1.0.99999'; then
180 eerror "Please unmerge vlc-1.0.x first before installing ${P}"
181 eerror "If you don't do that, some plugins will get linked against"
182 eerror "the old ${PN} version and will not work."
183 die "Unmerge vlc 1.0.x first"
184 fi
185
186 # Useflags we need to forcefuly enable 173 # Useflags we need to forcefuly enable
187 vlc_use_force remoteosd gcrypt 174 vlc_use_force remoteosd gcrypt
175 vlc_use_force gnutls gcrypt
188 vlc_use_force skins truetype 176 vlc_use_force skins truetype
189 vlc_use_force skins qt4 177 vlc_use_force skins qt4
190 vlc_use_force vlm stream 178 vlc_use_force vlm stream
191 vlc_use_force vaapi ffmpeg 179 vlc_use_force vaapi ffmpeg
192 180
338 --enable-fast-install \ 326 --enable-fast-install \
339 $(vlc_use_enable_force vlm sout) \ 327 $(vlc_use_enable_force vlm sout) \
340 $(vlc_use_enable_force skins qt4) \ 328 $(vlc_use_enable_force skins qt4) \
341 $(vlc_use_enable_force skins freetype) \ 329 $(vlc_use_enable_force skins freetype) \
342 $(vlc_use_enable_force remoteosd libgcrypt) \ 330 $(vlc_use_enable_force remoteosd libgcrypt) \
331 $(vlc_use_enable_force gnutls libgcrypt) \
343 $(vlc_use_enable_force vaapi avcodec) 332 $(vlc_use_enable_force vaapi avcodec)
344} 333}
345 334
346src_install() { 335src_install() {
347 emake DESTDIR="${D}" install || die "make install failed" 336 emake DESTDIR="${D}" install || die "make install failed"
357 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ 346 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
358 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" 347 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
359 fi 348 fi
360 349
361 use skins || rm -rf "${D}/usr/share/vlc/skins2" 350 use skins || rm -rf "${D}/usr/share/vlc/skins2"
362
363 for res in 16 32 48; do
364 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
365 newins "${S}"/share/vlc${res}x${res}.png vlc.png
366 done
367} 351}
368 352
369pkg_postinst() { 353pkg_postinst() {
370 gnome2_pkg_postinst 354 gnome2_pkg_postinst
371 355
372 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then 356 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
373 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/"
374 "/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/"
375 else 359 else
376 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" 360 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
377 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" 361 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
378 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."
379 fi 363 fi

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.80

  ViewVC Help
Powered by ViewVC 1.1.20