47 |
|
|
48 |
# not the same version anymore |
# not the same version anymore |
49 |
MESA_PROGS_PVER="8.0.1" |
MESA_PROGS_PVER="8.0.1" |
50 |
|
MESA_PROGS_SRCFILE="mesa-demos-${MESA_PROGS_PVER}.tar.bz2" |
51 |
|
MESA_PROGS_SRCDIR="${BUILDDIR}/mesa-demos-${MESA_PROGS_PVER}" |
52 |
|
|
53 |
# must be set *after* the include of xorg! |
# must be set *after* the include of xorg! |
54 |
SRCFILE="MesaLib-${PVER/_/-}.tar.bz2" |
SRCFILE="MesaLib-${PVER/_/-}.tar.bz2" |
55 |
MESA_PROGS_SRCFILE="mesa-demos-${MESA_PROGS_PVER}.tar.bz2" |
# libs SRCDIR |
|
# libs + progs have the same SRCDIR |
|
56 |
SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" |
SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" |
57 |
|
|
58 |
SPLIT_PACKAGES="mesa |
SPLIT_PACKAGES="mesa |
203 |
src_prepare() |
src_prepare() |
204 |
{ |
{ |
205 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
206 |
all-abis "oldmunpack ${MESA_PROGS_SRCFILE} && cp -R ${SRCDIR}/* ${SRCDIR}-$(mabi)/" || die |
all-abis "oldmunpack ${MESA_PROGS_SRCFILE} && cp -R ${MESA_PROGS_SRCDIR}/* ${SRCDIR}-$(mabi)/" || die |
207 |
|
|
208 |
# no debug code in the drives (gentoo) |
# no debug code in the drives (gentoo) |
209 |
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/" ;' |
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/" ;' |