updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / mesa-full-wayland / PKGBUILD
blob6556f920aa533b7b8a36061a963deb6564402c4d
1 # Maintainer: LEW21 <lew21@xtreeme.org>
3 pkgname=mesa-full-wayland
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. Identical to mesa-full, except it adds Wayland support."
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' 'wayland-git')
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}" "wayland-mesa-git")
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         # If you live in the US, you should delete --enable-texture-float \ line.
44         ./autogen.sh --prefix=/usr --with-dri-driverdir=/usr/lib/xorg/modules/dri \
45                 --with-dri-drivers=i915,i965,nouveau,radeon,r200 \
46                 --with-gallium-drivers=r300,r600,nouveau,svga,swrast \
47                 --with-egl-platforms=drm,x11,wayland \
48                 --enable-gallium-llvm \
49                 --enable-gallium-egl \
50                 --enable-shared-dricore \
51                 --enable-shared-glapi \
52                 --enable-egl \
53                 --enable-gles1 \
54                 --enable-gles2 \
55                 --enable-openvg \
56                 --enable-glx-tls \
57                 --enable-xcb \
58                 --enable-texture-float \
60         make
63 package() {
64         cd ${srcdir}/$_gitname-build
66         make DESTDIR="${pkgdir}" install
68         install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
69         ln -sf libglx.xorg ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so