-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffmpeg: update version 2.8.5 to 3.1.4
Use HTTPS instead of FTP to securely download the source archive. Remove `sourcesubdir_append src`
- Loading branch information
Showing
1 changed file
with
52 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}"' |