# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=xf86-video-omap
pkgver=0.4.5
pkgrel=4
pkgdesc="OMAP3+ framebuffer driver for X"
url="https://cgit.freedesktop.org/xorg/driver/xf86-video-omap/"
license="GPL-2.0-only"
arch="armv7"
makedepends="xorg-server-dev libxi-dev util-macros xorgproto libdrm-dev m4
	autoconf automake libtool libc-dev eudev-dev" #libudev-zero-dev additionally works
source="https://www.x.org/releases/individual/driver/xf86-video-omap-$pkgver.tar.gz"
options="!check" #no check
subpackages="$pkgname-doc"

prepare() {
	default_prepare

	export CFLAGS="$CFLAGS -fno-plt -Wno-error"
	export CXXFAGS="$CXXFLAGS -fno-plt"
	export LDFLAGS="$LDFLAGS -W"

	./configure \
			--build=$CBUILD \
			--host=$CHOST \
			--prefix=/usr
}

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/xf86-video-omap/COPYING
}

sha512sums="8bf71cde245d573176c9ea989c2eef4a3caa8b84fd7938a4ff112064db27a114d41554952f1b11756b4ce6201492845073b67044a316bb07b2999b4ecf6ea000  xf86-video-omap-0.4.5.tar.gz"
