1 # Maintainer: Cdh <chrisdhaag@googlemail.com>
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."
9 url="http://mesa3d.org/"
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"
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."
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 \
44 --disable-gallium-egl \
51 --enable-texture-float || 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