summaryrefslogtreecommitdiff
path: root/extra/dav1d/PKGBUILD
blob: 2ea6149fd76558a6817bb760a02387e85492a618 (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
# disable SSE2 on i686 and i486
source_i486=('dav1d-0.8.2-sse2-asm.patch')
sha512sums_i486=('65d133b750888ce854fdad2f068430ae1920db135eaf9b8ec4d372ecb074e3eef6833f50f17e758cc8f69f4845b873fb96d744c03f75a34af0dd0ad8dbd413e3')
source_i686=('dav1d-0.8.2-sse2-asm.patch')
sha512sums_i686=('65d133b750888ce854fdad2f068430ae1920db135eaf9b8ec4d372ecb074e3eef6833f50f17e758cc8f69f4845b873fb96d744c03f75a34af0dd0ad8dbd413e3')
if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then
  eval "$(
    {
      declare -f prepare || \
      printf 'prepare() {\n}\n'
    } \
    | sed '
      $i patch -p1 -i "$srcdir/dav1d-0.8.2-sse2-asm.patch"
    '
    declare -f build | \
      sed '
        s|arch-meson|arch-meson -Denable_asm=false -Denable_avx512=false |g
      '
  )"
fi

# graphviz needs tons of libraries we don't have yet on i486
if [ "${CARCH}" = "i486" ]; then
	makedepends=(${makedepends[@]//graphviz/})
	eval "$(
      declare -f build | \
        sed '
          s|ninja -C build all doc/html|ninja -C build all|g
        '
	  declare -f package_dav1d-doc | \
        sed '
          /cp.*build\/doc\/html/d
	    '
	)"
fi