@@ -93,16 +93,20 @@ ARCHIVE_SDIR=pillow-depends-main
9393# Package versions for fresh source builds. Version numbers with "Patched"
9494# annotations have a source code patch that is required for some platforms. If
9595# you change those versions, ensure the patch is also updated.
96- FREETYPE_VERSION=2.13.3
97- HARFBUZZ_VERSION=11.3.3
96+ if [[ -n " $IOS_SDK " ]]; then
97+ FREETYPE_VERSION=2.13.3
98+ else
99+ FREETYPE_VERSION=2.14.1
100+ fi
101+ HARFBUZZ_VERSION=12.1.0
98102LIBPNG_VERSION=1.6.50
99- JPEGTURBO_VERSION=3.1.1
100- OPENJPEG_VERSION=2.5.3
103+ JPEGTURBO_VERSION=3.1.2
104+ OPENJPEG_VERSION=2.5.4
101105XZ_VERSION=5.8.1
102- TIFF_VERSION=4.7.0
106+ ZSTD_VERSION=1.5.7
107+ TIFF_VERSION=4.7.1
103108LCMS2_VERSION=2.17
104- ZLIB_VERSION=1.3.1
105- ZLIB_NG_VERSION=2.2.4
109+ ZLIB_NG_VERSION=2.2.5
106110LIBWEBP_VERSION=1.6.0
107111BZIP2_VERSION=1.0.8
108112LIBXCB_VERSION=1.17.0
@@ -254,13 +258,21 @@ function build_libavif {
254258 touch libavif-stamp
255259}
256260
261+ function build_zstd {
262+ if [ -e zstd-stamp ]; then return ; fi
263+ local out_dir=$( fetch_unpack https://github.com/facebook/zstd/releases/download/v$ZSTD_VERSION /zstd-$ZSTD_VERSION .tar.gz)
264+ (cd $out_dir \
265+ && make -j4 install)
266+ touch zstd-stamp
267+ }
268+
257269function build {
258270 build_xz
259271 if [ -z " $IS_ALPINE " ] && [ -z " $SANITIZER " ] && [ -z " $IS_MACOS " ]; then
260272 yum remove -y zlib-devel
261273 fi
262- if [[ -n " $IS_MACOS " ]] && [[ " $MACOSX_DEPLOYMENT_TARGET " == " 10.10 " || " $MACOSX_DEPLOYMENT_TARGET " == " 10.13 " ]] ; then
263- build_new_zlib
274+ if [[ -n " $IS_MACOS " ]]; then
275+ CFLAGS= " $CFLAGS -headerpad_max_install_names " build_zlib_ng
264276 else
265277 build_zlib_ng
266278 fi
@@ -285,6 +297,7 @@ function build {
285297 --with-jpeg-include-dir=$BUILD_PREFIX /include --with-jpeg-lib-dir=$BUILD_PREFIX /lib \
286298 --disable-webp --disable-libdeflate --disable-zstd
287299 else
300+ build_zstd
288301 build_tiff
289302 fi
290303
@@ -309,6 +322,10 @@ function build {
309322
310323 if [[ -n " $IS_MACOS " ]]; then
311324 # Custom freetype build
325+ if [[ -z " $IOS_SDK " ]]; then
326+ build_simple sed 4.9 https://mirrors.middlendian.com/gnu/sed
327+ fi
328+
312329 build_simple freetype $FREETYPE_VERSION https://download.savannah.gnu.org/releases/freetype tar.gz --with-harfbuzz=no
313330 else
314331 build_freetype
0 commit comments