From patchwork Thu Apr 30 06:54:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1279964 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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 49CR2w0zxpz9sSd for ; Thu, 30 Apr 2020 16:55:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 93BDE86CFD; Thu, 30 Apr 2020 06:55:00 +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 FnkJi6Y8Bfop; Thu, 30 Apr 2020 06:54:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CC50186CDD; Thu, 30 Apr 2020 06:54:58 +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 7CAAF1BF46A for ; Thu, 30 Apr 2020 06:54:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7909F8859B for ; Thu, 30 Apr 2020 06:54:57 +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 XFLcqPwljTp8 for ; Thu, 30 Apr 2020 06:54:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id A680B88583 for ; Thu, 30 Apr 2020 06:54:54 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id x25so570782wmc.0 for ; Wed, 29 Apr 2020 23:54:54 -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:mime-version :content-transfer-encoding; bh=IY8jZiNtfcq1bSggN7LwSyUYr3hSUzzrlKltstnXdtc=; b=au20K0g+qNBjj2oz3t978D4a3EN+LuRHuZ3ZUqfGbkwXLUEmAU4aNqMxW2/DfGPzw2 qCf4qyv3y0RW/ZUf2/IzYvMxNbtOt2Tei0NQLAt6zCgrNUnuiObpxWemBfL3qNwaV0Go dTDHZM12ZllH8l9AbxBjMaTu5mJyeBEr9btxeSy+RDxIvXaV1nTW3IjvA1yLsDAzBYYX 61OX+Y74X+dqT1rQocxbyuoDymB6jn2z4hq31y7NitwMK1o8UoocfiHY3H+WJVIQYBpU gIZWIAG3CGZH07cVl1XxhyFhfHX+bgN2H5yX5tJA53KpBbwxVMC7tnL03TlXSFJ+ZFU3 vO+g== X-Gm-Message-State: AGi0PuZmaLRvGCCBmLOiR6VSgEnEjAfdo2pEYoJGyfzyOJxaPL6IEvBj 1O7qJ1S+jWFv14+3Bw4sCu5FOQhF X-Google-Smtp-Source: APiQypLr6vZskkeSieHpXVDuMiHAEikoFqRAthh5vDTQ5d9VZpdDT/fNz7ZyS1JLLMflb0ps/BrluA== X-Received: by 2002:a1c:44b:: with SMTP id 72mr1261622wme.58.1588229692705; Wed, 29 Apr 2020 23:54:52 -0700 (PDT) Received: from thl530.multi.box (p5791D954.dip0.t-ipconnect.de. [87.145.217.84]) by smtp.gmail.com with ESMTPSA id h2sm2721585wro.9.2020.04.29.23.54.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 23:54:52 -0700 (PDT) From: Thomas Huth To: buildroot@buildroot.org Date: Thu, 30 Apr 2020 08:54:45 +0200 Message-Id: <20200430065445.3482-1-huth@tuxfamily.org> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3] 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- v3: - Add entry to the DEVELOPERS file - Break some long lines into two DEVELOPERS | 1 + package/Config.in | 1 + package/xorcurses/Config.in | 11 +++++++++++ package/xorcurses/xorcurses.hash | 5 +++++ package/xorcurses/xorcurses.mk | 28 ++++++++++++++++++++++++++++ 5 files changed, 46 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/DEVELOPERS b/DEVELOPERS index cc72b288be..b9e405c2d4 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2488,6 +2488,7 @@ F: toolchain/ N: Thomas Huth F: package/ascii-invaders/ +F: package/xorcurses/ N: Thomas Petazzoni F: arch/Config.in.arm diff --git a/package/Config.in b/package/Config.in index 53c8ce0e29..ae193967f5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -273,6 +273,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..f0b1a7898c --- /dev/null +++ b/package/xorcurses/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_XORCURSES + bool "xorcurses" + select BR2_PACKAGE_NCURSES + help + XorCurses is a game remake of the 8-bit game 'Xor'. Your task + is to roam around a series of mazes where you have to collect + all blue masks before finding the exit. 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). + + http://jwm-art.net/?p=XorCurses diff --git a/package/xorcurses/xorcurses.hash b/package/xorcurses/xorcurses.hash new file mode 100644 index 0000000000..38c1c001c1 --- /dev/null +++ b/package/xorcurses/xorcurses.hash @@ -0,0 +1,5 @@ +# Locally calculated +sha512 1782ebf6ae8798b32e0a8e5e20e6d0b44eb619f6e7f015735c6e86205bd545da108c36bff1c9cfc9e9b44dee8f90bacb9df70436991f57f51c2c87e94b3a4725 XorCurses-0.2.2.tar.bz2 + +# License information is only mentioned in the README file +sha512 1878313f74d10e97aea8560ca9b28981b7ccf83ade81275eb982684cea006bc55776b6d029d1eca7a7ae20756aed0cfb4f63424634e0b5ad15d052dca3d2eee9 README diff --git a/package/xorcurses/xorcurses.mk b/package/xorcurses/xorcurses.mk new file mode 100644 index 0000000000..b6f4ce96f6 --- /dev/null +++ b/package/xorcurses/xorcurses.mk @@ -0,0 +1,28 @@ +################################################################################ +# +# XorCurses +# +################################################################################ + +XORCURSES_VERSION = 0.2.2 +XORCURSES_SOURCE = XorCurses-$(XORCURSES_VERSION).tar.bz2 +XORCURSES_SITE = http://www.jwm-art.net/art/archive +XORCURSES_DEPENDENCIES = ncurses +XORCURSES_LICENSE = GPL-3.0 +XORCURSES_LICENSE_FILES = README + +define XORCURSES_BUILD_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -std=gnu99 \ + -DDATADIR='\"/usr/share/xorcurses\"' \ + -DVERSION='\"$(XORCURSES_VERSION)\"'" +endef + +define XORCURSES_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/xorcurses $(TARGET_DIR)/usr/bin/xorcurses + mkdir -p $(TARGET_DIR)/usr/share/xorcurses/maps + $(INSTALL) -D -m 0644 $(@D)/maps/*.xcm \ + $(TARGET_DIR)/usr/share/xorcurses/maps/ +endef + +$(eval $(generic-package))