X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fbld_scripts%2Fbld_static.sh;fp=cinelerra-5.0%2Fbld_scripts%2Fbld_static.sh;h=a7ed47ddf438c477c55a53af2ab5b52ec37a935f;hb=0c9155dd01b6745f908e12c6a202c671a8f09514;hp=0000000000000000000000000000000000000000;hpb=cc781196367b7841d463d7f7ebe9111ee7fa123c;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/bld_scripts/bld_static.sh b/cinelerra-5.0/bld_scripts/bld_static.sh new file mode 100755 index 00000000..a7ed47dd --- /dev/null +++ b/cinelerra-5.0/bld_scripts/bld_static.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +dir="$1" +shift +path="/home" +bld="git-repo" +proj="cinelerra" +base="cinelerra-5.0" + +if [ ! -d "$path/$dir/$bld" ]; then + echo "$bld missing in $path/$dir" + exit 1 +fi + +cd "$path/$dir/$bld" +rm -rf "$proj" +git clone "http://cinelerra.org/git-repo/$proj" +if [ $? -ne 0 ]; then + echo "git clone $bld/$proj/ failed" + exit 1 +fi + +cd "$proj/$base" +if [ "$dir" = "ubuntu" ]; then + echo "CFLAGS += -DPNG_SKIP_SETJMP_CHECK=1" >> global_config +fi +if [ "$dir" = "centos" ]; then + echo "EXTRA_LIBS += -lnuma" >> global_config + echo "CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS" >> global_config +fi +if [ "$dir" = "suse" ]; then + echo "EXTRA_LIBS += -lnuma" >> global_config +fi + +STATIC_LIBRARIES=1 ./configure >& log +make >> log 2>&1 $@ +make install >> log 2>&1 + +echo "finished: scanning log for ***" +grep -a "\*\*\*" log +