# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20071009.ebuild,v 1.11 2007/10/13 00:12:21 dirtyepic Exp $ WANT_AUTOMAKE=latest WANT_AUTOCONF=latest inherit eutils wxwidgets multilib autotools toolchain-funcs gnome2 nsplugins MY_PV="${PV/_/-}" MY_PV="${MY_PV/-beta/-test}" MY_P="${PN}-${MY_PV}" VLC_SNAPSHOT_TIME="0016" # Used for live ebuilds # ESVN_REPO_URI="svn://svn.videolan.org/vlc/trunk" # ESVN_PROJECT="${PN}-trunk" # ESVN_BOOTSTRAP="bootstrap" # ESVN_PATCHES="${WORKDIR}/patches/*.patch" PATCHLEVEL="42" DESCRIPTION="VLC media player - Video player and streamer" HOMEPAGE="http://www.videolan.org/vlc/" if [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2" MY_P="${P/_alpha*/}-svn" elif [[ "${P}" == *_p* ]]; then # Snapshots SRC_URI="mirror://gentoo/${P}.tar.bz2" MY_P="${P}" elif [[ "${MY_P}" == "${P}" ]]; then SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" else SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2" fi SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="3dfx a52 aalib alsa altivec arts avahi bidi cdda cddb cdio daap dbus dc1394 debug directfb dts dvb dvd esd fbcon ffmpeg flac ggi gnome gnutls hal httpd id3tag jack libcaca libgcrypt libnotify lirc live lua matroska mod mp3 mpeg musepack musicbrainz ncurses nsplugin ogg opengl optimisememory oss png pvr rtsp samba sdl sdl-image seamonkey shout skins speex stream svg svga taglib theora truetype twolame upnp v4l v4l2 vcd vcdx vlm vorbis win32codecs wxwindows X x264 xinerama xml xosd xulrunner xv" RDEPEND=" sys-libs/zlib media-libs/libdvbpsi 3dfx? ( media-libs/glide-v3 ) a52? ( >=media-libs/a52dec-0.7.4-r3 ) aalib? ( media-libs/aalib ) alsa? ( media-libs/alsa-lib ) arts? ( kde-base/arts ) avahi? ( >=net-dns/avahi-0.6 ) bidi? ( >=dev-libs/fribidi-0.10.4 ) cdda? ( >=dev-libs/libcdio-0.72 cddb? ( >=media-libs/libcddb-1.2.0 ) ) cdio? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 ) daap? ( >=media-libs/libopendaap-0.3.0 ) dbus? ( >=sys-apps/dbus-1.0.2 ) dc1394? ( sys-libs/libraw1394 =media-libs/libdvdnav-0.1.9 media-libs/libdvdplay ) esd? ( media-sound/esound ) ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20050226-r1 ) flac? ( media-libs/libogg >=media-libs/flac-1.1.2 ) ggi? ( media-libs/libggi ) gnome? ( gnome-base/gnome-vfs ) gnutls? ( >=net-libs/gnutls-1.3.3 ) hal? ( sys-apps/hal ) id3tag? ( media-libs/libid3tag sys-libs/zlib ) jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) libcaca? ( media-libs/libcaca ) libgcrypt? ( >=dev-libs/libgcrypt-1.2.0 ) libnotify? ( x11-libs/libnotify ) lirc? ( app-misc/lirc ) live? ( >=media-plugins/live-2007.02.20 ) lua? ( >=dev-lang/lua-5.1 ) matroska? ( >=dev-libs/libebml-0.7.6 >=media-libs/libmatroska-0.8.0 ) mod? ( media-libs/libmodplug ) mp3? ( media-libs/libmad ) mpeg? ( >=media-libs/libmpeg2-0.3.2 ) musepack? ( media-libs/libmpcdec ) musicbrainz? ( media-libs/musicbrainz ) ncurses? ( sys-libs/ncurses ) nsplugin? ( xulrunner? ( net-libs/xulrunner ) !xulrunner? ( seamonkey? ( www-client/seamonkey ) ) !xulrunner? ( !seamonkey? ( www-client/mozilla-firefox ) ) ) ogg? ( media-libs/libogg ) png? ( media-libs/libpng ) samba? ( net-fs/samba ) sdl? ( >=media-libs/libsdl-1.2.8 sdl-image? ( media-libs/sdl-image ) ) shout? ( media-libs/libshout ) speex? ( media-libs/speex ) svg? ( >=gnome-base/librsvg-2.9.0 ) svga? ( media-libs/svgalib ) taglib? ( media-libs/taglib ) theora? ( media-libs/libtheora ) truetype? ( media-libs/freetype media-fonts/ttf-bitstream-vera ) twolame? ( media-sound/twolame ) upnp? ( net-libs/libupnp ) v4l? ( sys-kernel/linux-headers ) v4l2? ( sys-kernel/linux-headers ) vorbis? ( media-libs/libvorbis ) win32codecs? ( media-libs/win32codecs ) wxwindows? ( =x11-libs/wxGTK-2.6* ) X? ( x11-libs/libX11 x11-libs/libXext xv? ( x11-libs/libXv ) xinerama? ( x11-libs/libXinerama ) opengl? ( virtual/opengl ) ) x264? ( >=media-libs/x264-svn-20061014 ) xml? ( dev-libs/libxml2 ) xosd? ( x11-libs/xosd ) " # Disabled features and reasons: # xvmc? ( x11-libs/libXvMC ) # Will probably compile only on x86 # dirac? ( media-video/dirac ) # Needs testing but can be ok # qt4? ( $(qt4_min_version 4.2.0 ) ) # Main addition of 0.9.0, will enable it when it'll be released # zvbi? ( >=media-libs/zvbi-0.2.25 ) # Dep not up to date enough # libgcrypt is mandatory at buildtime, and that's not only a matter of missing # m4s. Bug #195322 DEPEND="${RDEPEND} X? ( xinerama? ( x11-proto/xineramaproto ) ) dev-util/pkgconfig >=dev-libs/libgcrypt-1.2.0" S="${WORKDIR}/${MY_P}" # Dispalys a warning if the first use flag is set but not the second vlc_use_needs() { use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled." } pkg_setup() { if has_version '