summaryrefslogtreecommitdiff
path: root/extra/mesa/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mesa/PKGBUILD')
-rw-r--r--extra/mesa/PKGBUILD35
1 files changed, 21 insertions, 14 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index 94c6d2c76..d1f56eda6 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -3,7 +3,8 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgbase=mesa
-pkgname=('mesa' 'libgl' 'osmesa' 'libglapi' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel' 'ati-dri' 'intel-dri' 'svga-dri') #'nouveau-dri')
+pkgname=('mesa' 'libgl' 'osmesa' 'libglapi' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel')
+[[ "$CARCH" != "mips64el" ]] && pkgname+=( 'ati-dri' 'intel-dri' 'svga-dri')
#_git=true
_gitdate=20111031
@@ -16,9 +17,10 @@ if [ "${_git}" = "true" ]; then
pkgver=8.0.4
fi
pkgrel=3
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
makedepends=('glproto>=1.4.15' 'libdrm>=2.4.30' 'libxxf86vm>=1.1.1' 'libxdamage>=1.1.3' 'expat>=2.0.1' 'libx11>=1.4.99.1' 'libxt>=1.1.1'
- 'gcc-libs>=4.7.1-5' 'dri2proto>=2.6' 'python2' 'libxml2' 'imake' 'llvm' 'systemd-tools')
+ 'gcc-libs>=4.7.1-5' 'dri2proto>=2.6' 'python2' 'libxml2' 'imake' 'systemd-tools')
+[[ "$CARCH" != "mips64el" ]] && makedepends+=('llvm')
url="http://mesa3d.sourceforge.net"
license=('custom')
source=(LICENSE
@@ -33,24 +35,30 @@ if [ "${_git}" = "true" ]; then
#source=(${source[@]} "MesaLib-git${_gitdate}.zip"::"http://cgit.freedesktop.org/mesa/mesa/snapshot/mesa-4464ee1a9aa3745109cee23531e3fb2323234d07.tar.bz2"
)
fi
+source+=(mesa-loongson.patch)
md5sums=('5c65a0fe315dd347e09b1f2826a1df5a'
'c452ed3392468170726c004c2f4e02ca'
- 'd546f988adfdf986cff45b1efa2d8a46')
+ 'd546f988adfdf986cff45b1efa2d8a46'
+ '598c24dccfcdcc99c07d883f7c09f36a')
build() {
cd ${srcdir}/?esa-*
+ if [ "$CARCH" = "mips64el" ]; then
+ extraconf="--with-gallium-drivers=swrast --with-dri-drivers=swrast"
+ else
+ extraconf="--with-gallium-drivers=r300,r600,svga,swrast --enable-gallium-llvm --with-dri-drivers=i915,i965,r200,radeon,swrast"
+ fi
+
+ patch -Np1 -i $srcdir/mesa-loongson.patch
patch -Np1 -i "${srcdir}/mesa-8.0.3-llvm-3.1-fixes.patch"
if [ "${_git}" = "true" ]; then
autoreconf -vfi
./autogen.sh --prefix=/usr \
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
- --with-gallium-drivers=r300,r600,nouveau,svga,swrast \
- --enable-gallium-llvm \
- --enable-egl \
+ --with-gallium-drivers=$galliumdrivers \
--enable-gallium-egl \
- --with-egl-platforms=x11,drm \
--enable-shared-glapi \
--enable-gbm \
--enable-glx-tls \
@@ -61,7 +69,9 @@ if [ "${_git}" = "true" ]; then
--enable-gles2 \
--enable-texture-float \
--enable-xa \
- --enable-shared-dricore
+ --enable-shared-dricore \
+ $extraconf
+
#--enable-gbm \
# --enable-gallium-svga \
@@ -69,10 +79,6 @@ if [ "${_git}" = "true" ]; then
autoreconf -vfi
./configure --prefix=/usr \
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
- --with-gallium-drivers=r300,r600,svga,swrast \
- --with-dri-drivers=i915,i965,r200,radeon,swrast \
- --enable-gallium-llvm \
- --enable-egl \
--enable-gallium-egl \
--with-egl-platforms=x11,drm \
--enable-shared-glapi \
@@ -85,7 +91,8 @@ if [ "${_git}" = "true" ]; then
--enable-gles2 \
--enable-texture-float \
--enable-xa \
- --enable-shared-dricore
+ --enable-shared-dricore \
+ $extraconf
fi
make