APKBUILD 1.29 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-ati
3
pkgver=7.1.0
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
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
27 28 29 30
	# fix build now that XAA isn't available in new Xorg
	# http://bugs.gentoo.org/show_bug.cgi?id=428094
	sed -i '/USE_XAA, 1/d' configure.ac
	autoreconf -vfi
31
}
32

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

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

package() {
	cd "$srcdir"/$pkgname-$pkgver
46
	make DESTDIR="$pkgdir" install || return 1
47
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
48 49
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
50
md5sums="a799371aa8a64ac8f9535963d5135e9a  xf86-video-ati-7.1.0.tar.bz2"