From patchwork Wed Apr 2 19:46:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 336441 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 4673514012A for ; Thu, 3 Apr 2014 06:48:30 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0963F8B35C; Wed, 2 Apr 2014 19:47:57 +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 j4KjVsa0+vgV; Wed, 2 Apr 2014 19:47:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6B1E78AB7E; Wed, 2 Apr 2014 19:47:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 2453E1BFA57 for ; Wed, 2 Apr 2014 19:47:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E2E318AD0B for ; Wed, 2 Apr 2014 19:47:22 +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 3DjQAEEU4OyT for ; Wed, 2 Apr 2014 19:47:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by hemlock.osuosl.org (Postfix) with ESMTPS id 61CDB8AD0C for ; Wed, 2 Apr 2014 19:47:22 +0000 (UTC) Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de [172.20.27.149]) by mailout10.t-online.de (Postfix) with SMTP id C2D3E255CC9; Wed, 2 Apr 2014 21:47:20 +0200 (CEST) Received: from fli4l.lan.fli4l (bKTGByZT8hszIOydATQuFvnILLTd4p+LLJf5DV3JtBxyAFoxBvIYrhEvvG47Bl7gty@[79.247.149.125]) by fwd05.t-online.de with esmtp id 1WVR7z-0GgCwK0; Wed, 2 Apr 2014 21:47:15 +0200 Received: from [192.168.1.122] (port=45260 helo=fli4lbuild64.lan.fli4l) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1WVR7z-0000Wh-Dm; Wed, 02 Apr 2014 21:47:15 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Wed, 2 Apr 2014 21:46:46 +0200 Message-Id: <1396468015-1724-32-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1396468015-1724-1-git-send-email-bernd.kuhls@t-online.de> References: <1396468015-1724-1-git-send-email-bernd.kuhls@t-online.de> X-ID: bKTGByZT8hszIOydATQuFvnILLTd4p+LLJf5DV3JtBxyAFoxBvIYrhEvvG47Bl7gty X-TOI-MSGID: 728957bd-5dcb-4902-9bb6-a4de1617ace9 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH v2 32/41] infozip: Add a host variant 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: Maxime Hadjinlian Adding a host variant to the package infozip. It will be used by XBMC. Signed-off-by: Maxime Hadjinlian Reviewed-by: "Yann E. MORIN" Signed-off-by: Bernd Kuhls --- package/infozip/infozip.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk index 8e51224..9648b4f 100644 --- a/package/infozip/infozip.mk +++ b/package/infozip/infozip.mk @@ -26,4 +26,17 @@ define INFOZIP_INSTALL_TARGET_CMDS prefix=$(TARGET_DIR)/usr endef +define HOST_INFOZIP_BUILD_CMDS + $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \ + CFLAGS="$(HOST_CFLAGS) -I. -DUNIX" \ + AS="$(HOST_CC) -c" \ + -f unix/Makefile generic +endef + +define HOST_INFOZIP_INSTALL_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \ + prefix=$(HOST_DIR)/usr +endef + $(eval $(generic-package)) +$(eval $(host-generic-package))