# Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.53 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="342886a137ddd9ed4341675d132388ad libdrm-2.4.53.tar.bz2" sha256sums="1b0c28fd2f2b92d2df0a73d1aed88f43cb0dee1267aea6bc52ccb5fca5757a08 libdrm-2.4.53.tar.bz2" sha512sums="5c4c16cbabf9b8f882503e645d1be11dbafa4d75b7e0536f824ca43f4a2a8f62a11c32b900c408862eade493f9eb56d92d323e1cc1945e2bacf05360ca2d4de3 libdrm-2.4.53.tar.bz2"