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