updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / ati-dri-git / PKGBUILD
blob7fe0dbaf5845a640394767a6aff1e137284bdd2f
1 # Maintainer: Perry3D <perry3d@gmail.com>
2 # Contributor: Alexander Baldeck <alexander@archlinux.org>
3 pkgname=ati-dri-git
4 pkgver=20100317
5 pkgrel=1
6 pkgdesc="DRI drivers for ATI/AMD videochips from the git master branch."
7 arch=(i686 x86_64)
8 url="http://xorg.freedesktop.org/"
9 license=('MIT')
10 depends=('libgl-git' 'expat>=2.0.1' 'mesa-git')
11 makedepends=('glproto-git' 'pkgconfig' 'libxfixes' 'libxdamage' 'libxxf86vm' 'libxext' 'dri2proto-git' 'mesa-git')
12 conflicts=('xf86-video-ati<6.9.0-6' 'ati-dri')
13 provides=('ati-dri=7.9')
14 replaces=('ati-dri')
15 options=('!libtool')
16 source=(mesa-7.1-link-shared.patch \
17 LICENSE)
19 _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
20 _gitname="mesa"
22 build() {
23         msg "Connecting to git.freedesktop.org GIT server...."
25         if [ -d $startdir/src/$_gitname ] ; then
26                 cd $_gitname && git pull origin
27                 msg "The local files are updated."
28         else
29                 git clone $_gitroot
30         fi
32         msg "GIT checkout done or server timeout"
33         msg "Starting make..."
35         rm -rf $startdir/src/$_gitname-build
36         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
37         cd $startdir/src/$_gitname-build
39         # Any patches you may want to add go here
41         #patch -Np1 -i "${srcdir}/mesa-7.1-link-shared.patch" || return 1
42         ./autogen.sh --prefix=/usr \
43         --with-dri-driverdir=/usr/lib/xorg/modules/dri \
44         --with-dri-drivers=radeon,r200,r300,r600 \
45         --enable-glx-tls \
46         --with-driver=dri \
47         --enable-xcb \
48         --disable-glu \
49         --disable-glut \
50         --disable-gallium \
51         --disable-glw || return 1
52         make || return 1
53         cd $startdir/src/$_gitname-build/src/mesa/drivers/dri || return 1
54         make DESTDIR="${pkgdir}" install || return 1
55         install -D -m644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
56         rm -f "${pkgdir}/usr/lib/xorg/modules/dri/libdricore.so"
57         rm -rf "${pkgdir}/usr/include"
58         rm -rf "${pkgdir}/usr/lib/pkgconfig"
61 md5sums=('5a8d58b6a19f550c7300325e9594e280'
62          '7ba429de367a2b3d273d2230cc705771')