Support newest libjpeg-turbo on OpenSuse

This commit is contained in:
Dmitry Maksyoma 2023-01-24 21:40:09 +13:00
parent c34724f421
commit 40401ef380
2 changed files with 12 additions and 1 deletions

View File

@ -21,7 +21,6 @@ RUN zypper install -ny \
libbz2-devel \
libGLw-devel \
libgnutls-devel \
libjpeg8-devel \
libopenssl-devel \
libpng16-devel \
libtiff-devel \
@ -48,6 +47,10 @@ RUN cd /tmp/libwebp-1.0.2 && \
./configure --enable-static --disable-shared && \
make && make install
ENV SCRIPTS_DIR=/tmp/scripts
COPY builder/scripts $SCRIPTS_DIR
RUN $SCRIPTS_DIR/build-libjpeg-turbo
RUN useradd -u 1000 docker && \
groupadd -g 1000 docker && \
usermod -a -G docker docker

View File

@ -21,6 +21,10 @@ install_build_dependencies() {
dnf install -y cmake gcc
return
fi
if [ "$DISTRO" = opensuse ]; then
zypper install -y cmake gcc
return
fi
apt-get update
apt-get install -y cmake gcc
@ -35,6 +39,10 @@ ensure_libjpeg_is_fast() {
dnf install -y nasm
return
fi
if [ "$DISTRO" = opensuse ]; then
zypper install -y nasm
return
fi
apt-get update
apt-get install -y nasm