#!/bin/bash
cd cinelerra5/cinelerra-5.1
echo "EXTRA_LIBS += -lva" >> global_config
cat global_config;
read FAKE;
cp -aiv guicast/bccmdl.py ../../
diff guicast/bccmdl.py ../../
read FAKE;
sed -e '1,1c#!/usr/bin/python2.7' -i guicast/bccmdl.py
diff guicast/bccmdl.py ../../
read FAKE;
cp -iav guicast/Makefile ../../
diff  guicast/Makefile ../../Makefile 
read FAKE;
sed -e '/^bcxfer.C:/,+1s/python/python2.7/' -i guicast/Makefile
diff guicast/Makefile ../../Makefile 
read FAKE;
#export LDFLAGS+=-Wl,-z,noexecstack && echo $LDFLAGS; read FAKE; ./configure shared |& tee /var/log/no-portage-tmp/cinelerra-cv-gg_$(date +%y%m%d_%H%M)_configure_shared.log
echo $LDFLAGS; read FAKE; ./configure shared |& tee /var/log/no-portage-tmp/cinelerra-cv-gg_$(date +%y%m%d_%H%M)_configure_shared.log
touch log;
tailf log &
make >& log && \
cp -iav log /var/log/no-portage-tmp/cinelerra-cv-gg_$(date +%y%m%d_%H%M)_make.log 
