# Template file for 'xf86-video-mga'
pkgname=xf86-video-mga
version=2.1.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config xorg-util-macros xorg-server-devel"
makedepends="xorg-server-devel"
depends="virtual?xserver-abi-video-25_1"
short_desc="Xorg Matrox Graphics Adapter video driver"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://xorg.freedesktop.org"
distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.xz"
checksum=7bf85dbf4efa17b7cdd483be8f61cf11fd73d0310514b6ae10d89358de63ab73
lib32disabled=yes

LDFLAGS="-Wl,-z,lazy"
CFLAGS="-fcommon"

pre_configure() {
	autoreconf -if
}

post_install() {
	vlicense COPYING
}
