Skip to content

Commit 32a2d0e

Browse files
committed
Dependency version bumps
- Update aom to 3.12.0. - Update cgif to 0.5.0. - Update libffi to 3.4.7. - Update zlib-ng 2.2.4. - Update Poppler to 25.02.0. MXE Updates: - Update LCMS to 2.17. - Update SQLite to 3.49.0.
1 parent 995fa5a commit 32a2d0e

File tree

15 files changed

+263
-35
lines changed

15 files changed

+263
-35
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
1717

1818
| Dependency | Version | Used under the terms of |
1919
|-----------------|-----------|--------------------------------------------------------------|
20-
| [aom] | 3.11.0 | BSD 2-Clause + [Alliance for Open Media Patent License 1.0] |
20+
| [aom] | 3.12.0 | BSD 2-Clause + [Alliance for Open Media Patent License 1.0] |
2121
| [cairo] | 1.18.2 | Mozilla Public License 2.0 |
22-
| [cgif] | 0.4.1 | MIT Licence |
22+
| [cgif] | 0.5.0 | MIT Licence |
2323
| [expat] | 2.6.4 | MIT Licence |
2424
| [fontconfig] | 2.16.0 | [fontconfig Licence] (BSD-like) |
2525
| [freetype] | 2.13.3 | [freetype Licence] (BSD-like) |
2626
| [fribidi] | 1.0.16 | LGPLv3 |
2727
| [glib] | 2.83.3 | LGPLv3 |
2828
| [harfbuzz] | 10.2.0 | MIT Licence |
2929
| [highway] | 1.2.0 | Apache-2.0 License, BSD 3-Clause |
30-
| [lcms] | 2.16 | MIT Licence |
30+
| [lcms] | 2.17 | MIT Licence |
3131
| [libarchive] | 3.7.7 | BSD 2-Clause |
3232
| [libexif] | 0.6.25 | LGPLv3 |
33-
| [libffi] | 3.4.6 | MIT Licence |
33+
| [libffi] | 3.4.7 | MIT Licence |
3434
| [libheif] | 1.19.5 | LGPLv3 |
3535
| [libimagequant] | 2.4.1¹ | BSD 2-Clause |
3636
| [libpng] | 1.6.46 | [libpng License version 2] |
@@ -44,7 +44,7 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
4444
| [pango] | 1.56.1 | LGPLv3 |
4545
| [pixman] | 0.44.2 | MIT Licence |
4646
| [proxy-libintl] | 0.4 | LGPLv3 |
47-
| [zlib-ng] | 2.2.3 | [zlib-ng Licence] |
47+
| [zlib-ng] | 2.2.4 | [zlib-ng Licence] |
4848

