/[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.92 Revision 1.98
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.92 2010/09/21 07:58:03 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.98 2010/10/16 17:13:54 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"
26 25
27PATCHLEVEL="86" 26PATCHLEVEL="89"
28DESCRIPTION="VLC media player - Video player and streamer" 27DESCRIPTION="VLC media player - Video player and streamer"
29HOMEPAGE="http://www.videolan.org/vlc/" 28HOMEPAGE="http://www.videolan.org/vlc/"
30if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild 29if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
31 SRC_URI="" 30 SRC_URI=""
32elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
33 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
34 MY_P="${P/_alpha*/}-git"
35elif [[ "${MY_P}" == "${P}" ]]; then 31elif [[ "${MY_P}" == "${P}" ]]; then
36 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" 32 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
37else 33else
38 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2" 34 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
39fi 35fi
51fi 47fi
52IUSE="a52 aac aalib alsa altivec atmo avahi bidi cdda cddb dbus dc1394 48IUSE="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 49 debug dirac directfb dts dvb dvd elibc_glibc fbcon fluidsynth +ffmpeg flac fontconfig
54 +gcrypt gnome gnutls httpd ieee1394 jack kate kde libass libcaca 50 +gcrypt gnome gnutls httpd ieee1394 jack kate kde libass libcaca
55 libnotify libproxy libtiger libv4l2 lirc live lua matroska mmx 51 libnotify libproxy libtiger libv4l2 lirc live lua matroska mmx
56 modplug mp3 mpeg mtp musepack ncurses nsplugin ogg opengl optimisememory oss 52 modplug mp3 mpeg mtp musepack ncurses ogg opengl optimisememory oss
57 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba 53 png projectm pulseaudio pvr +qt4 remoteosd rtsp run-as-root samba
58 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream 54 schroedinger sdl sdl-image shine shout skins speex sqlite sse stream
59 svg taglib theora truetype twolame udev upnp v4l2 vaapi vcdx vlm 55 svg taglib theora truetype twolame udev upnp v4l2 vaapi vcdx vlm
60 vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi" 56 vorbis win32codecs wma-fixed +X x264 +xcb xml xosd xv zvbi"
61 57
90 libcaca? ( >=media-libs/libcaca-0.99_beta14 ) 86 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
91 libnotify? ( x11-libs/libnotify ) 87 libnotify? ( x11-libs/libnotify )
92 libproxy? ( net-libs/libproxy ) 88 libproxy? ( net-libs/libproxy )
93 libtiger? ( media-libs/libtiger ) 89 libtiger? ( media-libs/libtiger )
94 lirc? ( app-misc/lirc ) 90 lirc? ( app-misc/lirc )
95 live? ( >=media-plugins/live-2008.07.06 ) 91 live? ( >=media-plugins/live-2010.10.15 )
96 lua? ( >=dev-lang/lua-5.1 ) 92 lua? ( >=dev-lang/lua-5.1 )
97 matroska? ( >=dev-libs/libebml-0.7.6 >=media-libs/libmatroska-0.8.0 ) 93 matroska? ( >=dev-libs/libebml-1.0.0 >=media-libs/libmatroska-1.0.0 )
98 modplug? ( >=media-libs/libmodplug-0.8.8.1 ) 94 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
99 mp3? ( media-libs/libmad ) 95 mp3? ( media-libs/libmad )
100 mpeg? ( >=media-libs/libmpeg2-0.3.2 ) 96 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
101 mtp? ( >=media-libs/libmtp-1.0.0 ) 97 mtp? ( >=media-libs/libmtp-1.0.0 )
102 musepack? ( >=media-sound/musepack-tools-444 ) 98 musepack? ( >=media-sound/musepack-tools-444 )
103 ncurses? ( sys-libs/ncurses ) 99 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 ) 100 ogg? ( media-libs/libogg )
106 opengl? ( virtual/opengl || ( <x11-libs/libX11-1.3.99.901[xcb] >=x11-libs/libX11-1.3.99.901 ) ) 101 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 ) 102 png? ( media-libs/libpng sys-libs/zlib )
108 projectm? ( media-libs/libprojectm ) 103 projectm? ( media-libs/libprojectm )
109 pulseaudio? ( >=media-sound/pulseaudio-0.9.11 104 pulseaudio? ( >=media-sound/pulseaudio-0.9.11
174 vlc_use_force gnutls gcrypt 169 vlc_use_force gnutls gcrypt
175 vlc_use_force skins truetype 170 vlc_use_force skins truetype
176 vlc_use_force skins qt4 171 vlc_use_force skins qt4
177 vlc_use_force vlm stream 172 vlc_use_force vlm stream
178 vlc_use_force vaapi ffmpeg 173 vlc_use_force vaapi ffmpeg
179 vlc_use_force nsplugin xcb
180 174
181 # Useflags that will be automagically discarded if deps are not met 175 # Useflags that will be automagically discarded if deps are not met
182 vlc_use_needs bidi truetype 176 vlc_use_needs bidi truetype
183 vlc_use_needs cddb cdda 177 vlc_use_needs cddb cdda
184 vlc_use_needs fontconfig truetype 178 vlc_use_needs fontconfig truetype
216 210
217 # It would fail if -fforce-addr is used due to too few registers... 211 # It would fail if -fforce-addr is used due to too few registers...
218 use x86 && filter-flags -fforce-addr 212 use x86 && filter-flags -fforce-addr
219 213
220 econf \ 214 econf \
215 --docdir=/usr/share/doc/${PF} \
221 $(use_enable a52) \ 216 $(use_enable a52) \
222 $(use_enable aalib aa) \ 217 $(use_enable aalib aa) \
223 $(use_enable aac faad) \ 218 $(use_enable aac faad) \
224 $(use_enable alsa) \ 219 $(use_enable alsa) \
225 $(use_enable altivec) \ 220 $(use_enable altivec) \
226 --disable-asademux \
227 $(use_enable atmo) \ 221 $(use_enable atmo) \
228 $(use_enable avahi bonjour) \ 222 $(use_enable avahi bonjour) \
229 $(use_enable bidi fribidi) \ 223 $(use_enable bidi fribidi) \
230 $(use_enable cdda vcd) \ 224 $(use_enable cdda vcd) \
231 $(use_enable cddb libcddb) \ 225 $(use_enable cddb libcddb) \
266 $(use_enable mp3 mad) \ 260 $(use_enable mp3 mad) \
267 $(use_enable mpeg libmpeg2) \ 261 $(use_enable mpeg libmpeg2) \
268 $(use_enable mtp) \ 262 $(use_enable mtp) \
269 $(use_enable musepack mpc) \ 263 $(use_enable musepack mpc) \
270 $(use_enable ncurses) \ 264 $(use_enable ncurses) \
271 $(use_enable nsplugin mozilla) --with-mozilla-pkg=libxul \
272 $(use_enable ogg) \ 265 $(use_enable ogg) \
273 $(use_enable opengl glx) \ 266 $(use_enable opengl glx) \
274 $(use_enable optimisememory optimize-memory) \ 267 $(use_enable optimisememory optimize-memory) \
275 $(use_enable oss) \ 268 $(use_enable oss) \
276 $(use_enable png) \ 269 $(use_enable png) \
321 $(vlc_use_enable_force vlm sout) \ 314 $(vlc_use_enable_force vlm sout) \
322 $(vlc_use_enable_force skins qt4) \ 315 $(vlc_use_enable_force skins qt4) \
323 $(vlc_use_enable_force skins freetype) \ 316 $(vlc_use_enable_force skins freetype) \
324 $(vlc_use_enable_force remoteosd libgcrypt) \ 317 $(vlc_use_enable_force remoteosd libgcrypt) \
325 $(vlc_use_enable_force gnutls libgcrypt) \ 318 $(vlc_use_enable_force gnutls libgcrypt) \
326 $(vlc_use_enable_force vaapi avcodec) \ 319 $(vlc_use_enable_force vaapi avcodec)
327 $(vlc_use_enable_force nsplugin xcb)
328} 320}
329 321
330src_install() { 322src_install() {
331 emake DESTDIR="${D}" install || die "make install failed" 323 emake DESTDIR="${D}" install || die "make install failed"
332 324
333 dodoc AUTHORS HACKING THANKS NEWS README \ 325 dodoc AUTHORS HACKING THANKS NEWS README \
334 doc/fortunes.txt doc/intf-vcd.txt 326 doc/fortunes.txt doc/intf-vcd.txt
335
336 rm -rf "${D}/usr/share/doc/vlc" \
337 "${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
345 use skins || rm -rf "${D}/usr/share/vlc/skins2"
346 327
347 # Punt useless libtool's .la files 328 # Punt useless libtool's .la files
348 find "${D}" -name '*.la' -delete 329 find "${D}" -name '*.la' -delete
349} 330}
350 331

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.98

  ViewVC Help
Powered by ViewVC 1.1.20