updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / mesa-full-i915 / PKGBUILD
blob497698071d460910bd15516a14f72ce5fdd1fd9f
1 # Maintainer: Cdh <chrisdhaag@googlemail.com>
3 pkgname=mesa-full-i915
4 pkgver=20110706
5 _realver=8.0
6 pkgrel=1
7 pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch (mesa 7.11). Compiles mesa for i915c (classic mesa). For gallium see mesa-full-i915g."
8 arch=(i686 x86_64)
9 url="http://mesa3d.org/"
10 license=('LGPL')
11 depends=('libdrm-git' 'dri2proto>=2.1' 'glproto>=1.4.10' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'libxmu' 'talloc')
12 makedepends=('pkgconfig' 'imake')
13 provides=("libgl=${_realver}" "mesa=${_realver}" "freeglut=${_realver}" "glut=${_realver}" "intel-dri=${_realver}") 
14 replaces=('libgl' 'mesa' 'freeglut' 'glut' 'intel-dri' )
15 conflicts=('libgl' 'mesa' 'freeglut' 'glut' 'intel-dri' 'mesa-full-i915g')
17 _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
18 _gitname="mesa"
20 build() {
21         msg "Connecting to git.freedesktop.org GIT server...."
23         if [ -d $startdir/src/$_gitname ] ; then
24                 cd $_gitname && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone $_gitroot
28         fi
30         msg "GIT checkout done or server timeout"
31         msg "Starting make..."
33         rm -rf $startdir/src/$_gitname-build
34         cp -rH $startdir/src/$_gitname $startdir/src/$_gitname-build
35         cd ${srcdir}/${_gitname}-build
37         cd "${startdir}/src/mesa-build"
38         ./autogen.sh --prefix=/usr \
39         --with-dri-drivers=i915 \
40         --with-gallium-drivers= \
41         --with-dri-driverdir=/usr/lib/xorg/modules/dri \
42         --enable-glx-tls \
43         --enable-egl \
44         --disable-gallium-egl \
45         --enable-glu \
46         --enable-gles1 \
47         --enable-gles2 \
48         --enable-xa \
49         --enable-xorg \
50         --enable-osmesa \
51         --enable-texture-float || return 1
53         make || return 1
54         make DESTDIR="${pkgdir}" install || return 1
56         install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
57         ln -sf libglx.xorg ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so || return 1