From: Thomas Petazzoni Date: Thu, 9 Oct 2014 16:10:46 +0000 (+0200) Subject: libgeotiff: explicit optional dependencies on zlib and jpeg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2ec261b3a9a123e6f384ab30f89689f2cf90003;p=buildroot.git libgeotiff: explicit optional dependencies on zlib and jpeg In order to provide consistent behavior, this commit explicits the optional dependencies of libgeotiff on zlib and jpeg. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- diff --git a/package/libgeotiff/libgeotiff.mk b/package/libgeotiff/libgeotiff.mk index 722e71c6fc..61f5c219c4 100644 --- a/package/libgeotiff/libgeotiff.mk +++ b/package/libgeotiff/libgeotiff.mk @@ -10,4 +10,18 @@ LIBGEOTIFF_DEPENDENCIES = tiff host-pkgconf LIBGEOTIFF_INSTALL_STAGING = YES LIBGEOTIFF_AUTORECONF = YES +ifeq ($(BR2_PACKAGE_ZLIB),y) +LIBGEOTIFF_DEPENDENCIES += zlib +LIBGEOTIFF_CONF_OPTS += --with-zlib +else +LIBGEOTIFF_CONF_OPTS += --without-zlib +endif + +ifeq ($(BR2_PACKAGE_JPEG),y) +LIBGEOTIFF_DEPENDENCIES += jpeg +LIBGEOTIFF_CONF_OPTS += --with-jpeg +else +LIBGEOTIFF_CONF_OPTS += --without-jpeg +endif + $(eval $(autotools-package))