From patchwork Wed Apr 20 17:55:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 612806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 3qqqMM1sbfz9t3m for ; Thu, 21 Apr 2016 03:56:45 +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=KgKcDExo; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 97B0795391; Wed, 20 Apr 2016 17:56:44 +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 QlY77MkoC9QW; Wed, 20 Apr 2016 17:56:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 28DE693168; Wed, 20 Apr 2016 17:56:43 +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 061611C0614 for ; Wed, 20 Apr 2016 17:56:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 027E5902D1 for ; Wed, 20 Apr 2016 17:56:42 +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 mkLVQVz3vJ3I for ; Wed, 20 Apr 2016 17:56:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 039BE90619 for ; Wed, 20 Apr 2016 17:56:41 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id n3so94660620wmn.0 for ; Wed, 20 Apr 2016 10:56: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=Uh2RI3l+x2IGu8gcYcn8o/qXc8yML18GJvN6Bvl+ubQ=; b=KgKcDExoLjosCFij8ajBWms0gCGLuswObi5p9/621O8XfqmXIcNv7+sE0gRcnHMTYD UqV8Bv2QBdlWTHXBfJMOAqmqaaHxvEPso7tyHkDYgrqwL8Y2z5HcSVG7u+5jkf1S4YNp Wlp6fIYA1oIuCLetgNY584snsWWr7+in6+LnJzm5zY0Z5O8XpVP2mcJ44poFYCre/0Yv QYwuZQ6cgrSauFkhzON7ydNmImHUSauMP3q5qNPQD7i5YZSN7yorq5fCO/6/ajp7OPAm xOGkrbljMttJBv74ZE1GR+ebBYRo8fjc0URRZAXeJduKl3Lw9k0EhHmu9Qf7V2q7jm6T DncA== 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=Uh2RI3l+x2IGu8gcYcn8o/qXc8yML18GJvN6Bvl+ubQ=; b=h2BXYZkTfqakLd8Ut/8KwhrwIK2aVMPV5pkVwOIiZaTOjFgSobstOe++tcH120absm ZYmAUkHJ/qWcSWOM9uXzrcqbMrzRS2NtoQI3tqOQZCye129nPe0Eaik3sjIvBspgfNYJ i1umZawaI7tm09+9hosqKSTn5FwgQ7rzX7rXWDAwh7jT2nMsCZn7AWBem7W2TbB7rK2H 4+9KJ9k8TITcIKPEqfNlSwihfyeT1RKccKKhgC6LRuInfTBG6OPpI1fbHBtJAQv4+N7u GnUUIkPPjXilUA5BQwjkxePK3iogrLFlMHZDI9RlaHIKP4MoQPQQe74D76HY2uD1fvyB ByKQ== X-Gm-Message-State: AOPr4FUTuIP1u9gKOPNUY+z7ThXBWxDh6Rgo2zgsa64qCmYWFc7Fzw11HKgBcfz/SMwFYQ== X-Received: by 10.194.86.129 with SMTP id p1mr5490419wjz.117.1461174999427; Wed, 20 Apr 2016 10:56:39 -0700 (PDT) Received: from localhost.localdomain (106.184.204.77.rev.sfr.net. [77.204.184.106]) by smtp.gmail.com with ESMTPSA id s10sm6794794wjp.3.2016.04.20.10.56.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Apr 2016 10:56:38 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Wed, 20 Apr 2016 19:55:58 +0200 Message-Id: <1461174958-14789-1-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 2.5.0 Subject: [Buildroot] [PATCH] 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-fix-Makefile.patch | 27 ++++++++++++++++ package/4th/4th.hash | 2 ++ package/4th/4th.mk | 64 +++++++++++++++++++++++++++++++++++++ package/4th/Config.in | 8 +++++ package/Config.in | 1 + 5 files changed, 102 insertions(+) create mode 100644 package/4th/0001-fix-Makefile.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-fix-Makefile.patch b/package/4th/0001-fix-Makefile.patch new file mode 100644 index 0000000..4acc6d3 --- /dev/null +++ b/package/4th/0001-fix-Makefile.patch @@ -0,0 +1,27 @@ +fix Makefile + +Signed-off-by: Francois Perrad + +diff --git a/sources/Makefile b/sources/Makefile +index e1b97a5..3a50d0f 100644 +--- a/sources/Makefile ++++ b/sources/Makefile +@@ -32,7 +32,6 @@ OBJ4TH = errs_4th.o save_4th.o load_4th.o free_4th.o comp_4th.o \ + name_4th.o dump_4th.o exec_4th.o open_4th.o cgen_4th.o \ + str2cell.o + +-.INTERMEDIATE: stage stage.c + + all: 4th 4tsh pp4th lib4th + +@@ -120,7 +119,7 @@ ifdef SHARED + 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..9d02b55 --- /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 = 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 64822bf..bd6b4b5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -474,6 +474,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