Skip to content

Commit 0e7811a

Browse files
committed
Install zstd for libtiff on Linux
1 parent d560320 commit 0e7811a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ LIBPNG_VERSION=1.6.49
9999
JPEGTURBO_VERSION=3.1.1
100100
OPENJPEG_VERSION=2.5.3
101101
XZ_VERSION=5.8.1
102+
ZSTD_VERSION=1.5.7
102103
TIFF_VERSION=4.7.0
103104
LCMS2_VERSION=2.17
104105
ZLIB_VERSION=1.3.1
@@ -234,6 +235,14 @@ function build_libavif {
234235
touch libavif-stamp
235236
}
236237

238+
function build_zstd {
239+
if [ -e zstd-stamp ]; then return; fi
240+
local out_dir=$(fetch_unpack https://github.com/facebook/zstd/releases/download/v$ZSTD_VERSION/zstd-$ZSTD_VERSION.tar.gz)
241+
(cd $out_dir \
242+
&& make install)
243+
touch zstd-stamp
244+
}
245+
237246
function build {
238247
build_xz
239248
if [ -z "$IS_ALPINE" ] && [ -z "$SANITIZER" ] && [ -z "$IS_MACOS" ]; then
@@ -265,6 +274,7 @@ function build {
265274
--with-jpeg-include-dir=$BUILD_PREFIX/include --with-jpeg-lib-dir=$BUILD_PREFIX/lib \
266275
--disable-webp --disable-libdeflate --disable-zstd
267276
else
277+
build_zstd
268278
build_tiff
269279
fi
270280

0 commit comments

Comments
 (0)