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

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

Adding in Essential compile scripts

  • 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
10prefix=$GEXT_MARS_INSTALLED
11
12opt_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?
16if [ $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]"
28fi
29
30#opt_run_make $compile $package $version
31# consider making a waf version for compiling?
32# (and dropping the testing part)
33if [ $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
46fi
47
48#opt_run_make $install $package $version "install"
49# consider making a waf version for install?
50if [ $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]"
60fi
61
62
63opt_run_make $clean $package $version "clean"
64opt_run_make $distclean $package $version "distclean"
65
66opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.