mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 05:40:06 +00:00
27 lines
867 B
Bash
Executable File
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
|
|
|