From patchwork Sat Feb 23 20:56:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1047437 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 446LBl4m6kz9s9y for ; Sun, 24 Feb 2019 07:57:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E2C0922730; Sat, 23 Feb 2019 20:57:49 +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 McdwPbnx9IX9; Sat, 23 Feb 2019 20:57:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 5D4EA2277A; Sat, 23 Feb 2019 20:57:41 +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 48BCC1BF2BF for ; Sat, 23 Feb 2019 20:57:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 461B086919 for ; Sat, 23 Feb 2019 20:57:39 +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 3DlWIbAf04Q3 for ; Sat, 23 Feb 2019 20:57:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1772F86837 for ; Sat, 23 Feb 2019 20:57:38 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id y15so4840278wma.0 for ; Sat, 23 Feb 2019 12:57:38 -0800 (PST) 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; bh=Ayc8y52lXFk9t17tv0oU9r/LC0U6E0o/ZGxZLvU5+kc=; b=I1kCAvzFAlyPFoFD2J+DQbs1iIOafQ6Yms1nk6oUPuPb5Q1KMpPt6RY1JBYTB8SNbn vC4zt75jYtsVq9jnfEZYoK4g/xGBhzdVwtPfRQqj64Xn6RLMjBicVdj/XuN/MBCFX3hV BZcA9grpnuSCSC6Sq8o0rNMYQa115B4VByajnVyeO3hIp1W0GUge3fx3YNGP6aSYdtuI ZHj/56ZShAdRK0Sh1Zfo9mZqg2nG4UfmpqLwt0F2MKgAlbtHdRmodjwismqVO7DJz3c9 oMONChbWeSVIGUMRPtBJbf9KNjsny2h6vIn0iGV3DR19+JrcY3d0JA6ALU1koy4WNcoh cccA== X-Gm-Message-State: AHQUAuaGmg4Bpd2UCBf8vXNI7z29xX+540sTiCRQQl2zneVHrrRlnwos tViTx0Ji8meTriTTAHXIHzqLQH1g X-Google-Smtp-Source: AHgI3Ibn3+/Nj4JmE/cYj15y9wRpxjShGPhgEbDEiwLPr/grUH9fvft/YXPxVdJf+T01UJ/ojXVQFg== X-Received: by 2002:a1c:b40b:: with SMTP id d11mr6637248wmf.80.1550955456216; Sat, 23 Feb 2019 12:57:36 -0800 (PST) Received: from thl530.multi.box (pD95750BD.dip0.t-ipconnect.de. [217.87.80.189]) by smtp.gmail.com with ESMTPSA id b18sm3215147wro.80.2019.02.23.12.57.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Feb 2019 12:57:35 -0800 (PST) From: Thomas Huth To: buildroot@buildroot.org Date: Sat, 23 Feb 2019 21:56:55 +0100 Message-Id: <20190223205657.18394-2-huth@tuxfamily.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190223205657.18394-1-huth@tuxfamily.org> References: <20190223205657.18394-1-huth@tuxfamily.org> Subject: [Buildroot] [PATCH 1/3] package/xorcurses: 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas Huth XorCurses is a remake of the 8-bit game 'Xor' by Astral Software. Your task is to roam around a series of mazes where you have to collect all blue masks before finding the exit. You have two 'shields' (players) and you can use either one at any time and switch between them. While the first level is simply a matter of navigation, the following levels introduce further objects like bombs and teleports, which have to be used right to solve the puzzles. Signed-off-by: Thomas Huth --- package/Config.in | 1 + package/xorcurses/Config.in | 13 +++++++++++++ package/xorcurses/xorcurses.hash | 2 ++ package/xorcurses/xorcurses.mk | 25 +++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 package/xorcurses/Config.in create mode 100644 package/xorcurses/xorcurses.hash create mode 100644 package/xorcurses/xorcurses.mk diff --git a/package/Config.in b/package/Config.in index cc232b9fba..490cbdb216 100644 --- a/package/Config.in +++ b/package/Config.in @@ -258,6 +258,7 @@ menu "Games" source "package/stella/Config.in" source "package/supertux/Config.in" source "package/supertuxkart/Config.in" + source "package/xorcurses/Config.in" endmenu menu "Graphic libraries and applications (graphic/text)" diff --git a/package/xorcurses/Config.in b/package/xorcurses/Config.in new file mode 100644 index 0000000000..0af161fec9 --- /dev/null +++ b/package/xorcurses/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_XORCURSES + bool "xorcurses" + select BR2_PACKAGE_NCURSES + help + XorCurses is a remake of the 8-bit game 'Xor' by Astral Software. + Your task is to roam around a series of mazes where you have to collect + all blue masks before finding the exit. You have two 'shields' (players) + and you can use either one at any time and switch between them. While + the first level is simply a matter of navigation, the following levels + introduce further objects like bombs and teleports, which have to be + used right to solve the puzzles. + Note that the game needs a terminal with colors, i.e. make sure that + the TERM environment variable is set to "linux" ("vt100" won't work). diff --git a/package/xorcurses/xorcurses.hash b/package/xorcurses/xorcurses.hash new file mode 100644 index 0000000000..49d3a0c3b9 --- /dev/null +++ b/package/xorcurses/xorcurses.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha512 1782ebf6ae8798b32e0a8e5e20e6d0b44eb619f6e7f015735c6e86205bd545da108c36bff1c9cfc9e9b44dee8f90bacb9df70436991f57f51c2c87e94b3a4725 XorCurses-0.2.2.tar.bz2 diff --git a/package/xorcurses/xorcurses.mk b/package/xorcurses/xorcurses.mk new file mode 100644 index 0000000000..4bc132c5e8 --- /dev/null +++ b/package/xorcurses/xorcurses.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# XorCurses +# +################################################################################ + +XORCURSES_VERSION = 0.2.2 +XORCURSES_LICENSE = GPL-3.0 +XORCURSES_SOURCE = XorCurses-$(XORCURSES_VERSION).tar.bz2 +XORCURSES_SITE = http://www.jwm-art.net/art/archive +XORCURSES_INSTALL_TARGET = YES +XORCURSES_DEPENDENCIES = ncurses + +define XORCURSES_BUILD_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="-O2 -DDATADIR='\"/usr/share/xorcurses\"' -DVERSION='\"$(XORCURSES_VERSION)\"'" +endef + +define XORCURSES_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/xorcurses $(TARGET_DIR)/usr/bin/ + mkdir -p $(TARGET_DIR)/usr/share/xorcurses/maps + $(INSTALL) -D -m 0755 $(@D)/maps/*.xcm $(TARGET_DIR)/usr/share/xorcurses/maps/ +endef + +$(eval $(generic-package)) From patchwork Sat Feb 23 20:56:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1047434 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.138; helo=whitealder.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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 446LBg4ry4z9sBR for ; Sun, 24 Feb 2019 07:57:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9CD0A86A72; Sat, 23 Feb 2019 20:57:44 +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 CnzlFhK6PnWr; Sat, 23 Feb 2019 20:57:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0C1E986919; Sat, 23 Feb 2019 20:57:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 91A481BF2BF for ; Sat, 23 Feb 2019 20:57:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8F60987009 for ; Sat, 23 Feb 2019 20:57:41 +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 1UX9e2k9zocT for ; Sat, 23 Feb 2019 20:57:39 +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 hemlock.osuosl.org (Postfix) with ESMTPS id 0194586FDD for ; Sat, 23 Feb 2019 20:57:38 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id w6so2632587wrs.4 for ; Sat, 23 Feb 2019 12:57:38 -0800 (PST) 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; bh=UfU6pZ+yYdR8MizTC82Rj8DSXjj9UtQUrTEQpCAvNFI=; b=rt5VoyuFwCL039i7cdGumvFr5GrbVZVq3oEipKwLyLPtph0+SQ4ta+/OKOClg9so5X Y81PwV6ekTiwutE2vghm11C0joulpEam/3bORVSlpX5K2i9SUmAfvs/XlWYkvAIGQ+cG t+hTrgxxNbaofitSrjJJbSMtriOyuFOKOfniQoM2BFAPF260fG7YnUUykeMwi0aYxN+0 xVOyh/o3h50INseP6F3M8na8LhqfJA/maP+iZYqTMF9t4MNdFkU7PljvbhGoRirSixBL 93pHJZ35Ln02dN+W6TgudE7+0AOm4WAz9xFjiViZwhS7GROJ5r2ZafdA1mQG10Duz4pO sbtQ== X-Gm-Message-State: AHQUAub6oElzq7OeCTClehhCTI/TOfUOPw2kggzoY0P07r8ncCl4kCX2 wKV/Sh7OB5MHZp6f2KPXgZNiHAtS X-Google-Smtp-Source: AHgI3IaLoyMbU4GMgKxFYNkfak1GO4zgQgC0D3j108xtBWjI+cHeKski207bRpaw+nQ9ZJlecxJL0A== X-Received: by 2002:adf:f00b:: with SMTP id j11mr7277015wro.57.1550955457196; Sat, 23 Feb 2019 12:57:37 -0800 (PST) Received: from thl530.multi.box (pD95750BD.dip0.t-ipconnect.de. [217.87.80.189]) by smtp.gmail.com with ESMTPSA id b18sm3215147wro.80.2019.02.23.12.57.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Feb 2019 12:57:36 -0800 (PST) From: Thomas Huth To: buildroot@buildroot.org Date: Sat, 23 Feb 2019 21:56:56 +0100 Message-Id: <20190223205657.18394-3-huth@tuxfamily.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190223205657.18394-1-huth@tuxfamily.org> References: <20190223205657.18394-1-huth@tuxfamily.org> Subject: [Buildroot] [PATCH 2/3] package/ascii-invaders: 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" An ASCII-art game like Space Invaders using ncurses. Signed-off-by: Thomas Huth --- package/Config.in | 1 + package/ascii-invaders/Config.in | 5 +++++ package/ascii-invaders/ascii-invaders.hash | 2 ++ package/ascii-invaders/ascii-invaders.mk | 23 ++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 package/ascii-invaders/Config.in create mode 100644 package/ascii-invaders/ascii-invaders.hash create mode 100644 package/ascii-invaders/ascii-invaders.mk diff --git a/package/Config.in b/package/Config.in index 490cbdb216..16789fcd7c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -239,6 +239,7 @@ comment "Themes" endmenu menu "Games" + source "package/ascii-invaders/Config.in" source "package/chocolate-doom/Config.in" source "package/doom-wad/Config.in" source "package/flare-engine/Config.in" diff --git a/package/ascii-invaders/Config.in b/package/ascii-invaders/Config.in new file mode 100644 index 0000000000..e68d48bed0 --- /dev/null +++ b/package/ascii-invaders/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_ASCII_INVADERS + bool "ascii_invaders" + select BR2_PACKAGE_NCURSES + help + An ASCII-art game like Space Invaders using ncurses. diff --git a/package/ascii-invaders/ascii-invaders.hash b/package/ascii-invaders/ascii-invaders.hash new file mode 100644 index 0000000000..6c98401c36 --- /dev/null +++ b/package/ascii-invaders/ascii-invaders.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha512 326708ffc2c277e04575920c58f6a267e0bf46f8d2a3dbca9b5c317fb01006d4f673ab35f92f292549cc52dbee4400a84c85478eb81b9bd7703689a705547bc7 v1.0.1.tar.gz diff --git a/package/ascii-invaders/ascii-invaders.mk b/package/ascii-invaders/ascii-invaders.mk new file mode 100644 index 0000000000..cb5aeaff27 --- /dev/null +++ b/package/ascii-invaders/ascii-invaders.mk @@ -0,0 +1,23 @@ +############################################################################## +# +# ASCII-Invaders +# +############################################################################## + +ASCII_INVADERS_VERSION = 1.0.1 +ASCII_INVADERS_SOURCE = v$(ASCII_INVADERS_VERSION).tar.gz +ASCII_INVADERS_SITE = https://github.com/macdice/ascii-invaders/archive +ASCII_INVADERS_INSTALL_TARGET = YES +ASCII_INVADERS_DEPENDENCIES = ncurses +ASCII_INVADERS_LICENSE = GPL-2.0+ +ASCII_INVADERS_LICENSE_FILES = LICENSE + +define ASCII_INVADERS_BUILD_CMDS + (cd $(@D) ; $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)) +endef + +define ASCII_INVADERS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/ascii_invaders $(TARGET_DIR)/usr/bin +endef + +$(eval $(generic-package)) From patchwork Sat Feb 23 20:56:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1047436 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.137; helo=fraxinus.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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 446LBg4v3fz9sBr for ; Sun, 24 Feb 2019 07:57:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C1EAA859E3; Sat, 23 Feb 2019 20:57:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HXbAJ-34ooEj; Sat, 23 Feb 2019 20:57:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D050A858C6; Sat, 23 Feb 2019 20:57: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 ECE5B1BF2BF for ; Sat, 23 Feb 2019 20:57:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EA86486919 for ; Sat, 23 Feb 2019 20:57: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 lZ-dn5yFUPYC for ; Sat, 23 Feb 2019 20:57:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id BF03E86837 for ; Sat, 23 Feb 2019 20:57:39 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id y15so4840314wma.0 for ; Sat, 23 Feb 2019 12:57:39 -0800 (PST) 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; bh=NBV7TPrN4kekobabAstGEGBhWLjkFQzSx8o83JpeqzE=; b=ep8i64e17/4clWaaHYoJKn0sjx2PpXvZbhXHWJNBQr/Mtqt4+t/+gmSbUDslGQtZCi 64xfRFM6C7c6otFjO0Nyyu+aR4bB9HO00jWQ479cXY7j/N/+eXDCzGwGC+JOtgQc6+hd BiPRjlgDSvzmXWnsAM71BvHyBlEDghXMk89JXFylX17BUuEEwP1tGzn28n0gY0OuDEN5 o6dGvXXPHJsdEa/7rgdUQ9DG2xlQsnOqAsjsiV7m5qteh2gzF+yDIGvVFEx7/EBdB18+ Jt9Ly9Q1C9qzJjqiK/HbO5ubRDsol6ZBZKVR0nsfLaIzjHWJ/mHL9T7+503N1pVT/tOB HK2w== X-Gm-Message-State: AHQUAuYV+4Te09fefVorMVhvT1BUQb7ORLY8/JGsnra5gU4rFpV6pd5L arvYi0BcDwJFRaftQVql19yzTOEz X-Google-Smtp-Source: AHgI3IYfFZ2I6NWrKbx6vs79V/KegI3d8cdHSiwU1g90/xZe9t93EKxhy6P8zCBLTM5hgx/6NNwFlw== X-Received: by 2002:a1c:e489:: with SMTP id b131mr6240436wmh.130.1550955457981; Sat, 23 Feb 2019 12:57:37 -0800 (PST) Received: from thl530.multi.box (pD95750BD.dip0.t-ipconnect.de. [217.87.80.189]) by smtp.gmail.com with ESMTPSA id b18sm3215147wro.80.2019.02.23.12.57.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Feb 2019 12:57:37 -0800 (PST) From: Thomas Huth To: buildroot@buildroot.org Date: Sat, 23 Feb 2019 21:56:57 +0100 Message-Id: <20190223205657.18394-4-huth@tuxfamily.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190223205657.18394-1-huth@tuxfamily.org> References: <20190223205657.18394-1-huth@tuxfamily.org> Subject: [Buildroot] [PATCH 3/3] 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: , MIME-Version: 1.0 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 --- package/Config.in | 1 + package/frotz/Config.in | 7 +++++++ package/frotz/frotz.hash | 2 ++ package/frotz/frotz.mk | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 42 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/package/Config.in b/package/Config.in index 16789fcd7c..d6f7ba0d75 100644 --- a/package/Config.in +++ b/package/Config.in @@ -244,6 +244,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..4b3039613f --- /dev/null +++ b/package/frotz/Config.in @@ -0,0 +1,7 @@ +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. diff --git a/package/frotz/frotz.hash b/package/frotz/frotz.hash new file mode 100644 index 0000000000..b441bffc31 --- /dev/null +++ b/package/frotz/frotz.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha512 c3aeb1bca227db7b759be880c1fe14e3d46c79eae3f2891d2472ff1e1b17b2153b2e400d537d54dce68011079e230fe8176ebb7547b2ecbc30e44f2b7423c285 frotz-2.44.tar.bz2 diff --git a/package/frotz/frotz.mk b/package/frotz/frotz.mk new file mode 100644 index 0000000000..7f31e7d89b --- /dev/null +++ b/package/frotz/frotz.mk @@ -0,0 +1,32 @@ +############################################################################## +# +# Frotz - the Z-code interpreter +# +############################################################################## + +FROTZ_VERSION = 2.44 +FROTZ_SOURCE = frotz-$(FROTZ_VERSION).tar.bz2 +FROTZ_SITE = https://gitlab.com/DavidGriffith/frotz/-/archive/$(FROTZ_VERSION) +FROTZ_INSTALL_TARGET = YES +FROTZ_DEPENDENCIES = ncurses +FROTZ_LICENSE = GPL-2.0+ +FROTZ_LICENSE_FILES = COPYING + +define FROTZ_POST_EXTRACT_FIXUP + (cd $(@D); \ + 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 + $(INSTALL) -D -m 0644 $(@D)/doc/frotz.6 $(TARGET_DIR)/usr/man/man6 +endef + +$(eval $(generic-package))