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

Last change on this file since 34681 was 34681, checked in by davidb, 3 years ago

compile sequence for essentia changed to use the internal script it provides to get the supporting packages

  • Property svn:executable set to *
File size: 2.7 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
16#export CFLAGS="$CFLAGS -I$GEXT_MARS_INSTALLED/include"
17##export CPPFLAGS="$CPPFLAGS -I$GEXT_MARS_INSTALLED/include"
18##export CXXFLAGS="$CXXFLAGS -I$GEXT_MARS_INSTALLED/include"
19#export LDFLAGS="$LDFLAGS -L$GEXT_MARS_INSTALLED/lib"
20##export LD_LIBRARY_PATH="$GEXT_MARS_INSTALLED/lib"
21
22if [ "x$PKG_CONFIG_PATH" = "x" ] ; then
23 export PKG_CONFIG_PATH="$GEXT_MARS_INSTALLED/lib/pkgconfig"
24else
25 export PKG_CONFIG_PATH="$GEXT_MARS_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
26
27fi
28
29
30opt_run_untar $force_untar $auto_untar $package $version
31
32#opt_run_configure $force_config $auto_config $package $version $prefix
33# consider making a waf version for configure?
34if [ $force_config = "1" ] ; then
35
36 echo "[pushd $package$version]"
37 ( cd $package$version ; \
38 # Used to do full configure with testing, but have not dropped that
39 # (note: needs full recursive git cloned version of repository to provide models and sample audio files)
40 echo ./packaging/build_3rdparty_static_debian.sh ; \
41 eval ./packaging/build_3rdparty_static_debian.sh ; \
42 echo ./waf configure --with-static-examples --with-python --prefix="$prefix" $@ ; \
43 eval ./waf configure --with-static-examples --with-python --prefix="$prefix" $@ ; )
44 if [ $? != 0 ] ; then
45 echo " Error encountered running *configure* stage of $progname"
46 exit 1
47 fi
48 echo "[popd]"
49fi
50
51#opt_run_make $compile $package $version
52# consider making a waf version for compiling?
53# (and dropping the testing part)
54if [ $compile = "1" ] ; then
55 echo "[pushd $package$version]"
56 ( cd $package$version ; \
57 # Do full configure with testing (note: needs full recursive git cloned version of repository to provide models and sample audio files)
58 echo "./waf && ./waf run_tests" ; \
59 eval ./waf && ./waf run_tests )
60 if [ $? != 0 ] ; then
61 echo " Error encountered running *compile* stage of $progname"
62 exit 1
63 fi
64 echo "[popd]"
65
66 # python3 ./waf run_python_tests
67fi
68
69#opt_run_make $install $package $version "install"
70# consider making a waf version for install?
71if [ $install = "1" ] ; then
72 echo "[pushd $package$version]"
73 ( cd $package$version ; \
74 echo ./waf install ; \
75 eval ./waf install )
76 if [ $? != 0 ] ; then
77 echo " Error encountered running *install* stage of $progname"
78 exit 1
79 fi
80 echo "[popd]"
81fi
82
83
84opt_run_make $clean $package $version "clean"
85opt_run_make $distclean $package $version "distclean"
86
87opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.