]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libxml2: add support for building host library with python support
authorVellemans Noel <noel.vellemans@visionbms.com>
Sat, 17 Nov 2012 12:24:00 +0000 (12:24 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 17 Nov 2012 22:41:41 +0000 (23:41 +0100)
Patch based on the initial work of Will Wagner (Thanks Will).
libxml2 host library with python support is required to build mesa3d (7.10.1)

Signed-off-by: Vellemans Noel <noel.vellemans@visionbms.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libxml2/Config.in
package/libxml2/libxml2.mk

index ebd63fe54cf46839f6ca5582699b249783aca538..ea62663dd242f77d79e81b88f01e9b88e45e5f47 100644 (file)
@@ -4,3 +4,6 @@ config BR2_PACKAGE_LIBXML2
          XML C Parser
 
          http://xmlsoft.org/
+
+config BR2_PACKAGE_HOST_LIBXML2_PYTHON
+    bool
\ No newline at end of file
index 71f2bd15be486a5cb6ced479d446f836b4b1c57c..fde3735b8de7a8675dd282215d1f321bfd40f558 100644 (file)
@@ -26,7 +26,15 @@ LIBXML2_POST_INSTALL_STAGING_HOOKS += LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
 
 HOST_LIBXML2_DEPENDENCIES = host-pkgconf
 
-HOST_LIBXML2_CONF_OPT = --without-debug --without-python
+HOST_LIBXML2_CONF_OPT = --without-debug
+
+ifeq ($(BR2_PACKAGE_HOST_LIBXML2_PYTHON),y)
+HOST_LIBXML2_DEPENDENCIES += host-python
+HOST_LIBXML2_CONF_OPT += --with-python=$(HOST_DIR)/usr
+else
+HOST_LIBXML2_CONF_OPT += --without-python
+endif
+
 
 define LIBXML2_REMOVE_CONFIG_SCRIPTS
        $(RM) -f $(TARGET_DIR)/usr/bin/xml2-config