From patchwork Sat Feb 9 18:09:40 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: 219418 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 8A4412C0087 for ; Sun, 10 Feb 2013 05:11:07 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 06E5A10245B; Sat, 9 Feb 2013 18:10:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dewZKTbeIpXN; Sat, 9 Feb 2013 18:10:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C9C6B101666; Sat, 9 Feb 2013 18:09:53 +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 51E558F7A3 for ; Sat, 9 Feb 2013 18:10:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B592F86776 for ; Sat, 9 Feb 2013 18:10:04 +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 ipZTwS4vbvDS for ; Sat, 9 Feb 2013 18:09:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id F11DA814C8 for ; Sat, 9 Feb 2013 18:09:54 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id e12so3745535wge.10 for ; Sat, 09 Feb 2013 10:09:53 -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=kvOeUsZdWzQlSJbhAydDC/RfyiPp0dBkUQFmkcKS+0Q=; b=xmlQEUSt5KQ2mXdeWcTXc901KzmQEM1Ih5a2X6foTzQ/Xg2lyJahv6Q+Fjmm1rdcUC iVhLO1cM85pG866uqavLI/DpyNI0Uk58kJ6P+oxx3TcYuf8b/RpYTKVha+TvlO2piCnH nlE+5laovKZ28joL+XqHeoDhzsxkoSwNH171qOg/pX0r0KNVA7RFIFNcEg7yK7UJinGZ Q+DgZ9bj4hae5keR2NUMVTxG8RzjOkRkeFykk9tGGdw83FL0lH8fWK24dz0RcebmcOxW ENeLBm+qOUlHbB6ETo9Mzc6wr2X2jjC722MGOqjelg2bSzWauhRPWc8LOoYh0z/Kh62g CcKA== X-Received: by 10.180.100.7 with SMTP id eu7mr8313839wib.25.1360433393125; Sat, 09 Feb 2013 10:09:53 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-68-181.w90-32.abo.wanadoo.fr. [90.32.147.181]) by mx.google.com with ESMTPS id s10sm22424845wiw.4.2013.02.09.10.09.51 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 09 Feb 2013 10:09:52 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sat, 9 Feb 2013 19:09:40 +0100 Message-Id: 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 1/6] 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 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 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..6aa3478 --- /dev/null +++ b/package/pmake/pmake.mk @@ -0,0 +1,47 @@ +############################################################# +# +# 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 $${0%%/*}/bmake -m $${0%%/pmake}/../../usr/share/pmake/mk "$$@"\n' \ + >$(HOST_DIR)/usr/bin/pmake + chmod 0755 $(HOST_DIR)/usr/bin/pmake +endef + +$(eval $(host-generic-package))