]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libxml2: depend on zlib and libiconv if appropriate
authorSimon Dawson <spdawson@gmail.com>
Wed, 15 May 2013 00:18:35 +0000 (00:18 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 17 May 2013 09:58:34 +0000 (11:58 +0200)
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libxml2/libxml2.mk

index 6a974ef8b1ae60be6652c30f6c77507029969654..7800d946a7cf5f21b6f714767b6835e39796fc51 100644 (file)
@@ -34,6 +34,21 @@ else
 HOST_LIBXML2_CONF_OPT += --without-python
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBXML2_DEPENDENCIES += zlib
+LIBXML2_CONF_OPT += --with-zlib
+else
+LIBXML2_CONF_OPT += --without-zlib
+endif
+
+LIBXML2_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+
+ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
+LIBXML2_CONF_OPT += --with-iconv
+else
+LIBXML2_CONF_OPT += --without-iconv
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))