From: Rafael dos Santos Silva Date: Wed, 27 Jan 2021 20:31:10 +0000 (-0300) Subject: Make script work on ubuntu and debian X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ebe8954d326a4d6e3ddf0abe400fc142c812f431;p=discourse_docker.git Make script work on ubuntu and debian --- diff --git a/image/base/install-imagemagick b/image/base/install-imagemagick index de402d5..0fffff8 100755 --- a/image/base/install-imagemagick +++ b/image/base/install-imagemagick @@ -7,11 +7,14 @@ IMAGE_MAGICK_HASH="0daabb64602164940fbf95cbd6f16709903eef5d3eee7bd329da878f17605 # version check: https://github.com/strukturag/libheif/releases LIBHEIF_VERSION="1.10.0" -LIBHEIF_HASH="ad5af1276f341277dc537b0d19a4193e0833c247b2aacb936e0c5494141533ae" +LIBHEIF_HASH="317a44bf157ba297638ab5a258040ef6ec4895d620cd58f52195f3f89c9eea28" # version check: https://aomedia.googlesource.com/aom LIB_AOM_VERSION="2.0.1" +# We use debian, but GitHub CI is stuck on Ubuntu Bionic, so this must be compatible with both +LIBJPEGTURBO=$(cat /etc/issue | grep -qi Debian && echo 'libjpeg62-turbo libjpeg62-turbo-dev' || echo 'libjpeg-turbo8 libjpeg-turbo8-dev') + PREFIX=/usr/local WDIR=/tmp/imagemagick @@ -19,8 +22,8 @@ WDIR=/tmp/imagemagick apt -y -q remove imagemagick apt -y -q install git make gcc pkg-config autoconf curl g++ \ yasm cmake \ - libde265-0 libde265-dev libjpeg62-turbo libjpeg62-turbo-dev x265 libx265-dev libtool \ - libpng16-16 libpng-dev libjpeg62-turbo libjpeg62-turbo-dev libwebp6 libwebp-dev libgomp1 libwebpmux3 libwebpdemux2 ghostscript libxml2-dev libxml2-utils + libde265-0 libde265-dev ${LIBJPEGTURBO} x265 libx265-dev libtool \ + libpng16-16 libpng-dev ${LIBJPEGTURBO} libwebp6 libwebp-dev libgomp1 libwebpmux3 libwebpdemux2 ghostscript libxml2-dev libxml2-utils mkdir -p $WDIR cd $WDIR