APKBUILD 1.33 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-ati
3
pkgver=7.1.0
4
pkgrel=3
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 38 39 40
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
41
		--enable-dri \
42
		--enable-kms \
43 44
		|| return 1
	make || return 1
45 46 47 48
}

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