Annotation of /trunk/extras/libva/libva-1.8.2-r3.smage2
Parent Directory | Revision Log
Revision 30491 -
(hide annotations)
(download)
Fri Jan 26 11:49:05 2018 UTC (6 years, 8 months ago) by niro
File size: 1543 byte(s)
Fri Jan 26 11:49:05 2018 UTC (6 years, 8 months ago) by niro
File size: 1543 byte(s)
-opengl enabled rebuild
1 | niro | 30491 | # $Id$ |
2 | |||
3 | PNAME="libva" | ||
4 | PVER="1.8.2" | ||
5 | PBUILD="r3" | ||
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 | >= x11-libs/libdrm-2.4.86 | ||
24 | >= sys-fs/libudev-228 | ||
25 | >= sys-libs/libstdc++-5.3" | ||
26 | |||
27 | if [[ ${ENABLE_OPENGL} = 1 ]] | ||
28 | then | ||
29 | DEPEND="${DEPEND} | ||
30 | >= virtual/opengl" | ||
31 | fi | ||
32 | |||
33 | SDEPEND=">= dev-util/pkgconfig-0.25" | ||
34 | |||
35 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
36 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
37 | |||
38 | sminclude multilib mbuild | ||
39 | |||
40 | SRC_URI=( | ||
41 | #http://cgit.freedesktop.org/${PNAME}/snapshot/${SRCFILE} | ||
42 | http://freedesktop.org/software/vaapi/releases/${PNAME}/${SRCFILE} | ||
43 | mirror://${PNAME}/${SRCFILE} | ||
44 | ) | ||
45 | |||
46 | #UP2DATE="updatecmd http://cgit.freedesktop.org/${PNAME}/ | grep '${PNAME}-' | highesttarball gz" | ||
47 | UP2DATE="updatecmd http://freedesktop.org/software/vaapi/releases/${PNAME}/ | highesttarball" | ||
48 | |||
49 | src_prepare() | ||
50 | { | ||
51 | munpack ${SRCFILE} || die | ||
52 | # configure is missing | ||
53 | mautoreconf || die | ||
54 | } | ||
55 | |||
56 | src_compile() | ||
57 | { | ||
58 | local myconf | ||
59 | if [[ ${ENABLE_OPENGL} = 1 ]] | ||
60 | then | ||
61 | myconf="--enable-glx" | ||
62 | else | ||
63 | myconf"--disable-glx" | ||
64 | fi | ||
65 | |||
66 | mconfigure \ | ||
67 | --with-drivers-path=/usr/'$(mlibdir)'/va/drivers \ | ||
68 | --enable-dummy-driver \ | ||
69 | --enable-dummy-backend \ | ||
70 | ${myconf} \ | ||
71 | || die | ||
72 | |||
73 | mmake || die | ||
74 | } |