From 1008774aef0bc1a98e4429ea304f40f1aae453e3 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 13 Jan 2021 05:56:50 +0400 Subject: [PATCH] Update vdpau to latest version --- Telegram/build/docker/centos_env/Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Telegram/build/docker/centos_env/Dockerfile b/Telegram/build/docker/centos_env/Dockerfile index a46c54741..b01cd9198 100644 --- a/Telegram/build/docker/centos_env/Dockerfile +++ b/Telegram/build/docker/centos_env/Dockerfile @@ -264,12 +264,19 @@ WORKDIR .. RUN rm -rf libva FROM builder AS libvdpau -RUN git clone -b libvdpau-1.2 --depth=1 https://gitlab.freedesktop.org/vdpau/libvdpau.git +RUN git clone -b 1.4 --depth=1 https://gitlab.freedesktop.org/vdpau/libvdpau.git WORKDIR libvdpau -RUN ./autogen.sh --enable-static -RUN make -j$(nproc) -RUN make DESTDIR="$LibrariesPath/libvdpau-cache" install +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 WORKDIR .. RUN rm -rf libvdpau