prevent popup deactivation while button_down
[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 --depth 1 "git://git.cinelerra-cv.org/goodguy/cinelerra.git" "$proj"
18 #rsh host tar -C /mnt0/cinelerra5 -cf - cinelerra | tar -xf -
19 #mv cinelerra cinelerra5
20 if [ $? -ne 0 ]; then
21   echo "git clone $proj failed"
22   exit 1
23 fi
24
25 cd "$proj/$base"
26 if [ "$dir" = "ubuntu" ]; then
27  echo "CFLAGS += -DPNG_SKIP_SETJMP_CHECK=1" >> global_config
28 fi
29 if [ "$dir" = "centos" ]; then
30  echo "EXTRA_LIBS += -lnuma" >> global_config
31  echo "CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS" >> global_config
32 fi
33 if [ "$dir" = "suse" ]; then
34  echo "EXTRA_LIBS += -lnuma" >> global_config
35 fi
36
37 STATIC_LIBRARIES=1 ./configure >& log
38 make >> log 2>&1 $@
39 make install >> log 2>&1
40
41 echo "finished: scanning log for ***"
42 grep -a "\*\*\*" log
43