1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2015, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
18 ;;; Copyright © 2016 Rodger Fox <thylakoid@openmailbox.org>
19 ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
20 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
21 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
22 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
23 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
24 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
25 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
26 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages games)
44 #:use-module (ice-9 match)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix svn-download)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages algebra)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages backup)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages audio)
58 #:use-module (gnu packages avahi)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages fltk)
61 #:use-module (gnu packages fribidi)
62 #:use-module (gnu packages game-development)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages ghostscript)
65 #:use-module (gnu packages gl)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages gnome)
68 #:use-module (gnu packages gperf)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages guile)
71 #:use-module (gnu packages libcanberra)
72 #:use-module (gnu packages libunwind)
73 #:use-module (gnu packages haskell)
74 #:use-module (gnu packages mp3)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages netpbm)
79 #:use-module (gnu packages ocaml)
80 #:use-module (gnu packages python)
81 #:use-module (gnu packages readline)
82 #:use-module (gnu packages xorg)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages databases)
85 #:use-module (gnu packages sdl)
86 #:use-module (gnu packages texinfo)
87 #:use-module (gnu packages check)
88 #:use-module (gnu packages fonts)
89 #:use-module (gnu packages fontutils)
90 #:use-module (gnu packages gstreamer)
91 #:use-module (gnu packages bash)
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages pulseaudio)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages zip)
98 #:use-module (gnu packages xiph)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages lua)
101 #:use-module (gnu packages video)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages tcl)
104 #:use-module (gnu packages xdisorg)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages pcre)
107 #:use-module (guix build-system gnu)
108 #:use-module (guix build-system haskell)
109 #:use-module (guix build-system python)
110 #:use-module (guix build-system cmake)
111 #:use-module (guix build-system trivial))
120 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
121 version ".000-sources." "tar.gz"))
124 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
125 (build-system gnu-build-system)
126 (inputs `(("glib" ,glib)
127 ("readline" ,readline)
131 ("gtkglext" ,gtkglext)
133 ("libcanberra" ,libcanberra)))
134 (native-inputs `(("python-2" ,python-2)
135 ("pkg-config" ,pkg-config)))
136 (home-page "http://gnubg.org")
137 (synopsis "Backgammon game")
138 (description "The GNU backgammon application can be used for playing, analyzing and
139 teaching the game. It has an advanced evaluation engine based on artificial
140 neural networks suitable for both beginners and advanced players. In
141 addition to a command-line interface, it also features an attractive, 3D
142 representation of the playing board.")
143 (license license:gpl3+)))
145 (define-public gnubik
152 (uri (string-append "mirror://gnu/gnubik/gnubik-"
156 "0mhpfnxzbns0wfrsjv5vafqr34770rbvkmdzxk0x0aq67hb3zyl5"))))
157 (build-system gnu-build-system)
158 (inputs `(("gtk+" ,gtk+-2)
163 ("gtkglext" ,gtkglext)))
164 (native-inputs `(("gettext" ,gnu-gettext)
165 ("pkg-config" ,pkg-config)))
166 (home-page "https://www.gnu.org/software/gnubik/")
167 (synopsis "3d Rubik's cube game")
169 "GNUbik is a puzzle game in which you must manipulate a cube to make
170 each of its faces have a uniform color. The game is customizable, allowing
171 you to set the size of the cube (the default is 3x3) or to change the colors.
172 You may even apply photos to the faces instead of colors. The game is
173 scriptable with Guile.")
174 (license license:gpl3+)))
176 (define-public abbaye
183 (uri (string-append "https://storage.googleapis.com/"
184 "google-code-archive-downloads/v2/code.google.com/"
185 "abbaye-for-linux/abbaye-for-linux-src-"
189 "1wgvckgqa2084rbskxif58wbb83xbas8s1i8s7d57xbj08ryq8rk"))))
190 (build-system gnu-build-system)
192 '(#:modules ((ice-9 match)
193 (guix build gnu-build-system)
195 #:phases (modify-phases %standard-phases
196 (add-after 'set-paths 'set-sdl-paths
197 (lambda* (#:key inputs #:allow-other-keys)
199 (string-append (assoc-ref inputs "sdl-union")
201 (add-after 'patch-source-shebangs 'patch-makefile
202 (lambda* (#:key outputs #:allow-other-keys)
203 ;; Replace /usr with package output directory.
204 (for-each (lambda (file)
206 (("/usr") (assoc-ref outputs "out"))))
207 '("makefile" "src/pantallas.c" "src/comun.h"))))
208 (add-before 'install 'make-install-dirs
209 (lambda* (#:key outputs #:allow-other-keys)
210 (let ((prefix (assoc-ref outputs "out")))
211 ;; Create directories that the makefile assumes exist.
212 (mkdir-p (string-append prefix "/bin"))
213 (mkdir-p (string-append prefix "/share/applications"))
214 (mkdir-p (string-append prefix "/share/pixmaps")))))
215 ;; No configure script.
217 #:tests? #f)) ;; No check target.
218 (native-inputs `(("pkg-config" ,pkg-config)))
219 (inputs `(("sdl-union" ,(sdl-union))))
220 (home-page "http://code.google.com/p/abbaye-for-linux/")
221 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
222 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
223 France. The Cathars, who preach about good Christian beliefs, were being
224 expelled by the Catholic Church out of the Languedoc region in France. One of
225 them, called Jean Raymond, found an old church in which to hide, not knowing
226 that beneath its ruins lay buried an ancient evil.")
227 (license license:gpl3+)))
229 (define-public pingus
236 (uri (string-append "http://pingus.googlecode.com/files/pingus-"
240 "0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"))
241 (patches (search-patches "pingus-sdl-libs-config.patch"))))
242 (build-system gnu-build-system)
243 (native-inputs `(("pkg-config" ,pkg-config)
245 (inputs `(("sdl" ,sdl)
246 ("sdl-image" ,sdl-image)
247 ("sdl-mixer" ,sdl-mixer)
253 '(#:tests? #f ;no check target
259 (lambda* (#:key outputs #:allow-other-keys)
260 (zero? (system* "make" "install"
261 (string-append "PREFIX="
262 (assoc-ref outputs "out")))))
264 (home-page "http://pingus.seul.org/welcome.html")
265 (synopsis "Lemmings clone")
267 "Pingus is a free Lemmings-like puzzle game in which the player takes
268 command of a bunch of small animals and has to guide them through levels.
269 Since the animals walk on their own, the player can only influence them by
270 giving them commands, like build a bridge, dig a hole, or redirect all animals
271 in the other direction. Multiple such commands are necessary to reach the
272 level's exit. The game is presented in a 2D side view.")
273 ;; Some source files are under bsd-3 and gpl2+ licenses.
274 (license license:gpl3+)))
276 (define-public talkfilters
283 (uri (string-append "http://www.hyperrealm.com/" name "/"
284 name "-" version ".tar.gz"))
286 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
287 (build-system gnu-build-system)
288 (home-page "http://www.gnu.org/software/talkfilters")
289 (synopsis "Convert English text to humorous dialects")
290 (description "The GNU Talk Filters are programs that convert English text
291 into stereotyped or otherwise humorous dialects. The filters are provided as
292 a C library, so they can easily be integrated into other programs.")
293 (license license:gpl2+)))
295 (define-public cmatrix
302 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
306 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
307 (build-system gnu-build-system)
310 (alist-replace 'configure
311 (lambda* (#:key outputs #:allow-other-keys)
312 ;; This old `configure' script doesn't support
313 ;; variables passed as arguments.
314 (let ((out (assoc-ref outputs "out")))
315 (setenv "CONFIG_SHELL" (which "bash"))
317 (system* "./configure"
318 (string-append "--prefix=" out)))))
320 (inputs `(("ncurses" ,ncurses)))
321 (home-page "http://www.asty.org/cmatrix")
322 (synopsis "Simulate the display from \"The Matrix\"")
323 (description "CMatrix simulates the display from \"The Matrix\" and is
324 based on the screensaver from the movie's website. It works with terminal
325 settings up to 132x300 and can scroll lines all at the same rate or
326 asynchronously and at a user-defined speed.")
327 (license license:gpl2+)))
336 (uri (string-append "mirror://gnu/chess/gnuchess-" version
340 "10hvnfhj9bkpz80x20jgxyqvgvrcgfdp8sfcbcrf1dgjn9v936bq"))))
341 (build-system gnu-build-system)
342 (home-page "http://www.gnu.org/software/chess")
343 (synopsis "Full chess implementation")
344 (description "GNU Chess is a chess engine. It allows you to compete
345 against the computer in a game of chess, either through the default terminal
346 interface or via an external visual interface such as GNU XBoard.")
347 (license license:gpl3+)))
349 (define freedink-engine
351 (name "freedink-engine")
355 (uri (string-append "mirror://gnu/freedink/freedink-" version
359 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
360 (build-system gnu-build-system)
361 (arguments `(#:configure-flags '("--disable-embedded-resources")))
362 (native-inputs `(("gettext" ,gnu-gettext)
363 ("pkg-config" ,pkg-config)))
364 (inputs `(("sdl" ,sdl)
365 ("sdl-image" ,sdl-image)
366 ("sdl-mixer" ,sdl-mixer)
369 ("fontconfig" ,fontconfig)
371 (home-page "http://www.gnu.org/software/freedink/")
372 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
374 "GNU FreeDink is a free and portable re-implementation of the engine
375 for the role-playing game Dink Smallwood. It supports not only the original
376 game data files but it also supports user-produced game mods or \"D-Mods\".
377 To that extent, it also includes a front-end for managing all of your D-Mods.")
378 (license license:gpl3+)))
380 (define freedink-data
382 (name "freedink-data")
383 (version "1.08.20140901")
386 (uri (string-append "mirror://gnu/freedink/freedink-data-"
390 "04f1aa8gfz30qkgv7chjz5n1s8v5hbqs01h2113cq1ylm3isd5sp"))))
391 (build-system gnu-build-system)
393 `(#:phases (alist-delete 'configure (alist-delete 'check %standard-phases))
394 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
395 (home-page "http://www.gnu.org/software/freedink/")
396 (synopsis "Game data for GNU Freedink")
398 "This package contains the game data of GNU Freedink.")
399 (license license:gpl3+)))
401 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
403 (define-public freedink
404 ;; This is a wrapper that tells the engine where to find the data.
405 (package (inherit freedink-engine)
407 (build-system trivial-build-system)
410 (use-modules (guix build utils))
412 (let* ((output (assoc-ref %outputs "out"))
413 (bin (string-append output "/bin"))
414 (executable (string-append bin "/freedink")))
416 (call-with-output-file executable
418 (format port "#!~a/bin/sh
419 exec ~a/bin/freedink -refdir ~a/share/dink\n"
420 (assoc-ref %build-inputs "bash")
421 (assoc-ref %build-inputs "engine")
422 (assoc-ref %build-inputs "data"))
423 (chmod port #o777)))))
424 #:modules ((guix build utils))))
425 (inputs `(("engine" ,freedink-engine)
426 ("data" ,freedink-data)
428 (native-inputs '())))
430 (define-public xboard
437 (uri (string-append "mirror://gnu/xboard/xboard-" version
441 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
442 (build-system gnu-build-system)
445 ("librsvg" ,librsvg)))
447 `(("texinfo" ,texinfo)
448 ("pkg-config" ,pkg-config)))
449 (home-page "https://www.gnu.org/software/xboard")
450 (synopsis "Graphical user interface for chess programs")
451 (description "GNU XBoard is a graphical board for all varieties of chess,
452 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
453 and Makruk. Several lesser-known variants are also supported. It presents a
454 fully interactive graphical interface and it can load and save games in the
455 Portable Game Notation.")
456 (license license:gpl3+)))
459 (define-public xboing
466 (uri (string-append "http://www.techrescue.org/xboing/xboing"
469 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
475 (lambda* (#:key outputs #:allow-other-keys)
477 (substitute* "Imakefile"
478 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
479 (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
482 (substitute* "Imakefile"
483 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
485 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
487 (zero? (system* "xmkmf" "-a"
488 (string-append "-DProjectRoot="
489 (assoc-ref outputs "out")))))
490 (alist-replace 'install
491 (lambda* (#:key outputs #:allow-other-keys)
493 (zero? (system* "make" "install.man"))
494 (zero? (system* "make" "install"))))
496 (inputs `(("libx11" ,libx11)
499 (native-inputs `(("imake" ,imake)
500 ("inetutils" ,inetutils)
501 ("makedepend" ,makedepend)))
502 (build-system gnu-build-system)
503 (home-page "http://www.techrescue.org/xboing")
504 (synopsis "Ball and paddle game")
505 (description "XBoing is a blockout type game where you have a paddle which
506 you control to bounce a ball around the game zone destroying blocks with a
507 proton ball. Each block carries a different point value. The more blocks you
508 destroy, the better your score. The person with the highest score wins.")
509 (license (license:x11-style "file://COPYING"
510 "Very similar to the X11 licence."))))
512 (define-public gtypist
518 (uri (string-append "mirror://gnu/gtypist/gtypist-"
522 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
523 (modules '((guix build utils)))
525 ;; We do not provide `ncurses.h' within an `ncursesw'
526 ;; sub-directory, so patch the source accordingly. See
527 ;; <http://bugs.gnu.org/19018>.
528 '(for-each (lambda (file)
530 (("ncursesw/ncurses.h")
532 (find-files "." "configure$|\\.c$")))))
533 (build-system gnu-build-system)
534 (inputs `(("ncurses" ,ncurses)
536 (home-page "http://www.gnu.org/software/gtypist/")
537 (synopsis "Typing tutor")
539 "GNU Typist is a universal typing tutor. It can be used to learn and
540 practice touch-typing. Several tutorials are included; in addition to
541 tutorials for the standard QWERTY layout, there are also tutorials for the
542 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
543 are primarily in English, however some in other languages are provided.")
544 (license license:gpl3+)))
546 (define-public irrlicht
553 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
554 (version-major+minor version)
555 "/" version "/irrlicht-" version ".zip"))
558 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
559 (build-system gnu-build-system)
561 `(#:phases (alist-cons-after
562 'unpack 'fix-build-env
563 (lambda* (#:key outputs #:allow-other-keys)
564 (let ((out (assoc-ref outputs "out")))
565 (substitute* "Makefile"
566 (("INSTALL_DIR = /usr/local/lib")
567 (string-append "INSTALL_DIR = " out "/lib")))
568 ;; The Makefile assumes these directories exist.
569 (mkdir-p (string-append out "/lib"))
570 (mkdir-p (string-append out "/include"))))
573 (lambda* (#:key source #:allow-other-keys)
574 (and (zero? (system* "unzip" source))
575 ;; The actual source is buried a few directories deep.
576 (chdir (string-append "irrlicht-" ,version "/source/Irrlicht/"))))
577 ;; No configure script
578 (alist-delete 'configure %standard-phases)))
579 #:tests? #f ; no check target
580 #:make-flags '("CC=gcc" "sharedlib")))
586 (synopsis "3D game engine written in C++")
588 "The Irrlicht Engine is a high performance realtime 3D engine written in
589 C++. Features include an OpenGL renderer, extensible materials, scene graph
590 management, character animation, particle and other special effects, support
591 for common mesh file formats, and collision detection.")
592 (home-page "http://irrlicht.sourceforge.net/")
593 (license license:zlib)))
596 ;; The latest release on SourceForge relies on an unreleased version of SFML
597 ;; with a different API, so we take the latest version from the official
598 ;; repository on Github.
599 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
603 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
607 (url "https://github.com/thelaui/M.A.R.S..git")
609 (file-name (string-append name "-" version))
612 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
613 (patches (search-patches "mars-sfml-2.3.patch"
614 "mars-install.patch"))))
615 (build-system cmake-build-system)
617 `(#:tests? #f ; There are no tests
619 (modify-phases %standard-phases
620 (add-after 'unpack 'fix-install-path
622 (substitute* "src/CMakeLists.txt"
623 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
624 "${CMAKE_INSTALL_PREFIX}/bin"))
626 (add-after 'unpack 'fix-data-path
627 (lambda* (#:key outputs #:allow-other-keys)
628 (substitute* "src/System/settings.cpp"
629 (("C_dataPath = \"./data/\";")
630 (string-append "C_dataPath = \""
631 (assoc-ref outputs "out")
632 "/share/games/marsshooter/\";")))
639 (home-page "http://marsshooter.org")
640 (synopsis "2D space shooter")
642 "M.A.R.S. is a 2D space shooter with pretty visual effects and
643 attractive physics. Players can battle each other or computer controlled
644 enemies in different game modes such as space ball, death match, team death
645 match, cannon keep, and grave-itation pit.")
646 (license license:gpl3+))))
648 (define minetest-data
650 (name "minetest-data")
655 "https://github.com/minetest/minetest_game/archive/"
657 (file-name (string-append name "-" version ".tar.gz"))
660 "11fzdh4icx2yvjfz1skdql0d0wxpzdr006k993v33x72s0q2ig7f"))))
661 (build-system trivial-build-system)
665 ("gzip" ,(@ (gnu packages compression) gzip))))
667 `(#:modules ((guix build utils))
669 (use-modules (guix build utils))
670 (let ((tar (string-append (assoc-ref %build-inputs "tar")
672 (install-dir (string-append
674 "/share/minetest/games/minetest_game"))
675 (path (string-append (assoc-ref %build-inputs
679 (system* tar "xvf" (assoc-ref %build-inputs "source"))
680 (chdir (string-append "minetest_game-" ,version))
681 (mkdir-p install-dir)
682 (copy-recursively "." install-dir)))))
683 (synopsis "Main game data for the Minetest game engine")
685 "Game data for the Minetest infinite-world block sandox game.")
686 (home-page "http://minetest.net")
687 (license license:lgpl2.1+)))
689 (define-public minetest
696 "https://github.com/minetest/minetest/archive/"
698 (file-name (string-append name "-" version ".tar.gz"))
701 "0m3hhk5icx4y4gd970z7ya2013fq4vvqbjljmck62ik03baf8g90"))))
702 (build-system cmake-build-system)
705 (list "-DRUN_IN_PLACE=0"
706 "-DENABLE_FREETYPE=1"
708 (string-append "-DIRRLICHT_INCLUDE_DIR="
709 (assoc-ref %build-inputs "irrlicht")
711 (string-append "-DCURL_INCLUDE_DIR="
712 (assoc-ref %build-inputs "curl")
714 #:tests? #f)) ; no check target
716 (list (search-path-specification
717 (variable "MINETEST_SUBGAME_PATH")
718 (files '("share/minetest/games")))))
720 `(("pkg-config" ,pkg-config)))
722 `(("irrlicht" ,irrlicht)
725 ("libxxf86vm" ,libxxf86vm)
728 ("libvorbis" ,libvorbis)
730 ("freetype" ,(@ (gnu packages fontutils) freetype))
733 ("gettext" ,gnu-gettext)
736 `(("minetest-data" ,minetest-data)))
737 (synopsis "Infinite-world block sandbox game")
739 "Minetest is a sandbox construction game. Players can create and destroy
740 various types of blocks in a three-dimensional open world. This allows
741 forming structures in every possible creation, on multiplayer servers or as a
742 single player. Mods and texture packs allow players to personalize the game
744 (home-page "http://minetest.net")
745 (license license:lgpl2.1+)))
754 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
755 "glk/implementations/glkterm-104.tar.gz"))
758 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
759 (build-system gnu-build-system)
760 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
762 '(#:tests? #f ; no check target
766 (lambda* (#:key outputs #:allow-other-keys)
767 (let* ((out (assoc-ref outputs "out"))
768 (inc (string-append out "/include")))
772 (copy-file file (string-append inc "/" file)))
773 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
774 (mkdir (string-append out "/lib"))
775 (copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
776 (alist-delete 'configure %standard-phases))))
777 (home-page "http://www.eblong.com/zarf/glk/")
778 (synopsis "Curses Implementation of the Glk API")
780 "Glk defines a portable API for applications with text UIs. It was
781 primarily designed for interactive fiction, but it should be suitable for many
782 interactive text utilities, particularly those based on a command line.
783 This is an implementation of the Glk library which runs in a terminal window,
784 using the curses.h library for screen control.")
785 (license (license:fsf-free "file://README"))))
787 (define-public glulxe
794 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
795 "glulx/interpreters/glulxe/glulxe-052.tar.gz"))
798 "19iw6kl8ncqcy9pv4gsqfh3xsa1n94zd234rqavvmxccnf3nj19g"))))
799 (build-system gnu-build-system)
800 (inputs `(("glk" ,glkterm)))
802 '(#:tests? #f ; no check target
804 (let* ((glk (assoc-ref %build-inputs "glk")))
805 (list (string-append "GLKINCLUDEDIR=" glk "/include")
806 (string-append "GLKLIBDIR=" glk "/lib")
807 (string-append "GLKMAKEFILE=" "Make.glkterm")))
811 (lambda* (#:key outputs #:allow-other-keys)
812 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
814 (copy-file "glulxe" (string-append bin "/glulxe"))))
815 (alist-delete 'configure %standard-phases))))
816 (home-page "http://www.eblong.com/zarf/glulx/")
817 (synopsis "Interpreter for Glulx VM")
819 "Glulx is a 32-bit portable virtual machine intended for writing and
820 playing interactive fiction. It was designed by Andrew Plotkin to relieve
821 some of the restrictions in the venerable Z-machine format. This is the
822 reference interpreter, using Glk API.")
823 (license (license:fsf-free "file://README"))))
831 (uri (string-append "https://christoph-ender.de/fizmo/source/"
832 name "-" version ".tar.gz"))
835 "1w7cgyjrhgkadjrazijzhq7zh0pl5bfc6wl7mdpgh020y4kp46d7"))))
836 (build-system gnu-build-system)
839 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
840 (ncurses (assoc-ref %build-inputs "ncurses")))
841 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
842 (string-append "jpeg_LIBS=-ljpeg")
843 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
844 (string-append "ncursesw_LIBS=-lncursesw")))))
846 `(("pkg-config" ,pkg-config)))
848 `(("libjpeg" ,libjpeg)
850 ("libsndfile" ,libsndfile)
854 (home-page "https://christoph-ender.de/fizmo/")
855 (synopsis "Z-machine interpreter")
857 "Fizmo is a console-based Z-machine interpreter. It is used to play
858 interactive fiction, also known as text adventures, which were implemented
859 either by Infocom or created using the Inform compiler.")
860 (license license:bsd-3)))
862 (define-public retroarch
869 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
871 (file-name (string-append name "-" version ".tar.gz"))
873 (base32 "1xar0wagcz50clwwkvjg4zq9m1sjqw47vw3xx44pisdj94g21m5y"))))
874 (build-system gnu-build-system)
876 '(#:tests? #f ; no tests
881 (substitute* "qb/qb.libs.sh"
882 (("/bin/true") (which "true")))
885 (string-append "--prefix=" %output)
886 (string-append "--global-config-dir=" %output "/etc"))))
889 `(("alsa-lib" ,alsa-lib)
891 ("freetype" ,freetype)
892 ("libxinerama" ,libxinerama)
893 ("libxkbcommon" ,libxkbcommon)
898 ("pulseaudio" ,pulseaudio)
904 `(("pkg-config" ,pkg-config)
906 (home-page "http://www.libretro.com/")
907 (synopsis "Reference frontend for the libretro API")
909 "Libretro is a simple but powerful development interface that allows for
910 the easy creation of emulators, games and multimedia applications that can plug
911 straight into any libretro-compatible frontend. RetroArch is the official
912 reference frontend for the libretro API, currently used by most as a modular
913 multi-system game/emulator system.")
914 (license license:gpl3+)))
922 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
926 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
927 (build-system gnu-build-system)
928 (inputs `(("readline" ,readline)))
929 (synopsis "Play the game of Go")
931 "GNU Go is a program that plays the game of Go, in which players
932 place stones on a grid to form territory or capture other stones. While
933 it can be played directly from the terminal, rendered in ASCII characters,
934 it is also possible to play GNU Go with 3rd party graphical interfaces or
935 even in Emacs. It supports the standard game storage format (SGF, Smart
936 Game Format) and inter-process communication format (GMP, Go Modem
938 (home-page "http://www.gnu.org/software/gnugo/")
939 (license license:gpl3+)))
941 (define-public extremetuxracer
943 (name "extremetuxracer")
948 "http://downloads.sourceforge.net/project/extremetuxracer/releases/"
949 version "/etr-" version ".tar.xz"))
952 "1lg3z7jhzmsjym53qss8mbydny8hafwjnfsc7x91hrr9zrkwblly"))))
953 (build-system gnu-build-system)
955 `(("pkg-config" ,pkg-config)))
959 (synopsis "High speed arctic racing game based on Tux Racer")
960 ;; Snarfed straight from Debian
961 (description "Extreme Tux Racer, or etracer as it is called for short, is
962 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
963 game is to slide down a snow- and ice-covered mountain as quickly as possible,
964 avoiding the trees and rocks that will slow you down.
966 Collect herrings and other goodies while sliding down the hill, but avoid fish
969 This game is based on the GPL version of the famous game TuxRacer.")
970 (home-page "http://sourceforge.net/projects/extremetuxracer/")
971 (license license:gpl2+)))
973 (define-public supertuxkart
975 (name "supertuxkart")
980 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
981 version "/supertuxkart-" version "-src.tar.xz"))
984 "10l2ljmd7mv8f9ylarqmxxryicdnph2qkm3g5maxnsm2k2q0n20b"))
985 (modules '((guix build utils)))
987 ;; Delete bundled library sources
989 ;; FIXME: try to unbundle enet, and angelscript
990 (for-each delete-file-recursively
996 (substitute* "CMakeLists.txt"
997 ;; Supertuxkart uses modified versions of the Irrlicht engine
998 ;; and the bullet library. The developers gave an explanation here:
999 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1000 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1002 (build-system cmake-build-system)
1004 `(#:tests? #f ; no check target
1006 (list "-DUSE_WIIUSE=0"
1007 ;; Do not use the bundled zlib
1008 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1009 ;; Irrlicht returns an integer instead of a boolean
1010 "-DCMAKE_C_FLAGS=-fpermissive")
1012 (modify-phases %standard-phases
1013 (add-after 'unpack 'unbundle
1014 (lambda* (#:key inputs #:allow-other-keys)
1015 (substitute* "CMakeLists.txt"
1017 (string-append (assoc-ref inputs "glew")
1019 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1020 (string-append "include_directories(\""
1021 (assoc-ref inputs "glew")
1028 ("libvorbis" ,libvorbis)
1029 ("freetype" ,freetype)
1030 ("fribidi" ,fribidi)
1033 ("libxrandr" ,libxrandr)
1035 ;; The following input is needed to build the bundled and modified
1036 ;; version of irrlicht.
1037 ("libjpeg" ,libjpeg)))
1039 `(("pkg-config" ,pkg-config)))
1040 (home-page "http://supertuxkart.net")
1041 (synopsis "3D kart racing game")
1042 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1043 having fun over realism. You can play with up to 4 friends on one PC, racing
1044 against each other or just trying to beat the computer; single-player mode is
1046 (license license:gpl3+)))
1048 (define-public gnujump
1054 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1058 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1059 (build-system gnu-build-system)
1062 (modify-phases %standard-phases
1064 'configure 'link-libm
1065 (lambda _ (setenv "LIBS" "-lm"))))))
1070 ("sdl-image" ,sdl-image)
1071 ("sdl-mixer" ,sdl-mixer)))
1072 (home-page "http://gnujump.es.gnu.org/")
1074 "Game of jumping to the next floor, trying not to fall")
1076 "GNUjump is a simple, yet addictive game in which you must jump from
1077 platform to platform to avoid falling, while the platforms drop at faster rates
1078 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1079 falling, themeable graphics and sounds, and replays.")
1080 (license license:gpl3+)))
1082 (define-public wesnoth
1088 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1089 (version-major+minor version) "/wesnoth-"
1091 name "-" version ".tar.bz2"))
1094 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1095 (build-system cmake-build-system)
1097 '(#:tests? #f ; no check target
1099 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1100 ;; boost/mpl/assert.hpp:313:58: error:
1101 ;; use of old-style cast [-Werror=old-style-cast]
1103 ;; cc1plus: all warnings being treated as errors
1104 '("-DENABLE_STRICT_COMPILATION=OFF")))
1106 `(("gettext" ,gnu-gettext)
1107 ("pkg-config" ,pkg-config)))
1111 ("fribidi" ,fribidi)
1112 ("libvorbis" ,libvorbis)
1114 ("sdl-image" ,sdl-image)
1115 ("sdl-mixer" ,sdl-mixer)
1116 ("sdl-net" ,sdl-net)
1117 ("sdl-ttf" ,sdl-ttf)))
1118 (home-page "http://www.wesnoth.org/")
1119 (synopsis "Turn-based strategy game")
1121 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1122 with several single player campaigns, and multiplayer games (both networked and
1125 Battle for control on a range of maps, using variety of units which have
1126 advantages and disadvantages against different types of attacks. Units gain
1127 experience and advance levels, and are carried over from one scenario to the
1129 (license license:gpl2+)))
1131 (define-public dosbox
1134 (version "0.74.svn3947")
1138 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1140 (file-name (string-append name "-" version "-checkout"))
1141 ;; Use SVN head, since the last release (2010) is incompatible
1142 ;; with GCC 4.8+ (see
1143 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1146 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1147 (build-system gnu-build-system)
1149 `(#:phases (modify-phases %standard-phases
1153 (zero? (system* "sh" "autogen.sh")))))))
1155 `(("autoconf" ,autoconf)
1156 ("automake" ,automake)))
1161 ("alsa-lib" ,alsa-lib)
1164 (home-page "http://www.dosbox.com")
1165 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1166 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1167 also emulates CPU:286/386 realmode/protected mode, Directory
1168 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1169 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1171 (license license:gpl2+)))
1173 (define-public gamine
1179 (uri (string-append "mirror://sourceforge/gamine-game/"
1180 "gamine-" version ".tar.gz"))
1183 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1184 (build-system gnu-build-system)
1186 `(("pkg-config" ,pkg-config)
1187 ("intltool" ,intltool)))
1189 `(("gstreamer" ,gstreamer)
1190 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1191 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1196 (let ((out (assoc-ref %outputs "out")))
1197 (list (string-append "PREFIX=" out)
1198 (string-append "SYSCONFDIR=" out "/etc")))
1200 (modify-phases %standard-phases
1203 'install 'wrap-gamine
1204 (lambda* (#:key outputs #:allow-other-keys)
1205 (let ((out (assoc-ref outputs "out"))
1206 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1207 (wrap-program (string-append out "/bin/gamine")
1208 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1210 (home-page "http://gamine-game.sourceforge.net/")
1211 (synopsis "Mouse and keyboard discovery for children")
1213 "Gamine is a game designed for young children who are learning to use the
1214 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1215 on the screen and keyboard to display letters.")
1216 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1217 (license license:gpl3)))
1219 (define-public raincat
1227 "http://hackage.haskell.org/package/Raincat/Raincat-"
1232 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1233 (build-system haskell-build-system)
1235 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1236 ("ghc-mtl" ,ghc-mtl)
1237 ("ghc-random" ,ghc-random)
1238 ("ghc-glut" ,ghc-glut)
1239 ("freeglut" ,freeglut)
1240 ("ghc-opengl" ,ghc-opengl)
1241 ("ghc-sdl" ,ghc-sdl)
1242 ("ghc-sdl-image" ,ghc-sdl-image)
1243 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1244 (home-page "http://raincat.bysusanlin.com/")
1245 (synopsis "Puzzle game with a cat in lead role")
1246 (description "Project Raincat is a game developed by Carnegie Mellon
1247 students through GCS during the Fall 2008 semester. Raincat features game
1248 play inspired from classics Lemmings and The Incredible Machine. The project
1249 proved to be an excellent learning experience for the programmers. Everything
1250 is programmed in Haskell.")
1251 (license license:bsd-3)))
1253 (define-public manaplus
1256 (version "1.6.8.14")
1260 "http://repo.manaplus.org/manaplus/download/"
1261 version "/manaplus-" version ".tar.xz"))
1264 "1mah4w6ng0j76cjzbw8y9m2ds5f1w5ka9b1k3gzgvxh4yaphqnff"))))
1265 (build-system gnu-build-system)
1268 (list (string-append "CPPFLAGS=-I"
1269 (assoc-ref %build-inputs "sdl-union")
1272 `(("pkg-config" ,pkg-config)))
1276 ("libxml2" ,libxml2)
1279 ("sdl-union" ,(sdl-union))))
1280 (home-page "http://manaplus.org")
1281 (synopsis "Client for 'The Mana World' and similar games")
1283 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1284 fully supported client for @uref{http://www.themanaworld.org, The mana
1285 world}, @uref{http://evolonline.org, Evol Online} and
1286 @uref{http://landoffire.org, Land of fire}.")
1287 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1288 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1289 ;; The rest is under GPL2+.
1290 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1292 (define-public mupen64plus-core
1294 (name "mupen64plus-core")
1300 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1302 (file-name (string-append name "-" version ".tar.gz"))
1304 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1305 (build-system gnu-build-system)
1307 `(("pkg-config" ,pkg-config)
1310 `(("freetype" ,freetype)
1318 (modify-phases %standard-phases
1319 ;; The mupen64plus build system has no configure phase.
1321 ;; Makefile is in a subdirectory.
1323 'build 'cd-to-project-dir
1325 (chdir "projects/unix"))))
1326 #:make-flags (let ((out (assoc-ref %outputs "out")))
1327 (list "all" (string-append "PREFIX=" out)))
1328 ;; There are no tests.
1330 ;; As per the Makefile (in projects/unix/Makefile):
1331 (supported-systems '("i686-linux" "x86_64-linux"))
1332 (home-page "http://www.mupen64plus.org/")
1333 (synopsis "Nintendo 64 emulator core library")
1335 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1336 which is capable of accurately playing many games. This package contains the
1338 (license license:gpl2+)))
1340 (define-public mupen64plus-audio-sdl
1342 (name "mupen64plus-audio-sdl")
1348 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1350 (file-name (string-append name "-" version ".tar.gz"))
1352 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1353 (build-system gnu-build-system)
1355 `(("pkg-config" ,pkg-config)
1358 `(("mupen64plus-core" ,mupen64plus-core)
1362 (modify-phases %standard-phases
1363 ;; The mupen64plus build system has no configure phase.
1365 ;; Makefile is in a subdirectory.
1367 'build 'cd-to-project-dir
1369 (chdir "projects/unix"))))
1371 (let ((out (assoc-ref %outputs "out"))
1372 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1374 (string-append "PREFIX=" out)
1375 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1376 ;; There are no tests.
1378 (home-page "http://www.mupen64plus.org/")
1379 (synopsis "Mupen64Plus SDL input plugin")
1381 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1382 which is capable of accurately playing many games. This package contains the
1384 (license license:gpl2+)))
1386 (define-public mupen64plus-input-sdl
1388 (name "mupen64plus-input-sdl")
1394 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1396 (file-name (string-append name "-" version ".tar.gz"))
1398 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1399 (build-system gnu-build-system)
1401 `(("which" ,which)))
1403 `(("mupen64plus-core" ,mupen64plus-core)
1407 (modify-phases %standard-phases
1408 ;; The mupen64plus build system has no configure phase.
1410 ;; Makefile is in a subdirectory.
1412 'build 'cd-to-project-dir
1414 (chdir "projects/unix"))))
1416 (let ((out (assoc-ref %outputs "out"))
1417 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1419 (string-append "PREFIX=" out)
1420 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1421 ;; There are no tests.
1423 (home-page "http://www.mupen64plus.org/")
1424 (synopsis "Mupen64Plus SDL input plugin")
1426 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1427 which is capable of accurately playing many games. This package contains the
1429 (license license:gpl2+)))
1431 (define-public mupen64plus-rsp-hle
1433 (name "mupen64plus-rsp-hle")
1439 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1441 (file-name (string-append name "-" version ".tar.gz"))
1443 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1444 (build-system gnu-build-system)
1446 `(("mupen64plus-core" ,mupen64plus-core)))
1449 (modify-phases %standard-phases
1450 ;; The mupen64plus build system has no configure phase.
1452 ;; Makefile is in a subdirectory.
1454 'build 'cd-to-project-dir
1456 (chdir "projects/unix"))))
1458 (let ((out (assoc-ref %outputs "out"))
1459 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1461 (string-append "PREFIX=" out)
1462 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1463 ;; There are no tests.
1465 (home-page "http://www.mupen64plus.org/")
1466 (synopsis "Mupen64Plus SDL input plugin")
1468 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1469 which is capable of accurately playing many games. This package contains the
1470 high-level emulation (HLE) RSP processor plugin.")
1471 (license license:gpl2+)))
1473 (define-public mupen64plus-rsp-z64
1475 (name "mupen64plus-rsp-z64")
1481 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1483 (file-name (string-append name "-" version ".tar.gz"))
1485 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1486 (build-system gnu-build-system)
1488 `(("mupen64plus-core" ,mupen64plus-core)))
1491 (modify-phases %standard-phases
1492 ;; The mupen64plus build system has no configure phase.
1494 ;; Makefile is in a subdirectory.
1496 'build 'cd-to-project-dir
1498 (chdir "projects/unix"))))
1500 (let ((out (assoc-ref %outputs "out"))
1501 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1503 (string-append "PREFIX=" out)
1504 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1505 ;; There are no tests.
1507 (home-page "http://www.mupen64plus.org/")
1508 (synopsis "Mupen64Plus SDL input plugin")
1510 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1511 which is capable of accurately playing many games. This package contains the
1512 Z64 RSP processor plugin.")
1513 (license license:gpl2+)))
1515 (define-public mupen64plus-video-arachnoid
1517 (name "mupen64plus-video-arachnoid")
1523 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1525 (file-name (string-append name "-" version ".tar.gz"))
1527 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1528 (build-system gnu-build-system)
1530 `(("pkg-config" ,pkg-config)
1534 ("mupen64plus-core" ,mupen64plus-core)))
1537 (modify-phases %standard-phases
1538 ;; The mupen64plus build system has no configure phase.
1540 ;; Makefile is in a subdirectory.
1542 'build 'cd-to-project-dir
1544 (chdir "projects/unix"))))
1546 (let ((out (assoc-ref %outputs "out"))
1547 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1549 (string-append "PREFIX=" out)
1550 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1551 ;; There are no tests.
1553 (home-page "http://www.mupen64plus.org/")
1554 (synopsis "Mupen64Plus Rice Video plugin")
1556 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1557 which is capable of accurately playing many games. This package contains the
1558 Arachnoid video plugin.")
1559 (license license:gpl2+)))
1561 (define-public mupen64plus-video-glide64
1563 (name "mupen64plus-video-glide64")
1569 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1571 (file-name (string-append name "-" version ".tar.gz"))
1573 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1574 (build-system gnu-build-system)
1576 `(("pkg-config" ,pkg-config)
1580 ("mupen64plus-core" ,mupen64plus-core)
1584 (modify-phases %standard-phases
1585 ;; The mupen64plus build system has no configure phase.
1587 ;; Makefile is in a subdirectory.
1589 'build 'cd-to-project-dir
1591 (chdir "projects/unix")))
1592 ;; XXX Should be unnecessary with the next release.
1596 (substitute* "Makefile"
1597 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1598 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1600 (let ((out (assoc-ref %outputs "out"))
1601 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1603 (string-append "PREFIX=" out)
1604 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1605 ;; There are no tests.
1607 (home-page "http://www.mupen64plus.org/")
1608 (synopsis "Mupen64Plus Rice Video plugin")
1610 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1611 which is capable of accurately playing many games. This package contains the
1612 Glide64 video plugin.")
1613 (license license:gpl2+)))
1615 (define-public mupen64plus-video-glide64mk2
1617 (name "mupen64plus-video-glide64mk2")
1623 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1625 (file-name (string-append name "-" version ".tar.gz"))
1627 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1628 (build-system gnu-build-system)
1630 `(("pkg-config" ,pkg-config)
1636 ("mupen64plus-core" ,mupen64plus-core)
1641 (modify-phases %standard-phases
1642 ;; The mupen64plus build system has no configure phase.
1644 ;; Makefile is in a subdirectory.
1646 'build 'cd-to-project-dir
1648 (chdir "projects/unix"))))
1650 (let ((out (assoc-ref %outputs "out"))
1651 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1653 (string-append "PREFIX=" out)
1654 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1655 ;; There are no tests.
1657 (home-page "http://www.mupen64plus.org/")
1658 (synopsis "Mupen64Plus Rice Video plugin")
1660 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1661 which is capable of accurately playing many games. This package contains the
1662 Glide64MK2 video plugin.")
1663 (license license:gpl2+)))
1665 (define-public mupen64plus-video-rice
1667 (name "mupen64plus-video-rice")
1673 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1675 (file-name (string-append name "-" version ".tar.gz"))
1677 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1678 (build-system gnu-build-system)
1680 `(("pkg-config" ,pkg-config)
1683 `(("libpng" ,libpng)
1685 ("mupen64plus-core" ,mupen64plus-core)
1689 (modify-phases %standard-phases
1690 ;; The mupen64plus build system has no configure phase.
1692 ;; Makefile is in a subdirectory.
1694 'build 'cd-to-project-dir
1696 (chdir "projects/unix"))))
1698 (let ((out (assoc-ref %outputs "out"))
1699 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1701 (string-append "PREFIX=" out)
1702 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1703 ;; There are no tests.
1705 (home-page "http://www.mupen64plus.org/")
1706 (synopsis "Mupen64Plus Rice Video plugin")
1708 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1709 which is capable of accurately playing many games. This package contains the
1710 Rice Video plugin.")
1711 (license license:gpl2+)))
1713 (define-public mupen64plus-video-z64
1715 (name "mupen64plus-video-z64")
1721 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1723 (file-name (string-append name "-" version ".tar.gz"))
1725 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1726 (build-system gnu-build-system)
1728 `(("pkg-config" ,pkg-config)
1732 ("mupen64plus-core" ,mupen64plus-core)
1736 (modify-phases %standard-phases
1737 ;; The mupen64plus build system has no configure phase.
1739 ;; Makefile is in a subdirectory.
1741 'build 'cd-to-project-dir
1743 (chdir "projects/unix")))
1744 ;; XXX Should be unnecessary with the next release.
1748 (substitute* "Makefile"
1749 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1750 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1752 (let ((out (assoc-ref %outputs "out"))
1753 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1755 (string-append "PREFIX=" out)
1756 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1757 ;; There are no tests.
1759 (home-page "http://www.mupen64plus.org/")
1760 (synopsis "Mupen64Plus Z64 video plugin")
1762 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1763 which is capable of accurately playing many games. This package contains the
1765 (license license:gpl2+)))
1767 (define-public mupen64plus-ui-console
1769 (name "mupen64plus-ui-console")
1775 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1777 (file-name (string-append name "-" version ".tar.gz"))
1779 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1780 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1781 (build-system gnu-build-system)
1783 `(("pkg-config" ,pkg-config)
1787 ;; Mupen64Plus supports a single data directory and a single plugin
1788 ;; directory in its configuration, yet we need data and plugin files from
1789 ;; a variety of packages. The best way to deal with this is to install
1790 ;; all packages from which data and plugin files are needed into one's
1791 ;; profile, and point the configuration there. Hence, propagate the most
1792 ;; important packages here to save the user from the bother. The patch
1793 ;; mupen64plus-ui-console-notice also gives users instructions on what
1794 ;; they need to do in order to point the configuration to their profile.
1796 `(("mupen64plus-core" ,mupen64plus-core)
1797 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1798 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1799 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1800 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1801 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1802 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1805 (modify-phases %standard-phases
1806 ;; The mupen64plus build system has no configure phase.
1808 ;; Makefile is in a subdirectory.
1810 'build 'cd-to-project-dir
1812 (chdir "projects/unix"))))
1814 (let ((out (assoc-ref %outputs "out"))
1815 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1817 (string-append "PREFIX=" out)
1818 (string-append "APIDIR=" m64p "/include/mupen64plus")
1819 ;; Trailing slash matters here.
1820 (string-append "COREDIR=" m64p "/lib/")))
1821 ;; There are no tests.
1823 (home-page "http://www.mupen64plus.org/")
1824 (synopsis "Mupen64Plus SDL input plugin")
1826 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1827 which is capable of accurately playing many games. This package contains the
1828 command line user interface. Installing this package is the easiest way
1829 towards a working Mupen64Plus for casual users.")
1830 (license license:gpl2+)))
1832 (define-public nestopia-ue
1834 (name "nestopia-ue")
1839 "https://github.com/rdanbrook/nestopia/archive/"
1841 (file-name (string-append name "-" version ".tar.gz"))
1844 "1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
1845 (modules '((guix build utils)))
1848 ;; We don't need libretro for the GNU/Linux build.
1849 (delete-file-recursively "libretro")
1851 (delete-file-recursively "source/zlib")
1852 (substitute* "source/core/NstZlib.cpp"
1853 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1854 (build-system gnu-build-system)
1856 `(("pkg-config" ,pkg-config)))
1861 ("libarchive" ,libarchive)
1867 (modify-phases %standard-phases
1868 ;; The Nestopia build system consists solely of a Makefile.
1870 (add-before 'build 'remove-xdg-desktop-menu-call
1872 (substitute* "Makefile"
1873 (("xdg-desktop-menu install .*") ""))))
1874 (add-before 'build 'remove-gdkwayland-include
1876 (substitute* "source/unix/gtkui/gtkui.h"
1877 (("#include <gdk/gdkwayland\\.h>") "")))))
1878 #:make-flags (let ((out (assoc-ref %outputs "out")))
1879 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1880 ;; There are no tests.
1882 (home-page "http://0ldsk00l.ca/nestopia/")
1883 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1885 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1886 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1887 emulation community. It provides highly accurate emulation.")
1888 (license license:gpl2+)))
1890 (define-public emulation-station
1891 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1893 (name "emulation-station")
1896 (method git-fetch) ; no tarball available
1898 (url "https://github.com/Aloshi/EmulationStation.git")
1899 (commit commit))) ; no version tag
1902 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1903 (build-system cmake-build-system)
1905 '(#:tests? #f)) ; no tests
1907 `(("alsa-lib" ,alsa-lib)
1911 ("freeimage" ,freeimage)
1912 ("freetype" ,freetype)
1915 (synopsis "Video game console emulator front-end")
1916 (description "EmulationStation provides a graphical front-end to a large
1917 number of video game console emulators. It features an interface that is
1918 usable with any game controller that has at least 4 buttons, theming support,
1919 and a game metadata scraper.")
1920 (home-page "http://www.emulationstation.org")
1921 (license license:expat))))
1923 (define openttd-engine
1925 (name "openttd-engine")
1928 (origin (method url-fetch)
1929 (uri (string-append "http://binaries.openttd.org/releases/"
1930 version "/openttd-" version "-source.tar.xz"))
1933 "1ak32fj5xkk2fvmm3g8i7wzmk4bh2ijsp8fzvvw5wj6365p9j24v"))
1934 (modules '((guix build utils)))
1936 ;; The DOS port contains proprietary software.
1937 '(delete-file-recursively "os/dos"))))
1938 (build-system gnu-build-system)
1940 `(#:tests? #f ; no "check" target
1942 (modify-phases %standard-phases
1943 ;; The build process fails if the configure script is passed the
1944 ;; option "--enable-fast-install".
1946 (lambda* (#:key inputs outputs #:allow-other-keys)
1947 (let ((out (assoc-ref outputs "out"))
1948 (lzo (assoc-ref inputs "lzo")))
1950 (system* "./configure"
1951 (string-append "--prefix=" out)
1952 ;; Provide the "lzo" path.
1953 (string-append "--with-liblzo2="
1954 lzo "/lib/liblzo2.a")
1955 ;; Put the binary in 'bin' instead of 'games'.
1956 "--binary-dir=bin"))))))))
1957 (native-inputs `(("pkg-config" ,pkg-config)))
1959 `(("allegro" ,allegro-4)
1960 ("fontconfig" ,fontconfig)
1961 ("freetype" ,freetype)
1968 (synopsis "Transportation economics simulator")
1969 (description "OpenTTD is a game in which you transport goods and
1970 passengers by land, water and air. It is a re-implementation of Transport
1971 Tycoon Deluxe with many enhancements including multiplayer mode,
1972 internationalization support, conditional orders and the ability to clone,
1973 autoreplace and autoupdate vehicles. This package only includes the game engine. When you start
1974 it you will be prompted to download a graphics set.")
1975 (home-page "http://openttd.org/")
1976 ;; This package is GPLv2, except for a few files located in
1977 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1978 ;; licenses. In addition, this software contains an in-game downloader
1979 ;; from which the user may find non-functional data licensed under
1981 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1983 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1984 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1985 ;; but it asks a user to download graphics if it's not found.
1987 (define-public openttd
1989 (inherit openttd-engine)
1992 (define-public pinball
1997 (origin (method url-fetch)
1998 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1999 "pinball-" version "/"
2000 "pinball-" version ".tar.gz"))
2003 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2004 (patches (search-patches "pinball-const-fix.patch"
2005 "pinball-cstddef.patch"
2006 "pinball-missing-separators.patch"
2007 "pinball-src-deps.patch"
2008 "pinball-system-ltdl.patch"))))
2009 (build-system gnu-build-system)
2014 ("sdl-image" ,sdl-image)
2015 ("sdl-mixer" ,sdl-mixer)))
2018 (list (string-append "CPPFLAGS=-I"
2019 (assoc-ref %build-inputs "sdl-image")
2021 (assoc-ref %build-inputs "sdl-mixer")
2023 (home-page "http://pinball.sourceforge.net")
2024 (synopsis "Pinball simulator")
2025 (description "The Emilia Pinball Project is a pinball simulator. There
2026 are only two levels to play with, but they are very addictive.")
2027 (license license:gpl2)))
2029 (define-public pioneers
2035 (uri (string-append "http://downloads.sourceforge.net/pio/"
2036 "pioneers-" version ".tar.gz"))
2039 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
2040 (build-system gnu-build-system)
2041 (inputs `(("gtk+" ,gtk+)
2042 ("librsvg" ,librsvg)
2044 (native-inputs `(("intltool" ,intltool)
2045 ("pkg-config" ,pkg-config)))
2046 (synopsis "Board game inspired by The Settlers of Catan")
2047 (description "Pioneers is an emulation of the board game The Settlers of
2048 Catan. It can be played on a local network, on the internet, and with AI
2050 (home-page "http://pio.sourceforge.net/")
2051 (license license:gpl2+)))
2053 (define-public desmume
2061 "mirror://sourceforge/desmume/desmume/"
2062 version "/desmume-" version ".tar.gz"))
2065 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2066 (build-system gnu-build-system)
2068 ;; Enable support for WiFi and microphone.
2069 `(#:configure-flags '("--enable-wifi"
2070 "--enable-openal")))
2072 `(("pkg-config" ,pkg-config)
2073 ("intltool" ,intltool)))
2080 (home-page "http://desmume.org/")
2081 (synopsis "Nintendo DS emulator")
2083 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2084 (license license:gpl2)))
2086 (define-public einstein
2092 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2093 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2096 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2097 (patches (search-patches "einstein-build.patch"))))
2098 (build-system gnu-build-system)
2100 `(("freetype" ,freetype)
2101 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2104 `(("font-dejavu" ,font-dejavu)))
2106 `(#:tests? #f ; no check target
2108 (modify-phases %standard-phases
2110 (lambda* (#:key outputs inputs #:allow-other-keys)
2111 (let ((out (assoc-ref outputs "out"))
2112 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2113 "/share/fonts/truetype/DejaVuSans.ttf")))
2114 (substitute* "Makefile"
2115 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2116 ;; The patch above registers a free font for use by the binary,
2117 ;; but the font is copied during the compile phase into a
2118 ;; resources file, so we need to make the ttf file available.
2119 (symlink dejavu "res/DejaVuSans.ttf")
2121 (synopsis "Logic puzzle game")
2122 (description "The goal of this logic game is to open all cards in a 6x6
2123 grid, using a number of hints as to their relative position. The game idea
2124 is attributed to Albert Einstein.")
2125 ;; The original home page has disappeared.
2126 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2127 "http://games.flowix.com/en/index.html"))
2128 ;; License according to
2129 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2130 ;; The source code is a DFSG-sanitized tarball and does not contain any
2131 ;; license information.
2132 (license license:gpl3+)))
2134 (define-public powwow
2141 "https://www.hoopajoo.net/static/projects/powwow-"
2143 (file-name (string-append name "-" version ".tar.gz"))
2146 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2148 `(("ncurses" ,ncurses)))
2149 (build-system gnu-build-system)
2150 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2151 (synopsis "MUD and telnet client")
2153 "POWWOW is a client software which can be used for telnet as well as for
2154 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2155 the chat server psyced with the specific config located at
2156 http://lavachat.symlynx.com/unix/")
2157 (license license:gpl2+)))
2159 (define-public red-eclipse
2161 '(("acerspyro" "0hqwa3b65l8mz73mcdsvrwbc14mrx1qn52073p5zh69pqd0mlfi0")
2162 ("actors" "0v87wifqwam5j6vsiidmcvw22i51h9h4skgwhi511mxkwryrp26h")
2163 ("appleflap" "0bkh1v125dwd5jhb4rrc1sl0jdlbb2ib53ihbxa66x1p8l27aklw")
2164 ("blendbrush" "1wh88fshsy492kjvadql2ik1q5pqgcj84jz0hc93ngag8xibxhfi")
2165 ("caustics" "0pc5bnd4fmxh06cm3h8045wgiy894f9x5a943n28gymdyql7q4f6")
2166 ("crosshairs" "1w9acqhxw5nm690862msl5jjbk8qlizxm1vv7p95lgm7q7pg0yxx")
2167 ("elyvisions" "04q31lp5jm8b9crf81s6k1jvrn90i1ay3s6vk103iv8g4amsfhdx")
2168 ("fonts" "1rsfk2d9xk0aaazvrcxk4z5n2cnys7pixadh521mv7zrxbx2d95x")
2169 ("freezurbern" "0b2xg5x79yxanr30dhw3zr6dsc6x9w7v7aghbh9kp292j31l280m")
2170 ("john" "07pgjg1rxl3bmwriy2yl3g63nnryjws8jl0ry1cza3p9wd59f8rz")
2171 ("jojo" "0lkzd5pwfqan1gaaz22r5iz4z2nq8dkzycddwa0cxavmq8qmj281")
2172 ("jwin" "0mnyp1inhabw56mw5wkhfd4k6z0lvyhr6cjj6hnj3bz2dip2y2zm")
2173 ("luckystrike" "1d89xnvahmzlgm0bjh3zhf02vxx1q16b70x2cihbl05dic1v75pr")
2174 ("maps" "19gy8kl7w2llsklym32hnlnd05z2dhq5dhdxhq5ss5na67skv5by")
2175 ("mayhem" "1si2gnsf732ml8ygkhg27ckvic9wafqmkgq0ab1ifpfpy606sa8d")
2176 ("mikeplus64" "0l48czyglbc0d4ack8xz9imarb6r4l29krq0mf3ld7yrxbc296vr")
2177 ("misc" "0fri1l3i1s1pzvr7aah4a7d9h2i877c21x184z80v4jpqv4228f3")
2178 ("nobiax" "1jv2yv2qj9qbxhaj1nd70v5142dpg074gkkh3bw2anchi8pzyhs8")
2179 ("particles" "0gwj6m5197gpwddqb3pwlkaiafgfszqysaz2h1bx60qzh5crgsf9")
2180 ("philipk" "0ngccscmvlgc2z96vira7phr87f65l4v7immbl697zmc5fda6k68")
2181 ("projectiles" "1ig6dag5989rgwrhvmz7xz5q8gf5slgnda8h8zmiyhvrnal09hbp")
2182 ("props" "0g3sgrlgmk9zrl67d9pa93hzb4xx3wwznfxa1h3wwilld0m7gzhx")
2183 ("skyboxes" "0lvpzc741vkmy2rnra41ij91wq3pdl28xamy6vapq61mf44xmmvj")
2184 ("sounds" "0jmvvixcx7kv34sxjs4x7vqsyhir6l5av6b3lm8m8rsfi0sdvqml")
2185 ("textures" "1yx01k9yn2v1k79sa68wa51qw1zk03b8irkvxyd14ygibkicvgnb")
2186 ("torley" "1286srp05nfjban6ca124njyil70gr7bm6aqn5p0vz0xr00l4dw5")
2187 ("trak" "1079fg2cbm95psxic3r63i94z3cnbf04wlid2hqnw308s9l9q36c")
2188 ("ulukai" "0yd80ivn51ya60m4cg4bw13wxgijkjagfgskdphy9adgsaqq9n7b")
2189 ("unnamed" "0l21dhw7kbav59p7ysn6dr2sqzjivwxafml4023yznlhxx5fic4m")
2190 ("vanities" "1aqi32lf7y64fv1y00mpixckjr9wj8p1prgyxjiv7s3hf5q7n2b3")
2191 ("vegetation" "0253fdn5sxywrjb79krhvq2884almxpysn6dn0hi6ylpjzl78zrn")
2192 ("weapons" "0y2zsx6g6k9izshgix9id3y01hsisd88mp5zrlm5x9v8y0sf6kf8")
2193 ("wicked" "0ib0325dn6vzpx3p4cr6bhg9qhj8c5s20xyzy88xjc3y2pazbdvx"))))
2195 (name "red-eclipse")
2199 (uri (string-append "https://github.com/red-eclipse/base"
2200 "/archive/v" version ".tar.gz"))
2201 (file-name (string-append name "-" version ".tar.gz"))
2204 "1sv3xhng18sl655sd46lpmqbqz32h32s7nwz68bdr9z9w3iwkf66"))))
2205 (build-system gnu-build-system)
2207 `(#:tests? #f ; no check target
2208 #:make-flags (list "CC=gcc" "-Csrc"
2209 (string-append "INSTDIR="
2210 (assoc-ref %outputs "out") "/bin"))
2212 (modify-phases %standard-phases
2213 (add-after 'unpack 'unpack-data
2214 (lambda* (#:key inputs #:allow-other-keys)
2215 (delete-file-recursively "data")
2217 (for-each (lambda (name)
2218 (system* "tar" "-xvf"
2219 (assoc-ref inputs name)
2223 name "-" ,version "/"
2225 (list ,@(map car data-sources)))
2227 (delete 'configure) ; no configure script
2228 (add-after 'set-paths 'set-sdl-paths
2229 (lambda* (#:key inputs #:allow-other-keys)
2231 (string-append (assoc-ref inputs "sdl-union")
2234 (add-after 'install 'copy-data
2235 (lambda* (#:key outputs #:allow-other-keys)
2236 (let ((out (assoc-ref outputs "out")))
2237 (copy-recursively "config"
2238 (string-append out "/config"))
2239 (copy-file "doc/examples/servinit.cfg"
2240 (string-append out "/config/servinit.cfg"))
2241 (copy-recursively "data"
2242 (string-append out "/data")))
2244 (add-after 'copy-data 'wrap-program
2245 (lambda* (#:key inputs outputs #:allow-other-keys)
2246 (let* ((out (assoc-ref outputs "out"))
2247 (bin (string-append out "/bin")))
2248 (with-directory-excursion bin
2249 (rename-file "redeclipse_linux"
2250 ".redeclipse_linux-real")
2251 (rename-file "redeclipse_server_linux"
2252 ".redeclipse_server_linux-real")
2253 (call-with-output-file "redeclipse_linux"
2255 (format port "#!~a/bin/sh
2256 # Run the thing from its home, otherwise it just bails out.
2258 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2259 (assoc-ref inputs "bash") ;implicit input
2261 (string-append bin))))
2262 (call-with-output-file "redeclipse_server_linux"
2264 (format port "#!~a/bin/sh
2265 # Run the thing from its home, otherwise it just bails out.
2267 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2268 (assoc-ref inputs "bash") ;implicit input
2270 (string-append bin))))
2271 (chmod "redeclipse_linux" #o555)
2272 (chmod "redeclipse_server_linux" #o555)))
2274 (native-inputs `(("pkg-config" ,pkg-config)))
2278 ("sdl-union" ,(sdl-union (list sdl2
2281 ;; Create origin records for the many separate data packages.
2282 ,@(map (match-lambda
2288 "https://github.com/red-eclipse/"
2289 name "/archive/v" version ".tar.gz"))
2290 (sha256 (base32 hash))
2291 (file-name (string-append name "-" version
2294 (home-page "http://redeclipse.net/")
2295 (synopsis "Arena shooter derived from the Cube 2 engine")
2297 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2298 Offering an innovative parkour system and distinct but all potent weapons,
2299 Red Eclipse provides fast paced and accessible gameplay.")
2300 ;; The engine is under Zlib; data files are covered by the other
2301 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2302 (license (list license:expat
2308 (define-public higan
2316 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2318 (file-name (string-append name "-" version ".tar.gz"))
2320 (base32 "0qavwkmzc63p6qplmxii4gc541z5mcs8gjwh3m4y7i576r7rcbk9"))
2321 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2322 (build-system gnu-build-system)
2324 `(("pkg-config" ,pkg-config)))
2326 `(("alsa-lib" ,alsa-lib)
2330 ("gtksourceview-2" ,gtksourceview-2)
2334 ("pulseaudio" ,pulseaudio)
2338 (let ((build-phase (assoc-ref %standard-phases 'build))
2339 (install-phase (assoc-ref %standard-phases 'install)))
2340 (modify-phases %standard-phases
2341 ;; The higan build system has no configure phase.
2343 (add-before 'build 'chdir-to-higan
2346 (add-before 'install 'create-/share/applications
2347 (lambda* (#:key outputs #:allow-other-keys)
2348 (let ((out (assoc-ref outputs "out")))
2349 ;; It seems the author forgot to do this in the Makefile.
2350 (mkdir-p (string-append out "/share/applications")))))
2351 (add-after 'install 'chdir-to-icarus
2353 (chdir "../icarus")))
2354 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2355 (add-after 'build-icarus 'install-icarus install-phase)
2356 (add-after 'install-icarus 'wrap-higan-executable
2357 (lambda* (#:key inputs outputs #:allow-other-keys)
2358 (let* ((out (assoc-ref outputs "out"))
2359 (bin (string-append out "/bin"))
2360 (higan (string-append bin "/higan"))
2361 (higan-original (string-append higan "-original"))
2362 (bash (string-append (assoc-ref inputs "bash")
2364 (coreutils (assoc-ref inputs "coreutils"))
2365 (mkdir (string-append coreutils "/bin/mkdir"))
2366 (cp (string-append coreutils "/bin/cp"))
2367 (cp-r (string-append cp " -r --no-preserve=mode")))
2368 ;; First, have the executable make sure ~/.local/share/higan
2369 ;; contains up to date files. Higan insists on looking there
2370 ;; for these data files.
2371 (rename-file higan higan-original)
2372 (with-output-to-file higan
2377 ;; higan doesn't respect $XDG_DATA_HOME
2378 mkdir " -p ~/.local/share\n"
2379 cp-r " " out "/share/higan ~/.local/share\n"
2380 "exec " higan-original))))
2382 ;; Second, make sure higan will find icarus in PATH.
2384 `("PATH" ":" prefix (,bin))))))))
2386 (list "compiler=g++"
2387 (string-append "prefix=" (assoc-ref %outputs "out")))
2388 ;; There is no test suite.
2390 (home-page "http://byuu.org/emulation/higan/")
2391 (synopsis "Nintendo multi-system emulator")
2393 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2394 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2395 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2396 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2397 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2398 ;; As noted in these files among more:
2399 ;; - icarus/icarus.cpp
2400 ;; - higan/emulator/emulator.hpp
2401 (license license:gpl3)))
2403 (define-public grue-hunter
2405 (name "grue-hunter")
2409 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2412 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2413 (build-system trivial-build-system) ; no Makefile.PL
2414 (arguments `(#:modules ((guix build utils))
2417 (use-modules (guix build utils))
2418 (use-modules (srfi srfi-1))
2420 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2421 (perl (string-append (assoc-ref %build-inputs
2424 (gzip (string-append (assoc-ref %build-inputs
2427 (tar (string-append (assoc-ref %build-inputs
2430 (out (assoc-ref %outputs "out"))
2431 (bin (string-append out "/bin"))
2432 (doc (string-append out "/share/doc")))
2435 (copy-file tarball "grue-hunter.tar.gz")
2436 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2437 (zero? (system* tar "xvf" "grue-hunter.tar"))
2440 (copy-file "grue-hunter/gh.pl"
2441 (string-append bin "/grue-hunter"))
2442 (patch-shebang (string-append bin "/grue-hunter")
2446 (copy-file "grue-hunter/AGPLv3.txt"
2447 (string-append doc "/grue-hunter")))))))
2448 (inputs `(("perl" ,perl)
2451 ("tarball" ,source)))
2452 (home-page "http://jxself.org/grue-hunter.shtml")
2453 (synopsis "Text adventure game")
2455 "Grue Hunter is a text adventure game written in Perl. You must make
2456 your way through an underground cave system in search of the Grue. Can you
2457 capture it and get out alive?")
2458 (license license:agpl3+)))
2460 (define-public warzone2100
2462 (name "warzone2100")
2466 (uri (string-append "mirror://sourceforge/" name
2467 "/releases/" version "/" name "-" version
2471 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2472 (build-system gnu-build-system)
2475 (modify-phases %standard-phases
2476 (add-after 'unpack 'link-tests-with-qt
2478 (substitute* "tests/Makefile.in"
2479 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2480 (string-append prefix "$(QT5_LIBS) ")))
2482 (add-after 'unpack 'remove-reference-to-missing-file
2484 (substitute* "icons/Makefile.in"
2485 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2487 (native-inputs `(("pkg-config" ,pkg-config)
2490 (inputs `(("fontconfig" ,fontconfig)
2491 ("freetype" ,freetype)
2492 ("fribidi" ,fribidi)
2494 ("libtheora" ,libtheora)
2495 ("libvorbis" ,libvorbis)
2496 ("libxrandr" ,libxrandr)
2500 ("openssl" ,openssl)
2501 ("quesoglc" ,quesoglc)
2503 (home-page "http://wz2100.net")
2504 (synopsis "3D Real-time strategy and real-time tactics game")
2506 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2507 modes. An extensive tech tree with over 400 different technologies, combined
2508 with the unit design system, allows for a wide variety of possible units and
2510 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2511 (license (list license:bsd-3
2516 license:lgpl2.1+))))
2518 (define-public starfighter
2520 (name "starfighter")
2525 "mirror://savannah/starfighter/"
2526 (version-major+minor version) "/"
2527 name "-" version "-src.tar.gz"))
2530 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2531 (build-system gnu-build-system)
2533 '(#:tests? #f ; no check target
2535 (let ((out (assoc-ref %outputs "out")))
2536 (list (string-append "PREFIX=" out)
2537 (string-append "BINDIR=" out "/bin/")))
2539 (modify-phases %standard-phases
2540 ;; no configure script
2541 (delete 'configure))))
2543 `(("pkg-config" ,pkg-config)))
2546 ("sdl2-image" ,sdl2-image)
2547 ("sdl2-mixer" ,sdl2-mixer)))
2548 (home-page "http://starfighter.nongnu.org/")
2549 (synopsis "2D scrolling shooter game")
2551 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2552 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2553 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2554 way, you will encounter new foes, make new allies, and assist local rebels
2555 in strikes against the evil corporation.")
2556 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2557 (license (list license:gpl3+
2561 license:public-domain))))
2563 (define-public chromium-bsu
2565 (name "chromium-bsu")
2566 (version "0.9.15.1")
2569 (uri (string-append "mirror://sourceforge/" name
2570 "/Chromium B.S.U. source code/"
2571 name "-" version ".tar.gz"))
2574 "01c4mki0rpz6wrqbf18fj4vd7axln5v0xqm80cyksbv63g04s6w6"))))
2575 (build-system gnu-build-system)
2577 `(#:phases (modify-phases %standard-phases
2578 (add-after 'set-paths 'set-sdl-paths
2579 (lambda* (#:key inputs #:allow-other-keys)
2581 (string-append (assoc-ref inputs "sdl-union")
2584 (native-inputs `(("pkg-config" ,pkg-config)))
2585 (inputs `(("glu" ,glu)
2586 ("quesoglc" ,quesoglc)
2587 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2588 (home-page "http://chromium-bsu.sourceforge.net/")
2589 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2591 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2592 are responsible for delivering supplies to the troops on the front line. Your
2593 ship has a small fleet of robotic fighters which you control from the relative
2594 safety of the Chromium vessel.")
2595 ;; Clarified Artistic License for everything but sound, which is covered
2596 ;; by the Expat License.
2597 (license (list license:clarified-artistic license:expat))))
2599 (define-public tuxpaint
2602 (version "0.9.22") ;keep VER_DATE below in sync
2606 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2607 version "/tuxpaint-" version ".tar.gz"))
2610 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2611 (modules '((guix build utils)))
2614 ;; Remove win32 directory which contains binary dll's and the
2615 ;; deprecated visualc directory.
2616 (for-each delete-file-recursively '("win32" "visualc"))
2617 (substitute* "Makefile"
2618 ;; Do not rely on $(GPERF) being an absolute file name
2619 (("\\[ -x \\$\\(GPERF\\) \\]")
2620 "$(GPERF) --version >/dev/null 2>&1"))))
2621 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2622 (build-system gnu-build-system)
2625 ("pkg-config" ,pkg-config)))
2628 ("fribidi" ,fribidi)
2629 ("gettext" ,gnu-gettext)
2631 ("librsvg" ,librsvg)
2632 ("libpaper" ,libpaper)
2634 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2635 ;; TODO: Use system fonts rather than those in data/fonts
2637 `(#:make-flags `("VER_DATE=2014-08-23"
2638 "GPERF=gperf" "CC=gcc"
2639 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2640 ,(string-append "PREFIX=" %output)
2641 "GNOME_PREFIX=$(PREFIX)"
2642 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2643 #:tests? #f ;No tests
2644 #:phases (modify-phases %standard-phases
2645 (delete 'configure) ;no configure phase
2646 (add-after 'install 'fix-import
2647 (lambda* (#:key inputs outputs #:allow-other-keys)
2648 (let* ((out (assoc-ref outputs "out"))
2649 (net (assoc-ref inputs "netpbm"))
2650 (tpi (string-append out "/bin/tuxpaint-import")))
2652 ;; Point to installation prefix so that the default
2653 ;; configure file is found.
2654 (("/usr/local") out))
2655 ;; tuxpaint-import uses a bunch of programs from
2656 ;; netpbm, so make sure it knows where those are
2659 (,(string-append net "/bin"))))))))))
2660 (native-search-paths
2661 (list (search-path-specification
2662 (variable "TUXPAINT_STAMPS_PATH")
2663 (files '("share/tuxpaint/stamps")))))
2664 (home-page "http://www.tuxpaint.org")
2665 (synopsis "Drawing software for children")
2667 "Tux Paint is a free drawing program designed for young children (kids
2668 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2669 and an encouraging cartoon mascot who helps guide children as they use the
2670 program. It provides a blank canvas and a variety of drawing tools to help
2671 your child be creative.")
2672 (license license:gpl2+)))
2674 (define-public tuxpaint-stamps
2676 (name "tuxpaint-stamps")
2677 (version "2014.08.23")
2681 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2682 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2683 "/tuxpaint-stamps-" version ".tar.gz"))
2686 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2687 (build-system trivial-build-system)
2692 `(#:modules ((guix build utils))
2694 (use-modules (guix build utils))
2697 (assoc-ref %build-inputs "tar") "/bin" ":"
2698 (assoc-ref %build-inputs "gzip") "/bin"))
2699 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
2700 (chdir (string-append ,name "-" ,version))
2701 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2703 (copy-recursively "stamps" dir)))))
2704 (home-page (package-home-page tuxpaint))
2705 (synopsis "Stamp images for Tux Paint")
2707 "This package contains a set of \"Rubber Stamp\" images which can be used
2708 with the \"Stamp\" tool within Tux Paint.")
2709 (license license:gpl2+)))
2711 (define-public tuxpaint-config
2713 (name "tuxpaint-config")
2714 (version "0.0.13") ;keep VER_DATE below in sync
2718 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2719 version "/tuxpaint-config-" version ".tar.gz"))
2722 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2723 (build-system gnu-build-system)
2725 `(("gettext" ,gnu-gettext)))
2728 ("libpaper" ,libpaper)
2729 ;; TODO: Should the following be propagated by fltk?
2734 `(#:make-flags `("VER_DATE=2014-08-23"
2735 "CONFDIR=/etc/tuxpaint" ;don't write to store
2736 ,(string-append "PREFIX=" %output)
2737 "GNOME_PREFIX=$(PREFIX)")
2738 #:parallel-build? #f ;race conditions
2739 #:tests? #f ;no tests
2740 #:phases (modify-phases %standard-phases
2741 (delete 'configure) ;no configure phase
2742 (add-before 'install 'gzip-no-name
2744 (substitute* "Makefile"
2745 ;; tuxpaint-config compresses its own documentation;
2746 ;; make sure it uses flags for reproducibility.
2747 (("gzip") "gzip --no-name"))))
2748 (add-before 'install 'make-install-dirs
2749 (lambda* (#:key outputs #:allow-other-keys)
2750 (let ((out (assoc-ref outputs "out")))
2751 (mkdir-p (string-append out "/bin"))
2753 (home-page (package-home-page tuxpaint))
2754 (synopsis "Configure Tux Paint")
2756 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2757 (license license:gpl2))) ;no "or later" present
2759 (define-public supertux
2765 (uri (string-append "https://github.com/SuperTux/supertux/"
2766 "releases/download/v" version "/SuperTux-v"
2767 version "-Source.tar.gz"))
2770 "0fx7c7m6mfanqy7kln7yf6abb5l3r68picf32js2yls11jj0vbng"))))
2773 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
2774 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
2775 (build-system cmake-build-system)
2776 (inputs `(("sdl2" ,sdl2)
2777 ("sdl2-image" ,sdl2-image)
2778 ("sdl2-mixer" ,sdl2-mixer)
2782 ("libvorbis" ,libvorbis)
2787 (native-inputs `(("pkg-config" ,pkg-config)))
2788 (synopsis "2D platformer game")
2789 (description "SuperTux is a free classic 2D jump'n run sidescroller game
2790 in a style similar to the original Super Mario games covered under
2792 (home-page "https://supertuxproject.org/")
2793 (license license:gpl3+)))
2795 (define-public tintin++
2801 (uri (string-append "https://sourceforge.net/projects/tintin"
2802 "/files/TinTin++ Source Code/" version
2803 "/tintin" "-" version ".tar.gz"))
2806 "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
2808 `(("gnutls" ,gnutls)
2810 ("readline" ,readline)
2813 '(#:tests? #f ; no test suite
2815 (modify-phases %standard-phases
2816 ;; The source is in tt/src.
2817 (add-before 'configure 'chdir
2821 (build-system gnu-build-system)
2822 (home-page "http://tintin.sourceforge.net/")
2823 (synopsis "MUD client")
2825 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
2826 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
2827 as well as those required to login via telnet on Linux / Mac OS X servers, and an
2828 auto mapper with a VT100 map display.")
2829 (license license:gpl2+)))
2836 (origin (method url-fetch)
2838 "https://github.com/sgimenez/laby/archive/"
2839 name "-" version ".tar.gz"))
2842 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
2843 (patches (search-patches "laby-make-install.patch"))))
2844 (build-system gnu-build-system)
2846 `(("lablgtk" ,lablgtk)
2848 ("ocaml-findlib" ,ocaml-findlib)))
2851 (modify-phases %standard-phases
2853 (add-before 'build 'setenv
2854 (lambda* (#:key inputs #:allow-other-keys)
2855 (let ((lablgtk (assoc-ref inputs "lablgtk")))
2856 (setenv "LD_LIBRARY_PATH"
2857 (string-append lablgtk "/lib/ocaml/stublibs"))))))
2858 #:tests? #f ; no 'check' target
2860 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
2861 (home-page "https://sgimenez.github.io/laby/")
2862 (synopsis "Programming game")
2863 (description "Learn programming, playing with ants and spider webs ;-)
2864 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
2865 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
2866 programmers may also add their own favorite language.")
2867 (license license:gpl3+)))
2869 (define-public bambam
2876 (uri (string-append "https://github.com/porridge/bambam/archive/"
2878 (file-name (string-append name "-" version ".tar.gz"))
2881 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
2882 (build-system python-build-system)
2884 `(#:python ,python-2
2885 #:tests? #f ; no tests
2887 (modify-phases %standard-phases
2889 (add-before 'install 'patch-data-dir-location
2891 (substitute* "bambam.py"
2892 (("'data'") "'../share/bambam/data'"))
2895 (lambda* (#:key outputs #:allow-other-keys)
2896 (let* ((out (assoc-ref outputs "out"))
2897 (bin (string-append out "/bin"))
2898 (share (string-append out "/share")))
2900 (copy-file "bambam.py" (string-append bin "/bambam"))
2901 (install-file "bambam.6" (string-append share "/man/man6"))
2902 (copy-recursively "data" (string-append share "/bambam/data")))
2905 `(("python-pygame" ,python-pygame)))
2906 (home-page "https://github.com/porridge/bambam")
2907 (synopsis "Keyboard mashing and doodling game for babies")
2908 (description "Bambam is a simple baby keyboard (and gamepad) masher
2909 application that locks the keyboard and mouse and instead displays bright
2910 colors, pictures, and sounds.")
2911 (license license:gpl3+)))
2913 (define-public mrrescue
2920 "https://github.com/SimonLarsen/mrrescue/releases/"
2921 "download/" version "/" name version ".love"))
2922 (file-name (string-append name "-" version ".love"))
2925 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
2926 (build-system trivial-build-system)
2928 '(#:modules ((guix build utils))
2931 (use-modules (guix build utils))
2932 (let* ((out (assoc-ref %outputs "out"))
2933 (bindir (string-append out "/bin"))
2934 (prog (string-append bindir "/mrrescue"))
2935 (source (assoc-ref %build-inputs "source"))
2936 (bash (string-append (assoc-ref %build-inputs "bash")
2938 (love (string-append (assoc-ref %build-inputs "love")
2941 (with-output-to-file prog
2943 (format #t "#!~a~%" bash)
2944 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
2950 (home-page "http://tangramgames.dk/games/mrrescue")
2951 (synopsis "Arcade-style fire fighting game")
2953 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
2954 civilians from burning buildings. The game features fast paced fire
2955 extinguishing action, intense boss battles, a catchy soundtrack and lots of
2956 throwing people around in pseudo-randomly generated buildings.")
2957 (license (list license:zlib ; for source code
2958 license:cc-by-sa3.0)))) ; for graphics and music assets
2960 (define-public hyperrogue
2967 "http://www.roguetemple.com/z/hyper/"
2971 "1ag95d84m4j0rqyn9hj7655znixw2j57bpf93nk14nfy02xz1g6p"))
2972 (modules '((guix build utils)))
2973 ;; Remove .exe and .dll files.
2975 '(for-each delete-file (find-files "." "\\.(exe|dll)$")))))
2976 (build-system gnu-build-system)
2978 '(#:tests? #f ; no check target
2979 #:make-flags '("-Csrc")
2981 (modify-phases %standard-phases
2982 (add-after 'set-paths 'set-sdl-paths
2983 (lambda* (#:key inputs #:allow-other-keys)
2985 (string-append (assoc-ref inputs "sdl-union")
2987 ;; Fix font and music paths.
2989 (lambda* (#:key inputs outputs #:allow-other-keys)
2990 (let ((out (assoc-ref outputs "out"))
2991 (dejavu-dir (string-append
2992 (assoc-ref inputs "font-dejavu")
2993 "/share/fonts/truetype"))
2994 (dejavu-font "DejaVuSans-Bold.ttf")
2995 (music-file "hyperrogue-music.txt"))
2996 (with-directory-excursion "src"
2997 (substitute* "graph.cpp"
2999 (string-append dejavu-dir "/" dejavu-font))
3000 (((string-append "\\./" music-file))
3001 (string-append out "/share/hyperrogue/" music-file)))
3002 (substitute* music-file
3004 (string-append out "/share/hyperrogue/")))))
3007 (lambda* (#:key inputs outputs #:allow-other-keys)
3008 (let* ((out (assoc-ref outputs "out"))
3009 (bin (string-append out "/bin"))
3010 (share-dir (string-append out "/share/hyperrogue")))
3012 (copy-file "src/hyper" (string-append bin "/hyperrogue"))
3014 (copy-file "src/hyperrogue-music.txt"
3015 (string-append share-dir "/hyperrogue-music.txt"))
3016 (for-each (lambda (file)
3017 (copy-file file (string-append share-dir "/" file)))
3018 (find-files "." "\\.ogg$")))
3021 `(("font-dejavu" ,font-dejavu)
3024 ("sdl-union" ,(sdl-union (list sdl
3028 (home-page "http://www.roguetemple.com/z/hyper/")
3029 (synopsis "Non-euclidean graphical rogue-like game")
3031 "HyperRogue is a game in which the player collects treasures and fights
3032 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3033 plane and not in euclidean space.
3035 In HyperRogue, the player can move through different parts of the world, which
3036 are home to particular creatures and may be subject to own rules of \"physics\".
3038 While it can use ASCII characters to display the world the classical rogue
3039 symbols, the game needs graphics to render the non-euclidean world.")
3040 (license (list license:bsd-3 ; src/glew.c, src/mtrand.*
3041 license:cc-by-sa3.0 ; *.ogg
3042 license:public-domain ; src/direntx.*
3043 license:zlib ; src/savepng.*
3044 license:gpl2+)))) ; remaining files
3046 (define-public kobodeluxe
3052 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3053 version ".tar.bz2"))
3056 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3057 (patches (search-patches
3058 "kobodeluxe-const-charp-conversion.patch"
3059 "kobodeluxe-enemies-pipe-decl.patch"
3060 "kobodeluxe-graphics-window-signed-char.patch"
3061 "kobodeluxe-manpage-minus-not-hyphen.patch"
3062 "kobodeluxe-midicon-segmentation-fault.patch"
3063 "kobodeluxe-paths.patch"))))
3064 (build-system gnu-build-system)
3067 (list (string-append "CPPFLAGS=-I"
3068 (assoc-ref %build-inputs "sdl-union")
3070 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3071 (synopsis "Shooter with space station destruction")
3073 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3074 for Un*x systems with X11.")
3075 (home-page "http://olofson.net/kobodl/")
3076 (license license:gpl2+)))