From patchwork Thu Sep 12 18:40:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1161732 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=tuxfamily.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46TndZ2nXlz9sNw for ; Fri, 13 Sep 2019 04:40:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3506F203D1; Thu, 12 Sep 2019 18:40:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WbNgW6gbh6wH; Thu, 12 Sep 2019 18:40:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 06892203C4; Thu, 12 Sep 2019 18:40:26 +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 652291BF328 for ; Thu, 12 Sep 2019 18:40:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 60C4F875A9 for ; Thu, 12 Sep 2019 18:40:23 +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 ptH7v1wpI6Ql for ; Thu, 12 Sep 2019 18:40:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2EF8E82752 for ; Thu, 12 Sep 2019 18:40:22 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id l3so6806160wru.7 for ; Thu, 12 Sep 2019 11:40:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wr9MeeERGiRGVMSLnW5fYiQhdyJV03wsG6Uhn/Yz+H4=; b=lKlCYFwaoNXtY8Phktj5Dp3mLGJa2jRhYdtlG5sSan8p3rswUDYEfnp5sWBwXhy4A/ itW96j0C6hr7/9rKgcf7p0kHOwV+NOuUmvTQrlnPlGdATSnQRIgOPHEjS6IvmkxYtI8m 4ssTjkvUMkvrkXrSRnJtsYZX1z7CuM5fE9nTn1BVho2sgGTut654ojgL/6YSJuLposXI I2NEGyQUQWyLoQVwKy7DfBuQZ/1859ZKQ6Yw5WvZmhOLiuYTzU+IrAgw5joEJ4e5ut40 WP/YRAPvafGeZHAP6XN6sWVnq0Hg07OMnaNzRtk+K0zfLg+UMGBFzpkiBvqoKwYt/kOj GTLg== X-Gm-Message-State: APjAAAVVLGD/e0VbkOza5C8nlDq0UaOO1m9AlJhszKgF+GkVNEF+/e44 IgYygby1fTbPomhWtT/Xmp4YQbV7 X-Google-Smtp-Source: APXvYqwwr3F+B4JMe8PyGzzaL82pupfu1WlEB50yYMOlCLf0KbCCkGhqSHDvKx+O4WVFrfIDfnk8ZQ== X-Received: by 2002:adf:8b13:: with SMTP id n19mr17345270wra.203.1568313620352; Thu, 12 Sep 2019 11:40:20 -0700 (PDT) Received: from thl530.multi.box (pD9E83780.dip0.t-ipconnect.de. [217.232.55.128]) by smtp.gmail.com with ESMTPSA id z142sm46939wmc.24.2019.09.12.11.40.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2019 11:40:20 -0700 (PDT) From: Thomas Huth To: buildroot@buildroot.org Date: Thu, 12 Sep 2019 20:40:12 +0200 Message-Id: <20190912184013.17316-2-huth@tuxfamily.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190912184013.17316-1-huth@tuxfamily.org> References: <20190912184013.17316-1-huth@tuxfamily.org> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/2] package/frotz: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Frotz is an interpreter for old Infocom adventures and other Z-code games. Signed-off-by: Thomas Huth --- DEVELOPERS | 1 + package/Config.in | 1 + package/frotz/Config.in | 10 ++++++++++ package/frotz/frotz.hash | 5 +++++ package/frotz/frotz.mk | 29 +++++++++++++++++++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 package/frotz/Config.in create mode 100644 package/frotz/frotz.hash create mode 100644 package/frotz/frotz.mk diff --git a/DEVELOPERS b/DEVELOPERS index 7604cfe2b7..c8805fef7b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2229,6 +2229,7 @@ F: toolchain/ N: Thomas Huth F: package/ascii-invaders/ +F: package/frotz/ N: Thomas Petazzoni F: arch/Config.in.arm diff --git a/package/Config.in b/package/Config.in index 7d915ea4d7..92ec3ca66e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -252,6 +252,7 @@ menu "Games" source "package/doom-wad/Config.in" source "package/flare-engine/Config.in" source "package/flare-game/Config.in" + source "package/frotz/Config.in" source "package/gnuchess/Config.in" source "package/lbreakout2/Config.in" source "package/ltris/Config.in" diff --git a/package/frotz/Config.in b/package/frotz/Config.in new file mode 100644 index 0000000000..59b6d0007d --- /dev/null +++ b/package/frotz/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_FROTZ + bool "frotz" + select BR2_PACKAGE_NCURSES + help + Frotz is an interpreter for old Infocom adventure games and + other Z-code games. Note that frotz can not be run as root. + You must add a normal user to your buildroot configuration to + be able to use it. + + https://661.org/proj/if/frotz/ diff --git a/package/frotz/frotz.hash b/package/frotz/frotz.hash new file mode 100644 index 0000000000..8bb15eab03 --- /dev/null +++ b/package/frotz/frotz.hash @@ -0,0 +1,5 @@ +# Locally calculated +sha512 c3aeb1bca227db7b759be880c1fe14e3d46c79eae3f2891d2472ff1e1b17b2153b2e400d537d54dce68011079e230fe8176ebb7547b2ecbc30e44f2b7423c285 frotz-2.44.tar.bz2 + +# Hash for license file +sha512 aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957 COPYING diff --git a/package/frotz/frotz.mk b/package/frotz/frotz.mk new file mode 100644 index 0000000000..97e2eaf21f --- /dev/null +++ b/package/frotz/frotz.mk @@ -0,0 +1,29 @@ +################################################################################ +# +# Frotz +# +################################################################################ + +FROTZ_VERSION = 2.44 +FROTZ_SOURCE = frotz-$(FROTZ_VERSION).tar.bz2 +FROTZ_SITE = https://gitlab.com/DavidGriffith/frotz/-/archive/$(FROTZ_VERSION) +FROTZ_DEPENDENCIES = ncurses +FROTZ_LICENSE = GPL-2.0+ +FROTZ_LICENSE_FILES = COPYING + +define FROTZ_POST_EXTRACT_FIXUP + ( sed -i 's/$ ar rc/ \$$\(AR\) rc/g' $(@D)/Makefile ; \ + sed -i 's/$ ranlib/ \$$\(RANLIB\)/g' $(@D)/Makefile ; \ + sed -i 's/$ strip/ \$$\(STRIP\)/g' $(@D)/Makefile ) +endef +FROTZ_POST_EXTRACT_HOOKS += FROTZ_POST_EXTRACT_FIXUP + +define FROTZ_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr CONFIG_DIR=/etc -C $(@D) +endef + +define FROTZ_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/frotz $(TARGET_DIR)/usr/bin/frotz +endef + +$(eval $(generic-package))