Magellan Linux

Contents of /trunk/extras/libva/libva-1.8.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30489 - (show annotations) (download)
Fri Jan 26 09:49:52 2018 UTC (6 years, 3 months ago) by niro
File size: 1516 byte(s)
auto added: ver bump to 1.8.2-r2
1 # $Id$
2
3 PNAME="libva"
4 PVER="1.8.2"
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 >= 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=0
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 mbuild
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 }