20 |
SRC_URI=( |
SRC_URI=( |
21 |
http://dri.freedesktop.org/${PNAME}/${SRCFILE} |
http://dri.freedesktop.org/${PNAME}/${SRCFILE} |
22 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
23 |
|
mirror://${PNAME}/${PNAME}-${PVER}-no-cairo.patch |
24 |
) |
) |
25 |
|
|
26 |
UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball" |
UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball" |
27 |
|
|
28 |
|
src_prepare() |
29 |
|
{ |
30 |
|
munpack ${SRCFILE} || die |
31 |
|
|
32 |
|
# adds --disable-cairo-patch switch to disable hardcoded cairo dep |
33 |
|
mpatch ${PNAME}-${PVER}-no-cairo.patch || die |
34 |
|
mautoreconf || die |
35 |
|
} |
36 |
|
|
37 |
src_compile() |
src_compile() |
38 |
{ |
{ |
39 |
# add march=native to cflags to fix compile issues |
# add march=native to cflags to fix compile issues |
46 |
--enable-intel \ |
--enable-intel \ |
47 |
--enable-radeon \ |
--enable-radeon \ |
48 |
--enable-nouveau-experimental-api \ |
--enable-nouveau-experimental-api \ |
49 |
|
--disable-cairo-tests \ |
50 |
|| die |
|| die |
51 |
|
|
52 |
mmake || die |
mmake || die |