# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xf86-video-ati
pkgver=19.1.0
pkgrel=2
pkgdesc="ATI video driver for X11"
url="https://www.X.Org/"
arch="all"
options="!check"  # No test suite.
license="MIT"
depends="mesa-dri"
makedepends="eudev-dev libdrm-dev libxi-dev mesa-dev pixman-dev util-macros
	xorg-server-dev"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	null-deref-exa.patch
	"

build() {
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-glamor
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="73a81f6c492daf2e89067fb52b3033dc0fe6841f109627ddca1aee54a45a738c8c134443753a2a2aaa2c131e1d560057ebc76351ff2304c16407df3ff568fcd6  xf86-video-ati-19.1.0.tar.bz2
f9c6928f741014b47b302c2f2cf6a0110fcc0935cb3a2725e37f8b48e9cd778639231110b9a4ce67ad38174b21b47864ff0793f9181347c21ef694bedbc44b0b  null-deref-exa.patch"