4949
¹ [A fork](https://github.com/lovell/libimagequant) of the BSD 2-Clause licensed libimagequant v2.4.1 is used.
5050

@@ -103,8 +103,8 @@ Same as libvips-web + these extra dependencies:
103103
| [openexr] | 3.1.11 | BSD 3-Clause |
104104
| [openjpeg] | 2.5.3 | BSD 2-Clause |
105105
| [openslide] | 4.0.0 | LGPLv3 |
106-
| [poppler] | 25.01.0 | GPLv2 |
107-
| [sqlite] | 3.48.0 | Public domain |
106+
| [poppler] | 25.02.0 | GPLv2 |
107+
| [sqlite] | 3.49.0 | Public domain |
108108

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

build/aom.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PKG := aom
22
$(PKG)_WEBSITE := https://aomedia.googlesource.com/aom/
33
$(PKG)_DESCR := AV1 Codec Library
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 3.11.0
6-
$(PKG)_CHECKSUM := cf7d103d2798e512aca9c6e7353d7ebf8967ee96fffe9946e015bb9947903e3e
5+
$(PKG)_VERSION := 3.12.0
6+
$(PKG)_CHECKSUM := d89daa160a0ea1409c4193be5b17c9591024c4f5a0e545dcb9d197535c66836e
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
88
$(PKG)_SUBDIR := libaom-$($(PKG)_VERSION)
99
$(PKG)_FILE := libaom-$($(PKG)_VERSION).tar.gz

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545
# Always checkout a particular revision which will successfully build.
4646
# This ensures that it will not suddenly break a build.
4747
# Note: Must be regularly updated.
48-
revision="d734fd4f78f6b629e352aa47c93288d5e0ea9114"
48+
revision="866492387740cc6580ef516c8a746402be645453"
4949
initialize=false
5050

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

build/cgif.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PKG := cgif
22
$(PKG)_WEBSITE := https://github.com/dloebl/cgif
33
$(PKG)_DESCR := A fast and lightweight GIF encoder
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 0.4.1
6-
$(PKG)_CHECKSUM := 8666f9c5f8123d1c22137a6dd714502a330377fb74e2007621926fe4258529d5
5+
$(PKG)_VERSION := 0.5.0
6+
$(PKG)_CHECKSUM := d6cb312c7da2c6c9f310811aa3658120c0316ba130c48a012e7baf3698920fe9
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
88
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
99
$(PKG)_GH_CONF := dloebl/cgif/tags,v
@@ -13,6 +13,7 @@ define $(PKG)_BUILD
1313
$(eval export CFLAGS += -O3)
1414

1515
$(MXE_MESON_WRAPPER) \
16+
-Dexamples=false \
1617
-Dtests=false \
1718
'$(SOURCE_DIR)' \
1819
'$(BUILD_DIR)'

build/overrides.mk

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ $(info == General overrides: $(lastword $(MAKEFILE_LIST)))
22

33
## Update dependencies
44

5+
# upstream version is 3.4.6
6+
libffi_VERSION := 3.4.7
7+
libffi_CHECKSUM := 138607dee268bdecf374adf9144c00e839e38541f75f24a1fcf18b78fda48b2d
8+
libffi_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/libffi-[0-9]*.patch)))
9+
libffi_SUBDIR := libffi-$(libffi_VERSION)
10+
libffi_FILE := libffi-$(libffi_VERSION).tar.gz
11+
libffi_URL := https://github.com/libffi/libffi/releases/download/v$(libffi_VERSION)/$(libffi_FILE)
12+
513
# upstream version is 2.42.10
614
# gdk-pixbuf is still used by OpenSlide
715
gdk-pixbuf_VERSION := 2.42.12
@@ -103,8 +111,8 @@ libjpeg-turbo_FILE := libjpeg-turbo-$(libjpeg-turbo_VERSION).tar.gz
103111
libjpeg-turbo_URL := https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/$(libjpeg-turbo_VERSION)/$(libjpeg-turbo_FILE)
104112

105113
# upstream version is 23.09.0
106-
poppler_VERSION := 25.01.0
107-
poppler_CHECKSUM := 7eefc122207bbbd72a303c5e0743f4941e8ae861e24dcf0501e18ce1d1414112
114+
poppler_VERSION := 25.02.0
115+
poppler_CHECKSUM := 21234cb2a9647d73c752ce4031e65a79d11a511a835f2798284c2497b8701dee
108116
poppler_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/poppler-[0-9]*.patch)))
109117
poppler_SUBDIR := poppler-$(poppler_VERSION)
110118
poppler_FILE := poppler-$(poppler_VERSION).tar.xz
@@ -145,6 +153,7 @@ libxml2_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST
145153
meson_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/meson-[0-9]*.patch)))
146154
mingw-w64_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/mingw-w64-[0-9]*.patch)))
147155
poppler_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/poppler-[0-9]*.patch)))
156+
sqlite_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/sqlite-[0-9]*.patch)))
148157
tiff_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/tiff-[0-9]*.patch)))
149158

150159
# zlib will make libzlib.dll, but we want libz.dll so we must
@@ -197,6 +206,9 @@ zlib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))
197206
# Removed: brotli, icu4c
198207
# libarchive:
199208
# Removed: bzip2, libiconv, libxml2, nettle, openssl, xz
209+
# SQLite:
210+
# Added: zlib
211+
# Removed: dlfcn-win32
200212

201213
freetype_DEPS := $(subst brotli bzip2,meson-wrapper,$(freetype_DEPS))
202214
freetype-bootstrap_DEPS := $(subst brotli bzip2,meson-wrapper,$(freetype-bootstrap_DEPS))
@@ -217,6 +229,7 @@ fontconfig_DEPS := cc meson-wrapper expat freetype-bootstrap
217229
libexif_DEPS := $(filter-out gettext,$(libexif_DEPS))
218230
harfbuzz_DEPS := cc meson-wrapper cairo freetype-bootstrap glib
219231
libarchive_DEPS := cc zlib
232+
sqlite_DEPS := cc zlib
220233

