summaryrefslogtreecommitdiff
path: root/extra/mesa/PKGBUILD
blob: 380cad2f8e240793227a62339052b2781dc6d3c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# disable openswf as it requires AVX, makes no sense with old CPUs
# disable every new software rasterizer and take the old ones
# see also FS32#39
eval "$(
  declare -f build | \
    sed '
      /arch-meson/s/\(gallium-drivers=.*\),swrast,swr/\1,swrast/
      /arch-meson/s/\(-D swr-arches=\)avx,avx2/\1/
    '
  declare -f package_mesa | \
    sed '
      s@_install fakeinstall/usr/lib/libswrAVX.*@#\0@g
    '
)"