Skip to content

Commit 89d7736

Browse files
jcupittkleisauke
andauthored
Update for 8.18.0-test1 (#77)
- Update vipsdisp to 4.1.1. - Add LibRaw to 'all' group dependencies for RAW digicam input support. Co-authored-by: Kleis Auke Wolthuizen <[email protected]>
1 parent 90cf627 commit 89d7736

File tree

10 files changed

+90
-14
lines changed

10 files changed

+90
-14
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
3737
| [librsvg] | 2.60.0 | LGPLv3 |
3838
| [libspng] | 0.7.4 | BSD 2-Clause |
3939
| [libtiff] | 4.7.0 | [libtiff License] (BSD-like) |
40-
| [libvips] | 8.17.1 | LGPLv3 |
40+
| [libvips] | 8.18.0² | LGPLv3 |
4141
| [libwebp] | 1.6.0 | New BSD License |
4242
| [libxml2] | 2.14.5 | MIT Licence |
4343
| [mozjpeg] | 4.1.5 | [zlib License, IJG License, BSD-3-Clause] |
@@ -47,6 +47,8 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
4747
| [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.
50+
² libvips is built from the [`v8.18.0-test1`](https://github.com/libvips/libvips/tree/v8.18.0-test1) tag, see:
51+
https://github.com/libvips/libvips/releases/tag/v8.18.0-test1
5052

5153
[aom]: https://aomedia.googlesource.com/aom/
5254
[Alliance for Open Media Patent License 1.0]: https://aomedia.org/license/patent-license/
@@ -98,6 +100,7 @@ Same as libvips-web + these extra dependencies:
98100
| [imath] | 3.1.9 | BSD 3-Clause |
99101
| [libdicom] | 1.2.0 | MIT Licence |
100102
| [libjxl] | 0.11.1 | BSD 3-Clause |
103+
| [libraw] | 0.21.4 | LGPL-2.1-only |
101104
| [matio] | 1.5.28 | BSD 2-Clause |
102105
| [nifticlib] | 3.0.1 | Public domain |
103106
| [openexr] | 3.1.11 | BSD 3-Clause |
@@ -115,6 +118,7 @@ Same as libvips-web + these extra dependencies:
115118
[imath]: https://github.com/AcademySoftwareFoundation/Imath
116119
[libdicom]: https://github.com/ImagingDataCommons/libdicom
117120
[libjxl]: https://github.com/libjxl/libjxl
121+
[libraw]: https://github.com/LibRaw/LibRaw
118122
[matio]: https://github.com/tbeu/matio
119123
[nifticlib]: https://github.com/NIFTI-Imaging/nifti_clib
120124
[openexr]: https://github.com/AcademySoftwareFoundation/openexr

build/overrides.mk

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ libjpeg-turbo_SUBDIR := libjpeg-turbo-$(libjpeg-turbo_VERSION)
157157
libjpeg-turbo_FILE := libjpeg-turbo-$(libjpeg-turbo_VERSION).tar.gz
158158
libjpeg-turbo_URL := https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/$(libjpeg-turbo_VERSION)/$(libjpeg-turbo_FILE)
159159

160+
# upstream version is 0.21.1
161+
libraw_VERSION := 0.21.4
162+
libraw_CHECKSUM := 6be43f19397e43214ff56aab056bf3ff4925ca14012ce5a1538a172406a09e63
163+
libraw_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/libraw-[0-9]*.patch)))
164+
libraw_SUBDIR := LibRaw-$(libraw_VERSION)
165+
libraw_FILE := LibRaw-$(libraw_VERSION).tar.gz
166+
libraw_URL := https://www.libraw.org/data/$(libraw_FILE)
167+
160168
# upstream version is 2.7.1
161169
# needed by nip4
162170
gsl_VERSION := 2.8
@@ -180,6 +188,7 @@ glib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))
180188
harfbuzz_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/harfbuzz-[0-9]*.patch)))
181189
lcms_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/lcms-[0-9]*.patch)))
182190
libjpeg-turbo_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/libjpeg-turbo-[0-9]*.patch)))
191+
libraw_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/libraw-[0-9]*.patch)))
183192
libxml2_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/libxml2-[0-9]*.patch)))
184193
meson_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/meson-[0-9]*.patch)))
185194
mingw-w64_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/mingw-w64-[0-9]*.patch)))
@@ -228,6 +237,10 @@ zlib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))
228237
# Removed: hdf5
229238
# libjpeg-turbo:
230239
# Replaced: yasm with $(BUILD)~nasm
240+
# libraw:
241+
# Added: zlib
242+
# Replaced: jpeg with libjpeg-turbo
243+
# Removed: jasper
231244
# libxml2:
232245
# Added: meson-wrapper
233246
# Removed: libiconv, xz, zlib
@@ -258,6 +271,7 @@ librsvg_DEPS := cc meson-wrapper cairo glib pango libxml2 rust $(BUIL
258271
cairo_DEPS := $(filter-out lzo ,$(cairo_DEPS))
259272
matio_DEPS := $(filter-out hdf5 ,$(matio_DEPS))
260273
libjpeg-turbo_DEPS := $(subst yasm,$(BUILD)~nasm,$(libjpeg-turbo_DEPS))
274+
libraw_DEPS := cc libjpeg-turbo lcms zlib
261275
libxml2_DEPS := cc meson-wrapper
262276
fontconfig_DEPS := cc meson-wrapper expat freetype-bootstrap
263277
libexif_DEPS := $(filter-out gettext,$(libexif_DEPS))
@@ -479,6 +493,24 @@ define libjpeg-turbo_BUILD
479493
$(MAKE) -C '$(BUILD_DIR)' -j 1 $(subst -,/,$(INSTALL_STRIP_LIB))
480494
endef
481495

496+
# build without jasper, openmp and examples
497+
define libraw_BUILD
498+
# autoreconf to get updated libtool files for clang
499+
cd '$(SOURCE_DIR)' && autoreconf -fi
500+
501+
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
502+
$(MXE_CONFIGURE_OPTS) \
503+
--disable-examples \
504+
--disable-openmp \
505+
--disable-jasper \
506+
--enable-jpeg \
507+
--enable-zlib \
508+
--enable-lcms
509+
510+
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
511+
$(MAKE) -C '$(BUILD_DIR)' -j 1 $(INSTALL_STRIP_LIB)
512+
endef
513+
482514
# build with the Meson build system
483515
# build with -Dnls=disabled
484516
define fontconfig_BUILD
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Kleis Auke Wolthuizen <[email protected]>
3+
Date: Sun, 27 Jul 2025 14:00:00 +0200
4+
Subject: [PATCH 1/1] Make libstdc++ a private dependency
5+
6+
Prevent downstream packages that depend on LibRaw from being
7+
required to link explicitly against libstdc++.
8+
9+
diff --git a/libraw.pc.in b/libraw.pc.in
10+
index 1111111..2222222 100644
11+
--- a/libraw.pc.in
12+
+++ b/libraw.pc.in
13+
@@ -7,6 +7,6 @@ Name: libraw
14+
Description: Raw image decoder library (non-thread-safe)
15+
Requires: @PACKAGE_REQUIRES@
16+
Version: @PACKAGE_VERSION@
17+
-Libs: -L${libdir} -lraw -lstdc++@PC_OPENMP@
18+
-Libs.private: @PACKAGE_LIBS_PRIVATE@
19+
+Libs: -L${libdir} -lraw@PC_OPENMP@
20+
+Libs.private: @PACKAGE_LIBS_PRIVATE@ -lstdc++
21+
Cflags: -I${includedir}/libraw -I${includedir}
22+
diff --git a/libraw_r.pc.in b/libraw_r.pc.in
23+
index 1111111..2222222 100644
24+
--- a/libraw_r.pc.in
25+
+++ b/libraw_r.pc.in
26+
@@ -7,6 +7,6 @@ Name: libraw
27+
Description: Raw image decoder library (thread-safe)
28+
Requires: @PACKAGE_REQUIRES@
29+
Version: @PACKAGE_VERSION@
30+
-Libs: -L${libdir} -lraw_r -lstdc++@PC_OPENMP@
31+
-Libs.private: @PACKAGE_LIBS_PRIVATE@
32+
+Libs: -L${libdir} -lraw_r@PC_OPENMP@
33+
+Libs.private: @PACKAGE_LIBS_PRIVATE@ -lstdc++
34+
Cflags: -I${includedir}/libraw -I${includedir}

build/patches/vips-8-dlldir-as-libdir.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ diff --git a/libvips/include/vips/internal.h b/libvips/include/vips/internal.h
99
index 1111111..2222222 100644
1010
--- a/libvips/include/vips/internal.h
1111
+++ b/libvips/include/vips/internal.h
12-
@@ -426,6 +426,7 @@ guint32 vips__random(guint32 seed);
12+
@@ -427,6 +427,7 @@ guint32 vips__random(guint32 seed);
1313
guint32 vips__random_add(guint32 seed, int value);
1414

1515
const char *vips__icc_dir(void);
@@ -46,7 +46,7 @@ diff --git a/libvips/iofuncs/util.c b/libvips/iofuncs/util.c
4646
index 1111111..2222222 100644
4747
--- a/libvips/iofuncs/util.c
4848
+++ b/libvips/iofuncs/util.c
49-
@@ -1986,6 +1986,53 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
49+
@@ -1992,6 +1992,53 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
5050
return TRUE;
5151
}
5252
#endif

