243 |
SRC_URI=( |
SRC_URI=( |
244 |
ftp://ftp.freedesktop.org/pub/mesa/${PVER%_*}/${SRCFILE} |
ftp://ftp.freedesktop.org/pub/mesa/${PVER%_*}/${SRCFILE} |
245 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
246 |
|
mirror://${PNAME}/${PNAME}-${PVER}-loader-fstat-fix-implicit-function-declaration.patch |
247 |
) |
) |
248 |
|
|
249 |
#UP2DATE="updatecmd ftp://ftp.freedesktop.org/pub/mesa/current | highesttarball xz" |
#UP2DATE="updatecmd ftp://ftp.freedesktop.org/pub/mesa/current | highesttarball xz" |
565 |
{ |
{ |
566 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
567 |
|
|
568 |
|
# ftbfs fix |
569 |
|
# see commit: http://cgit.freedesktop.org/mesa/mesa/commit/src/loader/loader.c?id=771cd266b9d00bdcf2cf7acaa3c8363c358d7478 |
570 |
|
mpatch ${PNAME}-${PVER}-loader-fstat-fix-implicit-function-declaration.patch || die |
571 |
|
|
572 |
# no debug code in the drives (gentoo) |
# no debug code in the drives (gentoo) |
573 |
all-abis 'find src/mesa/drivers/dri -name *.[hc] -exec egrep -l "\#define\W+DO_DEBUG\W+1" {} \; | xargs --no-run-if-empty sed -i -re "s/\#define\W+DO_DEBUG\W+1/\#define DO_DEBUG 0/" ;' |
all-abis 'find src/mesa/drivers/dri -name *.[hc] -exec egrep -l "\#define\W+DO_DEBUG\W+1" {} \; | xargs --no-run-if-empty sed -i -re "s/\#define\W+DO_DEBUG\W+1/\#define DO_DEBUG 0/" ;' |
574 |
|
|