Skip to content

Commit 9ea5c2a

Browse files
committed
Dependency version bumps
- Update GLib to 2.69.0. - Update librsvg to 2.51.4. - Update Pango to 1.48.7. - Update LLVM toolchain to 12.0.1. - Update highway to the latest git revision. - Update libjxl to the latest git revision. - Fix LCMS thread-safety patch for i686 (#31). MXE Updates: - Update HarfBuzz to 2.8.2.
1 parent 30577cd commit 9ea5c2a

27 files changed

+255
-145
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
2424
| [freetype] | 2.10.4 | [freetype Licence] (BSD-like) |
2525
| [fribidi] | 1.0.10 | LGPLv3 |
2626
| [gdk-pixbuf] | 2.42.6 | LGPLv3 |
27-
| [glib] | 2.68.3 | LGPLv3 |
28-
| [harfbuzz] | 2.8.1 | MIT Licence |
27+
| [glib] | 2.69.0 | LGPLv3 |
28+
| [harfbuzz] | 2.8.2 | MIT Licence |
2929
| [lcms] | 2.12 | MIT Licence |
3030
| [libexif] | 0.6.22 | LGPLv3 |
3131
| [libffi] | 3.4.2 | MIT Licence |
3232
| [libgsf] | 1.14.47 | LGPLv3 |
3333
| [libheif] | 1.12.0 | LGPLv3 |
3434
| [libimagequant] | 2.4.1¹ | BSD 2-Clause |
3535
| [libpng] | 1.6.37 | [libpng License version 2] |
36-
| [librsvg] | 2.51.3 | LGPLv3 |
36+
| [librsvg] | 2.51.4 | LGPLv3 |
3737
| [libspng] | 0.6.3 | BSD 2-Clause |
3838
| [libtiff] | 4.3.0 | [libtiff License] (BSD-like) |
3939
| [libvips] | 8.11.2 | LGPLv3 |
4040
| [libwebp] | 1.2.0 | New BSD License |
4141
| [libxml2] | 2.9.12 | MIT Licence |
4242
| [mozjpeg] | 4.0.3 | [zlib License, IJG License, BSD-3-Clause] |
4343
| [orc] | 0.4.32 | [orc License] (BSD-like) |
44-
| [pango] | 1.48.6 | LGPLv3 |
44+
| [pango] | 1.48.7 | LGPLv3 |
4545
| [pixman] | 0.40.0 | MIT Licence |
4646
| [zlib-ng] | 2.0.5 | [zlib-ng Licence] |
4747

@@ -92,10 +92,10 @@ Same as libvips-web + these extra dependencies:
9292
| [brotli] | 1.0.9 | MIT Licence |
9393
| [cfitsio] | 3.49 | BSD-like |
9494
| [fftw] | 3.3.9 | GPLv2 |
95-
| [highway] | [91017e4] | Apache-2.0 License |
95+
| [highway] | [c7d83de] | Apache-2.0 License |
9696
| [imagemagick] | 6.9.12-17 | [ImageMagick License] (Apache-2.0-like) |
9797
| [imath] | 3.0.5 | BSD 3-Clause |
98-
| [libjxl] | [c8b0bf3] | BSD 3-Clause |
98+
| [libjxl] | [2db3204] | BSD 3-Clause |
9999
| [matio] | 1.5.21 | BSD 2-Clause |
100100
| [nifticlib] | 2.0.0 | Public domain |
101101
| [openexr] | 3.0.5 | BSD 3-Clause |
@@ -104,8 +104,8 @@ Same as libvips-web + these extra dependencies:
104104
| [poppler] | 21.07.0 | GPLv2 |
105105
| [sqlite] | 3.36.0 | Public domain |
106106

107-
[91017e4]: https://github.com/google/highway/commit/91017e4f3bb7e3a178e3f2b1f393adea60a6df0d
108-
[c8b0bf3]: https://github.com/libjxl/libjxl/commit/c8b0bf3789351c9ccd8c48441354c522fd9ab188
107+
[c7d83de]: https://github.com/google/highway/commit/c7d83dee21a55607a3032a751de57eb72eaa4987
108+
[2db3204]: https://github.com/libjxl/libjxl/commit/2db3204b23b96a169ae851faffdef2ae1c41b018
109109

110110
[brotli]: https://github.com/google/brotli
111111
[cfitsio]: https://heasarc.gsfc.nasa.gov/fitsio/

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151
# Always checkout a particular revision which will successfully build.
5252
# This ensures that it will not suddenly break a build.
5353
# Note: Must be regularly updated.
54-
revision="b48b3cc7085548e896fe967dc6371ff9951390a4"
54+
revision="99d62e454ce805b03aaddcdb6cd209cada503543"
5555
initialize=false
5656

5757
if [ -f "$mxe_dir/Makefile" ]; then

build/gendeflibs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ fi
4242

4343
deps="${1:-web}"
4444
target="${2:-x86_64-w64-mingw32.shared.win32}"
45-
dlltool=$mxe_prefix/bin/$target.$deps-dlltool
46-
gendeftool=$mxe_prefix/$target.$deps/bin/gendef
45+
dlltool=$target.$deps-dlltool
4746

4847
cd $repackage_dir
4948

@@ -62,7 +61,7 @@ for dllfile in bin/*.dll; do
6261

6362
if [ ! -f lib/$defname ]; then
6463
echo "Generating lib/$defname file for $base"
65-
$gendeftool - $dllfile > lib/$defname 2> /dev/null
64+
gendef - $dllfile > lib/$defname 2> /dev/null
6665
fi
6766

6867
if [ ! -f lib/$libname ]; then

build/highway.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ PKG := highway
22
$(PKG)_WEBSITE := https://github.com/google/highway
33
$(PKG)_DESCR := Performance-portable, length-agnostic SIMD with runtime dispatch
44
$(PKG)_IGNORE :=
5-
# https://github.com/google/highway/tarball/91017e4f3bb7e3a178e3f2b1f393adea60a6df0d
6-
$(PKG)_VERSION := 91017e4
7-
$(PKG)_CHECKSUM := c07f25290c3a6c660b5ebf9b2184c4353a643828a1b9f1d7390d40bc733eb274
5+
# https://github.com/google/highway/tarball/c7d83dee21a55607a3032a751de57eb72eaa4987
6+
$(PKG)_VERSION := c7d83de
7+
$(PKG)_CHECKSUM := 98b95de53e9d032ffb03075dd87ae1babfbdac16f3002e794fdcc1b3dc33a6d4
88
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/highway-[0-9]*.patch)))
99
$(PKG)_GH_CONF := google/highway/branches/master
1010
$(PKG)_DEPS := cc

build/libimagequant.mk

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@ $(PKG)_WEBSITE := https://github.com/lovell/libimagequant
33
$(PKG)_DESCR := libimagequant v2.4.1 fork (BSD 2-Clause)
44
$(PKG)_IGNORE :=
55
$(PKG)_VERSION := 2.4.1
6-
$(PKG)_CHECKSUM := d78a28455598a1b73a4d480c9f1db3048f526971496f4d37a484b71b00624fef
6+
$(PKG)_CHECKSUM := 76dca8e48366d7e16284071528d60c9275c85945e45e887f26ec0028668a144f
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
88
$(PKG)_GH_CONF := lovell/libimagequant/tags,v
99
$(PKG)_DEPS := cc
1010

1111
define $(PKG)_BUILD
12-
'$(TARGET)-meson' \
13-
--buildtype=release \
14-
$(if $(STRIP_LIB), --strip) \
15-
--libdir='lib' \
16-
--includedir='include' \
17-
'$(SOURCE_DIR)' \
18-
'$(BUILD_DIR)'
12+
'$(TARGET)-meson' '$(SOURCE_DIR)' '$(BUILD_DIR)'
1913

2014
ninja -C '$(BUILD_DIR)' install
2115
endef

build/libjxl.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ PKG := libjxl
22
$(PKG)_WEBSITE := https://github.com/libjxl/libjxl
33
$(PKG)_DESCR := JPEG XL image format reference implementation
44
$(PKG)_IGNORE :=
5-
# https://github.com/libjxl/libjxl/tarball/c8b0bf3789351c9ccd8c48441354c522fd9ab188
6-
$(PKG)_VERSION := c8b0bf3
7-
$(PKG)_CHECKSUM := 7f9ee9d54a3a2bbf753680aac67ce49a316d062ffb072958232cfdbf0ff78fdc
5+
# https://github.com/libjxl/libjxl/tarball/2db3204b23b96a169ae851faffdef2ae1c41b018
6+
$(PKG)_VERSION := 2db3204
7+
$(PKG)_CHECKSUM := 4159e8c558ec3afd974021bd2bb57e2a44539358d44f23ebaac317d105afc52f
88
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/libjxl-[0-9]*.patch)))
99
$(PKG)_GH_CONF := libjxl/libjxl/branches/main
1010
$(PKG)_DEPS := cc brotli highway lcms libjpeg-turbo libpng

build/libspng.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ $(PKG)_DEPS := cc zlib
1010

1111
define $(PKG)_BUILD
1212
'$(TARGET)-meson' \
13-
--buildtype=release \
14-
$(if $(STRIP_LIB), --strip) \
15-
--libdir='lib' \
16-
--includedir='include' \
1713
-Dstatic_zlib=$(if $(BUILD_STATIC),true,false) \
1814
'$(SOURCE_DIR)' \
1915
'$(BUILD_DIR)'

build/orc.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ endef
1818

1919
define $(PKG)_BUILD
2020
'$(TARGET)-meson' \
21-
--buildtype=release \
22-
$(if $(STRIP_LIB), --strip) \
23-
--libdir='lib' \
24-
--includedir='include' \
2521
-Dbenchmarks=disabled \
2622
-Dexamples=disabled \
2723
-Dgtk_doc=disabled \

build/overrides.mk

Lines changed: 28 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ imagemagick_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE
4646
imagemagick_GH_CONF := ImageMagick/ImageMagick6/tags
4747

4848
# upstream version is 2.40.5
49-
librsvg_VERSION := 2.51.3
50-
librsvg_CHECKSUM := 4f83d40484bd69d1944d203090b50b812ec6aa553195e4f6d67d03d135897c7f
49+
librsvg_VERSION := 2.51.4
50+
librsvg_CHECKSUM := 0b87d61de9b973aac1fdb9583368b9a893e67f5f7cb75c3e8f7de142557aca00
5151
librsvg_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/librsvg-[0-9]*.patch)))
5252
librsvg_SUBDIR := librsvg-$(librsvg_VERSION)
5353
librsvg_FILE := librsvg-$(librsvg_VERSION).tar.xz
5454
librsvg_URL := https://download.gnome.org/sources/librsvg/$(call SHORT_PKG_VERSION,librsvg)/$(librsvg_FILE)
5555

5656
# upstream version is 1.37.4
57-
pango_VERSION := 1.48.6
58-
pango_CHECKSUM := 3027cd6b5e34bff49c38c769ca651a5f9ef6e0d54cadaa1263d872044bedc7dd
57+
pango_VERSION := 1.48.7
58+
pango_CHECKSUM := 28a82f6a6cab60aa3b75a90f04197ead2d311fa8fe8b7bfdf8666e2781d506dc
5959
pango_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/pango-[0-9]*.patch)))
6060
pango_SUBDIR := pango-$(pango_VERSION)
6161
pango_FILE := pango-$(pango_VERSION).tar.xz
@@ -72,8 +72,8 @@ fribidi_FILE := fribidi-$(fribidi_VERSION).tar.xz
7272
fribidi_URL := https://github.com/fribidi/fribidi/releases/download/v$(fribidi_VERSION)/$(fribidi_FILE)
7373

7474
# upstream version is 2.50.2
75-
glib_VERSION := 2.68.3
76-
glib_CHECKSUM := e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138
75+
glib_VERSION := 2.69.0
76+
glib_CHECKSUM := 1cdb3fd8610f3c57b6622e5cd68e0a3210561d80b0eceb971eb51fb8b63dbfae
7777
glib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/glib-[0-9]*.patch)))
7878
glib_SUBDIR := glib-$(glib_VERSION)
7979
glib_FILE := glib-$(glib_VERSION).tar.xz
@@ -279,12 +279,6 @@ endef
279279
# build with Meson.
280280
define harfbuzz_BUILD
281281
'$(TARGET)-meson' \
282-
--buildtype=release \
283-
$(if $(STRIP_LIB), --strip) \
284-
--libdir='lib' \
285-
--bindir='bin' \
286-
--libexecdir='bin' \
287-
--includedir='include' \
288282
-Dicu=disabled \
289283
-Dtests=disabled \
290284
-Dintrospection=disabled \
@@ -296,6 +290,24 @@ define harfbuzz_BUILD
296290
ninja -C '$(BUILD_DIR)' install
297291
endef
298292

293+
# TODO(kleisauke): build with the Meson build system once a new version is available
294+
#define freetype_BUILD_COMMON
295+
# '$(TARGET)-meson' \
296+
# -Dharfbuzz=enabled \
297+
# -Dpng=enabled \
298+
# -Dzlib=enabled \
299+
# -Dbrotli=disabled \
300+
# -Dbzip2=disabled \
301+
# '$(SOURCE_DIR)' \
302+
# '$(BUILD_DIR)'
303+
#
304+
# ninja -C '$(BUILD_DIR)' install
305+
#endef
306+
307+
#define freetype-bootstrap_BUILD
308+
# $(subst harfbuzz=enabled,harfbuzz=disabled,$(freetype_BUILD_COMMON))
309+
#endef
310+
299311
define freetype_BUILD
300312
# alias libharfbuzz and libfreetype to satisfy circular dependence
301313
# libfreetype should already have been created by freetype-bootstrap.mk
@@ -320,7 +332,6 @@ define libgsf_BUILD
320332
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
321333
$(MXE_CONFIGURE_OPTS) \
322334
--without-gdk-pixbuf \
323-
--without-python \
324335
--without-bz2 \
325336
--with-zlib \
326337
--disable-nls \
@@ -334,12 +345,6 @@ endef
334345
# build with the Meson build system
335346
define gdk-pixbuf_BUILD
336347
'$(TARGET)-meson' \
337-
--buildtype=release \
338-
$(if $(STRIP_LIB), --strip) \
339-
--libdir='lib' \
340-
--bindir='bin' \
341-
--libexecdir='bin' \
342-
--includedir='include' \
343348
-Dbuiltin_loaders='jpeg,png,tiff' \
344349
-Dintrospection=disabled \
345350
$(if $(IS_INTL_DUMMY), -Dc_link_args='-lintl') \
@@ -355,12 +360,6 @@ define pixman_BUILD
355360
$(SED) -i "/subdir('test')/{N;d;}" '$(SOURCE_DIR)/meson.build'
356361

357362
'$(TARGET)-meson' \
358-
--buildtype=release \
359-
$(if $(STRIP_LIB), --strip) \
360-
--libdir='lib' \
361-
--bindir='bin' \
362-
--libexecdir='bin' \
363-
--includedir='include' \
364363
-Dopenmp=disabled \
365364
-Dgtk=disabled \
366365
'$(SOURCE_DIR)' \
@@ -372,12 +371,6 @@ endef
372371
# build fribidi with the Meson build system
373372
define fribidi_BUILD
374373
'$(TARGET)-meson' \
375-
--buildtype=release \
376-
$(if $(STRIP_LIB), --strip) \
377-
--libdir='lib' \
378-
--bindir='bin' \
379-
--libexecdir='bin' \
380-
--includedir='include' \
381374
-Ddocs=false \
382375
'$(SOURCE_DIR)' \
383376
'$(BUILD_DIR)'
@@ -472,11 +465,6 @@ define pango_BUILD
472465
$(SED) -i "/subdir('utils')/{N;N;N;d;}" '$(SOURCE_DIR)/meson.build'
473466

474467
'$(TARGET)-meson' \
475-
--buildtype=release \
476-
$(if $(STRIP_LIB), --strip) \
477-
--libdir='lib' \
478-
--libexecdir='bin' \
479-
--includedir='include' \
480468
-Dintrospection=disabled \
481469
-Dfontconfig=enabled \
482470
'$(SOURCE_DIR)' \
@@ -504,9 +492,6 @@ define librsvg_BUILD
504492
$(MXE_CONFIGURE_OPTS) \
505493
--disable-pixbuf-loader \
506494
--disable-introspection \
507-
--disable-nls \
508-
--without-libiconv-prefix \
509-
--without-libintl-prefix \
510495
RUST_TARGET='$(ARCH_NAME)-pc-windows-gnu' \
511496
CARGO='$(TARGET)-cargo' \
512497
RUSTC='$(TARGET)-rustc'
@@ -582,7 +567,6 @@ define libwebp_BUILD
582567
--disable-jpeg \
583568
--disable-tiff \
584569
--disable-gif \
585-
--disable-nls \
586570
--enable-libwebpmux \
587571
--enable-libwebpdemux
588572
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_PROGRAMS)
@@ -692,19 +676,13 @@ define glib_BUILD
692676
$(if $(BUILD_STATIC), \
693677
(cd '$(SOURCE_DIR)' && $(PATCH) -p1 -u) < $(realpath $(dir $(lastword $(glib_PATCHES))))/glib-static.patch)
694678

695-
# cross build
696-
# build as shared library, since we need `libgobject-2.0-0.dll`
679+
# Build as shared library, since we need `libgobject-2.0-0.dll`
697680
# and `libglib-2.0-0.dll` for the language bindings.
698-
'$(TARGET)-meson' \
681+
# Enable networking to allow libpcre to be downloaded from WrapDB
682+
MXE_ENABLE_NETWORK=1 '$(TARGET)-meson' \
699683
--default-library=shared \
700-
--buildtype=release \
701-
$(if $(STRIP_LIB), --strip) \
702-
--libdir='lib' \
703-
--bindir='bin' \
704-
--libexecdir='bin' \
705-
--includedir='include' \
684+
--force-fallback-for=libpcre \
706685
-Dforce_posix_threads=false \
707-
-Dinternal_pcre=true \
708686
-Dnls=disabled \
709687
'$(SOURCE_DIR)' \
710688
'$(BUILD_DIR)'

build/package-vipsdev.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ type="${target#*.}"
4444
type="${type%%.*}"
4545
build_os=`$mxe_dir/ext/config.guess`
4646

47+
export PATH="$mxe_prefix/$build_os/bin:$mxe_prefix/bin:$mxe_prefix/$target.$deps/bin:$PATH"
48+
4749
if [ "$arch" = "i686" ]; then
4850
arch="w32"
4951
elif [ "$arch" = "x86_64" ]; then
@@ -88,8 +90,7 @@ if [ "$ZLIB_NG" = "false" ]; then
8890
fi
8991

9092
# Utilities
91-
peldd=$mxe_prefix/$build_os/bin/peldd
92-
strip=$mxe_prefix/bin/$target.$deps-strip
93+
strip=$target.$deps-strip
9394

9495
# Directories
9596
install_dir=$mxe_prefix/$target.$deps
@@ -106,7 +107,7 @@ whitelist=(api-ms-win-crt-{conio,convert,environment,filesystem,heap,locale,math
106107
whitelist+=(userenv.dll)
107108

108109
# Copy libvips and dependencies with pe-util
109-
binaries=$($peldd $bin_dir/$target_dll --clear-path --path $bin_dir ${whitelist[@]/#/--wlist } --all)
110+
binaries=$(peldd $bin_dir/$target_dll --clear-path --path $bin_dir ${whitelist[@]/#/--wlist } --all)
110111
for dll in $binaries; do
111112
cp $dll $repackage_dir/bin
112113
done
@@ -115,7 +116,7 @@ done
115116
# which are not yet present in the bin directory.
116117
if [ -d "$module_dir" ]; then
117118
for module in $module_dir/*.dll; do
118-
binaries=$($peldd $module --clear-path --path $bin_dir ${whitelist[@]/#/--wlist } --transitive)
119+
binaries=$(peldd $module --clear-path --path $bin_dir ${whitelist[@]/#/--wlist } --transitive)
119120
for dll in $binaries; do
120121
cp -n $dll $repackage_dir/bin
121122
done

0 commit comments

Comments
 (0)