221234
## Override build scripts
222235

@@ -433,6 +446,7 @@ define lcms_BUILD
433446
$(eval export CFLAGS += -O3)
434447

435448
$(MXE_MESON_WRAPPER) \
449+
-Dtests=disabled \
436450
-Djpeg=disabled \
437451
-Dtiff=disabled \
438452
-Dc_args='$(CFLAGS) -DCMS_RELY_ON_WINDOWS_STATIC_MUTEX_INIT' \
@@ -555,7 +569,7 @@ define librsvg_BUILD
555569
-Dvala=disabled \
556570
-Dtests=false \
557571
-Dtriplet='$(PROCESSOR)-pc-windows-gnu$(if $(IS_LLVM),llvm)' \
558-
$(if $(IS_LLVM), -Dc_link_args='$(LDFLAGS) -lntdll -luserenv -lsynchronization -lbcryptprimitives') \
572+
$(if $(IS_LLVM), -Dc_link_args='$(LDFLAGS) -lntdll -luserenv') \
559573
'$(SOURCE_DIR)' \
560574
'$(BUILD_DIR)'
561575

@@ -564,8 +578,8 @@ define librsvg_BUILD
564578
# Add native libraries needed for static linking to .pc file.
565579
# We cannot use rustc --print native-static-libs due to -Zbuild-std.
566580
# See: https://gitlab.gnome.org/GNOME/librsvg/-/issues/968
567-
$(if $(and $(IS_LLVM),$(BUILD_STATIC)), \
568-
$(SED) -i "/^Libs:/s/$$/ -lntdll -luserenv -lsynchronization -lbcryptprimitives/" '$(PREFIX)/$(TARGET)/lib/pkgconfig/librsvg-2.0.pc')
581+
$(if $(IS_LLVM), \
582+
$(SED) -i "/^Libs.private:/s/$$/ -lntdll -luserenv/" '$(PREFIX)/$(TARGET)/lib/pkgconfig/librsvg-2.0.pc')
569583
endef
570584

571585
# compile with CMake
@@ -805,3 +819,30 @@ define brotli_BUILD
805819
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
806820
$(MAKE) -C '$(BUILD_DIR)' -j 1 $(subst -,/,$(INSTALL_STRIP_LIB))
807821
endef
822+
823+
# install DLL in /bin
824+
# generate missing import library
825+
define sqlite_BUILD
826+
cd '$(1)' && $(SOURCE_DIR)/configure \
827+
--host='$(TARGET)' \
828+
--build='$(BUILD)' \
829+
--prefix='$(PREFIX)/$(TARGET)' \
830+
$(if $(BUILD_STATIC), \
831+
--enable-static \
832+
--disable-shared \
833+
$(else), \
834+
--disable-static \
835+
--enable-shared) \
836+
--disable-readline
837+
$(MAKE) -C '$(1)' -j 1 install
838+
839+
# https://sqlite.org/forum/forumpost/4b68a3b892dfb9a1
840+
# TODO(kleisauke): Switch to `--out-implib` configure flag for the next release.
841+
$(if $(BUILD_SHARED), \
842+
cp -L '$(PREFIX)/$(TARGET)/lib/libsqlite3.dll' '$(PREFIX)/$(TARGET)/bin'; \
843+
rm -v '$(PREFIX)/$(TARGET)/lib/libsqlite3.dll'*; \
844+
'$(PREFIX)/$(TARGET)/bin/gendef' '$(PREFIX)/$(TARGET)/bin/libsqlite3.dll'; \
845+
$(TARGET)-dlltool -D '$(PREFIX)/$(TARGET)/bin/libsqlite3.dll' \
846+
-l '$(PREFIX)/$(TARGET)/lib/libsqlite3.dll.a' \
847+
-d 'libsqlite3.def';)
848+
endef

