47 |
|
|
48 |
# must be set *after* the include of xorg! |
# must be set *after* the include of xorg! |
49 |
SRCFILE="MesaLib-${PVER/_/-}.tar.bz2" |
SRCFILE="MesaLib-${PVER/_/-}.tar.bz2" |
50 |
PROGS_SRCFILE="MesaDemos-${PVER/_/-}.tar.gz" |
PROGS_SRCFILE="MesaDemos-${PVER/_/-}.tar.bz2" |
51 |
# libs + progs have the same SRCDIR |
# libs + progs have the same SRCDIR |
52 |
SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" |
SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" |
53 |
|
|
92 |
src_prepare() |
src_prepare() |
93 |
{ |
{ |
94 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
95 |
munpack ${PROGS_SRCFILE} || die |
all-abis old_munpack ${PROGS_SRCFILE} ${SRCDIR}-$(mabi) || die |
96 |
|
|
97 |
# no debug code in the drives (gentoo) |
# no debug code in the drives (gentoo) |
98 |
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/" ;' |