diff options
Diffstat (limited to 'extra/mesa/PKGBUILD')
-rw-r--r-- | extra/mesa/PKGBUILD | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD index db8edeab6..77e9ff5d1 100644 --- a/extra/mesa/PKGBUILD +++ b/extra/mesa/PKGBUILD @@ -3,12 +3,16 @@ # Maintainer: Andreas Radke <andyrtr@archlinux.org> pkgbase=mesa -pkgname=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa' 'mesa-libgl') +pkgname=('mesa' 'mesa-libgl') pkgver=9.1.1 pkgrel=1 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') makedepends=('python2' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'libxxf86vm' 'libxdamage' - 'libvdpau' 'wayland' 'llvm-amdgpu-snapshot') + 'wayland') +if [ "$CARCH" != "mips64el" ]; then + pkgname+=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri') + makedepends+=('libvdpau' 'llvm-amdgpu-snapshot') +fi url="http://mesa3d.sourceforge.net" license=('custom') options=('!libtool') @@ -23,6 +27,12 @@ md5sums=('6ea2bdc3b7ecfb4257b39814b4182580' build() { cd ${srcdir}/?esa-* + if [ "$CARCH" = "mips64el" ]; then + extraconf="--with-gallium-drivers=swrast --with-dri-drivers=swrast --disable-gallium-llvm --disable-vdpau" + else + extraconf="" + fi + # pick 2 commits from master to # fix a nouveau crash: http://cgit.freedesktop.org/mesa/mesa/commit/?id=17f1cb1d99e66227d1e05925ef937643f5c1089a # and intel kwin slowness http://cgit.freedesktop.org/mesa/mesa/commit/?id=e062a4187d8ea518a39c913ae7562cf1d8ac3205 @@ -50,6 +60,7 @@ build() { --enable-texture-float \ --enable-xa \ --enable-vdpau \ + $extraconf # --help # --with-llvm-shared-libs \ # enabling this would force us to move llvm-amdgpu-snapshot from community to extra, delay it until llvm 3.3 / Mesa 9.2/10.0 @@ -121,11 +132,12 @@ package_svga-dri() { package_mesa() { pkgdesc="an open-source implementation of the OpenGL specification" - depends=('libdrm' 'libvdpau' 'wayland' 'libxxf86vm' 'libxdamage' 'systemd') + depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'systemd') optdepends=('opengl-man-pages: for the OpenGL API man pages') provides=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel') conflicts=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel') replaces=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel') + [ "$CARCH" != "mips64el" ] && depends+=('libvdpau') mv -v ${srcdir}/fakeinstall/* ${pkgdir} # rename libgl.so to not conflict with blobs - may break gl.pc ? |