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 7729 by niro, Mon May 30 16:34:17 2011 UTC
# Line 45  PROVIDE="virtual/opengl" Line 45  PROVIDE="virtual/opengl"
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    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  PROGS_SRCFILE="MesaDemos-${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
  mesa-progs  
59   mesa-dri-swrast   mesa-dri-swrast
60   mesa-dri-i810   mesa-dri-i810
61   mesa-dri-i915   mesa-dri-i915
# Line 71  SPLIT_PACKAGES="mesa Line 74  SPLIT_PACKAGES="mesa
74    
75  SRC_URI=(  SRC_URI=(
76   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}  
77   sourceforge://mesa3d/${SRCFILE}   sourceforge://mesa3d/${SRCFILE}
  sourceforge://mesa3d/${PROGS_SRCFILE}  
78   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
  mirror://${PNAME}/${PROGS_SRCFILE}  
79   mirror://${PNAME}/libGLU.la   mirror://${PNAME}/libGLU.la
80   mirror://${PNAME}/libGL.la   mirror://${PNAME}/libGL.la
81  )  )
# Line 95  split_info_mesa() Line 95  split_info_mesa()
95   }   }
96  }  }
97    
 split_info_mesa-progs()  
 {  
  DESCRIPTION="Mesa3D OpenGL graphics applications."  
  PCATEGORIE="x11-apps"  
   
  DEPEND="${MESA_PROGS_DEPEND}"  
   
  unset postinstall  
 }  
   
98  split_info_mesa-dri-swrast()  split_info_mesa-dri-swrast()
99  {  {
100   DESCRIPTION="Mesa Software Raster DRI driver."   DESCRIPTION="Mesa Software Raster DRI driver."
# Line 198  split_info_mesa-dri-unichrome() Line 188  split_info_mesa-dri-unichrome()
188  src_prepare()  src_prepare()
189  {  {
190   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
  all-abis "oldmunpack ${PROGS_SRCFILE} && cp -R ${SRCDIR}/* ${SRCDIR}-$(mabi)/" || die  
191    
192   # no debug code in the drives (gentoo)   # no debug code in the drives (gentoo)
193   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 210  src_compile()
210   --enable-asm \   --enable-asm \
211   --enable-xcb \   --enable-xcb \
212   --enable-glw \   --enable-glw \
213   --disable-gallium \   --enable-egl \
214   --disable-egl \   --enable-gles1 \
215     --enable-gles2 \
216     --enable-galium-egl \
217     --enable-gallium-svga \
218     --enable-gallium-radeon \
219     --enable-gallium-r600 \
220     --enable-gallium-nouveau \
221     --enable-gallium-swrast \
222     --enable-gallium-i915 \
223     --enable-gallium-i965 \
224     --with-state-trackers=glx,dri,egl,vega \
225   || die   || die
226    
227   # only build software renderer on multilib arches   # only build software renderer on multilib arches
# Line 231  src_compile() Line 230  src_compile()
230   only-m32 "echo 'DRI_DIRS =' >> configs/autoconf" || die   only-m32 "echo 'DRI_DIRS =' >> configs/autoconf" || die
231   fi   fi
232    
233   mmake || die   mmake -j1 || die
   
  # build mesa-progs  
  mmake -C progs/xdemos glxinfo || die  
  mmake -C progs/xdemos glxgears || die  
234  }  }
235    
236  src_install_mesa()  src_install_mesa()
# Line 325  src_install_mesa() Line 320  src_install_mesa()
320   done   done
321    
322   # remove dri-drivers   # remove dri-drivers
323   rm -r ${BINDIR}/usr/$(mlibdir)/dri || die  # rm -r ${BINDIR}/usr/$(mlibdir)/dri || die
324   if [[ $(mlibdir) != lib ]]  # if [[ $(mlibdir) != lib ]]
325   then  # then
326   rm -r ${BINDIR}/usr/lib/dri || die  # rm -r ${BINDIR}/usr/lib/dri || die
327   fi  # fi
 }  
   
 src_install_mesa-progs()  
 {  
  all-abis minstallexec ${SRCDIR}-$(mabi)/progs/xdemos/glxgears || die  
  all-abis minstallexec ${SRCDIR}-$(mabi)/progs/xdemos/glxinfo || die  
328  }  }
329    
330  src_install_mesa-dri-swrast()  src_install_mesa-dri-swrast()
# Line 411  src_install_mesa-dri-unichrome() Line 400  src_install_mesa-dri-unichrome()
400  {  {
401   mmake -C src/mesa/drivers/dri/unichrome DESTDIR=${BINDIR} install || die   mmake -C src/mesa/drivers/dri/unichrome DESTDIR=${BINDIR} install || die
402  }  }
403    

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