# Build speexdsp, removed in newest releases.
cd "$SRCDIR"/speexdsp-1.2rc3
patch -Np1 -i "$SRCDIR"/autobuild/patches/speexdsp-fixbuilds-774c87d.patch

abinfo "Configuring speexdsp ..."
autoreconf -fi
if !ab_match_arch arm64; then
    ./configure ${AUTOTOOLS_DEF[@]}
else
    ./configure ${AUTOTOOLS_DEF[@]} --disable-neon
fi

abinfo "Building speexdsp ..."
make

abinfo "Installing speexdsp ..."
make install DESTDIR="$PKGDIR"
cd "$SRCDIR"
