# $Id: PKGBUILD 13002 2008-09-25 18:36:29Z jgc $ # Maintainer: Alexander Baldeck <alexander@archlinux.org> # Contributor: Jan de Groot <jgc@archlinux.org> pkgname=unichrome-dri pkgver=7.2 pkgrel=1 pkgdesc="DRI drivers for Unichrome-based videochipsets" arch=(i686 x86_64) url="http://xorg.freedesktop.org/" depends=('libdrm>=2.3.1' 'expat>=2.0.1' 'libgl>=7.1-2') makedepends=('dri2proto>=1.1' 'glproto>=1.4.9' 'pkgconfig' 'libxfixes' 'libxdamage' 'libxxf86vm' 'libxext') options=('!libtool') source=(http://downloads.sourceforge.net/mesa3d/MesaLib-${pkgver}.tar.bz2 mesa-7.1-link-shared.patch) md5sums=('04d379292e023df0b0266825cb0dbde5' 'f0baa948d9810f268413111ee439d24b') build() { cd ${srcdir}/Mesa-${pkgver} patch -Np1 -i ${srcdir}/mesa-7.1-link-shared.patch export CFLAGS="${CFLAGS} -ffast-math" ./configure --prefix=/usr \ --with-dri-driverdir=/usr/lib/xorg/modules/dri \ --with-dri-drivers=unichrome \ --enable-glx-tls \ --disable-ttm-api \ --with-driver=dri \ --enable-xcb \ --disable-glu \ --disable-glut \ --disable-glw || return 1 make || return 1 cd src/mesa/drivers/dri || return 1 make DESTDIR=${pkgdir} install || return 1 rm -rf ${pkgdir}/usr/lib/pkgconfig rm -rf ${pkgdir}/usr/include rm -f ${pkgdir}/usr/lib/xorg/modules/dri/libdricore.so }