Skip to content

Commit 777879a

Browse files
viasatfinnmarkus-perl
authored andcommitted
Build in centos7 and ensure libaom not installed in lib64
1 parent 7fe04aa commit 777879a

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

Dockerfile-centos

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ARG CLEANUP="yes"
2+
FROM centos:7 AS base
3+
ARG MAKE_DOCS="no"
4+
5+
RUN yum update -y && \
6+
yum install -y autoconf automake bzip2 bzip2-devel freetype-devel gcc gcc-c++ git libtool make mercurial && \
7+
yum install -y vim
8+
9+
# yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel
10+
11+
WORKDIR /app
12+
COPY ./build-ffmpeg /app/build-ffmpeg
13+
14+
RUN STOP_BEFORE_CMAKE=yes /app/build-ffmpeg --build
15+
RUN SKIP_FFMPEG_BUILD=yes /app/build-ffmpeg --build
16+
RUN AUTOINSTALL=yes /app/build-ffmpeg --build # toggle comment to trigger layer rebuild
17+
RUN cp /app/workspace/bin/ffmpeg /app/workspace/bin/ffprobe /usr/bin/
18+
19+
FROM base as cleanup-no
20+
FROM base as cleanup-yes
21+
RUN /app/build-ffmpeg --cleanup
22+
23+
FROM cleanup-${CLEANUP} AS final
24+
25+
CMD ["--help"]
26+
ENTRYPOINT ["/usr/bin/ffmpeg"]

build-ffmpeg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,10 @@ if build "pkg-config"; then
296296
build_done "pkg-config"
297297
fi
298298

299+
if [[ $STOP_BEFORE_CMAKE == "yes" ]]; then
300+
exit 0
301+
fi
302+
299303
if build "cmake"; then
300304
download "https://cmake.org/files/v3.15/cmake-3.15.4.tar.gz" "cmake-3.15.4.tar.gz"
301305
cd "$PACKAGES"/cmake-3.15.4 || exit
@@ -343,7 +347,7 @@ if build "av1"; then
343347
cd "$PACKAGES"/av1 || exit
344348
mkdir -p "$PACKAGES"/aom_build
345349
cd "$PACKAGES"/aom_build || exit
346-
execute cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" "$PACKAGES"/av1
350+
execute cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DCMAKE_INSTALL_LIBDIR=lib "$PACKAGES"/av1
347351
execute make -j $MJOBS
348352
execute make install
349353
build_done "av1"

0 commit comments

Comments
 (0)