From patchwork Tue Mar 19 19:57:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kei Kebreau X-Patchwork-Id: 1501 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B876C16D46; Tue, 19 Mar 2019 20:14:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id DE4D216CB9 for ; Tue, 19 Mar 2019 20:14:19 +0000 (GMT) Received: from localhost ([127.0.0.1]:34494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6L7p-0005n5-0a for patchwork@mira.cbaines.net; Tue, 19 Mar 2019 16:14:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6L7k-0005i1-7k for guix-patches@gnu.org; Tue, 19 Mar 2019 16:14:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6L7h-0001qe-Rw for guix-patches@gnu.org; Tue, 19 Mar 2019 16:14:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37359) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6L7a-0001XG-AD for guix-patches@gnu.org; Tue, 19 Mar 2019 16:14:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h6L7a-00021z-2u for guix-patches@gnu.org; Tue, 19 Mar 2019 16:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#34921] [PATCH] gnu: Add adanaxis-mush and adanaxisgpl. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Mar 2019 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34921 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34921@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15530263897732 (code B ref -1); Tue, 19 Mar 2019 20:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2019 20:13:09 +0000 Received: from localhost ([127.0.0.1]:50903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6L6i-00020d-NV for submit@debbugs.gnu.org; Tue, 19 Mar 2019 16:13:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6L6f-0001zj-Mv for submit@debbugs.gnu.org; Tue, 19 Mar 2019 16:13:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:52789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h6L6W-00083p-6R for submit@debbugs.gnu.org; Tue, 19 Mar 2019 16:12:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6L6U-0004ef-NC for guix-patches@gnu.org; Tue, 19 Mar 2019 16:12:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6Kro-0000nx-3U for guix-patches@gnu.org; Tue, 19 Mar 2019 15:57:45 -0400 Received: from mout01.posteo.de ([185.67.36.65]:45191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h6Krm-0000k5-V3 for guix-patches@gnu.org; Tue, 19 Mar 2019 15:57:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 36C0516005F for ; Tue, 19 Mar 2019 20:57:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1553025459; bh=pnRNQs2J/VpX2ykyFCxHc/IgrixGmn9N24fW+HAvjqM=; h=From:To:Cc:Subject:Date:From; b=EzM4P57oyvN9ROrhj6MiMVayugsUEMwlwMP8BkiPAXyP7y3yyHUFiHzQs1rHbJZWZ 0MG1eH2p+0KQlSJNmC31FLE3hQ393KAjM4jJIbNDqN7ZH2RAEG+XZnFKCaqfT6e4tj vY16Gw3Cc/h4aK3o5j4l2GcmHaUt5wD7zFy+lz71L4Bv9X9bcNDWReryFAVO5mtSSb RP/Sh0Un6nrWGQDTWAL8MbvfC1c1/yNeeVcJad7Gf3VPooaaj0oibWFfGPOE25bd8Q 4crAiZdAgQzVV2TpHKYZ7sPTGm59B/CW/KxtmrJ49hxRHbIaB9JmIEwE2I8HcspURW wlx1HSz+Tw6KA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44P3k94hRXz6tmL; Tue, 19 Mar 2019 20:57:37 +0100 (CET) From: Kei Kebreau Date: Tue, 19 Mar 2019 15:57:34 -0400 Message-Id: <20190319195734.2680-1-kkebreau@posteo.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kei Kebreau Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/games.scm (adanaxis-mush, adanaxisgpl): New variables. --- gnu/packages/games.scm | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 56dc96de8f..67be6b9472 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -165,6 +165,80 @@ #:use-module ((srfi srfi-1) #:hide (zip)) #:use-module (srfi srfi-26)) +;; Data package for adanaxisgpl. +(define adanaxis-mush + (let ((name "adanaxis-mush") + (version "1.1.0")) + (origin + (method url-fetch) + (uri (string-append "http://www.mushware.com/files/" + name "-" version ".tar.gz")) + (sha256 + (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03"))))) + +(define-public adanaxisgpl + (package + (name "adanaxisgpl") + (version "1.2.5") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.mushware.com/files/" + name "-" version ".tar.gz")) + (sha256 + (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Necessary for building with gcc >=4.7. + (substitute* "src/Mushcore/MushcoreSingleton.h" + (("SingletonPtrSet\\(new SingletonType\\);") + "MushcoreSingleton::SingletonPtrSet(new SingletonType);")) + ;; Avoid an "invalid conversion from const char* to char*" error. + (substitute* "src/Platform/X11/PlatformMiscUtils.cpp" + (("char \\*end, \\*result;") + (string-append "const char *end;" + "\n" + "char *result;"))))))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no check target + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-data + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((data (assoc-ref inputs "adanaxis-mush")) + (share (string-append (assoc-ref outputs "out") + "/share/" ,name "-" ,version))) + (mkdir-p share) + (invoke "tar" "xvf" data "-C" share))))))) + (native-inputs + `(("adanaxis-mush" ,adanaxis-mush))) ; game data + (inputs + `(("expat" ,expat) + ("freeglut" ,freeglut) + ("glu" ,glu) + ("libjpeg" ,libjpeg) + ("libogg" ,libogg) + ("libtiff" ,libtiff) + ("libvorbis" ,libvorbis) + ("libx11" ,libx11) + ("libxext" ,libxext) + ("pcre" ,pcre) + ("sdl" ,sdl) + ("sdl-mixer" ,sdl-mixer))) + (home-page "https://www.mushware.com") + (synopsis "Action game in four spatial dimensions") + (description + "Adanaxis is a fast-moving first person shooter set in deep space, where +the fundamentals of space itself are changed. By adding another dimension to +space this game provides an environment with movement in four directions and +six planes of rotation. Initially the game explains the 4D control system via +a graphical sequence, before moving on to 30 levels of gameplay with numerous +enemy, ally, weapon and mission types. Features include simulated 4D texturing, +mouse and joystick control, and original music.") + (license license:gpl2))) + (define-public armagetronad (package (name "armagetronad")