Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

lib32-mesa-full

By: a guest on Jun 10th, 2013  |  syntax: Bash  |  size: 2.40 KB  |  views: 78  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: LEW21 <lew21@xtreeme.org>
  2.  
  3. pkgname=lib32-mesa-full
  4. pkgver=9.2.0_devel.56992
  5. _realver=9.2
  6. pkgrel=1
  7. pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch. For Wayland/VDPAU support ask multilib maintainers for lib32-{wayland,libvdpau}. RadeonSI support disabled until LLVM 3.3 gets released."
  8. arch=('x86_64')
  9. url="http://mesa3d.org/"
  10. license=('LGPL')
  11. depends=('lib32-libdrm' 'lib32-libxxf86vm' 'lib32-libxdamage' 'lib32-systemd' 'lib32-llvm') # no lib32-libvdpau, no lib32-wayland ;(
  12. makedepends=('git' 'python2' 'lib32-libxml2' 'lib32-libx11' 'glproto' 'dri2proto' 'lib32-libxvmc')
  13. optdepends=('lib32-libtxc_dxtn: S3TC support'
  14. 'lib32-mesa-demos: glxinfo and glxgears'
  15. 'opengl-man-pages: for the OpenGL API man pages')
  16.  
  17. provides=("lib32-mesa=${_realver}" "lib32-mesa-libgl=${_realver}" "lib32-libgl" 'lib32-libglapi' 'lib32-osmesa' 'lib32-libgbm' 'lib32-libgles' 'lib32-libegl'
  18. "lib32-ati-dri=${_realver}" "lib32-intel-dri=${_realver}" "lib32-nouveau-dri=${_realver}" "lib32-svga-dri=${_realver}")
  19. conflicts=('lib32-mesa' 'lib32-mesa-libgl' 'lib32-libgl' 'lib32-libglapi' 'lib32-osmesa' 'lib32-libgbm' 'lib32-libgles' 'lib32-libegl' 'lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-svga-dri')
  20.  
  21. source=(git://anongit.freedesktop.org/git/mesa/mesa)
  22. sha1sums=('SKIP')
  23.  
  24. pkgver() {
  25.         cd mesa
  26.         echo $(grep --max-count=1 -F "AC_INIT([Mesa], [" configure.ac | cut -f2 -d " " | cut -f2 -d "[" | cut -f1 -d "]" | tr "-" "_").$(git rev-list --count HEAD)
  27. }
  28.  
  29. build() {
  30.         export CC="gcc -m32"
  31.         export CXX="g++ -m32"
  32.         export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  33.         export LLVM_CONFIG=/usr/bin/llvm-config32
  34.  
  35.         cd mesa
  36.  
  37.         export PYTHON=/usr/bin/python2
  38.  
  39.         ./autogen.sh --enable-32-bit --libdir=/usr/lib32 --prefix=/usr \
  40.                 --sysconfdir=/etc \
  41.                 --with-dri-driverdir=/usr/lib32/xorg/modules/dri \
  42.                 --with-gallium-drivers=r300,r600,nouveau,svga,swrast \
  43.                 --with-dri-drivers=i915,i965,r200,radeon,nouveau \
  44.                 --disable-radeon-llvm \
  45.                 --enable-gallium-llvm \
  46.                 --enable-egl \
  47.                 --enable-gallium-egl \
  48.                 --with-egl-platforms=drm,x11 \
  49.                 --enable-shared-glapi \
  50.                 --enable-gbm \
  51.                 --enable-glx-tls \
  52.                 --enable-osmesa \
  53.                 --enable-gles1 \
  54.                 --enable-gles2 \
  55.                 --enable-texture-float \
  56.                 --disable-xa \
  57.                 --disable-vdpau \
  58.  
  59.         make
  60. }
  61.  
  62. package() {
  63.         cd mesa
  64.  
  65.         make DESTDIR="${pkgdir}" install
  66.  
  67.         rm -Rf "${pkgdir}/usr/include"
  68.         rm -Rf "${pkgdir}/etc"
  69. }