Skip to contentSkip to conversation

package/libvips: add zlib optional dependency

PATCH New Fabrice Fontaine 3 participants 10 messages Apr 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 package/libvips: add zlib optional dependency

zlib is an optional dependency which is enabled by default since version 8.4.2 and
https://github.com/libvips/libvips/commit/5ab0001ec68a5f61396aecd8d2d7a619b1dbe1fa

---
 package/libvips/libvips.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/libvips/libvips.mk +7 -0
index 0449751380..5f95fc7f1d 100644
@@ -94,4 +94,11 @@ else
 LIBVIPS_CONF_OPTS += --without-libexif
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBVIPS_CONF_OPTS += --with-zlib
+LIBVIPS_DEPENDENCIES += zlib
+else
+LIBVIPS_CONF_OPTS += --without-zlib
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/7 package/libvips: add librsvg optional dependency

librsvg is an optional dependency which is enabled by default since version 8.3.0 and
https://github.com/libvips/libvips/commit/153886d2eb71eebcdca860cb691d8fbb976ad816

---
 package/libvips/libvips.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/libvips/libvips.mk +7 -0
index 5f95fc7f1d..f35a109502 100644
@@ -66,6 +66,13 @@ else
 LIBVIPS_CONF_OPTS += --without-png
 endif
 
+ifeq ($(BR2_PACKAGE_LIBRSVG),y)
+LIBVIPS_CONF_OPTS += --with-rsvg
+LIBVIPS_DEPENDENCIES += librsvg
+else
+LIBVIPS_CONF_OPTS += --without-rsvg
+endif
+
 ifeq ($(BR2_PACKAGE_POPPLER),y)
 LIBVIPS_CONF_OPTS += --with-poppler
 LIBVIPS_DEPENDENCIES += poppler
Signature · 1 line
2.30.2
#2 lore raw

PATCH 2/7 package/libvips: add librsvg optional dependency

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

librsvg is an optional dependency which is enabled by default since version 8.3.0 and
https://github.com/libvips/libvips/commit/153886d2eb71eebcdca860cb691d8fbb976ad816

Committed to 2020.02.x, 2020.11.x and 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 3/7 package/libvips: add {image, graphics}magick optional dependencies

In reply to Fabrice Fontaine
---
 package/libvips/libvips.mk | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
package/libvips/libvips.mk +14 -1
index f35a109502..7e8b705dd2 100644
@@ -23,7 +23,6 @@ LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
 LIBVIPS_CONF_OPTS = \
 	--without-dmalloc \
 	--without-gsf \
-	--without-magick \
 	--without-orc \
 	--without-lcms \
 	--without-OpenEXR \
@@ -52,6 +51,20 @@ else
 LIBVIPS_CONF_OPTS += --disable-introspection
 endif
 
+ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
+LIBVIPS_CONF_OPTS += \
+	--with-magick \
+	--with-magickpackage=MagickCore
+LIBVIPS_DEPENDENCIES += imagemagick
+else ifeq ($(BR2_PACKAGE_GRAPHICSMAGICK),y)
+LIBVIPS_CONF_OPTS += \
+	--with-magick \
+	--with-magickpackage=GraphicsMagick
+LIBVIPS_DEPENDENCIES += graphicsmagick
+else
+LIBVIPS_CONF_OPTS += --without-magick
+endif
+
 ifeq ($(BR2_PACKAGE_JPEG),y)
 LIBVIPS_CONF_OPTS += --with-jpeg
 LIBVIPS_DEPENDENCIES += jpeg
Signature · 1 line
2.30.2
#4 lore raw

PATCH 4/7 package/libvips: add orc optional dependency

In reply to Fabrice Fontaine
---
 package/libvips/libvips.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libvips/libvips.mk +7 -1
index 7e8b705dd2..304861ab83 100644
@@ -23,7 +23,6 @@ LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
 LIBVIPS_CONF_OPTS = \
 	--without-dmalloc \
 	--without-gsf \
-	--without-orc \
 	--without-lcms \
 	--without-OpenEXR \
 	--without-openslide \
@@ -86,6 +85,13 @@ else
 LIBVIPS_CONF_OPTS += --without-rsvg
 endif
 
