Contents of /branches/R11-unstable/extras/libva/libva-1.5.0-r1.smage2
Parent Directory | Revision Log
Revision 23583 -
(show annotations)
(download)
Fri Jan 16 08:17:18 2015 UTC (9 years, 8 months ago) by niro
Original Path: trunk/extras/libva/libva-1.5.0-r1.smage2
File size: 1473 byte(s)
Fri Jan 16 08:17:18 2015 UTC (9 years, 8 months ago) by niro
Original Path: trunk/extras/libva/libva-1.5.0-r1.smage2
File size: 1473 byte(s)
auto added: ver bump to 1.5.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="libva" |
4 | PVER="1.5.0" |
5 | PBUILD="r1" |
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.6 |
21 | >= x11-libs/libXext-1.3 |
22 | >= x11-libs/libXfixes-5 |
23 | >= sys-fs/libudev-216" |
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 | http://freedesktop.org/software/vaapi/releases/${PNAME}/${SRCFILE} |
41 | mirror://${PNAME}/${SRCFILE} |
42 | ) |
43 | |
44 | #UP2DATE="updatecmd http://cgit.freedesktop.org/${PNAME}/ | grep '${PNAME}-' | highesttarball gz" |
45 | UP2DATE="updatecmd http://freedesktop.org/software/vaapi/releases/${PNAME}/ | highesttarball" |
46 | |
47 | src_prepare() |
48 | { |
49 | munpack ${SRCFILE} || die |
50 | # configure is missing |
51 | mautoreconf || die |
52 | } |
53 | |
54 | src_compile() |
55 | { |
56 | local myconf |
57 | if [[ ${ENABLE_OPENGL} = 1 ]] |
58 | then |
59 | myconf="--enable-glx" |
60 | else |
61 | myconf"--disable-glx" |
62 | fi |
63 | |
64 | mconfigure \ |
65 | --with-drivers-path=/usr/'$(mlibdir)'/va/drivers \ |
66 | --enable-dummy-driver \ |
67 | --enable-dummy-backend \ |
68 | ${myconf} \ |
69 | || die |
70 | |
71 | mmake || die |
72 | } |