summaryrefslogtreecommitdiff
path: root/strata/mesa-common/mesa.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/mesa-common/mesa.morph')
-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