+ifeq ($(BR2_PACKAGE_ORC),y)
+LIBVIPS_CONF_OPTS += --with-orc
+LIBVIPS_DEPENDENCIES += orc
+else
+LIBVIPS_CONF_OPTS += --without-orc
+endif
+
 ifeq ($(BR2_PACKAGE_POPPLER),y)
 LIBVIPS_CONF_OPTS += --with-poppler
 LIBVIPS_DEPENDENCIES += poppler
Signature · 1 line
2.30.2
#5 lore raw

PATCH 5/7 package/libvips: add lcms2 optional dependency

In reply to Fabrice Fontaine
---
 package/libvips/libvips.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libvips/libvips.mk +7 -1
index 304861ab83..494392de7b 100644
@@ -23,7 +23,6 @@ LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
 LIBVIPS_CONF_OPTS = \
 	--without-dmalloc \
 	--without-gsf \
-	--without-lcms \
 	--without-OpenEXR \
 	--without-openslide \
 	--without-matio \
@@ -71,6 +70,13 @@ else
 LIBVIPS_CONF_OPTS += --without-jpeg
 endif
 
+ifeq ($(BR2_PACKAGE_LCMS2),y)
+LIBVIPS_CONF_OPTS += --with-lcms
+LIBVIPS_DEPENDENCIES += lcms2
+else
+LIBVIPS_CONF_OPTS += --without-lcms
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPNG),y)
 LIBVIPS_CONF_OPTS += --with-png
 LIBVIPS_DEPENDENCIES += libpng
Signature · 1 line
2.30.2
#6 lore raw

PATCH 6/7 package/libvips: add matio optional dependency

In reply to Fabrice Fontaine
---
 package/libvips/libvips.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libvips/libvips.mk +7 -1
index 494392de7b..990d3f386f 100644
@@ -25,7 +25,6 @@ LIBVIPS_CONF_OPTS = \
 	--without-gsf \
 	--without-OpenEXR \
 	--without-openslide \
-	--without-matio \
 	--without-cfitsio \
 	--without-libwebp \
 	--without-pangoft2 \
@@ -91,6 +90,13 @@ else
 LIBVIPS_CONF_OPTS += --without-rsvg
 endif
 
+ifeq ($(BR2_PACKAGE_MATIO),y)
+LIBVIPS_CONF_OPTS += --with-matio
+LIBVIPS_DEPENDENCIES += matio
+else
+LIBVIPS_CONF_OPTS += --without-matio
+endif
+
 ifeq ($(BR2_PACKAGE_ORC),y)
 LIBVIPS_CONF_OPTS += --with-orc
 LIBVIPS_DEPENDENCIES += orc
Signature · 1 line
2.30.2
#7 lore raw

PATCH 7/7 package/libvips: add webp optional dependency

In reply to Fabrice Fontaine
---
 package/libvips/libvips.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libvips/libvips.mk +7 -1
index 990d3f386f..7023b11119 100644
@@ -26,7 +26,6 @@ LIBVIPS_CONF_OPTS = \
 	--without-OpenEXR \
 	--without-openslide \
 	--without-cfitsio \
-	--without-libwebp \
 	--without-pangoft2 \
 	--without-x
 LIBVIPS_INSTALL_STAGING = YES
@@ -132,6 +131,13 @@ else
 LIBVIPS_CONF_OPTS += --without-libexif
 endif
 
+ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
+LIBVIPS_CONF_OPTS += --with-libwebp
+LIBVIPS_DEPENDENCIES += webp
+else
+LIBVIPS_CONF_OPTS += --without-libwebp
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 LIBVIPS_CONF_OPTS += --with-zlib
 LIBVIPS_DEPENDENCIES += zlib
Signature · 1 line
2.30.2
#8 lore raw

PATCH 1/7 package/libvips: add zlib optional dependency

In reply to Fabrice Fontaine
Quoted 8 lines · On Sun, 4 Apr 2021 16:30:42 +0200 Fabrice Fontaine…

zlib is an optional dependency which is enabled by default since version 8.4.2 and
https://github.com/libvips/libvips/commit/5ab0001ec68a5f61396aecd8d2d7a619b1dbe1fa

---
 package/libvips/libvips.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Series applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#9 lore raw

PATCH 1/7 package/libvips: add zlib optional dependency

In reply to Fabrice Fontaine
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

zlib is an optional dependency which is enabled by default since version 8.4.2 and
https://github.com/libvips/libvips/commit/5ab0001ec68a5f61396aecd8d2d7a619b1dbe1fa

Committed to 2020.02.x, 2020.11.x and 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard