lib32-libdrm: rebuilt for xorg group update
[chakra-packages:lib32.git] / lib32-libdrm / PKGBUILD
1 # maintainer (x86_64): Giuseppe CalĂ  <jiveaxe@gmail.com>
2 # contributor (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
3
4 _pkgbasename=libdrm
5 pkgname=lib32-$_pkgbasename
6 pkgver=2.4.46
7 pkgrel=3
8 pkgdesc="Userspace interface to kernel DRM services (32-bit)"
9 arch=(x86_64)
10 license=('custom')
11 depends=('lib32-libpciaccess' 'lib32-glibc' $_pkgbasename=$pkgver)
12 makedepends=(gcc-multilib)
13 options=('!libtool')
14 url="http://dri.freedesktop.org/"
15 source=("http://dri.freedesktop.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2"
16         'no-pthread-stubs.patch')
17 sha1sums=('b3a0fac0c8ef9110dce32feb8004f53f0081dea4'
18           '1602cd40f42238935a3c8d8aebd1fc0afb974379')
19
20 build() {
21   cd "${srcdir}/${_pkgbasename}-${pkgver}"
22
23   export CC="gcc -m32"
24   export CXX="g++ -m32"
25   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
26
27   patch -p1 -i "${srcdir}/no-pthread-stubs.patch"
28
29   autoreconf --force --install
30   ./configure --prefix=/usr --libdir=/usr/lib32 \
31       --enable-udev \
32       --enable-intel \
33       --enable-radeon \
34       --enable-vmwgfx-experimental-api \
35       --enable-nouveau-experimental-api \
36       --enable-omap-experimental-api \
37       --enable-exynos-experimental-api 
38   make
39 }
40
41 package() {
42   cd "${srcdir}/${_pkgbasename}-${pkgver}"
43
44   make DESTDIR="${pkgdir}" install
45
46   rm -rf "${pkgdir}"/usr/{include,share,bin}
47   mkdir -p "$pkgdir/usr/share/licenses"
48   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
49 }