# Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.60 pkgrel=0 pkgdesc="Userspace interface to kernel DRM services" url="http://dri.freedesktop.org/" arch="all" license="custom" depends= depends_dev="linux-headers" makedepends="$depends_dev 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="13e35a7a1cf38b4c9c0fa0f8c9be6b93 libdrm-2.4.60.tar.bz2" sha256sums="99575fc6c8e31f59193f5320fd4db7a5478e2641b5266147caab9aa875b59889 libdrm-2.4.60.tar.bz2" sha512sums="d0cee293c222e9b45cb12999b45bec1d94f7faf662f011f70252df7efdda95706fb2da6805e0957f4e4c12c79974cf21233f1109a607c67cd27aab5fde27e801 libdrm-2.4.60.tar.bz2"