Warning, file /packaging/appimage-packaging/kdenlive/scripts/ffmpeg.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/bin/bash
0002 set -e
0003 set -x
0004 export LD_LIBRARY_PATH=/opt/usr/lib:/opt/usr/library:/opt/usr/lib/x86_64-linux-gnu:/usr/lib:/usr/lib64
0005 export PKG_CONFIG="pkg-config --static"
0006 export CPATH=/opt/usr/include:/opt/usr/include/corvusoft:/opt/usr/include/boost/system:/opt/usr/include/boost:/usr/include
0007 export LDFLAGS="-L/opt/usr/library -L/opt/usr/lib $LDFLAGS"
0008 export CFLAGS="-I/opt/usr/include $CFLAGS"
0009 export CXXFLAGS="-std=c++11 -fPIC"
0010 function error_exit
0011 {
0012         echo "$1" 1>&2
0013         exit 1
0014 }
0015 
0016 git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
0017 
0018 
0019 if cd ffmpeg; then
0020          ./configure --prefix="/opt/usr" --disable-doc --disable-ffserver --enable-gpl --enable-version3 --enable-shared --enable-static --enable-debug --enable-pthreads --enable-runtime-cpudetect --enable-frei0r --enable-avfilter \
0021          --enable-libvpx --enable-libx264 --enable-libx265 && \
0022           make -j4 && sudo make install
0023                 ls /opt/usr/include/
0024 else
0025         error_exit "$LINENO: An error has occurred.. Aborting."
0026 fi