From patchwork Tue Jul 5 19:05:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 644976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rkYJ158D8z9sXR for ; Wed, 6 Jul 2016 05:05:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=PdEwLOFh; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8B12F8B620; Tue, 5 Jul 2016 19:05:48 +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 ZQrk2khkV7Vl; Tue, 5 Jul 2016 19:05:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E2E988732B; Tue, 5 Jul 2016 19:05:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 92AA61C10B7 for ; Tue, 5 Jul 2016 19:05:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8E2DF8732B for ; Tue, 5 Jul 2016 19:05:41 +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 cSGebKH+o7aU for ; Tue, 5 Jul 2016 19:05:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7CFFA86E72 for ; Tue, 5 Jul 2016 19:05:40 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id c82so30742172wme.3 for ; Tue, 05 Jul 2016 12:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DBeRPFpxOfOCfn7zqHkgmNwGpoD/eu5SKI7AHiPthyM=; b=PdEwLOFhsMCp709kxFWS44RNNFK0Ge1PJn0crmK3MNlA+JPfRh4qUSHpENuts+8R35 F8fTjert9dF8A2ynp539PTFccyS+PJQm0ToR0FrSOu4Ok3mNzkNvuAhcCHItI864CvEu um5nHRNH572y0akTkYAGIHU+Z9zZnRnbM7pS1ngdS3zkf5MLtXVcfk7yXGRtoUZVjnRD OJLQsnPk8hkki7FqiDJMZ9AD5aZO3fWi4S2qm7QLwx03WufBOUFj2tf6uEmQwwhQJHlH 6FCVO/dsxd+vg+yZN7QN0EBbJUxRyHLjyy50A50wAUdkFYe7n7/FGTt39nQtHgqYg8Xf Jqog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DBeRPFpxOfOCfn7zqHkgmNwGpoD/eu5SKI7AHiPthyM=; b=PjbevHo+V0/E64JujQoTAlwBz8smOCMst3bYnzlZRY4VnYgQeO8NDXfylFnpCC6K+V 1r8w7pSzZLuIDqvEHOVbKULhHZpPJIzotllW5EOxCgpw742jqKQlJUywQT71Mro5lyB+ Ck5WxZBb6488y7gpFxXQ3XTceIcagYC1Y09teaTLu4ErKD4nDRPKw88PldJz+Tod24jC DpqwM5F3ay116GO2yNKsgcffpPIrtlh+h+/qFbSd0o6sm8YiN9irbE40QvEmBoHSinG+ OSOVpIcjYJXCAVGavJ335AMSCPJdAzIgo4j8uu97CZ+PTTMDrXk9yNyEMJKvXc1C3L/9 uGqA== X-Gm-Message-State: ALyK8tLv7Z8LaZqS1ahijNfqR4djJfWIcGWDG5xoBsii/SIx3NCvgvXugd6I2qfBdH9miQ== X-Received: by 10.28.159.143 with SMTP id i137mr21877wme.33.1467745538661; Tue, 05 Jul 2016 12:05:38 -0700 (PDT) Received: from localhost.localdomain (27.177.132.77.rev.sfr.net. [77.132.177.27]) by smtp.gmail.com with ESMTPSA id p126sm5080677wmp.13.2016.07.05.12.05.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 12:05:37 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Tue, 5 Jul 2016 21:05:20 +0200 Message-Id: <1467745520-4449-1-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [V2] 4th: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Signed-off-by: Francois Perrad --- package/4th/0001-avoid-regen-during-install.patch | 17 ++++++ package/4th/4th.hash | 2 + package/4th/4th.mk | 64 +++++++++++++++++++++++ package/4th/Config.in | 8 +++ package/Config.in | 1 + 5 files changed, 92 insertions(+) create mode 100644 package/4th/0001-avoid-regen-during-install.patch create mode 100644 package/4th/4th.hash create mode 100644 package/4th/4th.mk create mode 100644 package/4th/Config.in diff --git a/package/4th/0001-avoid-regen-during-install.patch b/package/4th/0001-avoid-regen-during-install.patch new file mode 100644 index 0000000..436cff1 --- /dev/null +++ b/package/4th/0001-avoid-regen-during-install.patch @@ -0,0 +1,17 @@ +avoid regen during install + +Signed-off-by: Francois Perrad + +--- a/sources/Makefile ++++ b/sources/Makefile +@@ -120,7 +120,7 @@ + ln -sf $(SHARED_LIB) $(LIBRARIES)/lib4th.so + endif + +-mostlyinstall: libinstall all ++mostlyinstall: libinstall + cp 4th 4tsh pp4th $(BINARIES) + + install: mostlyinstall +-- + diff --git a/package/4th/4th.hash b/package/4th/4th.hash new file mode 100644 index 0000000..97083da --- /dev/null +++ b/package/4th/4th.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 1c7adbb1a56dad4c4c781e6e023d77ac862842560c05246b691d07e9a4460ab2 4th-3.62.4-unix.tar.gz diff --git a/package/4th/4th.mk b/package/4th/4th.mk new file mode 100644 index 0000000..0e7015f --- /dev/null +++ b/package/4th/4th.mk @@ -0,0 +1,64 @@ +################################################################################ +# +# 4th +# +################################################################################ + +4TH_VERSION = 3.62.4 +4TH_SOURCE = 4th-$(4TH_VERSION)-unix.tar.gz +4TH_SITE = http://downloads.sourceforge.net/project/forth-4th/4th-$(4TH_VERSION) +4TH_LICENSE = GPLv3, LGPLv3 +4TH_LICENSE_FILES = COPYING +4TH_DEPENDENCIES = host-4th +4TH_INSTALL_STAGING = YES + +ifeq ($(BR2_STATIC_LIBS),y) +4TH_MAKE_ENV = STATIC=1 +else +4TH_MAKE_ENV = SHARED=1 +endif + +define 4TH_BUILD_CMDS + $(4TH_MAKE_ENV) \ + $(MAKE) -C $(@D)/sources all \ + CROSS=$(TARGET_CROSS) \ + CFLAGS="$(TARGET_CFLAGS) -DUNIX -fsigned-char" \ + FOURTH=$(HOST_DIR)/usr/bin/4th +endef + +define 4TH_INSTALL_STAGING_CMDS + $(4TH_MAKE_ENV) \ + $(MAKE) -C $(@D)/sources libinstall \ + LIBRARIES=$(STAGING_DIR)/usr/lib + $(INSTALL) -D -m 0644 $(@D)/sources/4th.h \ + $(STAGING_DIR)/usr/include/4th.h +endef + +define 4TH_INSTALL_TARGET_CMDS + $(4TH_MAKE_ENV) \ + $(MAKE) -C $(@D)/sources mostlyinstall \ + BINARIES=$(TARGET_DIR)/usr/bin \ + LIBRARIES=$(TARGET_DIR)/usr/lib + mkdir -p $(TARGET_DIR)/usr/share/4th/lib + cp -dpf $(@D)/4th/*.4th $(TARGET_DIR)/usr/share/4th + cp -dpf $(@D)/4th/lib/*.4th $(TARGET_DIR)/usr/share/4th/lib + mkdir -p $(TARGET_DIR)/usr/share/4th/demo + cp -dpf $(@D)/4th/demo/*.4th $(TARGET_DIR)/usr/share/4th/demo + mkdir -p $(TARGET_DIR)/usr/share/4th/4pp/lib + cp -dpf $(@D)/4th/4pp/*.4pp $(TARGET_DIR)/usr/share/4th/4pp + cp -dpf $(@D)/4th/4pp/lib/*.4pp $(TARGET_DIR)/usr/share/4th/4pp/lib +endef + +define HOST_4TH_BUILD_CMDS + $(MAKE) -C $(@D)/sources all \ + CFLAGS="$(HOST_CFLAGS) -DUNIX -fsigned-char" +endef + +define HOST_4TH_INSTALL_CMDS + $(MAKE) -C $(@D)/sources mostlyinstall \ + BINARIES=$(HOST_DIR)/usr/bin \ + LIBRARIES=$(HOST_DIR)/usr/lib +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package)) diff --git a/package/4th/Config.in b/package/4th/Config.in new file mode 100644 index 0000000..51f85de --- /dev/null +++ b/package/4th/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_4TH + bool "4th" + help + 4tH is a Forth compiler that can create bytecode, C-embeddable + bytecode, standalone executables, but also works fine as a scripting + language + + http://thebeez.home.xs4all.nl/4tH/ diff --git a/package/Config.in b/package/Config.in index bffb043..eb9250a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -477,6 +477,7 @@ endif endmenu menu "Interpreter languages and scripting" + source "package/4th/Config.in" source "package/enscript/Config.in" source "package/erlang/Config.in" if BR2_PACKAGE_ERLANG