build/plugins/jpegli/overrides.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ IS_JPEGLI := $(true)
66
gdk-pixbuf_DEPS := $(subst libjpeg-turbo,jpegli,$(gdk-pixbuf_DEPS))
77
imagemagick_DEPS := $(subst libjpeg-turbo,jpegli,$(imagemagick_DEPS))
88
graphicsmagick_DEPS := $(subst libjpeg-turbo,jpegli,$(graphicsmagick_DEPS))
9+
libraw_DEPS := $(subst libjpeg-turbo,jpegli,$(libraw_DEPS))
910
openslide_DEPS := $(subst libjpeg-turbo,jpegli,$(openslide_DEPS))
1011
poppler_DEPS := $(subst libjpeg-turbo,jpegli,$(poppler_DEPS))
1112
tiff_DEPS := $(subst libjpeg-turbo,jpegli,$(tiff_DEPS))

build/plugins/mozjpeg/overrides.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ IS_MOZJPEG := $(true)
66
gdk-pixbuf_DEPS := $(subst libjpeg-turbo,mozjpeg,$(gdk-pixbuf_DEPS))
77
imagemagick_DEPS := $(subst libjpeg-turbo,mozjpeg,$(imagemagick_DEPS))
88
graphicsmagick_DEPS := $(subst libjpeg-turbo,mozjpeg,$(graphicsmagick_DEPS))
9+
libraw_DEPS := $(subst libjpeg-turbo,mozjpeg,$(libraw_DEPS))
910
openslide_DEPS := $(subst libjpeg-turbo,mozjpeg,$(openslide_DEPS))
1011
poppler_DEPS := $(subst libjpeg-turbo,mozjpeg,$(poppler_DEPS))
1112
tiff_DEPS := $(subst libjpeg-turbo,mozjpeg,$(tiff_DEPS))

