/[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.95 Revision 1.96
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.95 2010/10/15 20:02:58 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.96 2010/10/15 21:43:36 aballier Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
15 else 15 else
16 EGIT_REPO_URI="git://git.videolan.org/vlc.git" 16 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
17 fi 17 fi
18fi 18fi
19 19
20inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic ${SCM} 20inherit eutils multilib autotools toolchain-funcs gnome2 qt4 flag-o-matic ${SCM}
21 21
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"
51fi 51fi
52IUSE="a52 aac aalib alsa altivec atmo avahi bidi cdda cddb dbus dc1394 52IUSE="a52 aac aalib alsa altivec atmo avahi bidi cdda cddb dbus dc1394
53 debug dirac directfb dts dvb dvd elibc_glibc fbcon fluidsynth +ffmpeg flac fontconfig 53 debug dirac directfb dts dvb dvd elibc_glibc fbcon fluidsynth +ffmpeg flac fontconfig
54 +gcrypt gnome gnutls httpd ieee1394 jack kate kde libass libcaca 54 +gcrypt gnome gnutls httpd ieee1394 jack kate kde libass libcaca
55 libnotify libproxy libtiger libv4l2 lirc live lua matroska mmx 55 libnotify libproxy libtiger libv4l2 lirc live lua matroska mmx
56 modplug mp3 mpeg mtp musepack ncurses nsplugin ogg opengl optimisememory oss 56 modplug mp3 mpeg mtp musepack ncurses ogg opengl optimisememory oss
57 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba 57 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba
58 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream 58 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream
59 svg taglib theora truetype twolame udev upnp v4l2 vaapi vcdx vlm 59 svg taglib theora truetype twolame udev upnp v4l2 vaapi vcdx vlm
60 vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi" 60 vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi"
61 61
99 mp3? ( media-libs/libmad ) 99 mp3? ( media-libs/libmad )
100 mpeg? ( >=media-libs/libmpeg2-0.3.2 ) 100 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
101 mtp? ( >=media-libs/libmtp-1.0.0 ) 101 mtp? ( >=media-libs/libmtp-1.0.0 )
102 musepack? ( >=media-sound/musepack-tools-444 ) 102 musepack? ( >=media-sound/musepack-tools-444 )
103 ncurses? ( sys-libs/ncurses ) 103 ncurses? ( sys-libs/ncurses )
104 nsplugin? ( >=net-libs/xulrunner-1.9.2 x11-libs/libXpm x11-libs/libXt x11-libs/libxcb x11-libs/xcb-util )
105 ogg? ( media-libs/libogg ) 104 ogg? ( media-libs/libogg )
106 opengl? ( virtual/opengl || ( <x11-libs/libX11-1.3.99.901[xcb] >=x11-libs/libX11-1.3.99.901 ) ) 105 opengl? ( virtual/opengl || ( <x11-libs/libX11-1.3.99.901[xcb] >=x11-libs/libX11-1.3.99.901 ) )
107 png? ( media-libs/libpng sys-libs/zlib ) 106 png? ( media-libs/libpng sys-libs/zlib )
108 projectm? ( media-libs/libprojectm ) 107 projectm? ( media-libs/libprojectm )
109 pulseaudio? ( >=media-sound/pulseaudio-0.9.11 108 pulseaudio? ( >=media-sound/pulseaudio-0.9.11
174 vlc_use_force gnutls gcrypt 173 vlc_use_force gnutls gcrypt
175 vlc_use_force skins truetype 174 vlc_use_force skins truetype
176 vlc_use_force skins qt4 175 vlc_use_force skins qt4
177 vlc_use_force vlm stream 176 vlc_use_force vlm stream
178 vlc_use_force vaapi ffmpeg 177 vlc_use_force vaapi ffmpeg
179 vlc_use_force nsplugin xcb
180 178
181 # Useflags that will be automagically discarded if deps are not met 179 # Useflags that will be automagically discarded if deps are not met
182 vlc_use_needs bidi truetype 180 vlc_use_needs bidi truetype
183 vlc_use_needs cddb cdda 181 vlc_use_needs cddb cdda
184 vlc_use_needs fontconfig truetype 182 vlc_use_needs fontconfig truetype
221 $(use_enable a52) \ 219 $(use_enable a52) \
222 $(use_enable aalib aa) \ 220 $(use_enable aalib aa) \
223 $(use_enable aac faad) \ 221 $(use_enable aac faad) \
224 $(use_enable alsa) \ 222 $(use_enable alsa) \
225 $(use_enable altivec) \ 223 $(use_enable altivec) \
226 --disable-asademux \
227 $(use_enable atmo) \ 224 $(use_enable atmo) \
228 $(use_enable avahi bonjour) \ 225 $(use_enable avahi bonjour) \
229 $(use_enable bidi fribidi) \ 226 $(use_enable bidi fribidi) \
230 $(use_enable cdda vcd) \ 227 $(use_enable cdda vcd) \
231 $(use_enable cddb libcddb) \ 228 $(use_enable cddb libcddb) \
266 $(use_enable mp3 mad) \ 263 $(use_enable mp3 mad) \
267 $(use_enable mpeg libmpeg2) \ 264 $(use_enable mpeg libmpeg2) \
268 $(use_enable mtp) \ 265 $(use_enable mtp) \
269 $(use_enable musepack mpc) \ 266 $(use_enable musepack mpc) \
270 $(use_enable ncurses) \ 267 $(use_enable ncurses) \
271 $(use_enable nsplugin mozilla) --with-mozilla-pkg=libxul \
272 $(use_enable ogg) \ 268 $(use_enable ogg) \
273 $(use_enable opengl glx) \ 269 $(use_enable opengl glx) \
274 $(use_enable optimisememory optimize-memory) \ 270 $(use_enable optimisememory optimize-memory) \
275 $(use_enable oss) \ 271 $(use_enable oss) \
276 $(use_enable png) \ 272 $(use_enable png) \
321 $(vlc_use_enable_force vlm sout) \ 317 $(vlc_use_enable_force vlm sout) \
322 $(vlc_use_enable_force skins qt4) \ 318 $(vlc_use_enable_force skins qt4) \
323 $(vlc_use_enable_force skins freetype) \ 319 $(vlc_use_enable_force skins freetype) \
324 $(vlc_use_enable_force remoteosd libgcrypt) \ 320 $(vlc_use_enable_force remoteosd libgcrypt) \
325 $(vlc_use_enable_force gnutls libgcrypt) \ 321 $(vlc_use_enable_force gnutls libgcrypt) \
326 $(vlc_use_enable_force vaapi avcodec) \ 322 $(vlc_use_enable_force vaapi avcodec)
327 $(vlc_use_enable_force nsplugin xcb)
328} 323}
329 324
330src_install() { 325src_install() {
331 emake DESTDIR="${D}" install || die "make install failed" 326 emake DESTDIR="${D}" install || die "make install failed"
332 327
333 dodoc AUTHORS HACKING THANKS NEWS README \ 328 dodoc AUTHORS HACKING THANKS NEWS README \
334 doc/fortunes.txt doc/intf-vcd.txt 329 doc/fortunes.txt doc/intf-vcd.txt
335 330
336 rm -rf "${D}/usr/share/doc/vlc" \ 331 rm -rf "${D}/usr/share/doc/vlc" \
337 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico} 332 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
338
339 if use nsplugin; then
340 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
341 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
342 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
343 fi
344 333
345 use skins || rm -rf "${D}/usr/share/vlc/skins2" 334 use skins || rm -rf "${D}/usr/share/vlc/skins2"
346 335
347 # Punt useless libtool's .la files 336 # Punt useless libtool's .la files
348 find "${D}" -name '*.la' -delete 337 find "${D}" -name '*.la' -delete

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.96

  ViewVC Help
Powered by ViewVC 1.1.20