# Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.51 pkgrel=0 pkgdesc="Userspace interface to kernel DRM services" url="http://dri.freedesktop.org/" arch="all" license="custom" depends= makedepends="libpthread-stubs udev-dev libpciaccess-dev" subpackages="$pkgname-dev" source="http://dri.freedesktop.org/$pkgname/$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 } build() { cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-udev \ --disable-manpages \ || return 1 # temp workaround. problem appears to be with # uclibc open_memstream() and stdio.h sed -i -e 's/-Werror-implicit-function-declaration//' intel/Makefile make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="6ba5367374146baabc54c674030ea1cc libdrm-2.4.51.tar.bz2" sha256sums="0bb75284ff56e1188cd2d0721f7cb8830aafcea5c6ca72dfd7b947ea652b951c libdrm-2.4.51.tar.bz2" sha512sums="6a5fdfcfd96da22d2254e2b863fc6f468efda10ba7608b41571cee37e74e8a8e4dee5224c70256f1d6581d381e039abfa7ee9d7e16a149b3f664d5f8a32ae511 libdrm-2.4.51.tar.bz2"