summaryrefslogtreecommitdiff
path: root/testing/xf86-video-ati/PKGBUILD
blob: 227d20f02e2b9d946363b526064f8d1696903179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $Id: PKGBUILD 159990 2012-05-27 13:11:18Z dreisner $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=xf86-video-ati
pkgver=6.14.99
_gitdate=20120517
pkgrel=1.${_gitdate} # 	UMS/EXA: Add reminder for potential solid picture performance issue.
pkgdesc="X.org ati video driver"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libpciaccess' 'libdrm>=2.4.33' 'udev>=183' 'pixman' 'ati-dri')
makedepends=('xorg-server-devel>=1.11.99.902' 'xf86driproto' 'mesa' 'glproto')
conflicts=('xorg-server<1.11.99.902')
groups=('xorg-drivers' 'xorg')
options=('!libtool')
source=(#${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2
		${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2::http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/snapshot/xf86-video-ati-3fb694b308ebadd1b849836059b6b56bb19385f7.tar.gz
        git_fixes.diff
        0000-poor-man-s-solid-picture-support-for-r300-r600.patch
        0001-poor-man-s-solid-picture-support-for-evergreen.patch
        0002-poor-man-s-solid-picture-support-for-r100.patch
        0003-poor-man-s-solid-picture-support-for-r200.patch)
sha1sums=('75ad000bc00599e1797134f2d20d3094cba6af92'
          '8b774e2f0310075cff2b7d874b0bed38d6245769'
          '787f88c428f56ca6e96ba5eaf043a30bddfd0e23'
          '69359a6623fe0f2214790c8ad40cac1a680a3825'
          'c0709ab82728e34838a8aeead7d1b79b7faf09bd'
          '77a519e250c27a9fb94eeb52da655eed7c5f2eca')
sha1sums=('80c12b88e193354af204b13689b2fae922922c6c'
          '8b774e2f0310075cff2b7d874b0bed38d6245769'
          '787f88c428f56ca6e96ba5eaf043a30bddfd0e23'
          '69359a6623fe0f2214790c8ad40cac1a680a3825'
          'c0709ab82728e34838a8aeead7d1b79b7faf09bd'
          '77a519e250c27a9fb94eeb52da655eed7c5f2eca')

build() {
  #cd ${srcdir}/${pkgname}-${pkgver}
  cd ${srcdir}/${pkgname}*
  #patch -Np1 -i ${srcdir}/git_fixes.diff
  
  # fix rendering issues with recent cairo - testing attemp taken from https://bugs.freedesktop.org/show_bug.cgi?id=47266
  # and http://lists.x.org/archives/xorg-driver-ati/2012-April/022724.html
#  patch -Np1 -i ${srcdir}/0000-poor-man-s-solid-picture-support-for-r300-r600.patch
#  patch -Np1 -i ${srcdir}/0001-poor-man-s-solid-picture-support-for-evergreen.patch
#  patch -Np1 -i ${srcdir}/0002-poor-man-s-solid-picture-support-for-r100.patch
#  patch -Np1 -i ${srcdir}/0003-poor-man-s-solid-picture-support-for-r200.patch

  ./autogen.sh --prefix=/usr --enable-dri
#  ./configure --prefix=/usr --enable-dri
  make
}

package() {
  #cd "${srcdir}/${pkgname}-${pkgver}"
  cd ${srcdir}/${pkgname}*
  make "DESTDIR=${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}