build/package-vipsdev.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ module_dir_base=$(basename $module_dir)
7070
# List of PE targets that need to be copied, including their transitive dependencies and PDBs
7171
pe_targets=($bin_dir/libvips-cpp-42.dll $bin_dir/{vips,vipsedit,vipsheader,vipsthumbnail}.exe)
7272

73+
# DLL search paths
74+
search_paths=($bin_dir)
75+
76+
if [ "$type" = "shared" ]; then
77+
search_paths+=($install_dir/${target%%.*}/bin)
78+
fi
79+
7380
if [ -d "$module_dir" ]; then
7481
mkdir -p $repackage_dir/bin/$module_dir_base
7582
pe_targets+=($module_dir/*.dll)
@@ -137,7 +144,7 @@ fi
137144
for pe_target in "${pe_targets[@]}"; do
138145
[ -f "$pe_target" ] || { echo "WARNING: $pe_target doesn't exist." >&2 ; continue; }
139146

140-
pe_deps=$(peldd $pe_target --clear-path --path $bin_dir ${whitelist[@]/#/--wlist } --all)
147+
pe_deps=$(peldd $pe_target --clear-path ${search_paths[@]/#/--path } ${whitelist[@]/#/--wlist } --all)
141148
for pe_dep in $pe_deps; do
142149
dir=$(dirname $pe_dep)
143150
base=$(basename $pe_dep .${pe_dep##*.})
@@ -161,11 +168,7 @@ echo "Generating import files"
161168

162169
echo "Cleaning unnecessary files / directories"
163170

164-
if [ "$LLVM" = "true" ]; then
165-
# Ensure that the header files of libc++/libunwind are not distributed
166-
rm -rf $repackage_dir/include/c++
167-
rm -rf $repackage_dir/include/{*unwind*,mach-o}
168-
else
171+
if [ "$LLVM" = "false" ]; then
169172
# Remove native build files of Rust
170173
rm -rf $repackage_dir/lib/{*.so*,ldscripts,rustlib}
171174
fi
@@ -179,11 +182,14 @@ else
179182
rm -rf $repackage_dir/share/glib-2.0
180183
fi
181184

185+
# pkg-config files for OpenGL/GLU are not needed
186+
rm -f $repackage_dir/lib/pkgconfig/{gl,glu}.pc
187+
182188
rm -rf $repackage_dir/share/{aclocal,bash-completion,cmake,config.site,doc,gdb,gtk-2.0,gtk-doc,installed-tests,man,meson,thumbnailers,xml,zsh}
183189
rm -rf $repackage_dir/etc/bash_completion.d
184190

185191
# Remove dynamic modules
186-
rm -rf $repackage_dir/lib/{gdk-pixbuf-2.0,vips-modules-*}
192+
rm -rf $repackage_dir/lib/{gdk-pixbuf-2.0,gio,vips-modules-*}
187193

188194
find $repackage_dir/lib -name "*.a" -and ! -name "*.dll.a" -exec rm -f {} \;
189195
find $repackage_dir/lib \( -name "*.la" -o -name "*.pdb" \) -exec rm -f {} \;

build/patches/meson-1-fixes.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/
88
index 1111111..2222222 100644
99
--- a/mesonbuild/compilers/mixins/clike.py
1010
+++ b/mesonbuild/compilers/mixins/clike.py
11-
@@ -1253,7 +1253,7 @@ class CLikeCompiler:
11+
@@ -1268,7 +1268,7 @@ class CLikeCompiler(Compiler):
1212
def thread_flags(self, env: 'Environment') -> T.List[str]:
1313
# TODO: does this belong here or in GnuLike or maybe PosixLike?
1414
host_m = env.machines[self.for_machine]
@@ -21,7 +21,7 @@ diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
2121
index 1111111..2222222 100644
2222
--- a/mesonbuild/linkers/linkers.py
2323
+++ b/mesonbuild/linkers/linkers.py
24-
@@ -644,7 +644,8 @@ class GnuLikeDynamicLinkerMixin:
24+
@@ -665,7 +665,8 @@ class GnuLikeDynamicLinkerMixin(DynamicLinkerBase):
2525
return self._apply_prefix('--out-implib=' + implibname)
2626

2727
def thread_flags(self, env: 'Environment') -> T.List[str]:

0 commit comments

Comments
 (0)