build/plugins/zlib-ng/overrides.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ lcms_DEPS := $(subst zlib,zlib-ng,$(lcms_DEPS))
1212
libarchive_DEPS := $(subst zlib,zlib-ng,$(libarchive_DEPS))
1313
libexif_DEPS := $(subst zlib,zlib-ng,$(libexif_DEPS))
1414
libpng_DEPS := $(subst zlib,zlib-ng,$(libpng_DEPS))
15+
libraw_DEPS := $(subst zlib,zlib-ng,$(libraw_DEPS))
1516
libspng_DEPS := $(subst zlib,zlib-ng,$(libspng_DEPS))
1617
matio_DEPS := $(subst zlib,zlib-ng,$(matio_DEPS))
1718
nifticlib_DEPS := $(subst zlib,zlib-ng,$(nifticlib_DEPS))

build/vips-all.mk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ PKG := vips-all
22
$(PKG)_WEBSITE := https://libvips.github.io/libvips/
33
$(PKG)_DESCR := A fast image processing library with low memory needs.
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 8.17.1
6-
$(PKG)_CHECKSUM := 4d8c3325922c5300253d7594507a8f1d3caf8eed70dfb66cc7eb2cbed65bb5ca
5+
$(PKG)_VERSION := 8.18.0-test1
6+
$(PKG)_CHECKSUM := 242eaa2c195fd5a3021e5daaa4448cdbfa5b9702ec4377cbb9b2b18c4f542163
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/vips-[0-9]*.patch)))
8-
$(PKG)_GH_CONF := libvips/libvips/releases,v,,,,.tar.xz
9-
$(PKG)_SUBDIR := vips-$($(PKG)_VERSION)
8+
$(PKG)_GH_CONF := libvips/libvips/releases,v,,,,-test1.tar.xz
9+
$(PKG)_SUBDIR := vips-$(firstword $(subst -, ,$($(PKG)_VERSION)))
1010
$(PKG)_FILE := vips-$($(PKG)_VERSION).tar.xz
1111
$(PKG)_DEPS := cc meson-wrapper libwebp librsvg glib pango libarchive \
1212
libjpeg-turbo tiff lcms libexif libheif libspng \
1313
libimagequant highway imagemagick matio openexr \
14-
cfitsio nifticlib poppler fftw openslide libjxl cgif
14+
cfitsio nifticlib poppler fftw openslide libjxl cgif \
15+
libraw
1516

