summaryrefslogtreecommitdiff
path: root/strata/mesa-common/mesa.morph
blob: 9a528cbe568ec1a92af68fd272608dcd67f3684d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: mesa
kind: chunk
build-system: autotools
configure-commands:
- |
  cpu=$(echo $TARGET | cut -d '-' -f 1)
  EXTRAARGS=--disable-gallium-egl
  case "$cpu" in
  x86_32|x64_64)
    DRIDRIVERS=intel,i915,i965,swrast
    GALLIUMDRIVERS=swrast
    EGLPLATFORMS=x11,wayland,drm
    ;;
  armv7lhf)
    DRIDRIVERS=nouveau,swrast
    GALLIUMDRIVERS=nouveau,swrast
    EXTRAARGS="--with-state-trackers=egl --enable-gallium-egl"
    EGLPLATFORMS=wayland,drm
    ;;
  *)
    DRIDRIVERS=swrast
    GALLIUMDRIVERS=swrast
    EGLPLATFORMS=x11,wayland,drm
    ;;
  esac
  ./autogen.sh --prefix="$PREFIX" \
      --enable-gles2 \
      --with-egl-platforms="$EGLPLATFORMS" \
      --enable-gbm \
      --enable-shared-glapi \
      --with-gallium-drivers="$GALLIUMDRIVERS" \
      --with-dri-drivers="$DRIDRIVERS" \
      --disable-dri3 $EXTRAARGS