--- smage/trunk/extras/mesa/mesa-7.8.1-r1.smage2 2010/10/13 20:38:29 582 +++ smage/trunk/extras/mesa/mesa-7.8.1-r1.smage2 2010/10/13 20:45:40 583 @@ -51,6 +51,7 @@ mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/libGLU.la mirror://${PNAME}/libGL.la + mirror://${PNAME}/${PNAME}-${PVER}-libdrm-fix.patch ) UP2DATE="updatecmd_sourceforge mesa3d MesaLib" @@ -59,6 +60,10 @@ { munpack ${SRCFILE} || die + # fix build issues with libdrm-2.4.20 + # see: https://bugs.freedesktop.org/show_bug.cgi?id=27612 + mpatch ${PNAME}-${PVER}-libdrm-fix.patch || die + # no debug code in the drives (gentoo) all-abis 'find src/mesa/drivers/dri -name *.[hc] -exec egrep -l "\#define\W+DO_DEBUG\W+1" {} \; | xargs sed -i -re "s/\#define\W+DO_DEBUG\W+1/\#define DO_DEBUG 0/" ;' @@ -93,7 +98,7 @@ mmake || die } -src_install() +mcore_generic_src_install() { # needed directories minstalldir /etc/env.d || die