1617
define $(PKG)_PRE_CONFIGURE
1718
# Copy some files to the packaging directory
@@ -60,6 +61,7 @@ define $(PKG)_PRE_CONFIGURE
6061
printf ' "png": "$(libpng_VERSION)",\n'; \
6162
printf ' "poppler": "$(poppler_VERSION)",\n'; \
6263
$(if $(IS_INTL_DUMMY),printf ' "proxy-libintl": "$(proxy-libintl_VERSION)"$(comma)\n';) \
64+
printf ' "raw": "$(libraw_VERSION)",\n'; \
6365
printf ' "rsvg": "$(librsvg_VERSION)",\n'; \
6466
printf ' "spng": "$(libspng_VERSION)",\n'; \
6567
printf ' "sqlite": "$(sqlite_VERSION)",\n'; \

build/vips-web.mk

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ PKG := vips-web
22
$(PKG)_WEBSITE := https://libvips.github.io/libvips/
33
$(PKG)_DESCR := A fast image processing library with low memory needs.
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 8.17.1
6-
$(PKG)_CHECKSUM := 4d8c3325922c5300253d7594507a8f1d3caf8eed70dfb66cc7eb2cbed65bb5ca
5+
$(PKG)_VERSION := 8.18.0-test1
6+
$(PKG)_CHECKSUM := 242eaa2c195fd5a3021e5daaa4448cdbfa5b9702ec4377cbb9b2b18c4f542163
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/vips-[0-9]*.patch)))
8-
$(PKG)_GH_CONF := libvips/libvips/releases,v,,,,.tar.xz
9-
$(PKG)_SUBDIR := vips-$($(PKG)_VERSION)
8+
$(PKG)_GH_CONF := libvips/libvips/releases,v,,,,-test1.tar.xz
9+
$(PKG)_SUBDIR := vips-$(firstword $(subst -, ,$($(PKG)_VERSION)))
1010
$(PKG)_FILE := vips-$($(PKG)_VERSION).tar.xz
1111
$(PKG)_DEPS := cc meson-wrapper libwebp librsvg glib pango libarchive \
1212
libjpeg-turbo tiff lcms libexif libheif libspng \
@@ -83,6 +83,7 @@ define $(PKG)_BUILD
8383
-Dpdfium=disabled \
8484
-Dpoppler=disabled \
8585
-Dquantizr=disabled \
86+
-Draw=disabled \
8687
-Dppm=false \
8788
-Danalyze=false \
8889
-Dradiance=false \

build/vipsdisp.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PKG := vipsdisp
22
$(PKG)_WEBSITE := https://github.com/jcupitt/vipsdisp
33
$(PKG)_DESCR := Tiny libvips / gtk+4 image viewer
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 4.1.0
6-
$(PKG)_CHECKSUM := 51a1105f27e495fdd8e55a8628c4f688f28f900475efc479c9a7202ba59f09c2
5+
$(PKG)_VERSION := 4.1.1
6+
$(PKG)_CHECKSUM := 2a3378ab2f0e427effdcaab5025580e60c2937b04bbecb2a1a9346adc48dbe10
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
88
$(PKG)_GH_CONF := jcupitt/vipsdisp/releases,v,,,,.tar.xz
99
$(PKG)_DEPS := cc meson-wrapper gtk4 vips-all

0 commit comments

Comments
 (0)