#!/bin/bash # # ffmpeg.SlackBuild is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or any later version. # # ffmpeg.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # # Based on ffmpeg.SlackBuild by Eric Hameleers # -- PATENT ALERT! -- # FFmpeg can be built with MP3 audio encoder (needed for FLV videos), # AMR audio encoder (needed for 3GGP videos) and AAC audio encoder (used in MP4) # but these libraries are 'contaminated' with patents from Fraunhofer, GGP etc. # You can build these patended algorithms into ffmpeg, and if you are an # ordinary end user, no one will bother you for using them. # This script will install all these libraries and so the binary package may # not be distributed. # default settings PACKAGE="ffmpeg" PACKAGE_EXT="bz2" VERSION=${VERSION:=3.3.4} BUILD=${BUILD:=1} FFMPEGDEPSDIR=/tmp/ffmpegdeps if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi # Support libraries: AACENC=0.1.3 AMRWBENC=0.1.3 AMR=0.1.3 ASS=0.13.6 # 0.12.1 AVC1394=0.5.4 DC1394=2.1.2 FDKAAC=0.1.5 # 0.1.4 FFMPEG=$VERSION GSM=1.0.16 # 1.0.13 LIBZVBI=0.2.35 ORC=0.4.26 # 0.4.25 RAW1394=2.0.5 RTMP=2.3 SCHROEDINGER=1.0.11 X265=2.2 # 1.9 check_required # AMR-NB de/encoder and WB decoder libraries used to de/encode 3GPP audio make_amr() { echo -e "**\n** amr ...\n**" PACKAGE_EXT="gz" SRC="opencore-amr-${AMR}.tar.${PACKAGE_EXT}" URL="http://downloads.sourceforge.net/opencore-amr/$SRC" get_source $SRC $URL unpack_source $SRC opencore-amr-${AMR} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-shared \ --program-prefix="" \ --program-suffix="" \ --build=$ARCH-slackware-linux \ make -j5 || exit 1 # Install amrnb into a temp location so ffmpeg can pickup the library make install DESTDIR=$FFMPEGDEPSDIR PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/amr cp -a AUTHORS COPYING ChangeLog LICENSE README $FFMPEGDEPSDIR/doc/amr } # Compile VisualOn amr wideband encoder library make_amrwbenc() { echo -e "**\n** amrwbenc ...\n**" PACKAGE_EXT="gz" SRC="vo-amrwbenc-${AMRWBENC}.tar.${PACKAGE_EXT}" URL="http://downloads.sourceforge.net/opencore-amr/$SRC" get_source $SRC $URL unpack_source $SRC vo-amrwbenc-${AMRWBENC} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-shared \ --program-prefix="" \ --program-suffix="" \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install amrwb into a temp location so ffmpeg can pickup the library make install DESTDIR=$FFMPEGDEPSDIR PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/amrwbenc cp -a COPYING ChangeLog NOTICE README $FFMPEGDEPSDIR/doc/amrwbenc } make_aacenc() { echo -e "**\n** aacenc ...\n**" PACKAGE_EXT="gz" SRC="vo-aacenc-${AACENC}.tar.$PACKAGE_EXT" URL="http://downloads.sourceforge.net/opencore-amr/$SRC" get_source $SRC $URL unpack_source $SRC vo-aacenc-${AACENC} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install aacenc into a temp location so ffmpeg can pickup the library make install DESTDIR=$FFMPEGDEPSDIR # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/aacenc cp -a COPYING* ChangeLog NOTICE README $FFMPEGDEPSDIR/doc/aacenc } # Compile dc1394 and avc1394 libraries # The raw1394 is part of Slackware 14.0 make_1394() { echo -e "**\n** 1394 ...\n**" PACKAGE_EXT="gz" SRC="libavc1394-${AVC1394}.tar.$PACKAGE_EXT" URL="http://downloads.sourceforge.net/libavc1394/$SRC" get_source $SRC $URL unpack_source $SRC libavc1394-${AVC1394} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install libavc1394 into a temp location so ffmpeg can pickup the library make install DESTDIR=$FFMPEGDEPSDIR # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/libavc1394 cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $FFMPEGDEPSDIR/doc/libavc1394 PACKAGE_EXT="gz" SRC="libdc1394-${DC1394}.tar.$PACKAGE_EXT" URL="http://downloads.sourceforge.net/libdc1394/$SRC" get_source $SRC $URL unpack_source $SRC libdc1394-${DC1394} CFLAGS="$SLKCFLAGS" \ CPPFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --disable-examples \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install libdc1394 into a temp location so ffmpeg can pickup the library make install DESTDIR=$FFMPEGDEPSDIR # Fix the pkgconfig file to get rid of unresolved symbols at runtime: sed -i -e "/^Libs:/s/$/ -lavc1394 -lraw1394/" $FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig/libdc1394-2.pc # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/libdc1394 cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $FFMPEGDEPSDIR/doc/libdc1394 } # compile fdkaac make_fdkaac() { echo -e "**\n** fdkaac ...\n**" PACKAGE_EXT="gz" SRC="fdk-aac-${FDKAAC}.tar.$PACKAGE_EXT" URL="http://downloads.sourceforge.net/opencore-amr/$SRC" get_source $SRC $URL unpack_source $SRC fdk-aac-${FDKAAC} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install fdkaac into a temp location so ffmpeg can pickup the library make install DESTDIR=$FFMPEGDEPSDIR # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/fdkaac cp -a ChangeLog NOTICE $FFMPEGDEPSDIR/doc/fdkaac || true } # Compile gsm make_gsm() { echo -e "**\n** gsm ...\n**" GSMMAJ=$(echo $GSM | cut -d. -f1,2) GSMPL=$(echo $GSM | cut -d. -f3) PACKAGE_EXT="gz" SRC="gsm-$GSM.tar.$PACKAGE_EXT" #URL="http://osxwinebuilder.googlecode.com/files/$SRC" URL="http://www.quut.com/gsm/$SRC" get_source $SRC $URL unpack_source $SRC gsm-${GSMMAJ}-pl${GSMPL} cd $TMP rm -rf gsm-${GSM} mv $TMP/gsm-${GSMMAJ}-pl${GSMPL} $TMP/gsm-${GSM} cd $TMP/gsm-${GSM} # Without this, x86_64 builds will fail: sed -i -e "/^CCFLAGS/s,-O2 ,$SLKCFLAGS ," \ -e "s,^# LDFLAGS.*,LDFLAGS = $SLKLDFLAGS," Makefile make -j5 || exit 2 # Install gsm into a temp location so ffmpeg can pickup the library mkdir -p $FFMPEGDEPSDIR/usr/{bin,include/gsm,lib${LIBDIRSUFFIX}} cp bin/* $FFMPEGDEPSDIR/usr/bin/ cp inc/gsm.h $FFMPEGDEPSDIR/usr/include/gsm/ ln -sf gsm/gsm.h $FFMPEGDEPSDIR/usr/include/gsm.h cp lib/* $FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/ # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/gsm cp -a COPYRIGHT ChangeLog* INSTALL MACHINES MANIFEST README $FFMPEGDEPSDIR/doc/gsm } make_rtmp() { echo -e "**\n** rtmp ...\n**" PACKAGE_EXT="tgz" SRC="rtmpdump-${RTMP}.$PACKAGE_EXT" URL="http://rtmpdump.mplayerhq.hu/download/$SRC" get_source $SRC $URL unpack_source $SRC rtmpdump-${RTMP} make -C librtmp prefix=/usr OPT="$SLKCFLAGS" all librtmp.pc || exit 1 # Install librtmp into a temp location so ffmpeg can pickup the library mkdir -p $FFMPEGDEPSDIR/usr/{include/librtmp,lib${LIBDIRSUFFIX}/pkgconfig} cp -a librtmp/librtmp.a $FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} cp -a librtmp/{amf.h,http.h,log.h,rtmp.h} $FFMPEGDEPSDIR/usr/include/librtmp cp -a librtmp/librtmp.pc $FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/rtmp/ cp -a COPYING ChangeLog README $FFMPEGDEPSDIR/doc/rtmp/ } # Orc (oil runtime compiler) is a dependency for schroedinger make_orc() { echo -e "**\n** orc ...\n**" PACKAGE_EXT="xz" SRC="orc-${ORC}.tar.$PACKAGE_EXT" URL="https://gstreamer.freedesktop.org/src/orc/$SRC" get_source $SRC $URL unpack_source $SRC orc-${ORC} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=$FFMPEGDEPSDIR/usr \ --libdir=$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # We used --prefix=$FFMPEGDEPSDIR/usr so that schroedinger's build will find the # headers in the $FFMPEGDEPSDIR instead of the filesystem root: make install # Add DOCS to the ffmpeg deps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/orc/ cp COPYING README TODO $FFMPEGDEPSDIR/doc/orc/ } # Compile schroedinger make_schroedinger() { echo -e "**\n** schroedinger ...\n**" PACKAGE_EXT="gz" SRC="schroedinger-${SCHROEDINGER}.tar.$PACKAGE_EXT" URL="http://www.diracvideo.org/download/schroedinger/$SRC" get_source $SRC $URL unpack_source $SRC schroedinger-${SCHROEDINGER} # Do not try to build the testsuite, it gives errors about multiple definitions: cat $CWD/schroedinger_notests.patch | patch -p1 --verbose # Because of the patch, run autoreconf: autoreconf -vif if [ "$ARCH" = "x86_64" ]; then ARCHOPTS="--with-pic" else ARCHOPTS="" fi CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="-L$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} $SLKLDFLAGS" \ PKG_CONFIG_PATH="$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig" \ ./configure \ --prefix=$FFMPEGDEPSDIR/usr \ --libdir=$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ $ARCHOPTS \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install schroedinger into a temp location so ffmpeg can pickup the library make install # Or else the ffmpeg build wil fail: cp schroedinger.pc \ $FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig/schroedinger.pc cp schroedinger.pc \ $FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig/schroedinger-1.0.pc ( cd $FFMPEGDEPSDIR/usr/include ln -sf schroedinger-1.0/schroedinger ) # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/schroedinger cp -a AUTHORS COPYING* NEWS TODO $FFMPEGDEPSDIR/doc/schroedinger } make_ass() { echo -e "**\n** ass ...\n**" PACKAGE_EXT="xz" SRC="libass-${ASS}.tar.$PACKAGE_EXT" URL="https://github.com/libass/libass/releases/download/${ASS}/$SRC" get_source $SRC $URL unpack_source $SRC libass-${ASS} CFLAGS="-I$FFMPEGDEPSDIR/usr/include $SLKCFLAGS" \ CXXFLAGS="-I$FFMPEGDEPSDIR/usr/include $SLKCFLAGS" \ LDFLAGS="-L$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} $SLKLDFLAGS" \ PKG_CONFIG_PATH="$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig" \ ./configure \ --prefix=$FFMPEGDEPSDIR/usr \ --libdir=$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make -j5 || exit 2 # Install libass into a temp location so ffmpeg can pickup the library make install # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/libass cp -a COPYING Changelog $FFMPEGDEPSDIR/doc/libass/ } # Compile x265 libraries make_x265() { echo -e "**\n** x265 ...\n**" PACKAGE_EXT="gz" SRC="x265-${X265}.tar.$PACKAGE_EXT" URL="http://github.com/videolan/x265/archive/${X265}.tar.$PACKAGE_EXT" get_source $SRC $URL unpack_source $SRC x265-${X265} mkdir -p build_x265 cd build_x265 cmake ../source \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_LDFLAGS:STRING="$SLKLDFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=lib${LIBDIRSUFFIX} \ -DENABLE_SHARED=OFF || exit 1 make -j5 || exit 2 make install DESTDIR=$FFMPEGDEPSDIR cd - # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/x265 cp -a COPYING $FFMPEGDEPSDIR/doc/x265 } # Compile libzvbi, a library that allows ffmpeg to process teletext subtitles make_zvbi() { echo -e "**\n** zvbi ...\n**" PACKAGE_EXT="bz2" SRC="zvbi-${LIBZVBI}.tar.$PACKAGE_EXT" URL="http://downloads.sourceforge.net/zapping/$SRC" get_source $SRC $URL unpack_source $SRC zvbi-${LIBZVBI} CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ ./configure \ --prefix=$FFMPEGDEPSDIR/usr \ --libdir=$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} \ --enable-static \ --disable-shared \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux || exit 1 make || exit 2 make install # Add DOCS to the ffmpegdeps to have it added to ffmpeg package later: mkdir -p $FFMPEGDEPSDIR/doc/zvbi/ cp AUTHORS BUGS COPYING COPYING.LIB ChangeLog INSTALL NEWS README TODO $FFMPEGDEPSDIR/doc/zvbi/ } # Compile ffmpeg with additional support for - # LAME (MP3), XVID, FAAC (MP4), FAAD2 , X264, GSM, SCHROEDINGER make_ffmpeg() { echo -e "**\n** ffmpeg ...\n**" PACKAGE_EXT="bz2" SRC="ffmpeg-$VERSION.tar.$PACKAGE_EXT" URL="http://ffmpeg.org/releases/$SRC" get_source $SRC $URL unpack_source $SRC ffmpeg-$VERSION if [ "$ARCH" = "x86_64" ]; then ARCHOPTS="--arch=x86_64 --enable-pic" else ARCHOPTS="" fi # Or else orc's library will not be used in the static linking (orc is # listed as a private lib for schroedinger): sed -i -e "s/pkg_config --libs/pkg_config --static --libs/" configure # Stamp the version into the source: sed -i -e "s/UNKNOWN/$FFMPEG/" version.sh TMPDIR="$TMP" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="-L$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} $SLKLDFLAGS -lpng -lXext" \ PKG_CONFIG_PATH="$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX}/pkgconfig" \ PATH="$FFMPEGDEPSDIR/usr/bin:$PATH" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ --libdir=/usr/lib${LIBDIRSUFFIX}/ \ --shlibdir=/usr/lib${LIBDIRSUFFIX}/ \ --enable-libmp3lame \ --enable-libfdk-aac \ --enable-openssl \ --enable-nonfree \ --enable-gpl \ --enable-version3 \ --enable-avfilter \ --enable-avresample \ --enable-frei0r \ --enable-ladspa \ --enable-libass \ --enable-libdc1394 \ --enable-libgsm \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libopus \ --enable-libpulse \ --enable-libschroedinger \ --enable-libtheora \ --enable-libv4l2 \ --enable-libvo-amrwbenc \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libx265 \ --enable-libzvbi \ --enable-postproc \ --enable-runtime-cpudetect \ --enable-vaapi \ --enable-vdpau \ --enable-pthreads \ --enable-bzlib \ --enable-zlib \ --enable-gnutls \ --enable-libcdio \ --enable-libssh \ --enable-shared \ --enable-static \ --disable-debug \ $ARCHOPTS \ --extra-cflags="-I$FFMPEGDEPSDIR/usr/include -DRUNTIME_CPUDETECT" \ --extra-ldflags="-L$FFMPEGDEPSDIR/usr/lib${LIBDIRSUFFIX} -ldl -lssl -lcrypto -lz -lusb" || exit 1 # --enable-libfaac \ # --enable-memalign-hack \ # --enable-x11grab \ make -j5 || exit 2 make DESTDIR=$PKG install # Add x264 presets. See 'Preset files' in the man pages. mkdir -p $PKG/usr/share/ffmpeg cp -a presets/*.ffpreset $PKG/usr/share/ffmpeg/ # The pkg-config files are full of library dependencies which we built # statically, so we need to edit those out so that programs that try to link # against our ffmpeg will not get confused: for PCFILE in $(ls $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/*.pc) ; do sed -i -e 's/-lfdk-aac//g' -e 's/-lass//' -e 's/-lzvbi//g' \ -e 's/-lgsm//' -e 's/-lrtmp//g' -e 's/-lx265//g' \ -e 's/-lopencore-amrnb//g' -e 's/-lopencore-amrwb//g' \ -e 's/-lschroedinger-[^ ]*//' -e 's/-lorc-[^ ]*//g' \ -e 's/-lvo-amrwbenc//g' -e 's/-lvo-aacenc//g' \ -e 's/-ldc1394//' -e 's/-lavc1394//g' \ -e 's#-L/tmp/ffmpegdeps/usr/lib${LIBDIRSUFFIX}##' \ $PCFILE done # Add a configuration file for the ffserver: mkdir -p $PKG/etc cp -a doc/ffserver.conf $PKG/etc/ffserver.conf.new # Add documentation (for all the deps as well) mkdir -p $DOCS cp -a COPYING* CREDITS Changelog MAINTAINERS RELEASE_NOTES *.md doc/*.txt doc/*.html $DOCS # Add all the supporting packages' documentation too: cp -a $FFMPEGDEPSDIR/doc/* $DOCS } rm -rf $FFMPEGDEPSDIR mkdir -p $FFMPEGDEPSDIR/usr/{bin,include,lib,man} make_fdkaac make_amr make_amrwbenc make_1394 make_gsm make_orc make_schroedinger make_x265 make_ass make_zvbi make_ffmpeg fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/ffmpeg-$VERSION rm -rf $TMP/amr-${AMRNB} rm -rf $TMP/amrwbenc-${AMRWB} rm -rf $TMP/libdc1394-${DC1394} rm -rf $TMP/gsm-${GSM} rm -rf $TMP/schroedinger-${SCHROEDINGER} rm -rf $TMP/ffmpegdepsdir rm -rf $PKG rm -f $TMP/ffmpeg_conf.log fi