2020-10-29 09:31:58 +00:00
|
|
|
FROM centos:7 AS builder
|
|
|
|
|
|
|
|
ENV GIT https://github.com
|
2021-01-12 20:41:15 +00:00
|
|
|
ENV PKG_CONFIG_PATH /usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig
|
2020-12-07 11:50:22 +00:00
|
|
|
ENV QT 5_15_2
|
|
|
|
ENV QT_TAG v5.15.2
|
|
|
|
ENV QT_PREFIX /usr/local/desktop-app/Qt-5.15.2
|
2020-10-29 09:31:58 +00:00
|
|
|
ENV OPENSSL_VER 1_1_1
|
|
|
|
ENV OPENSSL_PREFIX /usr/local/desktop-app/openssl-1.1.1
|
2021-01-02 01:06:11 +00:00
|
|
|
ENV PATH ${PATH}:${QT_PREFIX}/bin
|
|
|
|
ENV Qt5_DIR ${QT_PREFIX}
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
2020-11-16 12:29:02 +00:00
|
|
|
RUN yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
|
2020-10-29 09:31:58 +00:00
|
|
|
RUN yum -y install centos-release-scl
|
|
|
|
|
2021-01-12 20:41:15 +00:00
|
|
|
RUN yum -y install git cmake3 meson ninja-build autoconf automake libtool \
|
|
|
|
zlib-devel gtk2-devel gtk3-devel libdrm-devel fontconfig-devel \
|
2020-10-29 09:31:58 +00:00
|
|
|
freetype-devel libX11-devel at-spi2-core-devel alsa-lib-devel \
|
|
|
|
pulseaudio-libs-devel mesa-libGL-devel mesa-libEGL-devel \
|
|
|
|
pkgconfig bison yasm file which xorg-x11-util-macros \
|
|
|
|
devtoolset-8-make devtoolset-8-gcc devtoolset-8-gcc-c++ \
|
|
|
|
devtoolset-8-binutils
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
SHELL [ "scl", "enable", "devtoolset-8", "--", "bash", "-c" ]
|
2020-10-29 09:31:58 +00:00
|
|
|
RUN ln -s cmake3 /usr/bin/cmake
|
|
|
|
|
|
|
|
ENV LibrariesPath /usr/src/Libraries
|
|
|
|
WORKDIR $LibrariesPath
|
|
|
|
|
|
|
|
FROM builder AS patches
|
2020-12-30 20:30:38 +00:00
|
|
|
ADD https://api.github.com/repos/desktop-app/patches/git/refs/heads/master patches-version.json
|
|
|
|
RUN git clone --depth=1 $GIT/desktop-app/patches.git
|
2020-10-29 09:31:58 +00:00
|
|
|
|
2021-01-02 01:06:11 +00:00
|
|
|
FROM builder AS extra-cmake-modules
|
|
|
|
|
|
|
|
RUN git clone -b v5.77.0 --depth=1 $GIT/KDE/extra-cmake-modules.git
|
|
|
|
|
|
|
|
WORKDIR extra-cmake-modules
|
|
|
|
RUN cmake3 -B build . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
|
|
|
|
RUN cmake3 --build build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/extra-cmake-modules-cache" cmake3 --install build
|
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf extra-cmake-modules
|
|
|
|
|
2020-10-29 09:31:58 +00:00
|
|
|
FROM builder AS libffi
|
|
|
|
RUN git clone -b v3.3 --depth=1 $GIT/libffi/libffi.git
|
|
|
|
|
|
|
|
WORKDIR libffi
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh
|
|
|
|
RUN ./configure --enable-static --disable-docs
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/libffi-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libffi
|
|
|
|
|
|
|
|
FROM builder AS xz
|
|
|
|
RUN git clone -b v5.2.5 https://git.tukaani.org/xz.git
|
|
|
|
|
|
|
|
WORKDIR xz
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 -B build . -DCMAKE_BUILD_TYPE=Release
|
|
|
|
RUN cmake3 --build build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/xz-cache" cmake3 --install build
|
2020-10-29 09:31:58 +00:00
|
|
|
|
2020-10-30 11:01:00 +00:00
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf xz
|
|
|
|
|
|
|
|
FROM builder AS mozjpeg
|
|
|
|
RUN git clone -b v4.0.1-rc2 --depth=1 $GIT/mozilla/mozjpeg.git
|
|
|
|
|
|
|
|
WORKDIR mozjpeg
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 -B build . \
|
2020-10-30 11:01:00 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr/local \
|
|
|
|
-DWITH_JPEG8=ON \
|
|
|
|
-DPNG_SUPPORTED=OFF
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 --build build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/mozjpeg-cache" cmake3 --install build
|
2020-10-30 11:01:00 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf mozjpeg
|
|
|
|
|
2020-10-29 09:31:58 +00:00
|
|
|
FROM builder AS opus
|
|
|
|
RUN git clone -b v1.3 --depth=1 $GIT/xiph/opus.git
|
|
|
|
|
|
|
|
WORKDIR opus
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh
|
|
|
|
RUN ./configure
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/opus-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf opus
|
|
|
|
|
|
|
|
FROM builder AS xcb-proto
|
|
|
|
RUN git clone -b xcb-proto-1.14 --depth=1 https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
|
|
|
|
|
|
|
|
WORKDIR xcbproto
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-proto-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf xcbproto
|
|
|
|
|
|
|
|
FROM builder AS xcb
|
|
|
|
COPY --from=xcb-proto ${LibrariesPath}/xcb-proto-cache /
|
|
|
|
|
|
|
|
RUN git clone -b libxcb-1.14 --depth=1 https://gitlab.freedesktop.org/xorg/lib/libxcb.git
|
|
|
|
|
|
|
|
WORKDIR libxcb
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libxcb
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
FROM builder AS xcb-wm
|
|
|
|
|
2020-12-30 20:30:38 +00:00
|
|
|
RUN git clone -b 0.4.1 --depth=1 --recursive https://gitlab.freedesktop.org/xorg/lib/libxcb-wm.git
|
2020-11-04 06:57:03 +00:00
|
|
|
|
|
|
|
WORKDIR libxcb-wm
|
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-wm-cache" install
|
|
|
|
|
|
|
|
FROM builder AS xcb-util
|
|
|
|
|
2020-12-30 20:30:38 +00:00
|
|
|
RUN git clone -b 0.4.0 --depth=1 --recursive https://gitlab.freedesktop.org/xorg/lib/libxcb-util.git
|
2020-11-04 06:57:03 +00:00
|
|
|
|
|
|
|
WORKDIR libxcb-util
|
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-util-cache" install
|
|
|
|
|
|
|
|
FROM builder AS xcb-image
|
|
|
|
COPY --from=xcb-util ${LibrariesPath}/xcb-util-cache /
|
|
|
|
|
2020-12-30 20:30:38 +00:00
|
|
|
RUN git clone -b 0.4.0 --depth=1 --recursive https://gitlab.freedesktop.org/xorg/lib/libxcb-image.git
|
2020-11-04 06:57:03 +00:00
|
|
|
|
|
|
|
WORKDIR libxcb-image
|
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-image-cache" install
|
|
|
|
|
|
|
|
FROM builder AS xcb-keysyms
|
|
|
|
|
2020-12-30 20:30:38 +00:00
|
|
|
RUN git clone -b 0.4.0 --depth=1 --recursive https://gitlab.freedesktop.org/xorg/lib/libxcb-keysyms.git
|
2020-11-04 06:57:03 +00:00
|
|
|
|
|
|
|
WORKDIR libxcb-keysyms
|
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-keysyms-cache" install
|
|
|
|
|
|
|
|
FROM builder AS xcb-render-util
|
|
|
|
|
2020-12-30 20:30:38 +00:00
|
|
|
RUN git clone -b 0.3.9 --depth=1 --recursive https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util.git
|
2020-11-04 06:57:03 +00:00
|
|
|
|
|
|
|
WORKDIR libxcb-render-util
|
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/xcb-render-util-cache" install
|
|
|
|
|
2020-10-29 09:31:58 +00:00
|
|
|
FROM builder AS libXext
|
|
|
|
RUN git clone -b libXext-1.3.4 --depth=1 https://gitlab.freedesktop.org/xorg/lib/libxext.git
|
|
|
|
|
|
|
|
WORKDIR libxext
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/libXext-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libxext
|
|
|
|
|
|
|
|
FROM builder AS libXfixes
|
|
|
|
RUN git clone -b libXfixes-5.0.3 --depth=1 https://gitlab.freedesktop.org/xorg/lib/libxfixes.git
|
|
|
|
|
|
|
|
WORKDIR libxfixes
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/libXfixes-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libxfixes
|
|
|
|
|
2020-12-14 12:12:04 +00:00
|
|
|
FROM builder AS libXv
|
|
|
|
COPY --from=libXext ${LibrariesPath}/libXext-cache /
|
|
|
|
|
|
|
|
RUN git clone -b libXv-1.0.11 --depth=1 https://gitlab.freedesktop.org/xorg/lib/libxv.git
|
|
|
|
|
|
|
|
WORKDIR libxv
|
|
|
|
RUN ./autogen.sh --enable-static
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/libXv-cache" install
|
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libxv
|
|
|
|
|
2020-10-29 09:31:58 +00:00
|
|
|
FROM builder AS wayland
|
|
|
|
COPY --from=libffi ${LibrariesPath}/libffi-cache /
|
|
|
|
|
|
|
|
RUN git clone -b 1.18.0 --depth=1 https://gitlab.freedesktop.org/wayland/wayland.git
|
|
|
|
|
|
|
|
WORKDIR wayland
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./autogen.sh \
|
2020-10-29 09:31:58 +00:00
|
|
|
--enable-static \
|
|
|
|
--disable-documentation \
|
|
|
|
--disable-dtd-validation
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/wayland-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf wayland
|
|
|
|
|
2021-01-02 01:06:11 +00:00
|
|
|
FROM builder AS wayland-protocols
|
|
|
|
COPY --from=wayland ${LibrariesPath}/wayland-cache /
|
|
|
|
|
2021-01-12 20:41:36 +00:00
|
|
|
RUN git clone -b 1.20 --depth=1 https://gitlab.freedesktop.org/wayland/wayland-protocols.git
|
2021-01-02 01:06:11 +00:00
|
|
|
|
|
|
|
WORKDIR wayland-protocols
|
|
|
|
RUN ./autogen.sh
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/wayland-protocols-cache" install
|
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf wayland-protocols
|
|
|
|
|
|
|
|
FROM builder AS plasma-wayland-protocols
|
|
|
|
COPY --from=extra-cmake-modules ${LibrariesPath}/extra-cmake-modules-cache /
|
|
|
|
|
|
|
|
RUN git clone -b v1.1.1 --depth=1 $GIT/KDE/plasma-wayland-protocols.git
|
|
|
|
|
|
|
|
WORKDIR plasma-wayland-protocols
|
|
|
|
RUN cmake3 -B build . -DCMAKE_BUILD_TYPE=Release
|
|
|
|
RUN cmake3 --build build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/plasma-wayland-protocols-cache" cmake3 --install build
|
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf plasma-wayland-protocols
|
|
|
|
|
2020-10-29 09:31:58 +00:00
|
|
|
FROM builder AS libva
|
|
|
|
|
|
|
|
COPY --from=libffi ${LibrariesPath}/libffi-cache /
|
|
|
|
COPY --from=libXext ${LibrariesPath}/libXext-cache /
|
|
|
|
COPY --from=libXfixes ${LibrariesPath}/libXfixes-cache /
|
|
|
|
COPY --from=wayland ${LibrariesPath}/wayland-cache /
|
|
|
|
|
2021-01-13 01:53:20 +00:00
|
|
|
RUN git clone -b 2.10.0 --depth=1 $GIT/intel/libva.git
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR libva
|
2021-01-13 01:53:20 +00:00
|
|
|
RUN ./autogen.sh \
|
|
|
|
--enable-static \
|
2021-01-25 05:11:41 +00:00
|
|
|
--sysconfdir=/etc \
|
2021-01-13 01:53:20 +00:00
|
|
|
--with-drivers-path=/usr/lib/dri
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/libva-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libva
|
|
|
|
|
|
|
|
FROM builder AS libvdpau
|
2021-01-13 01:56:50 +00:00
|
|
|
RUN git clone -b 1.4 --depth=1 https://gitlab.freedesktop.org/vdpau/libvdpau.git
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR libvdpau
|
2021-01-13 01:56:50 +00:00
|
|
|
RUN sed -i 's/shared_library/library/g' src/meson.build
|
|
|
|
|
|
|
|
RUN meson build \
|
|
|
|
--default-library=both \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
-Ddocumentation=false \
|
|
|
|
-Dmoduledir=/usr/lib/vdpau
|
|
|
|
|
|
|
|
RUN meson compile -C build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/libvdpau-cache" meson install -C build
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libvdpau
|
|
|
|
|
|
|
|
FROM builder AS ffmpeg
|
|
|
|
|
|
|
|
COPY --from=opus ${LibrariesPath}/opus-cache /
|
2020-12-14 12:12:04 +00:00
|
|
|
COPY --from=libXext ${LibrariesPath}/libXext-cache /
|
|
|
|
COPY --from=libXfixes ${LibrariesPath}/libXfixes-cache /
|
|
|
|
COPY --from=libXv ${LibrariesPath}/libXv-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=libva ${LibrariesPath}/libva-cache /
|
|
|
|
COPY --from=libvdpau ${LibrariesPath}/libvdpau-cache /
|
|
|
|
|
2020-11-05 17:18:11 +00:00
|
|
|
RUN git clone -b release/4.2 --depth=1 $GIT/FFmpeg/FFmpeg.git ffmpeg
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ffmpeg
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./configure \
|
2020-10-29 09:31:58 +00:00
|
|
|
--disable-debug \
|
|
|
|
--disable-programs \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-network \
|
|
|
|
--disable-autodetect \
|
|
|
|
--disable-everything \
|
|
|
|
--disable-alsa \
|
|
|
|
--disable-iconv \
|
|
|
|
--enable-libopus \
|
|
|
|
--enable-vaapi \
|
|
|
|
--enable-vdpau \
|
2020-12-14 12:12:04 +00:00
|
|
|
--enable-xlib \
|
|
|
|
--enable-libdrm \
|
2020-10-29 09:31:58 +00:00
|
|
|
--enable-protocol=file \
|
|
|
|
--enable-hwaccel=h264_vaapi \
|
|
|
|
--enable-hwaccel=h264_vdpau \
|
|
|
|
--enable-hwaccel=mpeg4_vaapi \
|
|
|
|
--enable-hwaccel=mpeg4_vdpau \
|
|
|
|
--enable-decoder=aac \
|
|
|
|
--enable-decoder=aac_fixed \
|
|
|
|
--enable-decoder=aac_latm \
|
|
|
|
--enable-decoder=aasc \
|
|
|
|
--enable-decoder=alac \
|
|
|
|
--enable-decoder=flac \
|
|
|
|
--enable-decoder=gif \
|
|
|
|
--enable-decoder=h264 \
|
|
|
|
--enable-decoder=h264_vdpau \
|
|
|
|
--enable-decoder=hevc \
|
|
|
|
--enable-decoder=mp1 \
|
|
|
|
--enable-decoder=mp1float \
|
|
|
|
--enable-decoder=mp2 \
|
|
|
|
--enable-decoder=mp2float \
|
|
|
|
--enable-decoder=mp3 \
|
|
|
|
--enable-decoder=mp3adu \
|
|
|
|
--enable-decoder=mp3adufloat \
|
|
|
|
--enable-decoder=mp3float \
|
|
|
|
--enable-decoder=mp3on4 \
|
|
|
|
--enable-decoder=mp3on4float \
|
|
|
|
--enable-decoder=mpeg4 \
|
|
|
|
--enable-decoder=mpeg4_vdpau \
|
|
|
|
--enable-decoder=msmpeg4v2 \
|
|
|
|
--enable-decoder=msmpeg4v3 \
|
|
|
|
--enable-decoder=opus \
|
|
|
|
--enable-decoder=pcm_alaw \
|
|
|
|
--enable-decoder=pcm_f32be \
|
|
|
|
--enable-decoder=pcm_f32le \
|
|
|
|
--enable-decoder=pcm_f64be \
|
|
|
|
--enable-decoder=pcm_f64le \
|
|
|
|
--enable-decoder=pcm_lxf \
|
|
|
|
--enable-decoder=pcm_mulaw \
|
|
|
|
--enable-decoder=pcm_s16be \
|
|
|
|
--enable-decoder=pcm_s16be_planar \
|
|
|
|
--enable-decoder=pcm_s16le \
|
|
|
|
--enable-decoder=pcm_s16le_planar \
|
|
|
|
--enable-decoder=pcm_s24be \
|
|
|
|
--enable-decoder=pcm_s24daud \
|
|
|
|
--enable-decoder=pcm_s24le \
|
|
|
|
--enable-decoder=pcm_s24le_planar \
|
|
|
|
--enable-decoder=pcm_s32be \
|
|
|
|
--enable-decoder=pcm_s32le \
|
|
|
|
--enable-decoder=pcm_s32le_planar \
|
|
|
|
--enable-decoder=pcm_s64be \
|
|
|
|
--enable-decoder=pcm_s64le \
|
|
|
|
--enable-decoder=pcm_s8 \
|
|
|
|
--enable-decoder=pcm_s8_planar \
|
|
|
|
--enable-decoder=pcm_u16be \
|
|
|
|
--enable-decoder=pcm_u16le \
|
|
|
|
--enable-decoder=pcm_u24be \
|
|
|
|
--enable-decoder=pcm_u24le \
|
|
|
|
--enable-decoder=pcm_u32be \
|
|
|
|
--enable-decoder=pcm_u32le \
|
|
|
|
--enable-decoder=pcm_u8 \
|
|
|
|
--enable-decoder=pcm_zork \
|
|
|
|
--enable-decoder=vorbis \
|
|
|
|
--enable-decoder=wavpack \
|
|
|
|
--enable-decoder=wmalossless \
|
|
|
|
--enable-decoder=wmapro \
|
|
|
|
--enable-decoder=wmav1 \
|
|
|
|
--enable-decoder=wmav2 \
|
|
|
|
--enable-decoder=wmavoice \
|
|
|
|
--enable-encoder=libopus \
|
|
|
|
--enable-parser=aac \
|
|
|
|
--enable-parser=aac_latm \
|
|
|
|
--enable-parser=flac \
|
|
|
|
--enable-parser=h264 \
|
|
|
|
--enable-parser=hevc \
|
|
|
|
--enable-parser=mpeg4video \
|
|
|
|
--enable-parser=mpegaudio \
|
|
|
|
--enable-parser=opus \
|
|
|
|
--enable-parser=vorbis \
|
|
|
|
--enable-demuxer=aac \
|
|
|
|
--enable-demuxer=flac \
|
|
|
|
--enable-demuxer=gif \
|
|
|
|
--enable-demuxer=h264 \
|
|
|
|
--enable-demuxer=hevc \
|
|
|
|
--enable-demuxer=m4v \
|
|
|
|
--enable-demuxer=mov \
|
|
|
|
--enable-demuxer=mp3 \
|
|
|
|
--enable-demuxer=ogg \
|
|
|
|
--enable-demuxer=wav \
|
|
|
|
--enable-muxer=ogg \
|
|
|
|
--enable-muxer=opus
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/ffmpeg-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
FROM builder AS openal
|
2021-01-22 14:08:49 +00:00
|
|
|
RUN git clone -b fix_pulse_default --depth=1 $GIT/telegramdesktop/openal-soft.git
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR openal-soft
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 -B build . \
|
2020-10-29 09:31:58 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DLIBTYPE:STRING=STATIC \
|
|
|
|
-DALSOFT_EXAMPLES=OFF \
|
|
|
|
-DALSOFT_TESTS=OFF \
|
|
|
|
-DALSOFT_UTILS=OFF \
|
|
|
|
-DALSOFT_CONFIG=OFF
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 --build build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/openal-cache" cmake3 --install build
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf openal
|
|
|
|
|
|
|
|
FROM builder AS openssl
|
|
|
|
ENV opensslDir openssl_${OPENSSL_VER}
|
|
|
|
RUN git clone -b OpenSSL_${OPENSSL_VER}-stable --depth=1 \
|
|
|
|
$GIT/openssl/openssl.git $opensslDir
|
|
|
|
|
|
|
|
WORKDIR ${opensslDir}
|
2021-01-13 02:23:49 +00:00
|
|
|
RUN ./config \
|
|
|
|
--prefix="$OPENSSL_PREFIX" \
|
|
|
|
--openssldir=/etc/ssl \
|
|
|
|
no-tests \
|
|
|
|
no-dso
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$LibrariesPath/openssl-cache" install_sw
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf $opensslDir
|
|
|
|
|
|
|
|
FROM builder AS xkbcommon
|
2021-01-12 20:41:15 +00:00
|
|
|
COPY --from=xcb ${LibrariesPath}/xcb-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
|
2021-01-12 20:41:15 +00:00
|
|
|
RUN git clone -b xkbcommon-1.0.3 --depth=1 $GIT/xkbcommon/libxkbcommon.git
|
2020-10-29 09:31:58 +00:00
|
|
|
|
2021-01-12 20:41:15 +00:00
|
|
|
WORKDIR libxkbcommon
|
|
|
|
RUN meson build \
|
|
|
|
--default-library=both \
|
|
|
|
-Denable-docs=false \
|
|
|
|
-Denable-wayland=false \
|
|
|
|
-Denable-xkbregistry=false \
|
|
|
|
-Dxkb-config-root=/usr/share/X11/xkb \
|
|
|
|
-Dxkb-config-extra-path=/etc/xkb \
|
|
|
|
-Dx-locale-root=/usr/share/X11/locale
|
|
|
|
|
|
|
|
RUN meson compile -C build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/xkbcommon-cache" meson install -C build
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf libxkbcommon
|
|
|
|
|
|
|
|
FROM patches AS qt
|
|
|
|
|
|
|
|
COPY --from=libffi ${LibrariesPath}/libffi-cache /
|
2020-10-30 11:01:00 +00:00
|
|
|
COPY --from=mozjpeg ${LibrariesPath}/mozjpeg-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=xcb ${LibrariesPath}/xcb-cache /
|
2020-11-04 06:57:03 +00:00
|
|
|
COPY --from=xcb-wm ${LibrariesPath}/xcb-wm-cache /
|
|
|
|
COPY --from=xcb-util ${LibrariesPath}/xcb-util-cache /
|
|
|
|
COPY --from=xcb-image ${LibrariesPath}/xcb-image-cache /
|
|
|
|
COPY --from=xcb-keysyms ${LibrariesPath}/xcb-keysyms-cache /
|
|
|
|
COPY --from=xcb-render-util ${LibrariesPath}/xcb-render-util-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=wayland ${LibrariesPath}/wayland-cache /
|
|
|
|
COPY --from=openssl ${LibrariesPath}/openssl-cache /
|
|
|
|
COPY --from=xkbcommon ${LibrariesPath}/xkbcommon-cache /
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN git clone -b ${QT_TAG} --depth=1 git://code.qt.io/qt/qt5.git qt_${QT}
|
2020-10-29 09:31:58 +00:00
|
|
|
WORKDIR qt_${QT}
|
|
|
|
RUN perl init-repository --module-subset=qtbase,qtwayland,qtimageformats,qtsvg
|
|
|
|
RUN git submodule update qtbase qtwayland qtimageformats qtsvg
|
|
|
|
|
|
|
|
WORKDIR qtbase
|
|
|
|
RUN find ../../patches/qtbase_${QT} -type f -print0 | sort -z | xargs -r0 git apply
|
2021-01-28 00:22:56 +00:00
|
|
|
WORKDIR ../qtwayland
|
|
|
|
RUN find ../../patches/qtwayland_${QT} -type f -print0 | sort -z | xargs -r0 git apply
|
2020-10-29 09:31:58 +00:00
|
|
|
WORKDIR ..
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
# I couldn't make it work with direct ./configure call :(
|
|
|
|
RUN echo './configure -prefix '$'\"''$QT_PREFIX'$'\"'' \
|
2020-10-29 09:31:58 +00:00
|
|
|
-release \
|
|
|
|
-opensource \
|
|
|
|
-confirm-license \
|
2020-11-04 06:57:03 +00:00
|
|
|
-xcb \
|
2020-10-29 09:31:58 +00:00
|
|
|
-qt-libpng \
|
|
|
|
-qt-harfbuzz \
|
|
|
|
-qt-pcre \
|
|
|
|
-no-icu \
|
|
|
|
-no-gtk \
|
2020-12-15 14:31:06 +00:00
|
|
|
-no-feature-xcb-sm \
|
2020-11-04 06:57:03 +00:00
|
|
|
-no-feature-wayland-server \
|
2020-10-29 09:31:58 +00:00
|
|
|
-static \
|
|
|
|
-dbus-runtime \
|
|
|
|
-openssl-linked \
|
2020-11-04 06:57:03 +00:00
|
|
|
-I '$'\"''$OPENSSL_PREFIX/include'$'\"'' \
|
|
|
|
OPENSSL_LIBS='$'\"''$OPENSSL_PREFIX/lib/libssl.a $OPENSSL_PREFIX/lib/libcrypto.a -lz -ldl -lpthread'$'\"'' \
|
2020-10-29 09:31:58 +00:00
|
|
|
-nomake examples \
|
2021-01-12 20:41:15 +00:00
|
|
|
-nomake tests' >> ./run_configure.sh
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cat ./run_configure.sh
|
|
|
|
RUN chmod a+x ./run_configure.sh
|
|
|
|
RUN ./run_configure.sh
|
|
|
|
RUN rm ./run_configure.sh
|
2020-10-29 09:31:58 +00:00
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make INSTALL_ROOT="$LibrariesPath/qt-cache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
2020-10-30 11:01:00 +00:00
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf qt_${QT}
|
|
|
|
|
2021-01-02 01:06:11 +00:00
|
|
|
FROM builder AS kwayland
|
|
|
|
|
|
|
|
COPY --from=extra-cmake-modules ${LibrariesPath}/extra-cmake-modules-cache /
|
|
|
|
COPY --from=libffi ${LibrariesPath}/libffi-cache /
|
|
|
|
COPY --from=mozjpeg ${LibrariesPath}/mozjpeg-cache /
|
|
|
|
COPY --from=xcb ${LibrariesPath}/xcb-cache /
|
|
|
|
COPY --from=xcb-wm ${LibrariesPath}/xcb-wm-cache /
|
|
|
|
COPY --from=xcb-util ${LibrariesPath}/xcb-util-cache /
|
|
|
|
COPY --from=xcb-image ${LibrariesPath}/xcb-image-cache /
|
|
|
|
COPY --from=xcb-keysyms ${LibrariesPath}/xcb-keysyms-cache /
|
|
|
|
COPY --from=xcb-render-util ${LibrariesPath}/xcb-render-util-cache /
|
|
|
|
COPY --from=wayland ${LibrariesPath}/wayland-cache /
|
|
|
|
COPY --from=wayland-protocols ${LibrariesPath}/wayland-protocols-cache /
|
|
|
|
COPY --from=plasma-wayland-protocols ${LibrariesPath}/plasma-wayland-protocols-cache /
|
|
|
|
COPY --from=openssl ${LibrariesPath}/openssl-cache /
|
|
|
|
COPY --from=xkbcommon ${LibrariesPath}/xkbcommon-cache /
|
|
|
|
COPY --from=qt ${LibrariesPath}/qt-cache /
|
|
|
|
|
|
|
|
RUN git clone -b v5.77.0 --depth=1 $GIT/KDE/kwayland.git
|
|
|
|
|
|
|
|
WORKDIR kwayland
|
|
|
|
RUN cmake3 -B build . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF
|
|
|
|
RUN cmake3 --build build -j$(nproc)
|
|
|
|
RUN DESTDIR="$LibrariesPath/kwayland-cache" cmake3 --install build
|
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf kwayland
|
|
|
|
|
2020-10-29 09:31:58 +00:00
|
|
|
FROM patches AS breakpad
|
|
|
|
RUN git clone https://chromium.googlesource.com/breakpad/breakpad.git
|
|
|
|
|
|
|
|
WORKDIR breakpad
|
|
|
|
RUN git checkout bc8fb886
|
|
|
|
RUN git clone https://chromium.googlesource.com/linux-syscall-support.git src/third_party/lss
|
|
|
|
|
|
|
|
WORKDIR src/third_party/lss
|
|
|
|
RUN git checkout a91633d1
|
|
|
|
WORKDIR ${LibrariesPath}
|
|
|
|
|
|
|
|
ENV BreakpadCache ${LibrariesPath}/breakpad-cache
|
|
|
|
RUN git clone https://chromium.googlesource.com/external/gyp.git
|
|
|
|
|
|
|
|
WORKDIR gyp
|
|
|
|
RUN git checkout 9f2a7bb1
|
|
|
|
RUN git apply ../patches/gyp.diff
|
|
|
|
|
|
|
|
WORKDIR ../breakpad
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN ./configure
|
|
|
|
RUN make -j$(nproc)
|
|
|
|
RUN make DESTDIR="$BreakpadCache" install
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR src
|
|
|
|
RUN rm -rf testing
|
2020-12-30 20:30:38 +00:00
|
|
|
RUN git clone --depth=1 $GIT/google/googletest.git testing
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR tools
|
|
|
|
RUN sed -i 's/minidump_upload.m/minidump_upload.cc/' linux/tools_linux.gypi
|
|
|
|
RUN ../../../gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out tools.gyp --format=cmake
|
|
|
|
|
|
|
|
WORKDIR ../../out/Default
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 .
|
|
|
|
RUN cmake3 --build . --target dump_syms -j$(nproc)
|
2020-10-29 09:31:58 +00:00
|
|
|
RUN mv dump_syms $BreakpadCache
|
|
|
|
|
|
|
|
WORKDIR ..
|
|
|
|
RUN rm -rf gyp
|
|
|
|
|
|
|
|
FROM builder AS webrtc
|
|
|
|
|
2020-10-30 11:01:00 +00:00
|
|
|
COPY --from=mozjpeg ${LibrariesPath}/mozjpeg-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=opus ${LibrariesPath}/opus-cache /
|
|
|
|
COPY --from=ffmpeg ${LibrariesPath}/ffmpeg-cache /
|
|
|
|
COPY --from=openssl ${LibrariesPath}/openssl-cache /
|
|
|
|
|
2020-12-30 20:30:38 +00:00
|
|
|
ADD https://api.github.com/repos/desktop-app/tg_owt/git/refs/heads/master tg_owt-version.json
|
|
|
|
RUN git clone --depth=1 --recursive $GIT/desktop-app/tg_owt.git
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
WORKDIR tg_owt
|
|
|
|
|
2020-11-04 06:57:03 +00:00
|
|
|
RUN cmake3 -B out/Release . \
|
2020-10-29 09:31:58 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DTG_OWT_SPECIAL_TARGET=linux \
|
2020-10-30 11:01:00 +00:00
|
|
|
-DTG_OWT_LIBJPEG_INCLUDE_PATH=/usr/local/include \
|
2020-10-29 09:31:58 +00:00
|
|
|
-DTG_OWT_OPENSSL_INCLUDE_PATH=$OPENSSL_PREFIX/include \
|
|
|
|
-DTG_OWT_OPUS_INCLUDE_PATH=/usr/local/include/opus \
|
|
|
|
-DTG_OWT_FFMPEG_INCLUDE_PATH=/usr/local/include
|
|
|
|
|
2021-02-14 14:13:19 +00:00
|
|
|
RUN cmake3 --build out/Release -- -j$(nproc)
|
2020-11-04 06:57:03 +00:00
|
|
|
|
|
|
|
RUN cmake3 -B out/Debug . \
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
|
|
-DTG_OWT_SPECIAL_TARGET=linux \
|
|
|
|
-DTG_OWT_LIBJPEG_INCLUDE_PATH=/usr/local/include \
|
|
|
|
-DTG_OWT_OPENSSL_INCLUDE_PATH=$OPENSSL_PREFIX/include \
|
|
|
|
-DTG_OWT_OPUS_INCLUDE_PATH=/usr/local/include/opus \
|
|
|
|
-DTG_OWT_FFMPEG_INCLUDE_PATH=/usr/local/include
|
|
|
|
|
2021-02-14 14:13:19 +00:00
|
|
|
RUN cmake3 --build out/Debug -- -j$(nproc)
|
2020-10-29 09:31:58 +00:00
|
|
|
|
|
|
|
FROM builder
|
|
|
|
|
|
|
|
COPY --from=libffi ${LibrariesPath}/libffi-cache /
|
|
|
|
COPY --from=xz ${LibrariesPath}/xz-cache /
|
2020-10-30 11:01:00 +00:00
|
|
|
COPY --from=mozjpeg ${LibrariesPath}/mozjpeg-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=opus ${LibrariesPath}/opus-cache /
|
|
|
|
COPY --from=xcb ${LibrariesPath}/xcb-cache /
|
2020-11-04 06:57:03 +00:00
|
|
|
COPY --from=xcb-wm ${LibrariesPath}/xcb-wm-cache /
|
|
|
|
COPY --from=xcb-util ${LibrariesPath}/xcb-util-cache /
|
|
|
|
COPY --from=xcb-image ${LibrariesPath}/xcb-image-cache /
|
|
|
|
COPY --from=xcb-keysyms ${LibrariesPath}/xcb-keysyms-cache /
|
|
|
|
COPY --from=xcb-render-util ${LibrariesPath}/xcb-render-util-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=libXext ${LibrariesPath}/libXext-cache /
|
|
|
|
COPY --from=libXfixes ${LibrariesPath}/libXfixes-cache /
|
2020-12-14 12:12:04 +00:00
|
|
|
COPY --from=libXv ${LibrariesPath}/libXv-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=wayland ${LibrariesPath}/wayland-cache /
|
|
|
|
COPY --from=libva ${LibrariesPath}/libva-cache /
|
|
|
|
COPY --from=libvdpau ${LibrariesPath}/libvdpau-cache /
|
|
|
|
COPY --from=ffmpeg ${LibrariesPath}/ffmpeg ffmpeg
|
|
|
|
COPY --from=ffmpeg ${LibrariesPath}/ffmpeg-cache /
|
|
|
|
COPY --from=openal ${LibrariesPath}/openal-cache /
|
|
|
|
COPY --from=openssl ${LibrariesPath}/openssl-cache /
|
|
|
|
COPY --from=xkbcommon ${LibrariesPath}/xkbcommon-cache /
|
|
|
|
COPY --from=qt ${LibrariesPath}/qt-cache /
|
2021-01-02 01:06:11 +00:00
|
|
|
COPY --from=kwayland ${LibrariesPath}/kwayland-cache /
|
2020-10-29 09:31:58 +00:00
|
|
|
COPY --from=breakpad ${LibrariesPath}/breakpad breakpad
|
|
|
|
COPY --from=breakpad ${LibrariesPath}/breakpad-cache /
|
|
|
|
COPY --from=webrtc ${LibrariesPath}/tg_owt tg_owt
|
|
|
|
|
|
|
|
WORKDIR ../tdesktop
|
|
|
|
VOLUME [ "/usr/src/tdesktop" ]
|
|
|
|
CMD [ "/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh" ]
|