# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils autotools MY_PN=vdpau-video DESCRIPTION="VDPAU Backend for Video Acceleration (VA) API" HOMEPAGE="http://www.freedesktop.org/wiki/Software/vaapi" SRC_URI="http://www.splitted-desktop.com/~gbeauchesne/${MY_PN}/${MY_PN}-${PV}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="opengl" DEPEND="x11-libs/libva[opengl?]" RDEPEND="$DEPEND" S=${WORKDIR}/${MY_PN}-${PV} src_prepare() { eautoreconf } src_configure() { econf \ $(use_enable opengl glx) } src_install() { emake DESTDIR="${D}" install || die "make install failed" }