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

PKGBUILD

By: a guest on Mar 16th, 2012  |  syntax: Bash  |  size: 2.51 KB  |  views: 195  |  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. pkgbase=mesa-dri1
  2. pkgname=('unichrome-dri' 'mach64-dri' 'mga-dri' 'r128-dri' 'savage-dri' 'sis-dri' 'tdfx-dri')
  3.  
  4. pkgver=7.11.2
  5. pkgrel=1
  6. arch=('i686' 'x86_64')
  7. makedepends=('glproto>=1.4.14' 'libdrm>=2.4.26' 'libxxf86vm>=1.1.1' 'libxdamage>=1.1.3' 'expat>=2.0.1' 'libx11>=1.4.3' 'libxt>=1.1.1'
  8.              'gcc-libs>=4.6.1' 'python2' 'libxml2' 'imake' 'llvm' 'udev')
  9. url="http://mesa3d.sourceforge.net"
  10. license=('custom')
  11. source=("ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2")
  12. md5sums=('0837c52698fe3252369c3fdb5195afcc')
  13.  
  14. build() {
  15.     cd ${srcdir}/?esa-*
  16.     autoreconf -vfi
  17.     ./configure --prefix=/usr \
  18.     --with-dri-driverdir=/usr/lib/xorg/modules/dri \
  19.     --with-dri-drivers=unichrome,mach64,mga,r128,savage,sis,tdfx \
  20.     --with-gallium-drivers= \
  21.     --disable-gallium-llvm \
  22.     --enable-glx-tls \
  23.     --with-driver=dri \
  24.     --enable-xcb \
  25.     --disable-glut \
  26.     --enable-gles1 \
  27.     --enable-gles2 \
  28.     --enable-egl \
  29.     --enable-texture-float \
  30.     --disable-shared-dricore
  31.  
  32.     make
  33. }
  34.  
  35. package_unichrome-dri() {
  36.   depends=("libgl")
  37.   pkgdesc="Mesa DRI drivers for S3 Graphics/VIA Unichrome"
  38.  
  39.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/unichrome DESTDIR="${pkgdir}" install
  40. }
  41.  
  42. package_mach64-dri() {
  43.   depends=("libgl")
  44.   pkgdesc="Mesa DRI drivers for ATI Mach64"
  45.   conflicts=('xf86-video-mach64<6.8.2')
  46.  
  47.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/mach64 DESTDIR="${pkgdir}" install
  48. }
  49.  
  50. package_mga-dri() {
  51.   depends=("libgl")
  52.   pkgdesc="Mesa DRI drivers for Matrox"
  53.   conflicts=('xf86-video-mga<1.4.11')
  54.  
  55.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/mga DESTDIR="${pkgdir}" install
  56. }
  57.  
  58. package_r128-dri() {
  59.   depends=("libgl")
  60.   pkgdesc="Mesa DRI drivers for ATI Rage128"
  61.   conflicts=('xf86-video-r128<6.8.1')
  62.  
  63.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/r128 DESTDIR="${pkgdir}" install
  64. }
  65.  
  66. package_savage-dri() {
  67.   depends=("libgl")
  68.   pkgdesc="Mesa DRI drivers for S3 Sraphics/VIA Savage"
  69.   conflicts=('xf86-video-savage<2.3.1')
  70.  
  71.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/savage DESTDIR="${pkgdir}" install
  72. }
  73.  
  74. package_sis-dri() {
  75.   depends=("libgl")
  76.   pkgdesc="Mesa DRI drivers for SiS"
  77.   conflicts=('xf86-video-sis<0.10.2')
  78.  
  79.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/sis DESTDIR="${pkgdir}" install
  80. }
  81.  
  82. package_tdfx-dri() {
  83.   depends=("libgl")
  84.   pkgdesc="Mesa DRI drivers for 3dfx"
  85.   conflicts=('xf86-video-tdfx<1.4.3')
  86.  
  87.   make -C ${srcdir}/?esa-*/src/mesa/drivers/dri/tdfx DESTDIR="${pkgdir}" install
  88. }