# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'libvdpau'
setvar pkgver = '1.1.1'
setvar pkgrel = '1'
setvar pkgdesc = ""Hardware-accelerated video playback library""
setvar url = ""http://cgit.freedesktop.org/~aplattner/libvdpau""
setvar arch = ""all""
setvar license = ""custom""
setvar depends = ''
setvar makedepends = ""libx11-dev dri2proto libxext-dev""
setvar install = ''
setvar subpackages = ""$pkgname-dev $pkgname-doc""
setvar source = ""http://people.freedesktop.org/~aplattner/vdpau/${pkgname}-${pkgver}.tar.gz""

proc build {
	cd $builddir"
	LIBS="-lX11"" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

proc check {
	cd $builddir
	make check
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
	install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

setvar md5sums = ""ac8b21012035c04fd1ec8a9ae6934264  libvdpau-1.1.1.tar.gz""
setvar sha256sums = ""5fe093302432ef05086ca2ee429c789b7bf843e166d482d166e56859b08bef55  libvdpau-1.1.1.tar.gz""
setvar sha512sums = ""e094494fc820c2395c9dbb4e69daa89334b9186e2ad1a6c06671c7f844568db191ce4d1d9df95c4536579864bcc8541eb6fd159c377bc73c228cdf2a0fea50fb  libvdpau-1.1.1.tar.gz""