diff options
Diffstat (limited to 'elements/mesa-common/mesa.bst')
-rw-r--r-- | elements/mesa-common/mesa.bst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/elements/mesa-common/mesa.bst b/elements/mesa-common/mesa.bst new file mode 100644 index 00000000..18db3186 --- /dev/null +++ b/elements/mesa-common/mesa.bst @@ -0,0 +1,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-17.1.3 + ref: f60875e211388e299724063af40c01738cc5d819 +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,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" |