Kaynağa Gözat

package/libvips: add lcms2 optional dependency

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 4 yıl önce
ebeveyn
işleme
f26d142e35
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      package/libvips/libvips.mk

+ 7 - 1
package/libvips/libvips.mk

@@ -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