Magellan Linux

Diff of /branches/magellan-next/core/mesa/mesa-7.10.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7721 by niro, Mon May 30 13:32:28 2011 UTC revision 7731 by niro, Mon May 30 16:41:36 2011 UTC
# Line 39  SDEPEND="${MESA_DEPEND} Line 39  SDEPEND="${MESA_DEPEND}
39   >= x11-proto/fixesproto-5   >= x11-proto/fixesproto-5
40   >= x11-proto/damageproto-1.2"   >= x11-proto/damageproto-1.2"
41    
 PROVIDE="virtual/opengl"  
   
42  # must be set before the include of multilib!  # must be set before the include of multilib!
43  EMUL_LINUX_32=true  EMUL_LINUX_32=true
44  sminclude xorg mtools multilib  sminclude xorg mtools multilib
45    
46  # must be set *after* the include of xorg!  # must be set *after* the include of xorg!
47  SRCFILE="MesaLib-${PVER/_/-}.tar.bz2"  SRCFILE="MesaLib-${PVER/_/-}.tar.bz2"
48  PROGS_SRCFILE="MesaDemos-${PVER/_/-}.tar.bz2"  # libs SRCDIR
 # libs + progs have the same SRCDIR  
49  SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}"  SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}"
50    
51  SPLIT_PACKAGES="mesa  SPLIT_PACKAGES="mesa
  mesa-progs  
52   mesa-dri-swrast   mesa-dri-swrast
53   mesa-dri-i810   mesa-dri-i810
54   mesa-dri-i915   mesa-dri-i915
# Line 71  SPLIT_PACKAGES="mesa Line 67  SPLIT_PACKAGES="mesa
67    
68  SRC_URI=(  SRC_URI=(
69   ftp://ftp.freedesktop.org/pub/mesa/${PVER}/${SRCFILE}   ftp://ftp.freedesktop.org/pub/mesa/${PVER}/${SRCFILE}
  ftp://ftp.freedesktop.org/pub/mesa/${PVER}/${PROGS_SRCFILE}  
70   sourceforge://mesa3d/${SRCFILE}   sourceforge://mesa3d/${SRCFILE}
  sourceforge://mesa3d/${PROGS_SRCFILE}  
71   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
  mirror://${PNAME}/${PROGS_SRCFILE}  
72   mirror://${PNAME}/libGLU.la   mirror://${PNAME}/libGLU.la
73   mirror://${PNAME}/libGL.la   mirror://${PNAME}/libGL.la
74  )  )
# Line 89  split_info_mesa() Line 82  split_info_mesa()
82    
83   DEPEND="${MESA_DEPEND}"   DEPEND="${MESA_DEPEND}"
84    
85     PROVIDE="virtual/opengl"
86    
87   postinstall()   postinstall()
88   {   {
89   ${MROOT}/usr/sbin/opengl-update --use-old xorg   ${MROOT}/usr/sbin/opengl-update --use-old xorg
90   }   }
91  }  }
92    
 split_info_mesa-progs()  
 {  
  DESCRIPTION="Mesa3D OpenGL graphics applications."  
  PCATEGORIE="x11-apps"  
   
  DEPEND="${MESA_PROGS_DEPEND}"  
   
  unset postinstall  
 }  
   
93  split_info_mesa-dri-swrast()  split_info_mesa-dri-swrast()
94  {  {
95   DESCRIPTION="Mesa Software Raster DRI driver."   DESCRIPTION="Mesa Software Raster DRI driver."
# Line 198  split_info_mesa-dri-unichrome() Line 183  split_info_mesa-dri-unichrome()
183  src_prepare()  src_prepare()
184  {  {
185   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
  all-abis "oldmunpack ${PROGS_SRCFILE} && cp -R ${SRCDIR}/* ${SRCDIR}-$(mabi)/" || die  
186    
187   # no debug code in the drives (gentoo)   # no debug code in the drives (gentoo)
188   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/" ;'
# Line 221  src_compile() Line 205  src_compile()
205   --enable-asm \   --enable-asm \
206   --enable-xcb \   --enable-xcb \
207   --enable-glw \   --enable-glw \
208   --disable-gallium \   --enable-egl \
209   --disable-egl \   --enable-gles1 \
210     --enable-gles2 \
211     --enable-galium-egl \
212     --enable-gallium-svga \
213     --enable-gallium-radeon \
214     --enable-gallium-r600 \
215     --enable-gallium-nouveau \
216     --enable-gallium-swrast \
217     --enable-gallium-i915 \
218     --enable-gallium-i965 \
219     --with-state-trackers=glx,dri,egl,vega \
220   || die   || die
221    
222   # only build software renderer on multilib arches   # only build software renderer on multilib arches
# Line 231  src_compile() Line 225  src_compile()
225   only-m32 "echo 'DRI_DIRS =' >> configs/autoconf" || die   only-m32 "echo 'DRI_DIRS =' >> configs/autoconf" || die
226   fi   fi
227    
228   mmake || die   mmake -j1 || die
   
  # build mesa-progs  
  mmake -C progs/xdemos glxinfo || die  
  mmake -C progs/xdemos glxgears || die  
229  }  }
230    
231  src_install_mesa()  src_install_mesa()
# Line 325  src_install_mesa() Line 315  src_install_mesa()
315   done   done
316    
317   # remove dri-drivers   # remove dri-drivers
318   rm -r ${BINDIR}/usr/$(mlibdir)/dri || die  # rm -r ${BINDIR}/usr/$(mlibdir)/dri || die
319   if [[ $(mlibdir) != lib ]]  # if [[ $(mlibdir) != lib ]]
320   then  # then
321   rm -r ${BINDIR}/usr/lib/dri || die  # rm -r ${BINDIR}/usr/lib/dri || die
322   fi  # fi
 }  
   
 src_install_mesa-progs()  
 {  
  all-abis minstallexec ${SRCDIR}-$(mabi)/progs/xdemos/glxgears || die  
  all-abis minstallexec ${SRCDIR}-$(mabi)/progs/xdemos/glxinfo || die  
323  }  }
324    
325  src_install_mesa-dri-swrast()  src_install_mesa-dri-swrast()
# Line 411  src_install_mesa-dri-unichrome() Line 395  src_install_mesa-dri-unichrome()
395  {  {
396   mmake -C src/mesa/drivers/dri/unichrome DESTDIR=${BINDIR} install || die   mmake -C src/mesa/drivers/dri/unichrome DESTDIR=${BINDIR} install || die
397  }  }
398    

Legend:
Removed from v.7721  
changed lines
  Added in v.7731