From patchwork Sat Nov 17 22:24:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 199878 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id B71D22C0086 for ; Sun, 18 Nov 2012 09:25:14 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A03B68CDC0; Sat, 17 Nov 2012 22:25:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JinKrsvF+IDm; Sat, 17 Nov 2012 22:24:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BF03D8D0BC; Sat, 17 Nov 2012 22:24:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9521B8F74A for ; Sat, 17 Nov 2012 22:24:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1DE478D0B8 for ; Sat, 17 Nov 2012 22:24:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BN2K4MeNBH5R for ; Sat, 17 Nov 2012 22:24:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id 2B3F58CDC0 for ; Sat, 17 Nov 2012 22:24:34 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id AE580180; Sat, 17 Nov 2012 23:24:27 +0100 (CET) Received: from localhost (46.130.200.77.rev.sfr.net [77.200.130.46]) by mail.free-electrons.com (Postfix) with ESMTPSA id 2D02BDB; Sat, 17 Nov 2012 23:24:18 +0100 (CET) From: Thomas Petazzoni To: buildroot@busybox.net Date: Sat, 17 Nov 2012 23:24:00 +0100 Message-Id: <2bf16916bb97596f539490199d5bf40ee85e8e22.1353191025.git.thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Cc: Vellemans Noel Subject: [Buildroot] [PATCH 02/10] libxml2: add support for building host library with python support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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 Signed-off-by: Thomas Petazzoni --- package/libxml2/Config.in | 3 +++ package/libxml2/libxml2.mk | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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