scripts/get_aubio.sh: disable external dependencies, use curl
[vamp-aubio-plugins.git] / scripts / get_aubio.sh
1 #! /bin/bash
2
3 set -e
4 set -x
5
6 source $PWD/VERSION
7
8 # external dependencies are not required for vamp
9 WAFOPTS="--disable-samplerate --disable-avcodec --disable-sndfile --disable-jack"
10
11 mkdir -p contrib
12 pushd contrib
13 if [ -n "$VAMP_AUBIO_VERSION_STATUS" ]
14 then
15   git clone https://github.com/aubio/aubio aubio || ( pushd aubio; git pull; popd )
16   pushd aubio
17 else
18   echo "using release 0.4.4"
19   tarball=aubio-$AUBIO_VERSION.tar.bz2
20   [ -f $tarball ] || curl -O https://aubio.org/pub/$tarball
21   [ -f $tarball.asc ] || curl -O https://aubio.org/pub/$tarball.asc
22   gpg --verify $tarball.asc $tarball
23   rm -rf ${tarball%%.tar.bz2} && tar xf $tarball
24   pushd ${tarball%%.tar.bz2}
25 fi
26
27 #rm -rf aubio
28 ./scripts/get_waf.sh
29 #./waf distclean
30 ./waf configure --prefix=$PWD/../aubio-dist $WAFOPTS
31 ./waf build -v $WAFOPTS
32 ./waf install -v $WAFOPTS
33 popd
34 popd