From dcd920cbb473d44c76bd279e12daaa1fc1f1a91a Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 29 Jan 2025 09:39:26 +0530 Subject: [PATCH] wip patch --- desktop/scripts/vips/README.md | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/desktop/scripts/vips/README.md b/desktop/scripts/vips/README.md index 707d92e540..1046d95e20 100644 --- a/desktop/scripts/vips/README.md +++ b/desktop/scripts/vips/README.md @@ -71,6 +71,49 @@ and doesn't work with build-win64-mxe. While in our fork we can't trim of llvm itself, we can trim off a lot of dependencies that we don't need for our current purpose. +The patch we need boils down to + +```patch +diff --git a/build/vips-all.mk b/build/vips-all.mk +index 33492f8..f79eedb 100644 +--- a/build/vips-all.mk ++++ b/build/vips-all.mk +@@ -8,10 +8,10 @@ $(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST + $(PKG)_GH_CONF := libvips/libvips/releases,v,,,,.tar.xz + $(PKG)_SUBDIR := vips-$($(PKG)_VERSION) + $(PKG)_FILE := vips-$($(PKG)_VERSION).tar.xz +-$(PKG)_DEPS := cc meson-wrapper libwebp librsvg glib pango libarchive \ ++$(PKG)_DEPS := cc meson-wrapper libwebp glib libarchive \ + libjpeg-turbo tiff lcms libexif libheif libpng \ +- libspng libimagequant highway imagemagick matio openexr \ +- cfitsio nifticlib poppler fftw openslide libjxl cgif ++ libspng libimagequant highway \ ++ fftw cgif + + define $(PKG)_PRE_CONFIGURE + # Copy some files to the packaging directory +@@ -85,11 +85,16 @@ define $(PKG)_BUILD + -Ddeprecated=false \ + -Dexamples=false \ + -Dintrospection=disabled \ +- -Dmodules=enabled \ +- -Dheif-module=$(if $(IS_HEVC),enabled,disabled) \ +- $(if $(findstring graphicsmagick,$($(PKG)_DEPS)), -Dmagick-package=GraphicsMagick) \ ++ -Dcplusplus=false \ ++ -Dmodules=disabled \ ++ -Dheif=enabled \ ++ -Dmagick=disabled \ + -Dpdfium=disabled \ + -Dquantizr=disabled \ ++ -Dpangocairo=disabled \ ++ -Dpoppler=disabled \ ++ -Drsvg=disabled \ ++ -Dopenslide=disabled \ + -Dc_args='$(CFLAGS) -DVIPS_DLLDIR_AS_LIBDIR' \ + '$(SOURCE_DIR)' \ + '$(BUILD_DIR)' +``` + ## Notes 2 Try using libvips-packaging, see if it builds vips tools binaries too.