source: gs3-extensions/mars-src/trunk/packages/CASCADE-MAKE/ESSENTIA.sh@ 34388

Last change on this file since 34388 was 34388, checked in by davidb, 4 years ago

Work with virtual-env if present; assume python to use is on path

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2
3package=essentia
4version=-full-git
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_MARS ../.. $*
9
10if [ "x$VIRTUAL_ENV" != "x" ] ; then
11 prefix="$VIRTUAL_ENV"
12else
13 prefix="$GEXT_MARS_INSTALLED"
14fi
15
16opt_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?
20if [ $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]"
32fi
33
34#opt_run_make $compile $package $version
35# consider making a waf version for compiling?
36# (and dropping the testing part)
37if [ $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
50fi
51
52#opt_run_make $install $package $version "install"
53# consider making a waf version for install?
54if [ $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]"
64fi
65
66
67opt_run_make $clean $package $version "clean"
68opt_run_make $distclean $package $version "distclean"
69
70opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.