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