summaryrefslogtreecommitdiff
path: root/strata/mesa-common/mesa.morph
blob: e7a3eee7270436f3f7c2830db1781d8d7ff03772 (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
name: mesa
kind: chunk
build-system: autotools
configure-commands:
- |
  cpu=$(echo $TARGET | cut -d '-' -f 1)
  case "$cpu" in
  arm*)
    DRIDRIVERS=no
    GALLIUMDRIVERS=nouveau,freedreno,svga,swrast,vc4
    VULKANDRIVERS=no
    ;;
  *)
    DRIDRIVERS=yes
    GALLIUMDRIVERS=r300,r600,svga,swrast,virgl,swr
    VULKANDRIVERS=intel
    ;;
  esac
  ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc \
      --enable-gles2 \
      --with-egl-platforms=drm,wayland,x11 \
      --with-vulkan-drivers="$VULKANDRIVERS" \
      --with-gallium-drivers="$GALLIUMDRIVERS" \
      --with-dri-drivers="$DRIDRIVERS"