summaryrefslogtreecommitdiff
path: root/elements/mesa-common/mesa.bst
blob: 1a3e10c33b91c7b9442490cd54c88697e9d2f4c6 (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
35
kind: autotools
depends:
- foundation.bst
- llvm-common.bst
- libdrm-common.bst
- wayland-generic.bst
- python2-core.bst
- x-common.bst
sources:
- kind: git
  url: upstream:mesa
  track: mesa-13.0.4
  ref: 3255d10da4c2703bfdfcefd8f59b0d8f21dbb43f
config:
  configure-commands:
  - |
    cpu=$(echo $(gcc -dumpmachine) | 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"