summaryrefslogtreecommitdiff
path: root/strata/mesa-common
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2014-08-28 01:22:15 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2014-08-28 11:46:22 +0100
commitae380fa19f904931f173089ee0e98a33a0e8b41f (patch)
treec75bd6a8198ff1af879c6c0ffda84b44c82573b0 /strata/mesa-common
parent7bbdf1f098496546481db75fb37077776ee62aa8 (diff)
downloaddefinitions-ae380fa19f904931f173089ee0e98a33a0e8b41f.tar.gz
Do not build the same mesa in different strata, move to its own stratum
Diffstat (limited to 'strata/mesa-common')
-rw-r--r--strata/mesa-common/mesa.morph21
1 files changed, 21 insertions, 0 deletions
diff --git a/strata/mesa-common/mesa.morph b/strata/mesa-common/mesa.morph
new file mode 100644
index 00000000..38078d12
--- /dev/null
+++ b/strata/mesa-common/mesa.morph
@@ -0,0 +1,21 @@
+name: mesa
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ cpu=$(echo $TARGET | cut -d '-' -f 1)
+ case "$cpu" in
+ x86_32|x64_64)
+ DRIDRIVERS=intel,i915,i965,swrast
+ ;;
+ *)
+ DRIDRIVERS=swrast
+ ;;
+ esac
+ ./autogen.sh --prefix="$PREFIX" \
+ --enable-gles2 \
+ --disable-gallium-egl \
+ --with-egl-platforms=x11,drm,wayland \
+ --enable-gbm --enable-shared-glapi \
+ --with-gallium-drivers=swrast \
+ --with-dri-drivers=$DRIDRIVERS