1 # Maintainer: LEW21 <lew21@xtreeme.org>
7 pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch."
9 url="http://mesa3d.org/"
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"
22 msg "Connecting to the GIT server...."
24 if [ -d $_gitname ] ; then
29 git clone $_gitroot --depth=1
32 msg "Creating build directory..."
33 rm -rf $_gitname-build
34 cp -rH $_gitname $_gitname-build
36 msg "Starting 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 \
62 --enable-texture-float \
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