blob: a2634b99c901c90a970622e5fc9f9bd9b55d29a8 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# disable LTO (breaks with too few registers in error: 'asm' operand has impossible constraints
# also disable mfx - libmfx does not compile
eval "$(
declare -f build | \
sed '
s/--enable-lto/--disable-lto/
s/--enable-libmfx/--disable-libmfx/
'
)"
depends=(${depends[@]//libmfx/})
# no vamf for non-pentium4
if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then
depends=(${depends[@]//vmaf/})
eval "$(
declare -f prepare | \
sed '
/vmaf/d
'
)"
eval "$(
declare -f build | \
sed '
s/--enable-libvmaf/--disable-libvmaf/
'
)"
fi
# force picking of a modern libvpx and not libvpx1.3 needed for steam
makedepends+=('libvpx>=1.8.2')
# no AviSynthPlus on i486 (uses Intel intrinsics and cmake support for
# disabling it is broken)
makedepends=(${makedepends[@]//avisynthplus/})
makedepends_i686+=(avisynthplus)
makedepends_pentium4=("${makedepends_i686[@]}")
if [ "$CARCH" == 'i486' ]; then
eval "$(
declare -f build | \
sed '
s/--enable-avisynth/--disable-avisynth/
'
)"
fi
# no rav1e on i486, no Rust (yet)
if [ "$CARCH" == 'i486' ]; then
depends=(${depends[@]//librav1e.so/})
eval "$(
declare -f build | \
sed '
s@--enable-librav1e@--disable-librav1e@
'
)"
fi
|