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 | #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 |
|
---|
22 | if [ "x$PKG_CONFIG_PATH" = "x" ] ; then
|
---|
23 | export PKG_CONFIG_PATH="$GEXT_MARS_INSTALLED/lib/pkgconfig"
|
---|
24 | else
|
---|
25 | export PKG_CONFIG_PATH="$GEXT_MARS_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
|
---|
26 |
|
---|
27 | fi
|
---|
28 |
|
---|
29 |
|
---|
30 | opt_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?
|
---|
34 | if [ $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]"
|
---|
49 | fi
|
---|
50 |
|
---|
51 | #opt_run_make $compile $package $version
|
---|
52 | # consider making a waf version for compiling?
|
---|
53 | # (and dropping the testing part)
|
---|
54 | if [ $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
|
---|
67 | fi
|
---|
68 |
|
---|
69 | #opt_run_make $install $package $version "install"
|
---|
70 | # consider making a waf version for install?
|
---|
71 | if [ $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]"
|
---|
81 | fi
|
---|
82 |
|
---|
83 |
|
---|
84 | opt_run_make $clean $package $version "clean"
|
---|
85 | opt_run_make $distclean $package $version "distclean"
|
---|
86 |
|
---|
87 | opt_run_tarclean $tarclean $package $version
|
---|