@@ -29,7 +29,10 @@ RUN curl -O -L https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz && \
29
29
# https://trac.ffmpeg.org/wiki/CompilationGuide/Centos#GettheDependencies
30
30
# manylinux provides the toolchain and git; we provide cmake
31
31
RUN yum install freetype-devel bzip2-devel zlib-devel -y && \
32
- curl -O -L https://www.cpan.org/src/5.0/perl-5.20.1.tar.gz && \
32
+ mkdir ~/ffmpeg_sources
33
+
34
+ # Newer openssl configure requires newer perl
35
+ RUN curl -O -L https://www.cpan.org/src/5.0/perl-5.20.1.tar.gz && \
33
36
tar -xf perl-5.20.1.tar.gz && \
34
37
cd perl-5.20.1 && \
35
38
./Configure -des -Dprefix="$HOME/openssl_build" && \
@@ -39,38 +42,41 @@ RUN yum install freetype-devel bzip2-devel zlib-devel -y && \
39
42
cd .. && \
40
43
rm -rf perl-5.20.1*
41
44
42
- RUN mkdir ~/ffmpeg_sources && \
43
- cd ~/ffmpeg_sources && \
45
+ RUN cd ~/ffmpeg_sources && \
46
+ curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1c.tar.gz && \
47
+ tar -xf OpenSSL_1_1_1c.tar.gz && \
48
+ cd openssl-OpenSSL_1_1_1c && \
49
+ true '#in i686, ./config detects x64 in i686 without linux32 \
50
+ when run from "docker build"' && \
51
+ PERL="$HOME/openssl_build/bin/perl" linux32 ./config --prefix="$HOME/ffmpeg_build" --openssldir="$HOME/ffmpeg_build" shared zlib && \
52
+ make -j4 && \
53
+ true '#skip installing documentation' && \
54
+ make install_sw && \
55
+ rm -rf ~/openssl_build
56
+
57
+ RUN cd ~/ffmpeg_sources && \
44
58
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.bz2 && \
45
59
tar -xf nasm-2.13.02.tar.bz2 && cd nasm-2.13.02 && ./autogen.sh && \
46
60
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
47
61
make -j4 && \
48
- make install && \
49
- cd ~/ffmpeg_sources && \
62
+ make install
63
+
64
+ RUN cd ~/ffmpeg_sources && \
50
65
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \
51
66
tar -xf yasm-1.3.0.tar.gz && \
52
67
cd yasm-1.3.0 && \
53
68
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
54
69
make -j4 && \
55
- make install && \
56
- cd ~/ffmpeg_sources && \
70
+ make install
71
+
72
+ RUN cd ~/ffmpeg_sources && \
57
73
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git && \
58
74
cd libvpx && \
59
75
./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm --enable-pic --enable-shared && \
60
76
make -j4 && \
61
- make install && \
62
- cd ~/ffmpeg_sources && \
63
- curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1c.tar.gz && \
64
- tar -xf OpenSSL_1_1_1c.tar.gz && \
65
- cd openssl-OpenSSL_1_1_1c && \
66
- true '#in i686, ./config detects x64 in i686 without linux32 \
67
- when run from "docker build"' && \
68
- PERL="$HOME/openssl_build/bin/perl" linux32 ./config --prefix="$HOME/ffmpeg_build" --openssldir="$HOME/ffmpeg_build" shared zlib && \
69
- make -j4 && \
70
- true '#skip installing documentation' && \
71
- make install_sw && \
72
- cd ~/ffmpeg_sources && \
73
- rm -rf ~/openssl_build && \
77
+ make install
78
+
79
+ RUN cd ~/ffmpeg_sources && \
74
80
curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
75
81
tar -xf ffmpeg-snapshot.tar.bz2 && \
76
82
cd ffmpeg && \
0 commit comments