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 ed7e438d4..83648b26f 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.2 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' 'systemd') + 'wayland' 'systemd') +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') @@ -21,6 +25,12 @@ md5sums=('df2aab86ff4a510ce5b0d074caa0a59f' 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 @@ -48,6 +58,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 @@ -119,11 +130,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 ? |