#Maintainer: Dimitris Tzemos (djemos@slackel.gr) pkgname=ffmpeg pkgver=2.8.7 pkgrel=1dj source=(http://ffmpeg.org/releases/ffmpeg-$pkgver.tar.xz) docs=("readme" "install" "copying.gpl" "copying.lgpl" "changelog" "authors" "news" "todo" "maintainers") url=http://ffmpeg.org slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "ffmpeg (multimedia player, server and encoder)" "ffmpeg is a complete solution to record, convert and stream audio" "and video. It includes libavcodec, the leading audio/video codec" "library." ) build() { cd $startdir/src/$pkgname-$pkgver # Patch for proper flags sed -i -e 's/-O3//' configure if [ $arch == "i486" ] || [ $arch == "i686" ]; then EXTRAOPTS="--disable-ssse3 --arch=$arch --cpu=i686" else EXTRAOPTS="" fi ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --shlibdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --enable-shared \ --disable-static \ --disable-debug \ --enable-pthreads \ --enable-x11grab \ --disable-libfaac \ --enable-libcaca \ --enable-librtmp \ --enable-libmp3lame \ --enable-libmodplug \ --enable-libspeex \ --enable-libwavpack \ --enable-libtheora \ --enable-libv4l2 \ --enable-libvorbis \ --enable-libx264 \ --enable-libx265 \ --enable-libschroedinger \ --enable-libass \ --enable-libxvid \ --enable-gpl \ --enable-postproc \ --enable-libopus \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libpulse \ --enable-libvpx \ --enable-libcdio \ --enable-openal \ --enable-avresample \ --enable-version3 $EXTRAOPTS make || return 1 make install DESTDIR=$startdir/pkg }