Move encoders and ffmpeg to separate scripts

This commit is contained in:
2016-04-20 22:18:38 +01:00
parent 22afbdc15c
commit dbb9904da6
3 changed files with 31 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
headphones:
$(call script,encoders)
headphones: encoders
$(call script,ffmpeg)
$(call script,$@)
$(call boot,02,$@)
$(call runit,$@)

13
build/scripts/encoders.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
source /build/config
set -x
## Enable multimedia sources in APT
echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
echo 'deb-src http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
apt update
apt_install_permanent --force-yes deb-multimedia-keyring
## Encoders
apt_install_permanent --force-yes libmp3lame0 libavcodec-extra* libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev libopenjpeg-dev libx264-dev libfaac-dev

16
build/scripts/ffmpeg.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
source /build/config
set -x
## Environment
export_env FFMPEG_VERSION 2.8.6
## FFmpeg
cd /opt
wget https://github.com/xbmc/FFmpeg/archive/$FFMPEG_VERSION-Jarvis-16.0.tar.gz
tar xvjf ffmpeg-$FFMPEG_VERSION.tar.bz2
cd ffmpeg-$FFMPEG_VERSION
./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree
make $JOBS
make install