APKBUILD 1.14 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-ati
3 4
pkgver=6.14.4
pkgrel=0
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
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	"

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
}
28

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

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

package() {
	cd "$srcdir"/$pkgname-$pkgver
42
	make DESTDIR="$pkgdir" install || return 1
43
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
44 45
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
46
md5sums="17dd4f0bf4dbe9839e5f7d1161994222  xf86-video-ati-6.14.4.tar.bz2"