From patchwork Thu Feb 13 22:59:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 320237 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A8B842C00A2 for ; Fri, 14 Feb 2014 10:00:20 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C471F93F00; Thu, 13 Feb 2014 23:00:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uRQZB1WZIODA; Thu, 13 Feb 2014 23:00:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 0554E93E87; Thu, 13 Feb 2014 23:00:15 +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 B91C41CE95F for ; Thu, 13 Feb 2014 23:00:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B33A68C06B for ; Thu, 13 Feb 2014 23:00:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6V0GWsSsc82T for ; Thu, 13 Feb 2014 23:00:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id 00A528C91A for ; Thu, 13 Feb 2014 23:00:10 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id q59so8099105wes.20 for ; Thu, 13 Feb 2014 15:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mcH2Bg7nwc8eYjtu6Pcugt/dGmi1SlS0/8oN8R4qTN0=; b=nbZrWEiXA+43iwXWI62TGAreyWkX023uvrzJq8DMdaqgrgzsUkAYOMUs/g6twhQccy IkbT4knqMJl82BF9kYIeVZxFzl0eu34rGyD/VqYATWFYM2C32HVpi5mtE8FohWd4HMgK iFo9ubK7PY9eraWfncy7+yhpYcQ6OCxHcA4Xc51ESDLmio2pjOSKRVQ3LrQewIPul9hc +OXC9UBSu6ndcl+kOCMNnyfBruOf7EzfVkec6SHOf3JcEXINy5zr0bfltVPn4jsQgGUY DTcv7lJfeeBgu0wZo0UXG2PLfYU28cvvKwCajhXjv7vtZMm+6kWhJSc0HkL47vhK6xQC cU1Q== X-Received: by 10.194.185.113 with SMTP id fb17mr3292609wjc.29.1392332409591; Thu, 13 Feb 2014 15:00:09 -0800 (PST) Received: from localhost (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id ga20sm17433182wic.0.2014.02.13.15.00.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 13 Feb 2014 15:00:09 -0800 (PST) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Thu, 13 Feb 2014 23:59:53 +0100 Message-Id: <1392332394-27935-5-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1392332394-27935-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1392332394-27935-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH v5 4/5] dependencies.sh: XBMC needs java on the host 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 XBMC uses a code-generator which is build in two phases: In the first phase SWIG is used to parse C++ header files that define the API. SWIG outputs an XML file that contains a complete description of the structure of the API. In the second phase, the XML file is ingested by a Groovy (Java) program that then creates C++ code that forms the bridge to the scripting language (Python). The second phase is why we need java on the host. You can learn more at the XBMC's wiki: http://wiki.xbmc.org/index.php?title=Codegeneration#How_it_works Signed-off-by: Maxime Hadjinlian --- support/dependencies/dependencies.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 0e7e1fa..5f77f35 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -191,6 +191,16 @@ if grep -q ^BR2_PACKAGE_CLASSPATH=y $BR2_CONFIG ; then done fi +if grep -q ^BR2_PACKAGE_XBMC=y $BUILDROOT_CONFIG ; then + for prog in java; do + if ! which $prog > /dev/null ; then + echo >&2 + echo "You must install '$prog' on your build machine" >&2 + exit 1 + fi + done +fi + if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $BR2_CONFIG ; then if test ! -f /lib/ld-linux.so.2 ; then echo