Annotation of /branches/R11-stable/extras/libva/libva-1.0.15-r2.smage2
Parent Directory | Revision Log
Revision 12819 -
(hide annotations)
(download)
Tue Jul 3 22:13:50 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/extras/libva/libva-1.0.15-r2.smage2
File size: 1369 byte(s)
Tue Jul 3 22:13:50 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/extras/libva/libva-1.0.15-r2.smage2
File size: 1369 byte(s)
-marked unstable
1 | niro | 12818 | # $Id$ |
2 | |||
3 | PNAME="libva" | ||
4 | PVER="1.0.15" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="x11-libs" | ||
8 | niro | 12819 | STATE="unstable" |
9 | niro | 12818 | |
10 | DESCRIPTION="Video Acceleration (VA) API for Linux." | ||
11 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/vaapi" | ||
12 | |||
13 | # dep-loop with >= mesa-8.0! | ||
14 | # mesa needs libva and libva need libglx from mesa | ||
15 | # boostrap without opengl support, build mesa and after that | ||
16 | # rebuild everything with opengl enabled | ||
17 | # | ||
18 | # enable=1 or disable=0 opengl support | ||
19 | ENABLE_OPENGL=1 | ||
20 | |||
21 | DEPEND=">= x11-libs/libX11-1.4 | ||
22 | >= x11-libs/libXext-1.3 | ||
23 | >= x11-libs/libXfixes-5 | ||
24 | >= sys-fs/libudev-185" | ||
25 | |||
26 | if [[ ${ENABLE_OPENGL} = 1 ]] | ||
27 | then | ||
28 | DEPEND="${DEPEND} | ||
29 | >= virtual/opengl" | ||
30 | fi | ||
31 | |||
32 | SDEPEND=">= dev-util/pkgconfig-0.25" | ||
33 | |||
34 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
35 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
36 | |||
37 | sminclude multilib | ||
38 | |||
39 | SRC_URI=( | ||
40 | http://cgit.freedesktop.org/${PNAME}/snapshot/${SRCFILE} | ||
41 | mirror://${PNAME}/${SRCFILE} | ||
42 | ) | ||
43 | |||
44 | UP2DATE="updatecmd http://cgit.freedesktop.org/${PNAME}/ | firsttarball" | ||
45 | |||
46 | src_prepare() | ||
47 | { | ||
48 | munpack ${SRCFILE} || die | ||
49 | # configure is missing | ||
50 | mautoreconf || die | ||
51 | } | ||
52 | |||
53 | src_compile() | ||
54 | { | ||
55 | local myconf | ||
56 | if [[ ${ENABLE_OPENGL} = 1 ]] | ||
57 | then | ||
58 | myconf="--enable-glx" | ||
59 | else | ||
60 | myconf"--disable-glx" | ||
61 | fi | ||
62 | |||
63 | mconfigure \ | ||
64 | --with-drivers-path=/usr/'$(mlibdir)'/va/drivers \ | ||
65 | --with-drivers-path="${EPREFIX}/usr/$(get_libdir)/va/drivers" \ | ||
66 | --enable-dummy-driver \ | ||
67 | --enable-dummy-backend \ | ||
68 | ${myconf} \ | ||
69 | || die | ||
70 | |||
71 | mmake || die | ||
72 | } |