VERSION: release 0.5.1, set aubio==0.4.4
[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 mkdir -p contrib
9 pushd contrib
10 if [ -n "$VAMP_AUBIO_VERSION_STATUS" ]
11 then
12   git clone https://github.com/aubio/aubio aubio || ( pushd aubio; git pull; popd )
13   pushd aubio
14 else
15   echo "using release 0.4.4"
16   tarball=aubio-$AUBIO_VERSION.tar.bz2
17   [ -f $tarball ] || wget https://aubio.org/pub/$tarball
18   [ -f $tarball.asc ] || wget https://aubio.org/pub/$tarball.asc
19   gpg --verify $tarball.asc $tarball
20   rm -rf ${tarball%%.tar.bz2} && tar xf $tarball
21   pushd ${tarball%%.tar.bz2}
22 fi
23
24 #rm -rf aubio
25 ./scripts/get_waf.sh
26 #./waf distclean
27 ./waf configure --prefix=$PWD/../aubio-dist $WAFOPTS
28 ./waf build -v $WAFOPTS
29 ./waf install -v $WAFOPTS
30 popd
31 popd