Browse Source

package/libraw: add optional support for lcms2

[Peter: also needs host-pkgconf]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Bernd Kuhls 9 years ago
parent
commit
40353e3e13
1 changed files with 7 additions and 1 deletions
  1. 7 1
      package/libraw/libraw.mk

+ 7 - 1
package/libraw/libraw.mk

@@ -12,7 +12,6 @@ LIBRAW_INSTALL_STAGING = YES
 LIBRAW_AUTORECONF = YES
 LIBRAW_CONF_OPTS += \
 	--disable-examples \
-	--disable-lcms \
 	--disable-openmp \
 	--disable-demosaic-pack-gpl2 \
 	--disable-demosaic-pack-gpl3
@@ -33,4 +32,11 @@ else
 LIBRAW_CONF_OPTS += --disable-jpeg
 endif
 
+ifeq ($(BR2_PACKAGE_LCMS2),y)
+LIBRAW_CONF_OPTS += --enable-lcms
+LIBRAW_DEPENDENCIES += lcms2 host-pkgconf
+else
+LIBRAW_CONF_OPTS += --disable-lcms
+endif
+
 $(eval $(autotools-package))