aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: 07bab00f5583ff3a06eed2c75e468bc90b440bb9 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.51
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="6ba5367374146baabc54c674030ea1cc  libdrm-2.4.51.tar.bz2"
sha256sums="0bb75284ff56e1188cd2d0721f7cb8830aafcea5c6ca72dfd7b947ea652b951c  libdrm-2.4.51.tar.bz2"
sha512sums="6a5fdfcfd96da22d2254e2b863fc6f468efda10ba7608b41571cee37e74e8a8e4dee5224c70256f1d6581d381e039abfa7ee9d7e16a149b3f664d5f8a32ae511  libdrm-2.4.51.tar.bz2"