lib32/lib32-nouveau-dri/PKGBUILD
2012-07-29 23:49:16 +00:00

59 lines
1.8 KiB
Bash

#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=nouveau-dri
pkgver=8.0.3.1
pkgrel=1
pkgdesc="Mesa Gallium3D drivers for Nouveau (32-bit)"
arch=('i686' 'x86_64')
depends=('lib32-libgl' 'lib32-libdrm')
makedepends=('pkgconfig' 'glproto' 'lib32-libdrm' 'lib32-libxxf86vm' 'lib32-llvm' 'lib32-libxdamage' 'lib32-expat'
'lib32-libx11' 'lib32-libxt' 'lib32-gcc-libs' 'dri2proto' 'python2' 'talloc' 'libxml2' 'imake' 'lib32-udev')
url="http://mesa3d.sourceforge.net"
license=('custom')
source=("http://sourceforge.net/projects/chakra-repo/files/PackagersPlayground/abveritas/mesa.tar.xz"
'LICENSE')
md5sums=('74eea16bbd177d01e4d2d33a1ced06af'
'5c65a0fe315dd347e09b1f2826a1df5a')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
# for our llvm-config for 32 bit
export LLVM_CONFIG=/usr/bin/llvm-config32
cd ${srcdir}/mesa
autoreconf -vfi
./configure --prefix=/usr \
--with-dri-driverdir=/usr/lib32/xorg/modules/dri \
--with-gallium-drivers=nouveau \
--with-dri-drivers=nouveau \
--enable-gallium-llvm \
--enable-gallium-egl \
--enable-shared-glapi \
--enable-gbm \
--enable-glx-tls \
--enable-dri \
--enable-glx \
--enable-osmesa \
--enable-gles1 \
--enable-gles2 \
--enable-egl \
--enable-texture-float \
--enable-xa \
--enable-32-bit \
--libdir=/usr/lib32
make
}
package() {
# classic mesa driver for nv10 , nv20 nouveau_vieux_dri.so
#make -C ${srcdir}/mesa/src/mesa/drivers/dri/nouveau DESTDIR="${pkgdir}" install
# gallium3D driver for nv30 - nv40 - nv50 nouveau_dri.so
make -C ${srcdir}/mesa/src/gallium/targets/dri-nouveau DESTDIR="${pkgdir}" install
}