Files
UltraGrid/data/scripts/install_speex.sh
2021-02-24 13:42:12 +01:00

27 lines
867 B
Bash
Executable File

#!/bin/sh -eu
## Install speex and speexdsp
##
## Normally try to use git submodules present in the repository. If not possible
## it tries to either clone (.git directory stripped) or to download release
## (if git not found).
. $(dirname $0)/fetch_submodule.sh
for module in speex speexdsp; do
set +e
fetch_submodule $module http://downloads.us.xiph.org/releases/speex/${module}-1.2.0.tar.gz https://gitlab.xiph.org/xiph/$module 1
[ $? = 1 ] && SUBMODULE_UPDATED=yes || SUBMODULE_UPDATED=no
set -e
printf "Configuring ${module}... "
if [ -f ext-deps/$module/include/speex/${module}_config_types.h -a $SUBMODULE_UPDATED = no ]; then
echo "not needed"
else
cd ext-deps/$module
./autogen.sh
./configure
cd ../..
fi
done