From patchwork Wed Nov 14 09:06:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] libxml2: add support for building host library with python support Date: Tue, 13 Nov 2012 23:06:17 -0000 From: Noel vellemans X-Patchwork-Id: 198837 Message-Id: <1352883977-16288-1-git-send-email-noel.vellemans@visionbms.com> To: buildroot@busybox.net Cc: Vellemans Noel , willw@carallon.com From: Vellemans Noel 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 --- package/libxml2/Config.in | 3 +++ package/libxml2/libxml2.mk | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/package/libxml2/Config.in b/package/libxml2/Config.in index ebd63fe..ea62663 100644 --- a/package/libxml2/Config.in +++ b/package/libxml2/Config.in @@ -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 diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk index 71f2bd1..fde3735 100644 --- a/package/libxml2/libxml2.mk +++ b/package/libxml2/libxml2.mk @@ -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