# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-softdevice/vdr-softdevice-0.3.1.ebuild,v 1.1 2006/11/06 08:12:47 zzam Exp $ inherit vdr-plugin ECVS_CVS_COMMAND="cvs" ECVS_ANON="yes" : ${ECVS_SERVER:="cvs.softdevice.berlios.de:/cvsroot/softdevice"} ECVS_OPTIONS="-dP" ECVS_MODULE="${VDRPLUGIN}" ECVS_TOPDIR="${DISTDIR}/${VDRPLUGIN}" inherit cvs DESCRIPTION="VDR plugin: Software output-Device" HOMEPAGE="http://softdevice.berlios.de/" SRC_URI="" KEYWORDS="~x86 ~amd64" LICENSE="GPL-2" SLOT="0" IUSE="xv fbcon directfb mmx mmxext xinerama" RDEPEND=">=media-video/vdr-1.3.36 >=media-video/ffmpeg-0.4.9_pre1 directfb? ( dev-libs/DirectFB dev-libs/DFB++ ) media-libs/alsa-lib xv? ( || ( ( x11-libs/libX11 x11-libs/libXext x11-libs/libXi x11-libs/libXv xinerama? ( x11-libs/libXinerama ) ) virtual/x11 ) )" DEPEND="${RDEPEND} xv? ( || ( ( x11-proto/xproto x11-proto/xextproto x11-libs/libXv xinerama? ( x11-proto/xineramaproto ) ) virtual/x11 ) ) fbcon? ( sys-kernel/linux-headers ) dev-util/pkgconfig" PATCHES=" ${FILESDIR}/vdr-softdevice-0.2.3-shm-fullscreen.diff ${FILESDIR}/softdevice-cvs-xinerama-configure-opts.patch ${FILESDIR}/vdr-softdevice-0.3.1-osdmode-software-default.diff" S=${WORKDIR}/${VDRPLUGIN} pkg_setup() { vdr-plugin_pkg_setup if use !xv && use !fbcon && use !directfb; then ewarn "You need to set at least one of these use-flags: xv fbcon directfb" die "no output-method enabled" fi COMPILE_SHM=0 if has_version ">=media-video/vdr-1.3.0"; then if use xv; then COMPILE_SHM=1 else einfo "SHM does only support xv at the moment" fi else einfo "SHM not supported on vdr-1.2" fi case ${COMPILE_SHM} in 0) einfo "SHM support will not be compiled." ;; 1) einfo "SHM support will be compiled." ;; esac # Check for ffmpeg relying on libtheora without pkg-config-file # Bug #142250 if built_with_use media-video/ffmpeg theora && \ has_version "