From patchwork Mon Feb 4 16:01:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 217979 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 3A7CC2C02B7 for ; Tue, 5 Feb 2013 03:03:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C90138C136; Mon, 4 Feb 2013 16:03:07 +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 Zbg-x01ITclT; Mon, 4 Feb 2013 16:02:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 092678B0BF; Mon, 4 Feb 2013 16:02:11 +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 515DD8F753 for ; Mon, 4 Feb 2013 16:02:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9F19D8AFF0 for ; Mon, 4 Feb 2013 16:01:54 +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 i54T7XwFFdvD for ; Mon, 4 Feb 2013 16:01:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by whitealder.osuosl.org (Postfix) with ESMTPS id B6C118B285 for ; Mon, 4 Feb 2013 16:01:39 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id o1so3101341wic.5 for ; Mon, 04 Feb 2013 08:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references; bh=Yce248OeZ/nLI0goakp88LIC4ytz1VZgy4xNrNwznyM=; b=o8bB2zDc+AzFN0hufNmRTV89ehm6gQVCNqhfMEu1oY1APZbBsd7Pf61D0QGVYZanW8 pwhEKcxBtUWIbqOmfw86Hfy0CXZ+iL0T21D9HN6GfTIZ+KmC2E164Dcba2Tfdz3ciToF mT33GEzTZPhbmrQsq/hxi+KmRseV7zWHs7Ifn9gB1v6pApt/QbwSDIrMEc+zABq/pOXn mXaO0zXC4jaXGWbDEAtMLvJuJ0BXKv7cFfvcqiXML3Doe/GoVoV7GhxJteQYEA17knrH TTWvW/AP1RcHlFqKiEGfGg29s2Kfz+fgZRlEnwtdtxyjACR188ooeNLV8shHd46W18Rx zAxA== X-Received: by 10.194.174.234 with SMTP id bv10mr36411756wjc.47.1359993692545; Mon, 04 Feb 2013 08:01:32 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-39-23.w90-32.abo.wanadoo.fr. [90.32.22.23]) by mx.google.com with ESMTPS id eo10sm22395239wib.9.2013.02.04.08.01.30 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Feb 2013 08:01:31 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 4 Feb 2013 17:01:15 +0100 Message-Id: <453ed921e8645a7271b1b67d1c05ee96819a871b.1359993560.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/7] package/pmake: add host pmake 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 pmake is the make command used by the BSD. It will used to build BSD-related packages, coming later. Signed-off-by: "Yann E. MORIN" Cc: Arnout Vandecappelle Cc: Thomas Petazzoni --- package/pmake/pmake.mk | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 package/pmake/pmake.mk diff --git a/package/pmake/pmake.mk b/package/pmake/pmake.mk new file mode 100644 index 0000000..4a9e888 --- /dev/null +++ b/package/pmake/pmake.mk @@ -0,0 +1,49 @@ +############################################################# +# +# pmake +# +############################################################## + +PMAKE_VERSION = 1.111 +PMAKE_SOURCE = pmake_$(PMAKE_VERSION).orig.tar.gz +PMAKE_SITE = http://snapshot.debian.org/archive/debian/20120601T033558Z/pool/main/p/pmake +PMAKE_LICENSE = BSD-3c BSD-4c +# No license file. License texts are spread in the boilerplates +# of each individual source files; some are BSD-3c, some BSD-4c. + +# Vampirise patches from Debian +PMAKE_PATCH = pmake_1.111-3.2.debian.tar.gz + +# CFLAGS vampirised from Debian's rules, adapted to buildroot variables +HOST_PMAKE_CFLAGS = -O2 -g -Wall -D__COPYRIGHT\(x\)= -D__RCSID\(x\)= -I. \ + -DMACHINE=\\\"buildroot\\\" \ + -DMACHINE_ARCH=\\\"$(ARCH)\\\" -DMACHINE_MULTIARCH=\\\"\\\" \ + -DHAVE_SETENV -DHAVE_STRERROR -DHAVE_STRDUP -DHAVE_STRFTIME \ + -DHAVE_VSNPRINTF -D_GNU_SOURCE -Wno-unused + +define HOST_PMAKE_BUILD_CMDS + $(MAKE) -C $(@D) -f Makefile.boot CFLAGS="$(HOST_PMAKE_CFLAGS)" +endef + +# The generated file is named bmake, but we want pmake; but: +# - pmake uses support files (in mk/) +# - it's not possible to tell pmake, at build-time, where to expect +# these support files, and pmake expects them in /usr/share/mk/ +# - but pmake has an option to override that search path at runtime +# - so we install bmake as bmake +# - and we install a wraper named pmake that calls pmake with the +# appropriate search path +define HOST_PMAKE_INSTALL_CMDS + $(INSTALL) -m 0755 $(@D)/bmake $(HOST_DIR)/usr/bin/bmake + $(INSTALL) -d -m 0755 $(HOST_DIR)/usr/share/pmake/mk + for mk in $(@D)/mk/*; do \ + $(INSTALL) -m 0644 $${mk} $(HOST_DIR)/usr/share/pmake/mk; \ + done + printf '#!/bin/sh\nexec %s -m %s "$$@"\n' \ + $(HOST_DIR)/usr/bin/bmake \ + $(HOST_DIR)/usr/share/pmake/mk \ + >$(HOST_DIR)/usr/bin/pmake + chmod 0755 $(HOST_DIR)/usr/bin/pmake +endef + +$(eval $(host-generic-package))