Magellan Linux

Contents of /trunk/extras/libva/libva-1.0.15-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10162 - (show annotations) (download)
Wed Jan 18 12:37:41 2012 UTC (12 years, 8 months ago) by niro
File size: 1329 byte(s)
-respect dep loop with mesa-8.0
1 # $Id$
2
3 PNAME="libva"
4 PVER="1.0.15"
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.4
21 >= x11-libs/libXext-1.3
22 >= x11-libs/libXfixes-5"
23
24 if [[ ${ENABLE_OPENGL} = 1 ]]
25 then
26 DEPEND="${DEPEND}
27 >= virtual/opengl"
28 fi
29
30 SDEPEND=">= dev-util/pkgconfig-0.25"
31
32 SRCFILE="${PNAME}-${PVER}.tar.bz2"
33 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
34
35 sminclude multilib
36
37 SRC_URI=(
38 http://cgit.freedesktop.org/${PNAME}/snapshot/${SRCFILE}
39 mirror://${PNAME}/${SRCFILE}
40 )
41
42 UP2DATE="updatecmd http://cgit.freedesktop.org/${PNAME}/ | firsttarball"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 # configure is missing
48 mautoreconf || die
49 }
50
51 src_compile()
52 {
53 local myconf
54 if [[ ${ENABLE_OPENGL} = 1 ]]
55 then
56 myconf="--enable-glx"
57 else
58 myconf"--disable-glx"
59 fi
60
61 mconfigure \
62 --with-drivers-path=/usr/'$(mlibdir)'/va/drivers \
63 --with-drivers-path="${EPREFIX}/usr/$(get_libdir)/va/drivers" \
64 --enable-dummy-driver \
65 --enable-dummy-backend \
66 ${myconf} \
67 || die
68
69 mmake || die
70 }