# Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.56 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="93fdb76d392ce27b23561afb8f70db81 libdrm-2.4.56.tar.bz2" sha256sums="e20fbbe092177a8422913d8884a1255477456ab5b10b07389fa891a4dce54030 libdrm-2.4.56.tar.bz2" sha512sums="5ad28ddcfad666c207a7d7c6139140182bd96c0f2c6befafbb03a9f50aa40119366cc8750025626c7c2570416a6e9476ab5102b4075562b52cdca577ded5d64c libdrm-2.4.56.tar.bz2"