summaryrefslogtreecommitdiff
path: root/extra/mesa/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mesa/PKGBUILD')
-rw-r--r--extra/mesa/PKGBUILD22
1 files changed, 17 insertions, 5 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index ac0faa5f2..ac42a2a63 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=10.0.3
pkgrel=1
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
makedepends=('python2' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'libxxf86vm' 'libxdamage'
- 'libvdpau' 'wayland' 'elfutils' 'llvm' 'systemd')
+ 'wayland' 'elfutils' 'llvm' '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')
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2
@@ -19,7 +23,13 @@ md5sums=('5f9f463ef08129f6762106b434910adb'
build() {
cd ${srcdir}/?esa-*
- autoreconf -vfi # our automake is far too new for their build system :)
+ if [ "$CARCH" = "mips64el" ]; then
+ extraconf="--with-gallium-drivers=swrast --with-dri-drivers=swrast --disable-gallium-llvm --disable-vdpau"
+ else
+ extraconf=""
+ fi
+
+ autoreconf -vfi # our automake is far too new for their build system :)
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -42,6 +52,7 @@ build() {
--enable-texture-float \
--enable-xa \
--enable-vdpau \
+ $extraconf
# --help
make
@@ -113,11 +124,12 @@ package_svga-dri() {
package_mesa() {
pkgdesc="an open-source implementation of the OpenGL specification"
- depends=('libdrm' 'libvdpau' 'wayland' 'libxxf86vm' 'libxdamage' 'systemd' 'elfutils' 'llvm-libs')
+ depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'systemd' 'elfutils' 'llvm-libs')
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 ?