Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 336854 | Differences between
and this patch

Collapse All | Expand All

(-)libva-0.31.1_p4.ebuild (-17 / +11 lines)
Lines 2-22 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/libva-0.31.1_p4.ebuild,v 1.3 2010/12/25 20:36:14 fauli Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libva/libva-0.31.1_p4.ebuild,v 1.3 2010/12/25 20:36:14 fauli Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
inherit eutils autotools
6
inherit autotools
7
8
PLEVEL=${PV##*_p}
9
MY_PV=${PV/_p*}
10
MY_P=${PN}-${MY_PV}
11
7
12
DESCRIPTION="Video Acceleration (VA) API for Linux"
8
DESCRIPTION="Video Acceleration (VA) API for Linux"
13
HOMEPAGE="http://www.splitted-desktop.com/~gbeauchesne/libva/"
9
HOMEPAGE="http://cgit.freedesktop.org/libva/"
14
SRC_URI="http://www.splitted-desktop.com/~gbeauchesne/${PN}/${PN}_${MY_PV}-1+sds${PLEVEL}.tar.gz"
10
SRC_URI="http://cgit.freedesktop.org/${PN}/snapshot/${P}.tar.bz2"
15
11
16
LICENSE="MIT"
12
LICENSE="MIT"
17
SLOT="0"
13
SLOT="0"
18
KEYWORDS="amd64 x86"
14
KEYWORDS="~amd64 ~x86"
19
IUSE="opengl"
15
IUSE="opengl static-libs"
20
16
21
VIDEO_CARDS="dummy nvidia intel" # fglrx
17
VIDEO_CARDS="dummy nvidia intel" # fglrx
22
for x in ${VIDEO_CARDS}; do
18
for x in ${VIDEO_CARDS}; do
Lines 24-30 Link Here
24
done
20
done
25
21
26
RDEPEND=">=x11-libs/libdrm-2.4
22
RDEPEND=">=x11-libs/libdrm-2.4
27
	video_cards_intel? ( >=x11-libs/libdrm-2.4.21 )
23
	video_cards_intel? ( >=x11-libs/libdrm-2.4.23 )
28
	x11-libs/libX11
24
	x11-libs/libX11
29
	x11-libs/libXext
25
	x11-libs/libXext
30
	x11-libs/libXfixes
26
	x11-libs/libXfixes
Lines 35-45 Link Here
35
PDEPEND="video_cards_nvidia? ( x11-libs/vdpau-video )"
31
PDEPEND="video_cards_nvidia? ( x11-libs/vdpau-video )"
36
	#video_cards_fglrx? ( x11-libs/xvba-video )
32
	#video_cards_fglrx? ( x11-libs/xvba-video )
37
33
38
S=${WORKDIR}/${MY_P}
39
40
src_prepare() {
34
src_prepare() {
41
	EPATCH_SOURCE="${S}/debian/patches" EPATCH_SUFFIX="patch" \
35
	epatch "${FILESDIR}"/libva-dont-install-tests.patch
42
	EPATCH_FORCE="yes" EPATCH_OPTS="-g0 -E --no-backup-if-mismatch -p1" epatch
43
	eautoreconf
36
	eautoreconf
44
}
37
}
45
38
Lines 47-56 Link Here
47
	econf \
40
	econf \
48
	$(use_enable video_cards_dummy dummy-driver) \
41
	$(use_enable video_cards_dummy dummy-driver) \
49
	$(use_enable video_cards_intel i965-driver) \
42
	$(use_enable video_cards_intel i965-driver) \
50
	$(use_enable opengl glx)
43
	$(use_enable opengl glx) \
44
	$(use_enable static-libs static)
51
}
45
}
52
46
53
src_install() {
47
src_install() {
54
	emake DESTDIR="${D}" install || die "make install failed"
48
	emake DESTDIR="${D}" install || die "make install failed"
55
	find "${D}" -name '*.la' -delete
49
	use static-libs || find "${D}" -name '*.la' -delete
56
}
50
}

Return to bug 336854