mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
ffmpeg:
- fix ffmpeg build and install - add README
This commit is contained in:
parent
0c5271baaf
commit
fd6c5d216f
6
packages/multimedia/ffmpeg/README
Normal file
6
packages/multimedia/ffmpeg/README
Normal file
@ -0,0 +1,6 @@
|
||||
# to get it from git:
|
||||
|
||||
git clone git://git.ffmpeg.org/ffmpeg/
|
||||
cd ffmpeg
|
||||
git clone git://git.ffmpeg.org/libswscale/
|
||||
cd ..
|
@ -6,18 +6,6 @@ $SCRIPTS/build toolchain
|
||||
$SCRIPTS/build zlib
|
||||
$SCRIPTS/build faad2
|
||||
|
||||
if [ "$DEBUG" = yes ]; then
|
||||
DEBUG_CONFIG="--enable-debug --disable-stripping"
|
||||
else
|
||||
DEBUG_CONFIG="--disable-debug --enable-stripping"
|
||||
fi
|
||||
|
||||
if [ "$OPTIMIZATIONS" = size ]; then
|
||||
OPTIM_CONFIG="--enable-small"
|
||||
else
|
||||
OPTIM_CONFIG="--disable-small"
|
||||
fi
|
||||
|
||||
if [ "$DEVTOOLS" = "yes" ]; then
|
||||
$SCRIPTS/build SDL
|
||||
$SCRIPTS/build SDL_image
|
||||
@ -34,6 +22,8 @@ cd $PKG_BUILD/
|
||||
--prefix=/usr \
|
||||
--extra-cflags="$CFLAGS" \
|
||||
--cpu=$TARGET_CPU \
|
||||
--disable-debug \
|
||||
--enable-stripping \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--enable-gpl \
|
||||
@ -45,7 +35,7 @@ cd $PKG_BUILD/
|
||||
--enable-pthreads \
|
||||
--disable-x11grab \
|
||||
--enable-ipv6 \
|
||||
$OPTIM_CONFIG \
|
||||
--enable-small \
|
||||
--enable-encoders \
|
||||
--enable-decoders \
|
||||
--enable-muxers \
|
||||
@ -59,7 +49,6 @@ cd $PKG_BUILD/
|
||||
--enable-filters \
|
||||
--enable-zlib \
|
||||
--enable-libfaad \
|
||||
$DEBUG_CONFIG \
|
||||
$DEVTOOLS_CONFIG \
|
||||
|
||||
make
|
||||
|
@ -15,6 +15,6 @@ if [ "$DEVTOOLS" = "yes" ]; then
|
||||
$SCRIPTS/install SDL
|
||||
$SCRIPTS/install SDL_image
|
||||
$SCRIPTS/install SDL_mixer
|
||||
mkdir -p $INSTALL/usr/bin && cp -P $BUILD/$1*/ffplay $INSTALL/usr/bin
|
||||
mkdir -p $INSTALL/usr/bin && cp -P $PKG_BUILD/ffplay $INSTALL/usr/bin
|
||||
cp -P $PKG_BUILD/libavdevice/libavdevice.so* $INSTALL/usr/lib
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user