APKBUILD 1.28 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-ati
3
pkgver=6.14.3
4
pkgrel=2
5 6
pkgdesc="ATI video driver"
url="http://xorg.freedesktop.org/"
7
arch="all"
8
license="custom"
9
subpackages="$pkgname-doc"
10
depends="mesa-dri-ati"
11 12
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto libdrm-dev xf86driproto glproto mesa-dev
13 14
	xineramaproto udev-dev pixman-dev util-macros
	autoconf automake libtool
15
	"
16

17 18 19 20 21 22 23 24 25 26 27 28 29
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	xf86-video-ati-6.14.3-xorg-server-1.12.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal && autoreconf
}
30

31
build() {
32
	cd "$srcdir"/$pkgname-$pkgver
33
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
34

35
	./configure --prefix=/usr \
36
		--enable-dri \
37
		--enable-kms \
38 39
		|| return 1
	make || return 1
40 41 42 43
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
44
	make DESTDIR="$pkgdir" install || return 1
45
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
46 47
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
48 49
md5sums="19126c8421a05d9605883dcf7498d876  xf86-video-ati-6.14.3.tar.bz2
ff01b935d15ab799d3e3f415a810d0fe  xf86-video-ati-6.14.3-xorg-server-1.12.patch"