# Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.47 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="8d780e74df730d94887d2b86f04e15a9 libdrm-2.4.47.tar.bz2" sha256sums="c2dac2250adbcea23efb18fa8cf484c0f43c8ffbf5064ec82678bc410084f8e7 libdrm-2.4.47.tar.bz2" sha512sums="b57532736200b5f12ddf988e17571cc91bcc0d3d23af8d5cc456c558be359fdddd2effe7c5823750e48d9de40752cd58ffbd6461a2c2fa5a4e354396104c6340 libdrm-2.4.47.tar.bz2"