aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: 11055f3893e23b0ecd8aa61d190c3bbfce6a78b7 (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.53
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="342886a137ddd9ed4341675d132388ad  libdrm-2.4.53.tar.bz2"
sha256sums="1b0c28fd2f2b92d2df0a73d1aed88f43cb0dee1267aea6bc52ccb5fca5757a08  libdrm-2.4.53.tar.bz2"
sha512sums="5c4c16cbabf9b8f882503e645d1be11dbafa4d75b7e0536f824ca43f4a2a8f62a11c32b900c408862eade493f9eb56d92d323e1cc1945e2bacf05360ca2d4de3  libdrm-2.4.53.tar.bz2"