Mercurial > hg > vamp-aubio-plugins
annotate scripts/get_aubio.sh @ 194:c22402c78df4
scripts/get_aubio.sh: disable external dependencies, use curl
author | Paul Brossier <piem@piem.org> |
---|---|
date | Tue, 14 Feb 2017 00:47:17 +0100 |
parents | 9a07ca45658d |
children | 84fbc387ebd4 |
rev | line source |
---|---|
piem@120 | 1 #! /bin/bash |
piem@120 | 2 |
piem@120 | 3 set -e |
piem@120 | 4 set -x |
piem@120 | 5 |
piem@184 | 6 source $PWD/VERSION |
piem@175 | 7 |
piem@194 | 8 # external dependencies are not required for vamp |
piem@194 | 9 WAFOPTS="--disable-samplerate --disable-avcodec --disable-sndfile --disable-jack" |
piem@194 | 10 |
piem@120 | 11 mkdir -p contrib |
piem@120 | 12 pushd contrib |
piem@175 | 13 if [ -n "$VAMP_AUBIO_VERSION_STATUS" ] |
piem@175 | 14 then |
piem@175 | 15 git clone https://github.com/aubio/aubio aubio || ( pushd aubio; git pull; popd ) |
piem@175 | 16 pushd aubio |
piem@175 | 17 else |
piem@175 | 18 echo "using release 0.4.4" |
piem@175 | 19 tarball=aubio-$AUBIO_VERSION.tar.bz2 |
piem@194 | 20 [ -f $tarball ] || curl -O https://aubio.org/pub/$tarball |
piem@194 | 21 [ -f $tarball.asc ] || curl -O https://aubio.org/pub/$tarball.asc |
piem@175 | 22 gpg --verify $tarball.asc $tarball |
piem@175 | 23 rm -rf ${tarball%%.tar.bz2} && tar xf $tarball |
piem@175 | 24 pushd ${tarball%%.tar.bz2} |
piem@175 | 25 fi |
piem@120 | 26 |
piem@120 | 27 #rm -rf aubio |
piem@131 | 28 ./scripts/get_waf.sh |
piem@120 | 29 #./waf distclean |
piem@156 | 30 ./waf configure --prefix=$PWD/../aubio-dist $WAFOPTS |
piem@161 | 31 ./waf build -v $WAFOPTS |
piem@161 | 32 ./waf install -v $WAFOPTS |
piem@120 | 33 popd |
piem@120 | 34 popd |