From a06ebce8da08be5803d040c63ea28704b7db580f Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Fri, 8 Jun 2012 15:30:46 +0000 Subject: version bump and add egl useflag (Portage version: 2.2.0_alpha110/cvs/Linux x86_64) --- x11-libs/libva/ChangeLog | 8 ++++- x11-libs/libva/libva-1.1.0.ebuild | 71 +++++++++++++++++++++++++++++++++++++++ x11-libs/libva/libva-9999.ebuild | 8 +++-- x11-libs/libva/metadata.xml | 3 ++ 4 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 x11-libs/libva/libva-1.1.0.ebuild (limited to 'x11-libs/libva') diff --git a/x11-libs/libva/ChangeLog b/x11-libs/libva/ChangeLog index 4f02b4d998e4..33acd9dbcccc 100644 --- a/x11-libs/libva/ChangeLog +++ b/x11-libs/libva/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-libs/libva # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/ChangeLog,v 1.35 2012/05/05 03:52:22 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/ChangeLog,v 1.36 2012/06/08 15:30:46 aballier Exp $ + +*libva-1.1.0 (08 Jun 2012) + + 08 Jun 2012; Alexis Ballier +libva-1.1.0.ebuild, + libva-9999.ebuild: + version bump and add egl useflag 05 May 2012; Jeff Horelick libva-1.0.15.ebuild, libva-9999.ebuild: diff --git a/x11-libs/libva/libva-1.1.0.ebuild b/x11-libs/libva/libva-1.1.0.ebuild new file mode 100644 index 000000000000..b799ab52b0b1 --- /dev/null +++ b/x11-libs/libva/libva-1.1.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/libva-1.1.0.ebuild,v 1.1 2012/06/08 15:30:46 aballier Exp $ + +EAPI="3" + +SCM="" +if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild + SCM=git-2 + EGIT_BRANCH=master + EGIT_REPO_URI="git://anongit.freedesktop.org/vaapi/libva" +fi + +inherit autotools ${SCM} multilib + +DESCRIPTION="Video Acceleration (VA) API for Linux" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/vaapi" +if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild + SRC_URI="" + S="${WORKDIR}/${PN}" +else + SRC_URI="http://cgit.freedesktop.org/vaapi/libva/snapshot/${P}.tar.bz2" +fi + +LICENSE="MIT" +SLOT="0" +if [ "${PV%9999}" = "${PV}" ] ; then + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +else + KEYWORDS="" +fi +IUSE="egl opengl" + +VIDEO_CARDS="dummy nvidia intel fglrx" +for x in ${VIDEO_CARDS}; do + IUSE+=" video_cards_${x}" +done + +RDEPEND=">=x11-libs/libdrm-2.4 + video_cards_dummy? ( sys-fs/udev ) + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXfixes + egl? ( media-libs/mesa[egl] ) + opengl? ( virtual/opengl )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" +PDEPEND="video_cards_nvidia? ( x11-libs/vdpau-video ) + video_cards_fglrx? ( x11-libs/xvba-video ) + video_cards_intel? ( x11-libs/libva-intel-driver ) + " + +src_prepare() { + eautoreconf +} + +src_configure() { + econf \ + --with-drivers-path="${EPREFIX}/usr/$(get_libdir)/va/drivers" \ + $(use_enable video_cards_dummy dummy-driver) \ + $(use_enable video_cards_dummy dummy-backend) \ + $(use_enable opengl glx) \ + $(use_enable egl) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc NEWS || die + find "${D}" -name '*.la' -delete +} diff --git a/x11-libs/libva/libva-9999.ebuild b/x11-libs/libva/libva-9999.ebuild index 3547918e6e1e..37c586d25ebf 100644 --- a/x11-libs/libva/libva-9999.ebuild +++ b/x11-libs/libva/libva-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/libva-9999.ebuild,v 1.5 2012/05/05 03:52:23 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/libva-9999.ebuild,v 1.6 2012/06/08 15:30:46 aballier Exp $ EAPI="3" @@ -29,7 +29,7 @@ if [ "${PV%9999}" = "${PV}" ] ; then else KEYWORDS="" fi -IUSE="opengl" +IUSE="egl opengl" VIDEO_CARDS="dummy nvidia intel fglrx" for x in ${VIDEO_CARDS}; do @@ -41,6 +41,7 @@ RDEPEND=">=x11-libs/libdrm-2.4 x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes + egl? ( media-libs/mesa[egl] ) opengl? ( virtual/opengl )" DEPEND="${RDEPEND} @@ -59,7 +60,8 @@ src_configure() { --with-drivers-path="${EPREFIX}/usr/$(get_libdir)/va/drivers" \ $(use_enable video_cards_dummy dummy-driver) \ $(use_enable video_cards_dummy dummy-backend) \ - $(use_enable opengl glx) + $(use_enable opengl glx) \ + $(use_enable egl) } src_install() { diff --git a/x11-libs/libva/metadata.xml b/x11-libs/libva/metadata.xml index 2f31686aaf7c..5ad359b8c7f2 100644 --- a/x11-libs/libva/metadata.xml +++ b/x11-libs/libva/metadata.xml @@ -5,4 +5,7 @@ aballier@gentoo.org Alexis Ballier + + Enables EGL support. + -- cgit v1.2.3-65-gdbad