Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
david committed Nov 18, 2016
1 parent 8745f08 commit 1c60a0c
Showing 1 changed file with 52 additions and 29 deletions.
81 changes: 52 additions & 29 deletions 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}"'

0 comments on commit 1c60a0c

Please sign in to comment.