summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-05-11 09:16:46 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-05-11 09:16:46 +0000
commitb56e25d4ca8a9ea02df9bd9f126e0332737b5f5b (patch)
treec979e3d3c8a2e5fada2d92000a7f89e1c55525ba /x11-libs/libva
parentadd bitchy libpng deps to old version to prevent breakage (diff)
downloadgentoo-2-b56e25d4ca8a9ea02df9bd9f126e0332737b5f5b.tar.gz
gentoo-2-b56e25d4ca8a9ea02df9bd9f126e0332737b5f5b.tar.bz2
gentoo-2-b56e25d4ca8a9ea02df9bd9f126e0332737b5f5b.zip
initial import, bug #308871, ebuild by Olivier Huber <oli.huber@gmail.com> with small modifications by me
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs/libva')
-rw-r--r--x11-libs/libva/ChangeLog12
-rw-r--r--x11-libs/libva/files/libva-dont-install-tests.patch47
-rw-r--r--x11-libs/libva/libva-0.31.0_p13.ebuild58
-rw-r--r--x11-libs/libva/metadata.xml9
4 files changed, 126 insertions, 0 deletions
diff --git a/x11-libs/libva/ChangeLog b/x11-libs/libva/ChangeLog
new file mode 100644
index 000000000000..4cfe5bffffb9
--- /dev/null
+++ b/x11-libs/libva/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for x11-libs/libva
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/ChangeLog,v 1.1 2010/05/11 09:16:46 aballier Exp $
+
+*libva-0.31.0_p13 (11 May 2010)
+
+ 11 May 2010; Alexis Ballier <aballier@gentoo.org>
+ +libva-0.31.0_p13.ebuild, +files/libva-dont-install-tests.patch,
+ +metadata.xml:
+ initial import, bug #308871, ebuild by Olivier Huber <oli.huber@gmail.com>
+ with small modifications by me
+
diff --git a/x11-libs/libva/files/libva-dont-install-tests.patch b/x11-libs/libva/files/libva-dont-install-tests.patch
new file mode 100644
index 000000000000..43e4cbaa73ec
--- /dev/null
+++ b/x11-libs/libva/files/libva-dont-install-tests.patch
@@ -0,0 +1,47 @@
+Don't install some useeless tests programs
+
+
+--- test/basic/Makefile.am~ 2010-02-12 09:42:10.000000000 -0500
++++ test/basic/Makefile.am 2010-03-10 13:36:50.449834525 -0500
+@@ -20,7 +20,7 @@
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+-bin_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
++check_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
+ test_07 test_08 test_09 test_10 test_11
+
+ AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
+--- test/decode/Makefile.am~ 2010-02-12 09:42:10.000000000 -0500
++++ test/decode/Makefile.am 2010-03-10 13:37:09.636843464 -0500
+@@ -20,7 +20,7 @@
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+-bin_PROGRAMS = mpeg2vldemo
++check_PROGRAMS = mpeg2vldemo
+
+ AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
+
+--- test/encode/Makefile.am~ 2010-02-12 09:42:10.000000000 -0500
++++ test/encode/Makefile.am 2010-03-10 13:37:26.701846294 -0500
+@@ -20,7 +20,7 @@
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+-bin_PROGRAMS = h264encode
++check_PROGRAMS = h264encode
+
+ AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
+
+--- test/putsurface/Makefile.am~ 2010-03-10 13:18:55.270697040 -0500
++++ test/putsurface/Makefile.am 2010-03-10 13:38:08.106713556 -0500
+@@ -20,7 +20,7 @@
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+-bin_PROGRAMS = putsurface
++check_PROGRAMS = putsurface
+
+ AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
+
diff --git a/x11-libs/libva/libva-0.31.0_p13.ebuild b/x11-libs/libva/libva-0.31.0_p13.ebuild
new file mode 100644
index 000000000000..78f35486e6ce
--- /dev/null
+++ b/x11-libs/libva/libva-0.31.0_p13.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/libva-0.31.0_p13.ebuild,v 1.1 2010/05/11 09:16:46 aballier Exp $
+
+EAPI="2"
+inherit eutils autotools
+
+PLEVEL=${PV##*_p}
+MY_PV=${PV/_p*}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Video Acceleration (VA) API for Linux"
+HOMEPAGE="http://www.splitted-desktop.com/~gbeauchesne/libva/"
+SRC_URI="http://www.splitted-desktop.com/~gbeauchesne/${PN}/${PN}_${MY_PV}-1+sds${PLEVEL}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="opengl"
+
+VIDEO_CARDS="dummy" # intel, nvidia
+for x in ${VIDEO_CARDS}; do
+ IUSE+=" video_cards_${x}"
+done
+
+RDEPEND=">=x11-libs/libdrm-2.4
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXfixes
+ opengl? ( virtual/opengl )"
+# nvidia ? ( x11-libs/vdpau-video )
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+# video_cards_intel? gen4asm
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ EPATCH_SOURCE="${S}/debian/patches" EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" EPATCH_OPTS="-g0 -E --no-backup-if-mismatch -p1" epatch
+ epatch "${FILESDIR}"/libva-dont-install-tests.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable video_cards_dummy dummy-driver) \
+ --disable-i965-driver \
+ $(use_enable opengl glx)
+ # $(use_enable video_cards_intel i965-driver): someone please test it and
+ # add the missing bits
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ find "${D}" -name '*.la' -delete
+}
diff --git a/x11-libs/libva/metadata.xml b/x11-libs/libva/metadata.xml
new file mode 100644
index 000000000000..5c913a45f55c
--- /dev/null
+++ b/x11-libs/libva/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>x11</herd>
+ <maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+</pkgmetadata>