From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 04 09:39:46 2017 Received: (at submit) by debbugs.gnu.org; 4 Aug 2017 13:39:46 +0000 Received: from localhost ([127.0.0.1]:41065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddcpO-0000pU-0i for submit@debbugs.gnu.org; Fri, 04 Aug 2017 09:39:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddcpL-0000pI-RS for submit@debbugs.gnu.org; Fri, 04 Aug 2017 09:39:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddcnx-0007KB-Ti for submit@debbugs.gnu.org; Fri, 04 Aug 2017 09:39:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddcnx-0007Js-OA for submit@debbugs.gnu.org; Fri, 04 Aug 2017 09:38:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddckd-00005r-4c for guix-patches@gnu.org; Fri, 04 Aug 2017 09:38:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddcjW-0001Wm-2h for guix-patches@gnu.org; Fri, 04 Aug 2017 09:34:48 -0400 Received: from mail2.vany.ca ([142.54.190.254]:44419) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddcjV-0001Up-PG for guix-patches@gnu.org; Fri, 04 Aug 2017 09:33:41 -0400 Received: from adamvy-laptop (CPE00fc8d22dc03-CM00fc8d22dc00.cpe.net.cable.rogers.com [174.118.174.140]) by mail2.vany.ca (Postfix) with ESMTPSA id 954F4AC0032 for ; Fri, 4 Aug 2017 08:33:37 -0500 (CDT) From: Adam Van Ymeren To: guix-patches@gnu.org Subject: [PATCH] Add The Ur-Quan Masters Date: Fri, 04 Aug 2017 09:33:36 -0400 Message-ID: <877eyja24v.fsf@vany.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) This is my first package so obviously comments are welcome. This package only contains the engine. The data files are distributed as a few separate archives. According to their wiki the data files are available under a free(ish) license (CC BY-NC-SA 2.5). A few separate packages will have to be made for those I guess? I'm not sure how to include multiple source files in a single package, if this is even supported. UQM uses a pretty custom looking build system so I had to replace all phases of the build, but it appears to work now. After installation the games starts and the dies complaining about missing data files. --- gnu/packages/games.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2dec9a395..08f99cf61 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4579,3 +4579,56 @@ computer-hosted roleplaying games. This is the last version released by Crowther & Woods, its original authors, in 1995. It has been known as \"adventure 2.5\" and \"430-point adventure\".") (license license:bsd-2)))) + +(define-public uqm + (package + (name "uqm") + (version "0.7.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/sc2/UQM/0.7/" + name "-" version "-source.tgz")) + (sha256 + (base32 + "08dj7fsvflxx69an6vpf3wx050mk0ycmdv401yffrrqbgxgmqsd3")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'patch-source-shebangs 'patch-build-config + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "build/unix/build.config" + (("/usr/local/games") (assoc-ref outputs "out"))))) + (add-after 'set-paths 'set-sdl-paths + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CPATH" + (string-append (assoc-ref inputs "sdl-union") + "/include/SDL")))) + (replace 'configure + (lambda _ + (setenv "SH" (which "sh")) + (zero? (system* "sh" "build.sh" "uqm" "config")))) + (replace 'build + (lambda _ + (zero? (system* "sh" "build.sh" "uqm")))) + (replace 'install + (lambda _ + (zero? (system* "sh" "build.sh" "uqm" "install"))))))) + (inputs + `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer))) + ("glu" ,glu) + ("libvorbis" ,libvorbis) + ("libogg" ,libogg) + ("libmikmod" ,libmikmod))) + (native-inputs + `(("mesa" ,mesa) + ("pkg-config" ,pkg-config))) + (home-page "http://sc2.sourceforge.net/") + (synopsis "Port of Star Control II for modern systems") + (description + "The Ur-Quan Masters, sometimes referred to as UQM, is a port of Star +Control II for modern personal computers and operating systems from the +original 3DO source code released to the fan community by Toys For Bob in +August 2002.") + (license license:gpl2+))) -- 2.13.3