Contents of /trunk/extras/libva/libva-1.8.1-r1.smage2
Parent Directory | Revision Log
Revision 28797 -
(show annotations)
(download)
Tue May 2 13:37:57 2017 UTC (7 years, 4 months ago) by niro
File size: 1509 byte(s)
Tue May 2 13:37:57 2017 UTC (7 years, 4 months ago) by niro
File size: 1509 byte(s)
auto added: ver bump to 1.8.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="libva" |
4 | PVER="1.8.1" |
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 >= media-libs/mesa! |
13 | # mesa needs libva and libva needs libglx from mesa |
14 | # bootstrap 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-228 |
24 | >= sys-libs/libstdc++-5.3" |
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 | http://freedesktop.org/software/vaapi/releases/${PNAME}/${SRCFILE} |
42 | mirror://${PNAME}/${SRCFILE} |
43 | ) |
44 | |
45 | #UP2DATE="updatecmd http://cgit.freedesktop.org/${PNAME}/ | grep '${PNAME}-' | highesttarball gz" |
46 | UP2DATE="updatecmd http://freedesktop.org/software/vaapi/releases/${PNAME}/ | highesttarball" |
47 | |
48 | src_prepare() |
49 | { |
50 | munpack ${SRCFILE} || die |
51 | # configure is missing |
52 | mautoreconf || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | local myconf |
58 | if [[ ${ENABLE_OPENGL} = 1 ]] |
59 | then |
60 | myconf="--enable-glx" |
61 | else |
62 | myconf"--disable-glx" |
63 | fi |
64 | |
65 | mconfigure \ |
66 | --with-drivers-path=/usr/'$(mlibdir)'/va/drivers \ |
67 | --enable-dummy-driver \ |
68 | --enable-dummy-backend \ |
69 | ${myconf} \ |
70 | || die |
71 | |
72 | mmake || die |
73 | } |