1 # Maintainer: Cdh <chrisdhaag@googlemail.com>
3 pkgname=mesa-full-i915g
7 pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch (mesa 7.11). Compiles mesa for i915g (gallium). WARNING: this is experimental software and not supported by intel. It might have many bugs and intel won't fix them. For classic mesa (supported by intel) see mesa-full-i915."
9 url="http://mesa3d.org/"
11 depends=('libdrm-git' 'dri2proto-git' 'glproto-git' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'libxmu' 'talloc' 'llvm')
12 makedepends=('pkgconfig' 'imake' 'xorg-server-devel')
13 optdepends=('llvm: "configure" tests for its presence and compiles with some additional "-D" macros if found')
14 provides=("libgl=${_realver}" "mesa=${_realver}" "freeglut=${_realver}" "glut=${_realver}" "intel-dri=${_realver}" 'libglapi')
15 replaces=('libgl' 'mesa' 'freeglut' 'glut' 'intel-dri' 'libglapi')
16 conflicts=('libgl' 'mesa' 'freeglut' 'glut' 'intel-dri' 'mesa-full-i915' 'libglapi')
18 _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
22 msg "Connecting to git.freedesktop.org GIT server...."
24 if [ -d $startdir/src/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf $startdir/src/$_gitname-build
35 cp -rH $startdir/src/$_gitname $startdir/src/$_gitname-build
36 cd ${srcdir}/${_gitname}-build
38 cd "${startdir}/src/mesa-build"
39 ./autogen.sh --prefix=/usr \
40 --with-dri-drivers=i915 \
41 --with-gallium-drivers=i915 \
42 --with-dri-driverdir=/usr/lib/xorg/modules/dri \
43 --enable-texture-float \
53 --enable-gallium-egl \
56 --enable-gallium-llvm \
57 --enable-shared-glapi \
59 --enable-gallium-gbm \
60 --enable-gallium-g3dvl || return 1
64 make DESTDIR="${pkgdir}" install || return 1
66 install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
67 ln -sf libglx.xorg ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so || return 1