From: Bernd Kuhls Date: Sun, 21 Feb 2016 10:51:23 +0000 (+0100) Subject: package/imagemagick: add optional support for lcms2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fa25a8fb7ee6b612ba8240d02e05a5ef3a9c6e0;p=buildroot.git package/imagemagick: add optional support for lcms2 When lcms2 was compiled before, imagemagick will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/identify | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libMagickCore-6.Q16.so.2] 0x0000000000000001 (NEEDED) Shared library: [libMagickWand-6.Q16.so.2] 0x0000000000000001 (NEEDED) Shared library: [liblcms2.so.2] [...] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk index eee567ece8..8fc95323d1 100644 --- a/package/imagemagick/imagemagick.mk +++ b/package/imagemagick/imagemagick.mk @@ -60,6 +60,13 @@ else IMAGEMAGICK_CONF_OPTS += --without-jpeg endif +ifeq ($(BR2_PACKAGE_LCMS2),y) +IMAGEMAGICK_CONF_OPTS += --with-lcms +IMAGEMAGICK_DEPENDENCIES += lcms2 +else +IMAGEMAGICK_CONF_OPTS += --without-lcms +endif + ifeq ($(BR2_PACKAGE_LIBPNG),y) IMAGEMAGICK_CONF_OPTS += --with-png IMAGEMAGICK_DEPENDENCIES += libpng