blob: 9360d8e16c2e680844d9f2eee522b91701f17982 (
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
|
# disable Intel micro-optimizations and intrinsics per platform
# patch done by KitsuWhooa, thanks (see https://github.com/kcat/openal-soft/pull/559)
source+=('openal-i686.patch')
b2sums+=(
'2a3900e993916b928fae3515e76120f3ec9e7f6c893b0b29706cf2cbd0d2688ddacd90f4f1d1111fa56fd7c7a64987c745248181c250c63ebea907ebf1003b03'
)
if [ "$CARCH" = 'pentium4' ]; then
eval "$(
declare -f build | \
sed '/cmake .*openal-soft/ s/;$/ -DALSOFT_CPUEXT_SSE4_1=0 -DALSOFT_CPUEXT_SSE3=0;/'
)"
fi
if [ "$CARCH" = 'i686' ]; then
eval "$(
declare -f build | \
sed '/cmake .*openal-soft/ s/;$/ -DALSOFT_CPUEXT_SSE4_1=0 -DALSOFT_CPUEXT_SSE3=0 -DALSOFT_CPUEXT_SSE2=0;/'
)"
fi
if [ "$CARCH" = 'i486' ]; then
eval "$(
declare -f build | \
sed '/cmake .*openal-soft/ s/;$/ -DALSOFT_CPUEXT_SSE4_1=0 -DALSOFT_CPUEXT_SSE3=0 -DALSOFT_CPUEXT_SSE2=0 -DALSOFT_CPUEXT_SSE=0;/'
)"
fi
|