updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / mesa-full / PKGBUILD
blob46506d12cd62279968e4a19527b96b20c32e673d
1 # Maintainer: LEW21 <lew21@xtreeme.org>
3 pkgname=mesa-full
4 pkgver=20120104
5 _realver=8.0
6 pkgrel=1
7 pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch."
8 arch=(i686 x86_64)
9 url="http://mesa3d.org/"
10 license=('LGPL')
11 depends=('libdrm>=2.4.24' 'dri2proto>=2.3' 'glproto>=1.4.12' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'llvm')
12 makedepends=('pkgconfig' 'imake' 'python2')
13 optdepends=('libtxc_dxtn: S3TC support'
14 'mesa-demos: glxinfo and glxgears')
15 provides=("mesa=${_realver}" "libgl=${_realver}" "libglapi=${_realver}" "libgles=${_realver}" "libegl=${_realver}" "ati-dri=${_realver}" "intel-dri=${_realver}" "nouveau-dri=${_realver}")
16 conflicts=('mesa' 'libgl' 'libglapi' 'libgles' 'libegl' 'ati-dri' 'intel-dri' 'nouveau-dri' 'mach64-dri' 'mga-dri' 'r128-dri' 'savage-dri' 'tdfx-dri' 'unichrome-dri')
18 _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
19 _gitname="mesa"
21 build() {
22         msg "Connecting to the GIT server...."
24         if [ -d $_gitname ] ; then
25                 cd $_gitname
26                 git pull origin
27                 cd ..
28         else
29                 git clone $_gitroot --depth=1
30         fi
32         msg "Creating build directory..."
33         rm -rf $_gitname-build
34         cp -rH $_gitname $_gitname-build
36         msg "Starting build..."
37         cd $_gitname-build
39         # Classic r300, r600 & swrast are disabled - their Gallium versions are better.
40         # Classic nouveau is for different hardware than Gallium nouveau, so both are enabled.
42         # For Wayland support use mesa-full-wayland, or:
43         # - install wayland-git
44         # - add wayland to --with-egl-platforms
46         # If you live in the US, you should delete --enable-texture-float \ line.
48         ./autogen.sh --prefix=/usr --with-dri-driverdir=/usr/lib/xorg/modules/dri \
49                 --with-dri-drivers=i915,i965,nouveau,radeon,r200 \
50                 --with-gallium-drivers=r300,r600,nouveau,svga,swrast \
51                 --with-egl-platforms=drm,x11 \
52                 --enable-gallium-llvm \
53                 --enable-gallium-egl \
54                 --enable-shared-dricore \
55                 --enable-shared-glapi \
56                 --enable-egl \
57                 --enable-gles1 \
58                 --enable-gles2 \
59                 --enable-openvg \
60                 --enable-glx-tls \
61                 --enable-xcb \
62                 --enable-texture-float \
64         make
67 package() {
68         cd ${srcdir}/$_gitname-build
70         make DESTDIR="${pkgdir}" install
72         install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
73         ln -sf libglx.xorg ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so