1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=essentia
|
---|
4 | version=-full-git
|
---|
5 |
|
---|
6 | progname=$0
|
---|
7 |
|
---|
8 | source ../cascade-make/lib/cascade-lib.bash GEXT_MARS ../.. $*
|
---|
9 |
|
---|
10 | if [ "x$VIRTUAL_ENV" != "x" ] ; then
|
---|
11 | prefix="$VIRTUAL_ENV"
|
---|
12 | else
|
---|
13 | prefix="$GEXT_MARS_INSTALLED"
|
---|
14 | fi
|
---|
15 |
|
---|
16 | opt_run_untar $force_untar $auto_untar $package $version
|
---|
17 |
|
---|
18 | #opt_run_configure $force_config $auto_config $package $version $prefix
|
---|
19 | # consider making a waf version for configure?
|
---|
20 | if [ $force_config = "1" ] ; then
|
---|
21 |
|
---|
22 | echo "[pushd $package$version]"
|
---|
23 | ( cd $package$version ; \
|
---|
24 | # Do full configure with testing (note: needs full recursive git cloned version of repository to provide models and sample audio files)
|
---|
25 | echo ./waf configure --build-static --with-python --with-cpptests --with-examples --prefix="$prefix" $@ ; \
|
---|
26 | eval ./waf configure --build-static --with-python --with-cpptests --with-examples --prefix="$prefix" $@ ; )
|
---|
27 | if [ $? != 0 ] ; then
|
---|
28 | echo " Error encountered running *configure* stage of $progname"
|
---|
29 | exit 1
|
---|
30 | fi
|
---|
31 | echo "[popd]"
|
---|
32 | fi
|
---|
33 |
|
---|
34 | #opt_run_make $compile $package $version
|
---|
35 | # consider making a waf version for compiling?
|
---|
36 | # (and dropping the testing part)
|
---|
37 | if [ $compile = "1" ] ; then
|
---|
38 | echo "[pushd $package$version]"
|
---|
39 | ( cd $package$version ; \
|
---|
40 | # Do full configure with testing (note: needs full recursive git cloned version of repository to provide models and sample audio files)
|
---|
41 | echo "./waf && ./waf run_tests" ; \
|
---|
42 | eval ./waf && ./waf run_tests )
|
---|
43 | if [ $? != 0 ] ; then
|
---|
44 | echo " Error encountered running *compile* stage of $progname"
|
---|
45 | exit 1
|
---|
46 | fi
|
---|
47 | echo "[popd]"
|
---|
48 |
|
---|
49 | # python3 ./waf run_python_tests
|
---|
50 | fi
|
---|
51 |
|
---|
52 | #opt_run_make $install $package $version "install"
|
---|
53 | # consider making a waf version for install?
|
---|
54 | if [ $install = "1" ] ; then
|
---|
55 | echo "[pushd $package$version]"
|
---|
56 | ( cd $package$version ; \
|
---|
57 | echo ./waf install ; \
|
---|
58 | eval ./waf install )
|
---|
59 | if [ $? != 0 ] ; then
|
---|
60 | echo " Error encountered running *install* stage of $progname"
|
---|
61 | exit 1
|
---|
62 | fi
|
---|
63 | echo "[popd]"
|
---|
64 | fi
|
---|
65 |
|
---|
66 |
|
---|
67 | opt_run_make $clean $package $version "clean"
|
---|
68 | opt_run_make $distclean $package $version "distclean"
|
---|
69 |
|
---|
70 | opt_run_tarclean $tarclean $package $version
|
---|