Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Fisiu

By: a guest on Oct 21st, 2010  |  syntax: Bash  |  size: 2.20 KB  |  hits: 111  |  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: andrewthomas <atswartz at gmail.com>
  2. # Contributor: endlessroad1991 <385989829@qq.com>
  3.  
  4. pkgname=mesa-r600-r700-git
  5. pkgver=20101021
  6. _realver=7.10
  7. pkgrel=1
  8. pkgdesc="Full Mesa 3D graphics library with all its components, **ONLY** for ati r6xx/r7xx video cards, built from the git master branch."
  9. arch=(i686 x86_64)
  10. url="http://mesa3d.org/"
  11. license=('LGPL')
  12. depends=('libdrm>=2.4.15' 'dri2proto>=2.1' 'glproto>=1.4.11' 'gcc-libs' 'libxmu' 'libxi' 'libxxf86vm' 'talloc' 'libxdamage' 'expat>=2.0.1')
  13. makedepends=('git' 'pkgconfig' 'imake')
  14. provides=("libgl=${_realver}" "mesa-full" "mesa-git" "mesa=${_realver}" "glut=${_realver}" "freeglut" "ati-dri=${_realver}")
  15. replaces=('libgl' 'mesa-full' 'mesa-git' 'mesa' 'glut' 'freeglut' 'ati-dri')
  16. conflicts=('libgl' 'mesa-full' 'mesa-git' 'mesa' 'glut' 'freeglut' 'ati-dri')
  17.  
  18.  
  19. _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
  20. _gitname="mesa"
  21.  
  22. build() {
  23.         msg "Connecting to git.freedesktop.org GIT server...."
  24.  
  25.         if [ -d ${srcdir}/$_gitname ] ; then
  26.                 cd $_gitname && git pull origin
  27.                 msg "The local files are updated."
  28.         else
  29.                 git clone $_gitroot
  30.         fi
  31.  
  32.         msg "GIT checkout done or server timeout"
  33.         msg "Starting make..."
  34.  
  35.         rm -rf ${srcdir}/$_gitname-build
  36.         cp -rH ${srcdir}/$_gitname ${srcdir}/$_gitname-build
  37.         cd ${srcdir}/$_gitname-build
  38.  
  39.         # python2 build fixes
  40.         sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  41.                 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find $srcdir -name '*.py')
  42.         sed -i -e "s|PYTHON2 = python|PYTHON2 = python2|" "${srcdir}"/$_gitname-build/configs/{default,autoconf.in}
  43.         sed -i -e "s|python|python2|" "${srcdir}"/$_gitname-build/src/gallium/auxiliary/Makefile
  44.  
  45.         ./autogen.sh --prefix=/usr \
  46.         --with-dri-driverdir=/usr/lib/xorg/modules/dri \
  47.         --with-dri-drivers=swrast,r600 \
  48.         --enable-glx-tls \
  49.         --with-driver=dri \
  50.         --enable-xcb \
  51.         --enable-egl \
  52.         --enable-glu \
  53.         --enable-glut \
  54.         --enable-glw \
  55.         --disable-gallium || return 1
  56.         make || return 1
  57.         make DESTDIR="${pkgdir}" install || return 1
  58.  
  59.  
  60.         install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
  61.         ln -sf libglx.xorg ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so || return 1
  62.  
  63.         install -m755 -d "${pkgdir}/usr/bin"
  64. }