blob: fa9f64eedcfa3f7ae9b001d76efe3078af2efb99 (
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
50
51
52
|
# $Id: PKGBUILD 154508 2012-03-29 17:30:54Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=libdrm
pkgver=2.4.33
pkgrel=1
pkgdesc="Userspace interface to kernel DRM services"
arch=(i686 x86_64 'mips64el')
license=('custom')
depends=('glibc' 'libpciaccess')
makedepends=('cairo')
[ "$CARCH" != "mips64el" ] && makedepends+=('valgrind')
options=('!libtool')
url="http://dri.freedesktop.org/"
source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2
no-pthread-stubs.patch
COPYING
# git_fixes.diff
)
sha1sums=('4da2c635491724e44326871e6a49ccfec0b6b5a6'
'825ff5e0c4238b31bdea52f104bfec8949270e25'
'ba3dcd636997ee0d30df14b03dae05c24ae5d094')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/no-pthread-stubs.patch"
# git fixes - currently none
# patch -Np1 -i ${srcdir}/git_fixes.diff
#libtoolize --force
autoreconf --force --install
./configure --prefix=/usr \
--enable-udev \
--enable-intel \
--enable-radeon \
--enable-vmwgfx-experimental-api \
--enable-nouveau-experimental-api
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -k check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|