X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcfg-cv.sh;fp=cinelerra-5.1%2Fcfg-cv.sh;h=0000000000000000000000000000000000000000;hb=7a70932d3e04454177c456d0b42ee2f5318d6ad1;hp=0d2b5aea92a05de2f7fa3676e0040400c10acc9f;hpb=ded6adaa0ad1bdb311f013c1e94d7c5582b228db;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cfg-cv.sh b/cinelerra-5.1/cfg-cv.sh deleted file mode 100755 index 0d2b5aea..00000000 --- a/cinelerra-5.1/cfg-cv.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -x - -TOPDIR=`pwd` -THIRDPARTY=$TOPDIR/thirdparty -echo "TOPDIR=$TOPDIR" > global_config -echo "THIRDPARTY=$TOPDIR/thirdparty" >> global_config - -cpus=`grep -c "^proc" /proc/cpuinfo` -( cd $THIRDPARTY; ./configure cv; \ - export CFG_VARS='CFLAGS+=" -fPIC"'; \ - export MAK_VARS='CFLAGS+=" -fPIC"'; \ - export CFG_PARAMS="--with-pic --enable-pic --disable-asm"; \ - make -j$cpus >& log ) - -static_libs=`make -C $THIRDPARTY -s val-static_libraries` -static_includes=`make -C $THIRDPARTY -s val-static_includes` - -export LDFLAGS=`for f in $static_libs; do - if [ ! -f "$f" ]; then continue; fi; - ls $f -done | sed -e 's;/[^/]*$;;' | \ -sort -u | while read d; do - echo -n " -L$d"; -done` - -export LIBS=`for f in $static_libs; do - if [ ! -f "$f" ]; then continue; fi; - ls $f -done | sed -e 's;.*/;;' -e 's;lib\(.*\)\.a$;\1;' | \ -sort -u | while read a; do - echo -n " -l$a"; -done` - -export CFLAGS="$static_includes" -export CXXFLAGS="$static_includes" - -if [ ! -f configure ]; then - ./autogen.sh -fi -sed -e 's/^LIBX264_LIBS=""/#LIBX264_LIBS=""/' -i configure - -export MJPEG_LIBS="-L$THIRDPARTY/mjpegtools-2.1.0/utils/.libs -lmjpegutils \ - -L$THIRDPARTY/mjpegtools-2.1.0/lavtools/.libs -llavfile \ - -L$THIRDPARTY/mjpegtools-2.1.0/lavtools/.libs -llavjpeg \ - -L$THIRDPARTY/mjpegtools-2.1.0/mpeg2enc/.libs -lmpeg2encpp \ - -L$THIRDPARTY/mjpegtools-2.1.0/mplex/.libs -lmplex2" -export MJPEG_CFLAGS="-I$THIRDPARTY/mjpegtools-2.1.0/. \ - -I$THIRDPARTY/mjpegtools-2.1.0/lavtools \ - -I$THIRDPARTY/mjpegtools-2.1.0/utils" - -export LIBX264_CFLAGS="-I$THIRDPARTY/x264-20151229/." -export LIBX264_LIBS="-L$THIRDPARTY/x264-20151229/. -lx264" - -for f in $MJPEG_LIBS $LIBX264_LIBS; do - LIBS=`echo "$LIBS" | sed -e "s/[ ]*\<$f\>[ ]*/ /"` -done - -echo LDFLAGS=$LDFLAGS -echo LIBS=$LIBS -echo CFLAGS=$CFLAGS - -./configure -