45 |
EMUL_LINUX_32=true |
EMUL_LINUX_32=true |
46 |
sminclude xorg mtools multilib |
sminclude xorg mtools multilib |
47 |
|
|
48 |
|
# not the same version anymore |
49 |
|
MESA_PROGS_PVER="8.0.1" |
50 |
|
|
51 |
# must be set *after* the include of xorg! |
# must be set *after* the include of xorg! |
52 |
SRCFILE="MesaLib-${PVER/_/-}.tar.bz2" |
SRCFILE="MesaLib-${PVER/_/-}.tar.bz2" |
53 |
PROGS_SRCFILE="MesaDemos-${PVER/_/-}.tar.bz2" |
MESA_PROGS_SRCFILE="mesa-demos-${PROGS_PVER}.tar.bz2" |
54 |
# libs + progs have the same SRCDIR |
# libs + progs have the same SRCDIR |
55 |
SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" |
SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" |
56 |
|
|
74 |
|
|
75 |
SRC_URI=( |
SRC_URI=( |
76 |
ftp://ftp.freedesktop.org/pub/mesa/${PVER}/${SRCFILE} |
ftp://ftp.freedesktop.org/pub/mesa/${PVER}/${SRCFILE} |
77 |
ftp://ftp.freedesktop.org/pub/mesa/${PVER}/${PROGS_SRCFILE} |
ftp://ftp.freedesktop.org/pub/mesa/demos/${MESA_PROGS_PVER}/${MESA_PROGS_SRCFILE} |
78 |
sourceforge://mesa3d/${SRCFILE} |
sourceforge://mesa3d/${SRCFILE} |
79 |
sourceforge://mesa3d/${PROGS_SRCFILE} |
sourceforge://mesa3d/${MESA_PROGS_SRCFILE} |
80 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
81 |
mirror://${PNAME}/${PROGS_SRCFILE} |
mirror://${PNAME}/${MESA_PROGS_SRCFILE} |
82 |
mirror://${PNAME}/libGLU.la |
mirror://${PNAME}/libGLU.la |
83 |
mirror://${PNAME}/libGL.la |
mirror://${PNAME}/libGL.la |
84 |
) |
) |
103 |
DESCRIPTION="Mesa3D OpenGL graphics applications." |
DESCRIPTION="Mesa3D OpenGL graphics applications." |
104 |
PCATEGORIE="x11-apps" |
PCATEGORIE="x11-apps" |
105 |
|
|
106 |
|
PVER="${MESA_PROGS_PVER}" |
107 |
DEPEND="${MESA_PROGS_DEPEND}" |
DEPEND="${MESA_PROGS_DEPEND}" |
108 |
|
|
109 |
unset postinstall |
unset postinstall |
202 |
src_prepare() |
src_prepare() |
203 |
{ |
{ |
204 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
205 |
all-abis "oldmunpack ${PROGS_SRCFILE} && cp -R ${SRCDIR}/* ${SRCDIR}-$(mabi)/" || die |
all-abis "oldmunpack ${MESA_PROGS_SRCFILE} && cp -R ${SRCDIR}/* ${SRCDIR}-$(mabi)/" || die |
206 |
|
|
207 |
# no debug code in the drives (gentoo) |
# no debug code in the drives (gentoo) |
208 |
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/" ;' |