blob: 88aa6cc7b0edab1440c79a6493cd91e6958b369f (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.46
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 --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="9cba217fd3daa10b1d052ec60d3aa7d5 libdrm-2.4.46.tar.bz2"
sha256sums="33cf320dad4e8060768714792e12643ddf6756a719d262ba7d60b39c2b2650f1 libdrm-2.4.46.tar.bz2"
sha512sums="9e1699e28b034b5dd7acccd76b9f4e83ff10bb2b62107282f1e02046c1d6e8f0b5abbab318f23967dc23d4d5afdeb3e78793384801da5cfeaba7567f837242c6 libdrm-2.4.46.tar.bz2"
|