diff --git a/ffmpeg.be0 b/ffmpeg.be0 index 3e2870e9a..f079f1567 100755 --- a/ffmpeg.be0 +++ b/ffmpeg.be0 @@ -1,43 +1,66 @@ -#!/bin/env beesh +#!/usr/bin/env beesh -# BEE_VERSION ffmpeg-2.8.5-2 +# BEE_VERSION ffmpeg-3.1.4-0 SRCURL[0]="http://ffmpeg.org/releases/ffmpeg-${PKGVERSION}.tar.bz2" +# BEE_BUILDTYPE=autotools -PATCHURL[0]="" +# PATCHURL+=() -# BEE_CONFIGURE=compat +# EXCLUDE+=() -# EXCLUDE="" +# build_in_sourcedir -B=${S} +# sourcesubdir_append src + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} mee_configure() { - ./configure \ - --prefix=${PREFIX} \ - --enable-shared \ - --enable-pthreads \ - --enable-gpl \ - --enable-swscale \ - --enable-postproc \ - --enable-libmp3lame \ - --enable-libtheora \ - --enable-libvorbis \ - --enable-libvpx \ - --enable-libx264 \ - --enable-libxvid \ - --enable-swscale + sed -i 's/-lflite"/-lflite -lasound"/' ${S}/configure + ${S}/configure --prefix=${PREFIX} \ + --enable-gpl \ + --enable-version3 \ + --disable-static \ + --enable-shared \ + --disable-debug \ + --enable-libass \ + --enable-libfreetype \ + --enable-libmp3lame \ + --enable-libopus \ + --enable-libtheora \ + --enable-libvorbis \ + --enable-libvpx \ + --enable-libx264 \ + --enable-libx265 \ + --enable-x11grab \ + --docdir=${DATAROOTDIR}/doc/${PKGNAME} +} + +mee_build() { + bee_build + + gcc ${B}/tools/qt-faststart.c -o ${B}/tools/qt-faststart } mee_install() { -set -vx -env -# -# bee_install -# mkdir $D/usr/lib/pkgconfig/ -# cp $S/lib*/*.pc $D/usr/lib/pkgconfig/ - - make install DESTDIR=$D -set +vx + bee_install + + install -v -m755 -d ${D}/${BINDIR} + install -v -m755 ${B}/{tools/qt-faststart,ffmpeg,ffplay,ffprobe,ffserver} ${D}/${BINDIR} + install -v -m755 -d ${D}${DATAROOTDIR}/doc/${PKGNAME} + install -v -m644 ${B}/doc/*.txt ${D}${DATAROOTDIR}/doc/${PKGNAME} } +## by default this may be 'make install DESTDIR="${D}"'