rehome git repo, change config dir to .bcast5
[goodguy/history.git] / cinelerra-5.0 / bld_scripts / bld_static.sh
1 #!/bin/bash
2
3 dir="$1"
4 shift
5 path="/home"
6 bld="git-repo"
7 proj="cinelerra5"
8 base="cinelerra-5.0"
9
10 if [ ! -d "$path/$dir/$bld" ]; then
11   echo "$bld missing in $path/$dir"
12   exit 1
13 fi
14
15 cd "$path/$dir/$bld"
16 rm -rf "$proj"
17 git clone "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj"
18 if [ $? -ne 0 ]; then
19   echo "git clone $proj failed"
20   exit 1
21 fi
22
23 cd "$proj/$base"
24 if [ "$dir" = "ubuntu" ]; then
25  echo "CFLAGS += -DPNG_SKIP_SETJMP_CHECK=1" >> global_config
26 fi
27 if [ "$dir" = "centos" ]; then
28  echo "EXTRA_LIBS += -lnuma" >> global_config
29  echo "CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS" >> global_config
30 fi
31 if [ "$dir" = "suse" ]; then
32  echo "EXTRA_LIBS += -lnuma" >> global_config
33 fi
34
35 STATIC_LIBRARIES=1 ./configure >& log
36 make >> log 2>&1 $@
37 make install >> log 2>&1
38
39 echo "finished: scanning log for ***"
40 grep -a "\*\*\*" log
41