blob: 4d1abd8417560ffdf926427b96326b428555b407 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.58
pkgrel=1
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="24213913333d72b36c16463ed92e522a libdrm-2.4.58.tar.bz2"
sha256sums="b155fae6b9c9a3b02ef8b77f58c7c219194c996a4018dc55ba66c03996a365dd libdrm-2.4.58.tar.bz2"
sha512sums="26776b3f93fe173f4e0f94668813ec1a756d9f15385d1cad70c7af8d4d5d503aef00e14081c76f6fcac6e0c606e106e47ddf76038f8601b71fc380306536f937 libdrm-2.4.58.tar.bz2"
|