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 9dab6f140..1951f3148 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.2.1
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')
options=('!libtool')
@@ -20,7 +24,13 @@ md5sums=('dd4c82667d9c19c28a553b12eba3f8a0'
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 \
@@ -43,6 +53,7 @@ build() {
--enable-texture-float \
--enable-xa \
--enable-vdpau \
+ $extraconf
# --help
make
@@ -120,11 +131,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 ?