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, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 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, 2017 Rodger Fox <thylakoid@openmailbox.org>
19 ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
20 ;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
21 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
22 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
23 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
24 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
25 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
26 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
27 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
28 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
29 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
30 ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
31 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
32 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
33 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
34 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
36 ;;; This file is part of GNU Guix.
38 ;;; GNU Guix is free software; you can redistribute it and/or modify it
39 ;;; under the terms of the GNU General Public License as published by
40 ;;; the Free Software Foundation; either version 3 of the License, or (at
41 ;;; your option) any later version.
43 ;;; GNU Guix is distributed in the hope that it will be useful, but
44 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
45 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 ;;; GNU General Public License for more details.
48 ;;; You should have received a copy of the GNU General Public License
49 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51 (define-module (gnu packages games)
52 #:use-module (ice-9 match)
53 #:use-module ((guix licenses) #:prefix license:)
54 #:use-module (guix utils)
55 #:use-module (guix packages)
56 #:use-module (guix download)
57 #:use-module (guix git-download)
58 #:use-module (guix svn-download)
59 #:use-module (guix gexp)
60 #:use-module (gnu packages)
61 #:use-module (gnu packages algebra)
62 #:use-module (gnu packages autotools)
63 #:use-module (gnu packages backup)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages build-tools)
66 #:use-module (gnu packages admin)
67 #:use-module (gnu packages audio)
68 #:use-module (gnu packages avahi)
69 #:use-module (gnu packages boost)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages docbook)
72 #:use-module (gnu packages fltk)
73 #:use-module (gnu packages fribidi)
74 #:use-module (gnu packages game-development)
75 #:use-module (gnu packages gettext)
76 #:use-module (gnu packages ghostscript)
77 #:use-module (gnu packages gimp)
78 #:use-module (gnu packages gl)
79 #:use-module (gnu packages glib)
80 #:use-module (gnu packages gnome)
81 #:use-module (gnu packages gperf)
82 #:use-module (gnu packages gtk)
83 #:use-module (gnu packages guile)
84 #:use-module (gnu packages imagemagick)
85 #:use-module (gnu packages libcanberra)
86 #:use-module (gnu packages libedit)
87 #:use-module (gnu packages libunwind)
88 #:use-module (gnu packages haskell)
89 #:use-module (gnu packages mp3)
90 #:use-module (gnu packages music)
91 #:use-module (gnu packages icu4c)
92 #:use-module (gnu packages image)
93 #:use-module (gnu packages ncurses)
94 #:use-module (gnu packages netpbm)
95 #:use-module (gnu packages networking)
96 #:use-module (gnu packages ocaml)
97 #:use-module (gnu packages python)
98 #:use-module (gnu packages readline)
99 #:use-module (gnu packages textutils)
100 #:use-module (gnu packages xorg)
101 #:use-module (gnu packages pkg-config)
102 #:use-module (gnu packages databases)
103 #:use-module (gnu packages shells)
104 #:use-module (gnu packages sdl)
105 #:use-module (gnu packages swig)
106 #:use-module (gnu packages texinfo)
107 #:use-module (gnu packages check)
108 #:use-module (gnu packages fonts)
109 #:use-module (gnu packages fontutils)
110 #:use-module (gnu packages gstreamer)
111 #:use-module (gnu packages bash)
112 #:use-module (gnu packages perl)
113 #:use-module (gnu packages qt)
114 #:use-module (gnu packages compression)
115 #:use-module (gnu packages pulseaudio)
116 #:use-module (gnu packages linux)
117 #:use-module (gnu packages xiph)
118 #:use-module (gnu packages curl)
119 #:use-module (gnu packages lua)
120 #:use-module (gnu packages video)
121 #:use-module (gnu packages xml)
122 #:use-module (gnu packages tcl)
123 #:use-module (gnu packages xdisorg)
124 #:use-module (gnu packages tls)
125 #:use-module (gnu packages pcre)
126 #:use-module (gnu packages cyrus-sasl)
127 #:use-module (gnu packages messaging)
128 #:use-module (gnu packages upnp)
129 #:use-module (gnu packages wxwidgets)
130 #:use-module (gnu packages bison)
131 #:use-module (gnu packages flex)
132 #:use-module (gnu packages cmake)
133 #:use-module (gnu packages gnuzilla)
134 #:use-module (gnu packages icu4c)
135 #:use-module (gnu packages networking)
136 #:use-module (guix build-system gnu)
137 #:use-module (guix build-system haskell)
138 #:use-module (guix build-system python)
139 #:use-module (guix build-system cmake)
140 #:use-module (guix build-system trivial))
142 (define-public armagetronad
144 (name "armagetronad")
145 (version "0.2.8.3.4")
148 (uri (string-append "mirror://sourceforge/" name "/stable/"
149 version "/" name "-" version ".src.tar.gz"))
152 "1pgy0r80z702qdv94aw3ywdn4ynnr4cdi86ml558pljfc5ygasj4"))))
153 (build-system gnu-build-system)
155 `(("libxml2" ,libxml2)
157 ("sdl-image" ,sdl-image)
158 ("freeglut" ,freeglut)
160 ("libjpeg-turbo" ,libjpeg-turbo)))
161 (home-page "http://www.armagetronad.org")
162 (synopsis "Tron clone in 3D")
163 (description "Armagetron is a multiplayer game in 3d that attempts to
164 emulate and expand on the lightcycle sequence from the movie Tron. It's
165 an old school arcade game slung into the 21st century. Highlights include
166 a customizable playing arena, HUD, unique graphics, and AI bots. For the
167 more advanced player there are new game modes and a wide variety of physics
168 settings to tweak as well.")
169 (license license:gpl2+)))
171 (define-public cataclysm-dda
173 (name "cataclysm-dda")
177 (uri (string-append "https://github.com/CleverRaven/Cataclysm-DDA/"
178 "archive/" version ".tar.gz"))
179 (file-name (string-append name "-" version ".tar.gz"))
182 "1xlajmgl9cviqyjpp5g5q4rbljy9gqc49v54bi8gpzr68s14gsb9"))
183 (modules '((guix build utils)))
185 ;; Import cmath header for the std::pow function.
186 '(for-each (lambda (file)
188 (("#include <math.h>")
189 "#include <cmath>")))
190 (find-files "src")))))
191 (build-system gnu-build-system)
193 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
194 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1")
196 (modify-phases %standard-phases
199 (substitute* "Makefile"
200 (("ncursesw5-config") "ncursesw6-config")
201 (("RELEASE_FLAGS = -Werror") "RELEASE_FLAGS ="))
203 (add-after 'build 'build-tiles
204 (lambda* (#:key make-flags outputs #:allow-other-keys)
205 ;; Change prefix directory and enable tile graphics and sound.
207 (apply system* "make" "TILES=1" "SOUND=1"
208 (string-append "PREFIX="
209 (assoc-ref outputs "tiles"))
211 (add-after 'install 'install-tiles
212 (lambda* (#:key make-flags outputs #:allow-other-keys)
214 (apply system* "make" "install" "TILES=1" "SOUND=1"
215 (string-append "PREFIX="
216 (assoc-ref outputs "tiles"))
217 (cdr make-flags))))))
218 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
219 ;; input in order to support tests.
222 "tiles")) ; For tile graphics and sound support.
224 `(("gettext" ,gettext-minimal)
225 ("pkg-config" ,pkg-config)))
227 `(("freetype" ,freetype)
229 ("libvorbis" ,libvorbis)
232 ("sdl2-image", sdl2-image)
233 ("sdl2-ttf" ,sdl2-ttf)
234 ("sdl2-mixer" ,sdl2-mixer)))
235 (home-page "http://en.cataclysmdda.com/")
236 (synopsis "Survival horror roguelike video game")
238 "Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
239 Struggle to survive in a harsh, persistent, procedurally generated world.
240 Scavenge the remnants of a dead civilization for food, equipment, or, if you are
241 lucky, a vehicle with a full tank of gas to get you out of Dodge. Fight to
242 defeat or escape from a wide variety of powerful monstrosities, from zombies to
243 giant insects to killer robots and things far stranger and deadlier, and against
244 the others like yourself, that want what you have.")
245 (license license:cc-by-sa3.0)))
247 (define-public cowsay
253 (uri (string-append "https://web.archive.org/web/20071026043648/"
254 "http://www.nog.net:80/~tony/warez/"
255 "cowsay-" version ".tar.gz"))
258 "1bxj802na2si2bk5zh7n0b7c33mg8a5n2wnvh0vihl9bmjkp51hb"))))
259 (build-system gnu-build-system)
262 (modify-phases %standard-phases
266 (lambda* (#:key outputs #:allow-other-keys)
267 (zero? (system* "sh" "install.sh"
268 (assoc-ref outputs "out")))))
270 (lambda* (#:key outputs #:allow-other-keys)
271 (zero? (system* (string-append (assoc-ref outputs "out")
276 (home-page (string-append "https://web.archive.org/web/20071026043648/"
277 "http://www.nog.net:80/~tony/warez/"))
278 (synopsis "Speaking cow text filter")
279 (description "Cowsay is basically a text filter. Send some text into it,
280 and you get a cow saying your text. If you think a talking cow isn't enough,
281 cows can think too. All you have to do is run @code{cowthink}.")
282 ;; Any version of the GPL.
283 (license license:gpl3+)))
285 (define-public freedoom
291 (uri (string-append "https://github.com/" name "/" name
292 "/archive/v" version ".tar.gz"))
293 (file-name (string-append name "-" version ".tar.gz"))
296 "1bjijdfqhpazyifx1qda7scj7dry1azhjrnl8h8zn2vqfgdmlh0q"))))
297 (build-system gnu-build-system)
299 '(#:make-flags `(,(string-append "prefix=" (assoc-ref %outputs "out")))
301 #:tests? #f ; no check target
303 (modify-phases %standard-phases
305 (lambda* (#:key inputs outputs #:allow-other-keys)
306 (let* ((dejavu (assoc-ref inputs "font-dejavu"))
307 (freedoom (assoc-ref outputs "out"))
308 (wad-dir (string-append freedoom "/share/games/doom")))
309 ;; Replace the font-searching function in a shell
310 ;; script with a direct path to the required font.
311 ;; This is necessary because ImageMagick can only find the
312 ;; most basic fonts while in the build environment.
313 (substitute* "graphics/titlepic/create_caption"
314 (("font=\\$\\(find_font.*$")
317 "/share/fonts/truetype/DejaVuSansCondensed-Bold.ttf\n")))
318 ;; Make icon creation reproducible.
319 (substitute* "dist/Makefile"
321 "-define png:exclude-chunks=date freedm.png")
323 "-define png:exclude-chunks=date freedoom1.png")
325 "-define png:exclude-chunks=date freedoom2.png"))
326 ;; Make sure that the install scripts know where to find
327 ;; the appropriate WAD files.
328 (substitute* "dist/freedoom"
330 (string-append "IWAD=" wad-dir "/freedm.wad"))
331 (("IWAD=freedoom1.wad")
332 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
333 (("IWAD=freedoom2.wad")
334 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
337 `(("asciidoc" ,asciidoc)
339 ("font-dejavu" ,font-dejavu)
340 ("imagemagick" ,imagemagick)
341 ("python" ,python-2)))
343 `(("prboom-plus" ,prboom-plus)))
344 (home-page "https://freedoom.github.io/")
345 (synopsis "Free content game based on the Doom engine")
347 "The Freedoom project aims to create a complete free content first person
348 shooter game. Freedoom by itself is just the raw material for a game: it must
349 be paired with a compatible game engine (such as @code{prboom-plus}) to be
350 played. Freedoom complements the Doom engine with free levels, artwork, sound
351 effects and music to make a completely free game.")
352 (license license:bsd-3)))
361 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
362 version ".000-sources." "tar.gz"))
365 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
366 (build-system gnu-build-system)
367 (inputs `(("glib" ,glib)
368 ("readline" ,readline)
372 ("gtkglext" ,gtkglext)
374 ("libcanberra" ,libcanberra)))
375 (native-inputs `(("python-2" ,python-2)
376 ("pkg-config" ,pkg-config)))
377 (home-page "http://gnubg.org")
378 (synopsis "Backgammon game")
379 (description "The GNU backgammon application can be used for playing, analyzing and
380 teaching the game. It has an advanced evaluation engine based on artificial
381 neural networks suitable for both beginners and advanced players. In
382 addition to a command-line interface, it also features an attractive, 3D
383 representation of the playing board.")
384 (license license:gpl3+)))
386 (define-public gnubik
393 (uri (string-append "mirror://gnu/gnubik/gnubik-"
397 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
398 (build-system gnu-build-system)
399 (inputs `(("gtk+" ,gtk+-2)
404 ("gtkglext" ,gtkglext)))
405 (native-inputs `(("gettext" ,gettext-minimal)
406 ("pkg-config" ,pkg-config)))
407 (home-page "https://www.gnu.org/software/gnubik/")
408 (synopsis "3d Rubik's cube game")
410 "GNUbik is a puzzle game in which you must manipulate a cube to make
411 each of its faces have a uniform color. The game is customizable, allowing
412 you to set the size of the cube (the default is 3x3) or to change the colors.
413 You may even apply photos to the faces instead of colors. The game is
414 scriptable with Guile.")
415 (license license:gpl3+)))
417 (define-public gnushogi
424 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
428 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
429 (arguments `(#:tests? #f)) ;; No check target.
430 (build-system gnu-build-system)
431 (home-page "https://www.gnu.org/software/gnushogi/")
432 (synopsis "The game of Shogi (Japanese chess)")
433 (description "GNU Shogi is a program that plays the game Shogi (Japanese
434 Chess). It is similar to standard chess but this variant is far more complicated.")
435 (license license:gpl3+)))
444 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
445 name "-" version ".tar.gz"))
448 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
449 (build-system gnu-build-system)
451 '(;; The code in LTris uses traditional GNU semantics for inline functions
452 #:configure-flags '("CFLAGS=-fgnu89-inline")
454 (modify-phases %standard-phases
455 (add-after 'set-paths 'set-sdl-paths
456 (lambda* (#:key inputs #:allow-other-keys)
458 (string-append (assoc-ref inputs "sdl-union")
462 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
463 (home-page "http://lgames.sourceforge.net/LTris/")
464 (synopsis "Tetris clone based on the SDL library")
466 "LTris is a tetris clone: differently shaped blocks are falling down the
467 rectangular playing field and can be moved sideways or rotated by 90 degree
468 units with the aim of building lines without gaps which then disappear (causing
469 any block above the deleted line to fall down). LTris has three game modes: In
470 Classic you play until the stack of blocks reaches the top of the playing field
471 and no new blocks can enter. In Figures the playing field is reset to a new
472 figure each level and later on tiles and lines suddenly appear. In Multiplayer
473 up to three players (either human or CPU) compete with each other sending
474 removed lines to all opponents. There is also a Demo mode in which you can
475 watch your CPU playing while enjoying a cup of tea!")
476 (license license:gpl2+)))
478 (define-public prboom-plus
484 (uri (string-append "mirror://sourceforge/" name "/" name "/"
485 version "/" name "-" version ".tar.gz"))
488 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
489 (modules '((guix build utils)))
491 '(substitute* "src/version.c"
493 (("__TIME__") "")))))
494 (build-system gnu-build-system)
496 '(#:configure-flags '("--disable-cpu-opt")
497 #:make-flags `(,(string-append "gamesdir="
498 (assoc-ref %outputs "out") "/bin"))
500 (modify-phases %standard-phases
501 (add-after 'set-paths 'set-sdl'paths
502 (lambda* (#:key inputs #:allow-other-keys)
504 (string-append (assoc-ref inputs "sdl-union")
508 `(("fluidsynth" ,fluidsynth)
512 ("libvorbis" ,libvorbis)
514 ("portmidi" ,portmidi)
515 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
516 (home-page "http://prboom-plus.sourceforge.net/")
517 (synopsis "Version of the classic 3D shoot'em'up game Doom")
519 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
520 (license license:gpl2+)))
528 (uri (string-append "mirror://savannah/retux/"
529 (version-major+minor version) "/retux-"
530 version "-src.tar.gz"))
533 "1pcrh3z16fl412r3k7xccrgika19ahb1xh90jihgl8yy7zza2i6p"))))
534 (build-system python-build-system)
536 `(#:tests? #f ; no check target
538 (modify-phases %standard-phases
539 ;; no setup.py script
542 (lambda* (#:key outputs #:allow-other-keys)
543 (let* ((out (assoc-ref outputs "out"))
544 (bin (string-append out "/bin"))
545 (data (string-append out "/share/retux"))
546 (doc (string-append out "/share/doc/retux")))
549 (substitute* "retux.py"
550 ;; Use the correct data directory.
551 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
552 (string-append "\"" data "\","))
553 ;; Use Python 3 so the patch-shebangs phase works properly.
554 ((".*python2.*") "#!/usr/bin/python3"))
556 (copy-file "retux.py" (string-append bin "/retux"))
558 (copy-recursively "data" data)
560 (install-file "COPYING" doc)))))))
562 `(("python-sge-pygame" ,python-sge-pygame)
563 ("python-six" ,python-six)
564 ("python-xsge" ,python-xsge)))
565 (home-page "http://retux.nongnu.org")
566 (synopsis "Action platformer game")
568 "ReTux is an action platformer loosely inspired by the Mario games,
569 utilizing the art assets from the @code{SuperTux} project.")
570 ;; GPL version 3 or later is the license for the code and some art.
571 ;; The rest of the licenses are for the art exclusively, as listed in
573 (license (list license:cc0
580 (define-public xshogi
587 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
591 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
592 (build-system gnu-build-system)
596 (home-page "https://www.gnu.org/software/gnushogi/")
597 (synopsis "User interface for gnushogi")
598 (description "A graphical user interface for the package @code{gnushogi}.")
599 ;; Contains a copy of GPLv3 but the licence notices simply
600 ;; state "GNU General Public Licence" without specifying a version.
601 (license license:gpl1+)))
603 (define-public abbaye
610 (uri (string-append "https://github.com/nevat/abbayedesmorts-gpl/"
611 "archive/v" version ".tar.gz"))
612 (file-name (string-append name "-" version ".tar.gz"))
615 "1a67b0hq6271dd7pvwndjq29cwn2n8gawwz17xafa3k1hrhf8vw3"))
616 (modules '((guix build utils)))
619 '(delete-file-recursively "fonts"))))
620 (build-system gnu-build-system)
622 '(#:make-flags '("CC=gcc")
623 #:phases (modify-phases %standard-phases
624 (add-after 'set-paths 'set-sdl-paths
625 (lambda* (#:key inputs #:allow-other-keys)
627 (string-append (assoc-ref inputs "sdl-union")
629 (add-after 'patch-source-shebangs 'patch-makefile
630 (lambda* (#:key outputs #:allow-other-keys)
631 ;; Replace /usr with package output directory.
632 (substitute* "Makefile"
633 (("/usr") (assoc-ref outputs "out")))))
634 (add-before 'install 'make-install-dirs
635 (lambda* (#:key outputs #:allow-other-keys)
636 (let ((prefix (assoc-ref outputs "out")))
637 ;; Create directories that the makefile assumes exist.
638 (mkdir-p (string-append prefix "/bin"))
639 (mkdir-p (string-append prefix "/share/applications"))
640 (mkdir-p (string-append prefix "/share/pixmaps")))))
641 ;; No configure script.
643 #:tests? #f)) ;; No check target.
644 (native-inputs `(("pkg-config" ,pkg-config)))
645 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
646 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
647 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
648 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
649 France. The Cathars, who preach about good Christian beliefs, were being
650 expelled by the Catholic Church out of the Languedoc region in France. One of
651 them, called Jean Raymond, found an old church in which to hide, not knowing
652 that beneath its ruins lay buried an ancient evil.")
653 (license license:gpl3)))
655 (define-public angband
662 (uri (string-append "http://rephial.org/downloads/4.0/"
663 "angband-" version ".tar.gz"))
666 "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd"))
667 (modules '((guix build utils)))
669 ;; So, some of the sounds/graphics/tilesets are under different
670 ;; licenses... some of them even nonfree! This is a console-only
671 ;; version of this package so we just remove them.
672 ;; In the future, if someone tries to make a graphical variant of
673 ;; this package, they can deal with that mess themselves. :)
677 (let ((lib-subdir (string-append "lib/" subdir)))
678 (delete-file-recursively lib-subdir)))
679 '("fonts" "icons" "sounds" "tiles"))
680 (substitute* "lib/Makefile"
681 ;; And don't try to invoke makefiles in the directories we removed
682 (("gamedata customize help screens fonts tiles sounds icons user")
683 "gamedata customize help screens user"))))))
684 (build-system gnu-build-system)
686 `(#:tests? #f ;no check target
687 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
689 (modify-phases %standard-phases
690 (add-after 'unpack 'autogen.sh
692 (substitute* "acinclude.m4"
693 (("ncursesw5-config") "ncursesw6-config"))
694 (zero? (system* "sh" "autogen.sh")))))))
696 `(("autoconf" ,autoconf)
697 ("automake" ,automake)))
698 (inputs `(("ncurses" ,ncurses)))
699 (home-page "http://rephial.org/")
700 (synopsis "Dungeon exploration roguelike")
701 (description "Angband is a Classic dungeon exploration roguelike. Explore
702 the depths below Angband, seeking riches, fighting monsters, and preparing to
703 fight Morgoth, the Lord of Darkness.")
704 (license license:gpl2)))
706 (define-public pingus
713 (uri (string-append "https://github.com/Pingus/pingus/archive/v"
715 (file-name (string-append name "-" version ".tar.gz"))
718 "0r9v6as5vi7skvvy7b0fcaimhdlzmik64pyy68plgljhsghqkkf4"))
719 (patches (search-patches "pingus-sdl-libs-config.patch"))))
720 (build-system gnu-build-system)
721 (native-inputs `(("pkg-config" ,pkg-config)
723 (inputs `(("sdl" ,sdl)
724 ("sdl-image" ,sdl-image)
725 ("sdl-mixer" ,sdl-mixer)
731 '(#:tests? #f ; no check target
733 (modify-phases %standard-phases
734 (delete 'configure) ; no configure script
736 (lambda* (#:key outputs #:allow-other-keys)
737 (zero? (system* "make" "install"
738 (string-append "PREFIX="
739 (assoc-ref outputs "out")))))))))
740 (home-page "http://pingus.seul.org/welcome.html")
741 (synopsis "Lemmings clone")
743 "Pingus is a free Lemmings-like puzzle game in which the player takes
744 command of a bunch of small animals and has to guide them through levels.
745 Since the animals walk on their own, the player can only influence them by
746 giving them commands, like build a bridge, dig a hole, or redirect all animals
747 in the other direction. Multiple such commands are necessary to reach the
748 level's exit. The game is presented in a 2D side view.")
749 ;; Some source files are under bsd-3 and gpl2+ licenses.
750 (license license:gpl3+)))
752 (define-public talkfilters
759 (uri (string-append "http://www.hyperrealm.com/" name "/"
760 name "-" version ".tar.gz"))
762 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
763 (build-system gnu-build-system)
764 (home-page "https://www.gnu.org/software/talkfilters/")
765 (synopsis "Convert English text to humorous dialects")
766 (description "The GNU Talk Filters are programs that convert English text
767 into stereotyped or otherwise humorous dialects. The filters are provided as
768 a C library, so they can easily be integrated into other programs.")
769 (license license:gpl2+)))
771 (define-public cmatrix
778 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
782 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
783 (build-system gnu-build-system)
786 (modify-phases %standard-phases
788 (lambda* (#:key outputs #:allow-other-keys)
789 ;; This old ‘configure’ script doesn't support
790 ;; variables passed as arguments.
791 (let ((out (assoc-ref outputs "out")))
792 (setenv "CONFIG_SHELL" (which "bash"))
794 (system* "./configure"
795 (string-append "--prefix=" out)))))))))
796 (inputs `(("ncurses" ,ncurses)))
797 (home-page "http://www.asty.org/cmatrix")
798 (synopsis "Simulate the display from \"The Matrix\"")
799 (description "CMatrix simulates the display from \"The Matrix\" and is
800 based on the screensaver from the movie's website. It works with terminal
801 settings up to 132x300 and can scroll lines all at the same rate or
802 asynchronously and at a user-defined speed.")
803 (license license:gpl2+)))
812 (uri (string-append "mirror://gnu/chess/gnuchess-" version
816 "00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs"))))
817 (build-system gnu-build-system)
818 (home-page "https://www.gnu.org/software/chess/")
819 (synopsis "Full chess implementation")
820 (description "GNU Chess is a chess engine. It allows you to compete
821 against the computer in a game of chess, either through the default terminal
822 interface or via an external visual interface such as GNU XBoard.")
823 (license license:gpl3+)))
825 (define freedink-engine
827 (name "freedink-engine")
831 (uri (string-append "mirror://gnu/freedink/freedink-" version
835 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
836 (build-system gnu-build-system)
837 (arguments `(#:configure-flags '("--disable-embedded-resources")))
838 (native-inputs `(("gettext" ,gettext-minimal)
839 ("pkg-config" ,pkg-config)))
840 (inputs `(("sdl" ,sdl)
841 ("sdl-image" ,sdl-image)
842 ("sdl-mixer" ,sdl-mixer)
845 ("fontconfig" ,fontconfig)
847 (home-page "https://www.gnu.org/software/freedink/")
848 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
850 "GNU FreeDink is a free and portable re-implementation of the engine
851 for the role-playing game Dink Smallwood. It supports not only the original
852 game data files but it also supports user-produced game mods or \"D-Mods\".
853 To that extent, it also includes a front-end for managing all of your D-Mods.")
854 (license license:gpl3+)))
856 (define freedink-data
858 (name "freedink-data")
859 (version "1.08.20170401")
862 (uri (string-append "mirror://gnu/freedink/freedink-data-"
866 "1zx7qywibhznj7bnz217404scr8dfh0xj24xjihnda5iapzz7lz8"))))
867 (build-system gnu-build-system)
870 (modify-phases %standard-phases
871 (delete 'configure) ; no configure script
872 (delete 'check)) ; no tests
873 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
874 (home-page "https://www.gnu.org/software/freedink/")
875 (synopsis "Game data for GNU Freedink")
877 "This package contains the game data of GNU Freedink.")
878 (license license:gpl3+)))
880 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
882 (define-public freedink
883 ;; This is a wrapper that tells the engine where to find the data.
884 (package (inherit freedink-engine)
886 (build-system trivial-build-system)
889 (use-modules (guix build utils))
891 (let* ((output (assoc-ref %outputs "out"))
892 (bin (string-append output "/bin"))
893 (executable (string-append bin "/freedink")))
895 (call-with-output-file executable
897 (format port "#!~a/bin/sh
898 exec ~a/bin/freedink -refdir ~a/share/dink\n"
899 (assoc-ref %build-inputs "bash")
900 (assoc-ref %build-inputs "engine")
901 (assoc-ref %build-inputs "data"))
902 (chmod port #o777)))))
903 #:modules ((guix build utils))))
904 (inputs `(("engine" ,freedink-engine)
905 ("data" ,freedink-data)
907 (native-inputs '())))
909 (define-public xboard
916 (uri (string-append "mirror://gnu/xboard/xboard-" version
920 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
921 (build-system gnu-build-system)
924 ("librsvg" ,librsvg)))
926 `(("texinfo" ,texinfo)
927 ("pkg-config" ,pkg-config)))
928 (home-page "https://www.gnu.org/software/xboard/")
929 (synopsis "Graphical user interface for chess programs")
930 (description "GNU XBoard is a graphical board for all varieties of chess,
931 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
932 and Makruk. Several lesser-known variants are also supported. It presents a
933 fully interactive graphical interface and it can load and save games in the
934 Portable Game Notation.")
935 (license license:gpl3+)))
938 (define-public xboing
945 (uri (string-append "http://www.techrescue.org/xboing/xboing"
948 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
952 (modify-phases %standard-phases
954 (lambda* (#:key outputs #:allow-other-keys)
956 (substitute* "Imakefile"
957 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
958 (string-append "XPMINCLUDE = -I"
959 (assoc-ref %build-inputs "libxpm")
962 (substitute* "Imakefile"
963 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
965 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
967 (zero? (system* "xmkmf" "-a"
968 (string-append "-DProjectRoot="
969 (assoc-ref outputs "out"))))))
971 (lambda* (#:key outputs #:allow-other-keys)
973 (zero? (system* "make" "install.man"))
974 (zero? (system* "make" "install"))))))))
975 (inputs `(("libx11" ,libx11)
978 (native-inputs `(("imake" ,imake)
979 ("inetutils" ,inetutils)
980 ("makedepend" ,makedepend)))
981 (build-system gnu-build-system)
982 (home-page "http://www.techrescue.org/xboing")
983 (synopsis "Ball and paddle game")
984 (description "XBoing is a blockout type game where you have a paddle which
985 you control to bounce a ball around the game zone destroying blocks with a
986 proton ball. Each block carries a different point value. The more blocks you
987 destroy, the better your score. The person with the highest score wins.")
988 (license (license:x11-style "file://COPYING"
989 "Very similar to the X11 licence."))))
991 (define-public gtypist
997 (uri (string-append "mirror://gnu/gtypist/gtypist-"
1001 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
1002 (modules '((guix build utils)))
1004 ;; We do not provide `ncurses.h' within an `ncursesw'
1005 ;; sub-directory, so patch the source accordingly. See
1006 ;; <http://bugs.gnu.org/19018>.
1007 '(for-each (lambda (file)
1009 (("ncursesw/ncurses.h")
1011 (find-files "." "configure$|\\.c$")))))
1012 (build-system gnu-build-system)
1013 (inputs `(("ncurses" ,ncurses)
1015 (home-page "https://www.gnu.org/software/gtypist/")
1016 (synopsis "Typing tutor")
1018 "GNU Typist is a universal typing tutor. It can be used to learn and
1019 practice touch-typing. Several tutorials are included; in addition to
1020 tutorials for the standard QWERTY layout, there are also tutorials for the
1021 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
1022 are primarily in English, however some in other languages are provided.")
1023 (license license:gpl3+)))
1025 (define-public irrlicht
1032 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
1033 (version-major+minor version)
1034 "/" version "/irrlicht-" version ".zip"))
1037 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
1038 (build-system gnu-build-system)
1041 (modify-phases %standard-phases
1042 (add-after 'unpack 'fix-build-env
1043 (lambda* (#:key outputs #:allow-other-keys)
1044 (let ((out (assoc-ref outputs "out")))
1045 (substitute* "Makefile"
1046 (("INSTALL_DIR = /usr/local/lib")
1047 (string-append "INSTALL_DIR = " out "/lib")))
1048 ;; The Makefile assumes these directories exist.
1049 (mkdir-p (string-append out "/lib"))
1050 (mkdir-p (string-append out "/include")))))
1052 (lambda* (#:key source #:allow-other-keys)
1053 (and (zero? (system* "unzip" source))
1054 ;; The actual source is buried a few directories deep.
1055 (chdir (string-append "irrlicht-" ,version
1056 "/source/Irrlicht/")))))
1057 (delete 'configure)) ; no configure script
1058 #:tests? #f ; no check target
1059 #:make-flags '("CC=gcc" "sharedlib")))
1061 `(("unzip" ,unzip)))
1065 (synopsis "3D game engine written in C++")
1067 "The Irrlicht Engine is a high performance realtime 3D engine written in
1068 C++. Features include an OpenGL renderer, extensible materials, scene graph
1069 management, character animation, particle and other special effects, support
1070 for common mesh file formats, and collision detection.")
1071 (home-page "http://irrlicht.sourceforge.net/")
1072 (license license:zlib)))
1075 ;; The latest release on SourceForge relies on an unreleased version of SFML
1076 ;; with a different API, so we take the latest version from the official
1077 ;; repository on Github.
1078 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
1082 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
1086 (url "https://github.com/thelaui/M.A.R.S..git")
1088 (file-name (string-append name "-" version))
1091 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
1092 (patches (search-patches "mars-sfml-2.3.patch"
1093 "mars-install.patch"))))
1094 (build-system cmake-build-system)
1096 `(#:tests? #f ; There are no tests
1098 (modify-phases %standard-phases
1099 (add-after 'unpack 'fix-install-path
1101 (substitute* "src/CMakeLists.txt"
1102 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
1103 "${CMAKE_INSTALL_PREFIX}/bin"))
1105 (add-after 'unpack 'fix-data-path
1106 (lambda* (#:key outputs #:allow-other-keys)
1107 (substitute* "src/System/settings.cpp"
1108 (("C_dataPath = \"./data/\";")
1109 (string-append "C_dataPath = \""
1110 (assoc-ref outputs "out")
1111 "/share/games/marsshooter/\";")))
1115 ("fribidi" ,fribidi)
1118 (home-page "http://marsshooter.org")
1119 (synopsis "2D space shooter")
1121 "M.A.R.S. is a 2D space shooter with pretty visual effects and
1122 attractive physics. Players can battle each other or computer controlled
1123 enemies in different game modes such as space ball, death match, team death
1124 match, cannon keep, and grave-itation pit.")
1125 (license license:gpl3+))))
1127 (define minetest-data
1129 (name "minetest-data")
1134 "https://github.com/minetest/minetest_game/archive/"
1136 (file-name (string-append name "-" version ".tar.gz"))
1139 "0nibpm600rbv9dg1zgcsl5grlbqx0b5l6cg1lp6sqkwvjialb4ga"))))
1140 (build-system trivial-build-system)
1142 `(("source" ,source)
1144 ("gzip" ,(@ (gnu packages compression) gzip))))
1146 `(#:modules ((guix build utils))
1148 (use-modules (guix build utils))
1149 (let ((tar (string-append (assoc-ref %build-inputs "tar")
1151 (install-dir (string-append
1153 "/share/minetest/games/minetest_game"))
1154 (path (string-append (assoc-ref %build-inputs
1157 (setenv "PATH" path)
1158 (system* tar "xvf" (assoc-ref %build-inputs "source"))
1159 (chdir (string-append "minetest_game-" ,version))
1160 (mkdir-p install-dir)
1161 (copy-recursively "." install-dir)))))
1162 (synopsis "Main game data for the Minetest game engine")
1164 "Game data for the Minetest infinite-world block sandox game.")
1165 (home-page "http://minetest.net")
1166 (license license:lgpl2.1+)))
1168 (define-public minetest
1175 "https://github.com/minetest/minetest/archive/"
1177 (file-name (string-append name "-" version ".tar.gz"))
1180 "0mbnf1ma4gsw9ah68ply04059xkfx5psdxwalxp78sgmx4ypkwqf"))))
1181 (build-system cmake-build-system)
1184 (list "-DRUN_IN_PLACE=0"
1185 "-DENABLE_FREETYPE=1"
1186 "-DENABLE_GETTEXT=1"
1187 (string-append "-DIRRLICHT_INCLUDE_DIR="
1188 (assoc-ref %build-inputs "irrlicht")
1189 "/include/irrlicht")
1190 (string-append "-DCURL_INCLUDE_DIR="
1191 (assoc-ref %build-inputs "curl")
1193 #:tests? #f)) ; no check target
1194 (native-search-paths
1195 (list (search-path-specification
1196 (variable "MINETEST_SUBGAME_PATH")
1197 (files '("share/minetest/games")))))
1199 `(("pkg-config" ,pkg-config)))
1201 `(("irrlicht" ,irrlicht)
1203 ("libjpeg" ,libjpeg)
1204 ("libxxf86vm" ,libxxf86vm)
1207 ("libvorbis" ,libvorbis)
1209 ("freetype" ,(@ (gnu packages fontutils) freetype))
1212 ("gettext" ,gettext-minimal)
1213 ("sqlite" ,sqlite)))
1215 `(("minetest-data" ,minetest-data)))
1216 (synopsis "Infinite-world block sandbox game")
1218 "Minetest is a sandbox construction game. Players can create and destroy
1219 various types of blocks in a three-dimensional open world. This allows
1220 forming structures in every possible creation, on multiplayer servers or as a
1221 single player. Mods and texture packs allow players to personalize the game
1222 in different ways.")
1223 (home-page "http://minetest.net")
1224 (license license:lgpl2.1+)))
1233 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1234 "glk/implementations/glkterm-104.tar.gz"))
1237 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
1238 (build-system gnu-build-system)
1239 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
1241 '(#:tests? #f ; no check target
1243 (modify-phases %standard-phases
1245 (lambda* (#:key outputs #:allow-other-keys)
1246 (let* ((out (assoc-ref outputs "out"))
1247 (inc (string-append out "/include"))
1248 (lib (string-append out "/lib")))
1251 (install-file file inc))
1252 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
1253 (install-file "libglkterm.a" lib))
1255 (delete 'configure)))) ; no configure script
1256 (home-page "http://www.eblong.com/zarf/glk/")
1257 (synopsis "Curses Implementation of the Glk API")
1259 "Glk defines a portable API for applications with text UIs. It was
1260 primarily designed for interactive fiction, but it should be suitable for many
1261 interactive text utilities, particularly those based on a command line.
1262 This is an implementation of the Glk library which runs in a terminal window,
1263 using the @code{curses.h} library for screen control.")
1264 (license (license:fsf-free "file://README"))))
1266 (define-public glulxe
1273 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1274 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
1277 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
1278 (build-system gnu-build-system)
1279 (inputs `(("glk" ,glkterm)))
1281 '(#:tests? #f ; no check target
1283 (let* ((glk (assoc-ref %build-inputs "glk")))
1284 (list (string-append "GLKINCLUDEDIR=" glk "/include")
1285 (string-append "GLKLIBDIR=" glk "/lib")
1286 (string-append "GLKMAKEFILE=" "Make.glkterm")))
1288 (modify-phases %standard-phases
1290 (lambda* (#:key outputs #:allow-other-keys)
1291 (let* ((out (assoc-ref outputs "out"))
1292 (bin (string-append out "/bin")))
1293 (install-file "glulxe" bin))
1295 (delete 'configure)))) ; no configure script
1296 (home-page "http://www.eblong.com/zarf/glulx/")
1297 (synopsis "Interpreter for Glulx VM")
1299 "Glulx is a 32-bit portable virtual machine intended for writing and
1300 playing interactive fiction. It was designed by Andrew Plotkin to relieve
1301 some of the restrictions in the venerable Z-machine format. This is the
1302 reference interpreter, using the Glk API.")
1303 (license license:expat)))
1305 (define-public fizmo
1311 (uri (string-append "https://christoph-ender.de/fizmo/source/"
1312 name "-" version ".tar.gz"))
1315 "1sd988db2302r7cbfcfghbmg8ck43c6hvnlnlpb0rqxb7pm9cwyy"))))
1316 (build-system gnu-build-system)
1319 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
1320 (ncurses (assoc-ref %build-inputs "ncurses")))
1321 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
1322 (string-append "jpeg_LIBS=-ljpeg")
1323 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
1324 (string-append "ncursesw_LIBS=-lncursesw")))))
1326 `(("pkg-config" ,pkg-config)))
1328 `(("freetype" ,freetype)
1329 ("libjpeg" ,libjpeg)
1331 ("libsndfile" ,libsndfile)
1332 ("libxml2" ,libxml2)
1333 ("ncurses" ,ncurses)
1335 (home-page "https://christoph-ender.de/fizmo/")
1336 (synopsis "Z-machine interpreter")
1338 "Fizmo is a console-based Z-machine interpreter. It is used to play
1339 interactive fiction, also known as text adventures, which were implemented
1340 either by Infocom or created using the Inform compiler.")
1341 (license license:bsd-3)))
1343 (define-public retroarch
1350 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
1352 (file-name (string-append name "-" version ".tar.gz"))
1354 (base32 "13vp5skf95a4fla3dwdk2v48dgnmrvimvp9fgpr1vppb7wfjhbr1"))))
1355 (build-system gnu-build-system)
1357 '(#:tests? #f ; no tests
1359 (modify-phases %standard-phases
1361 (lambda* (#:key outputs #:allow-other-keys)
1362 (let* ((out (assoc-ref outputs "out"))
1363 (etc (string-append out "/etc")))
1364 (substitute* "qb/qb.libs.sh"
1365 (("/bin/true") (which "true")))
1366 ;; The configure script does not yet accept the extra arguments
1367 ;; (like ‘CONFIG_SHELL=’) passed by the default configure phase.
1370 (string-append "--prefix=" out)
1371 (string-append "--global-config-dir=" etc)))))))))
1373 `(("alsa-lib" ,alsa-lib)
1375 ("freetype" ,freetype)
1376 ("libxinerama" ,libxinerama)
1377 ("libxkbcommon" ,libxkbcommon)
1378 ("libxml2" ,libxml2)
1382 ("pulseaudio" ,pulseaudio)
1388 `(("pkg-config" ,pkg-config)
1390 (home-page "https://www.libretro.com/")
1391 (synopsis "Reference frontend for the libretro API")
1393 "Libretro is a simple but powerful development interface that allows for
1394 the easy creation of emulators, games and multimedia applications that can plug
1395 straight into any libretro-compatible frontend. RetroArch is the official
1396 reference frontend for the libretro API, currently used by most as a modular
1397 multi-system game/emulator system.")
1398 (license license:gpl3+)))
1400 (define-public gnugo
1406 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
1410 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
1411 (build-system gnu-build-system)
1412 (inputs `(("readline" ,readline)))
1413 (synopsis "Play the game of Go")
1415 "GNU Go is a program that plays the game of Go, in which players
1416 place stones on a grid to form territory or capture other stones. While
1417 it can be played directly from the terminal, rendered in ASCII characters,
1418 it is also possible to play GNU Go with 3rd party graphical interfaces or
1419 even in Emacs. It supports the standard game storage format (SGF, Smart
1420 Game Format) and inter-process communication format (GMP, Go Modem
1422 (home-page "https://www.gnu.org/software/gnugo/")
1423 (license license:gpl3+)))
1425 (define-public extremetuxracer
1427 (name "extremetuxracer")
1432 "mirror://sourceforge/extremetuxracer/releases/"
1433 version "/etr-" version ".tar.xz"))
1436 "0d2j4ybdjmimg67v2fndgahgq4fvgz3fpfb3a4l1ar75n6hy776s"))))
1437 (build-system gnu-build-system)
1439 `(("pkg-config" ,pkg-config)))
1443 (synopsis "High speed arctic racing game based on Tux Racer")
1444 ;; Snarfed straight from Debian
1445 (description "Extreme Tux Racer, or etracer as it is called for short, is
1446 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
1447 game is to slide down a snow- and ice-covered mountain as quickly as possible,
1448 avoiding the trees and rocks that will slow you down.
1450 Collect herrings and other goodies while sliding down the hill, but avoid fish
1453 This game is based on the GPL version of the famous game TuxRacer.")
1454 (home-page "https://sourceforge.net/projects/extremetuxracer/")
1455 (license license:gpl2+)))
1457 (define-public supertuxkart
1459 (name "supertuxkart")
1464 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
1465 version "/supertuxkart-" version "-src.tar.xz"))
1468 "10l2ljmd7mv8f9ylarqmxxryicdnph2qkm3g5maxnsm2k2q0n20b"))
1469 (patches (search-patches "supertuxkart-angelscript-ftbfs.patch"))
1470 (modules '((guix build utils)))
1472 ;; Delete bundled library sources
1474 ;; FIXME: try to unbundle enet, and angelscript
1475 (for-each delete-file-recursively
1481 (substitute* "CMakeLists.txt"
1482 ;; Supertuxkart uses modified versions of the Irrlicht engine
1483 ;; and the bullet library. The developers gave an explanation here:
1484 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1485 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1487 (build-system cmake-build-system)
1489 `(#:tests? #f ; no check target
1491 (list "-DUSE_WIIUSE=0"
1492 ;; Do not use the bundled zlib
1493 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1494 ;; Irrlicht returns an integer instead of a boolean
1495 "-DCMAKE_C_FLAGS=-fpermissive")
1497 (modify-phases %standard-phases
1498 (add-after 'unpack 'unbundle
1499 (lambda* (#:key inputs #:allow-other-keys)
1500 (substitute* "CMakeLists.txt"
1502 (string-append (assoc-ref inputs "glew")
1504 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1505 (string-append "include_directories(\""
1506 (assoc-ref inputs "glew")
1513 ("libvorbis" ,libvorbis)
1514 ("freetype" ,freetype)
1515 ("fribidi" ,fribidi)
1518 ("libxrandr" ,libxrandr)
1520 ;; The following input is needed to build the bundled and modified
1521 ;; version of irrlicht.
1522 ("libjpeg" ,libjpeg)))
1524 `(("pkg-config" ,pkg-config)))
1525 (home-page "http://supertuxkart.net")
1526 (synopsis "3D kart racing game")
1527 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1528 having fun over realism. You can play with up to 4 friends on one PC, racing
1529 against each other or just trying to beat the computer; single-player mode is
1531 (license license:gpl3+)))
1533 (define-public gnujump
1539 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1543 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1544 (build-system gnu-build-system)
1547 (modify-phases %standard-phases
1549 'configure 'link-libm
1550 (lambda _ (setenv "LIBS" "-lm"))))))
1555 ("sdl-image" ,sdl-image)
1556 ("sdl-mixer" ,sdl-mixer)))
1557 (home-page "http://gnujump.es.gnu.org/")
1559 "Game of jumping to the next floor, trying not to fall")
1561 "GNUjump is a simple, yet addictive game in which you must jump from
1562 platform to platform to avoid falling, while the platforms drop at faster rates
1563 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1564 falling, themeable graphics and sounds, and replays.")
1565 (license license:gpl3+)))
1567 (define-public wesnoth
1573 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1574 (version-major+minor version) "/wesnoth-"
1576 name "-" version ".tar.bz2"))
1579 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1580 (build-system cmake-build-system)
1582 '(#:tests? #f ; no check target
1584 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1585 ;; boost/mpl/assert.hpp:313:58: error:
1586 ;; use of old-style cast [-Werror=old-style-cast]
1588 ;; cc1plus: all warnings being treated as errors
1589 '("-DENABLE_STRICT_COMPILATION=OFF")))
1591 `(("gettext" ,gettext-minimal)
1592 ("pkg-config" ,pkg-config)))
1596 ("fribidi" ,fribidi)
1597 ("libvorbis" ,libvorbis)
1599 ("sdl-image" ,sdl-image)
1600 ("sdl-mixer" ,sdl-mixer)
1601 ("sdl-net" ,sdl-net)
1602 ("sdl-ttf" ,sdl-ttf)))
1603 (home-page "http://www.wesnoth.org/")
1604 (synopsis "Turn-based strategy game")
1606 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1607 with several single player campaigns, and multiplayer games (both networked and
1610 Battle for control on a range of maps, using variety of units which have
1611 advantages and disadvantages against different types of attacks. Units gain
1612 experience and advance levels, and are carried over from one scenario to the
1614 (license license:gpl2+)))
1616 (define-public dosbox
1619 (version "0.74.svn3947")
1623 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1625 (file-name (string-append name "-" version "-checkout"))
1626 ;; Use SVN head, since the last release (2010) is incompatible
1627 ;; with GCC 4.8+ (see
1628 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1631 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1632 (build-system gnu-build-system)
1634 `(#:phases (modify-phases %standard-phases
1638 (zero? (system* "sh" "autogen.sh")))))))
1640 `(("autoconf" ,autoconf)
1641 ("automake" ,automake)))
1646 ("alsa-lib" ,alsa-lib)
1649 (home-page "http://www.dosbox.com")
1650 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1651 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1652 also emulates CPU:286/386 realmode/protected mode, Directory
1653 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1654 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1656 (license license:gpl2+)))
1658 (define-public gamine
1664 (uri (string-append "mirror://sourceforge/gamine-game/"
1665 "gamine-" version ".tar.gz"))
1668 "08wnk7w84c2413hwny89j2cn89cvfdf67bfc6wl0bf475if0mf4h"))))
1669 (build-system gnu-build-system)
1671 `(("pkg-config" ,pkg-config)
1672 ("intltool" ,intltool)))
1674 `(("gstreamer" ,gstreamer)
1675 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1676 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1681 (let ((out (assoc-ref %outputs "out")))
1682 (list (string-append "PREFIX=" out)
1683 (string-append "SYSCONFDIR=" out "/etc")))
1685 (modify-phases %standard-phases
1688 'install 'wrap-gamine
1689 (lambda* (#:key outputs #:allow-other-keys)
1690 (let ((out (assoc-ref outputs "out"))
1691 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1692 (wrap-program (string-append out "/bin/gamine")
1693 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1695 (home-page "http://gamine-game.sourceforge.net/")
1696 (synopsis "Mouse and keyboard discovery for children")
1698 "Gamine is a game designed for young children who are learning to use the
1699 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1700 on the screen and keyboard to display letters.")
1701 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1702 (license license:gpl3)))
1704 (define-public raincat
1712 "http://hackage.haskell.org/package/Raincat/Raincat-"
1717 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1718 (build-system haskell-build-system)
1720 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1721 ("ghc-mtl" ,ghc-mtl)
1722 ("ghc-random" ,ghc-random)
1723 ("ghc-glut" ,ghc-glut)
1724 ("freeglut" ,freeglut)
1725 ("ghc-opengl" ,ghc-opengl)
1726 ("ghc-sdl" ,ghc-sdl)
1727 ("ghc-sdl-image" ,ghc-sdl-image)
1728 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1729 (home-page "http://www.bysusanlin.com/raincat/")
1730 (synopsis "Puzzle game with a cat in lead role")
1731 (description "Project Raincat is a game developed by Carnegie Mellon
1732 students through GCS during the Fall 2008 semester. Raincat features game
1733 play inspired from classics Lemmings and The Incredible Machine. The project
1734 proved to be an excellent learning experience for the programmers. Everything
1735 is programmed in Haskell.")
1736 (license license:bsd-3)))
1738 (define-public manaplus
1741 (version "1.7.6.10")
1745 "http://repo.manaplus.org/manaplus/download/"
1746 version "/manaplus-" version ".tar.xz"))
1749 "0l7swvpzq20am4w2rsjpp6fsvbjv07il6wbfy45a7h9zsdihmqhl"))))
1750 (build-system gnu-build-system)
1753 (list (string-append "CPPFLAGS=-I"
1754 (assoc-ref %build-inputs "sdl-union")
1757 `(("pkg-config" ,pkg-config)))
1761 ("libxml2" ,libxml2)
1763 ("sdl-union" ,(sdl-union))))
1764 (home-page "http://manaplus.org")
1765 (synopsis "Client for 'The Mana World' and similar games")
1767 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1768 fully supported client for @uref{http://www.themanaworld.org, The mana
1769 world}, @uref{http://evolonline.org, Evol Online} and
1770 @uref{http://landoffire.org, Land of fire}.")
1771 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1772 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1773 ;; The rest is under GPL2+.
1774 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1776 (define-public mupen64plus-core
1778 (name "mupen64plus-core")
1784 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1786 (file-name (string-append name "-" version ".tar.gz"))
1788 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1789 (build-system gnu-build-system)
1791 `(("pkg-config" ,pkg-config)
1794 `(("freetype" ,freetype)
1802 (modify-phases %standard-phases
1803 ;; The mupen64plus build system has no configure phase.
1805 ;; Makefile is in a subdirectory.
1807 'build 'cd-to-project-dir
1809 (chdir "projects/unix"))))
1810 #:make-flags (let ((out (assoc-ref %outputs "out")))
1811 (list "all" (string-append "PREFIX=" out)))
1812 ;; There are no tests.
1814 ;; As per the Makefile (in projects/unix/Makefile):
1815 (supported-systems '("i686-linux" "x86_64-linux"))
1816 (home-page "http://www.mupen64plus.org/")
1817 (synopsis "Nintendo 64 emulator core library")
1819 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1820 which is capable of accurately playing many games. This package contains the
1822 (license license:gpl2+)))
1824 (define-public mupen64plus-audio-sdl
1826 (name "mupen64plus-audio-sdl")
1832 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1834 (file-name (string-append name "-" version ".tar.gz"))
1836 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1837 (build-system gnu-build-system)
1839 `(("pkg-config" ,pkg-config)
1842 `(("mupen64plus-core" ,mupen64plus-core)
1846 (modify-phases %standard-phases
1847 ;; The mupen64plus build system has no configure phase.
1849 ;; Makefile is in a subdirectory.
1851 'build 'cd-to-project-dir
1853 (chdir "projects/unix"))))
1855 (let ((out (assoc-ref %outputs "out"))
1856 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1858 (string-append "PREFIX=" out)
1859 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1860 ;; There are no tests.
1862 (home-page "http://www.mupen64plus.org/")
1863 (synopsis "Mupen64Plus SDL input plugin")
1865 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1866 which is capable of accurately playing many games. This package contains the
1868 (license license:gpl2+)))
1870 (define-public mupen64plus-input-sdl
1872 (name "mupen64plus-input-sdl")
1878 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1880 (file-name (string-append name "-" version ".tar.gz"))
1882 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1883 (build-system gnu-build-system)
1885 `(("which" ,which)))
1887 `(("mupen64plus-core" ,mupen64plus-core)
1891 (modify-phases %standard-phases
1892 ;; The mupen64plus build system has no configure phase.
1894 ;; Makefile is in a subdirectory.
1896 'build 'cd-to-project-dir
1898 (chdir "projects/unix"))))
1900 (let ((out (assoc-ref %outputs "out"))
1901 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1903 (string-append "PREFIX=" out)
1904 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1905 ;; There are no tests.
1907 (home-page "http://www.mupen64plus.org/")
1908 (synopsis "Mupen64Plus SDL input plugin")
1910 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1911 which is capable of accurately playing many games. This package contains the
1913 (license license:gpl2+)))
1915 (define-public mupen64plus-rsp-hle
1917 (name "mupen64plus-rsp-hle")
1923 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1925 (file-name (string-append name "-" version ".tar.gz"))
1927 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1928 (build-system gnu-build-system)
1930 `(("mupen64plus-core" ,mupen64plus-core)))
1933 (modify-phases %standard-phases
1934 ;; The mupen64plus build system has no configure phase.
1936 ;; Makefile is in a subdirectory.
1938 'build 'cd-to-project-dir
1940 (chdir "projects/unix"))))
1942 (let ((out (assoc-ref %outputs "out"))
1943 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1945 (string-append "PREFIX=" out)
1946 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1947 ;; There are no tests.
1949 (home-page "http://www.mupen64plus.org/")
1950 (synopsis "Mupen64Plus SDL input plugin")
1952 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1953 which is capable of accurately playing many games. This package contains the
1954 high-level emulation (HLE) RSP processor plugin.")
1955 (license license:gpl2+)))
1957 (define-public mupen64plus-rsp-z64
1959 (name "mupen64plus-rsp-z64")
1965 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1967 (file-name (string-append name "-" version ".tar.gz"))
1969 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1970 (build-system gnu-build-system)
1972 `(("mupen64plus-core" ,mupen64plus-core)))
1975 (modify-phases %standard-phases
1976 ;; The mupen64plus build system has no configure phase.
1978 ;; Makefile is in a subdirectory.
1980 'build 'cd-to-project-dir
1982 (chdir "projects/unix"))))
1984 (let ((out (assoc-ref %outputs "out"))
1985 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1987 (string-append "PREFIX=" out)
1988 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1989 ;; There are no tests.
1991 (home-page "http://www.mupen64plus.org/")
1992 (synopsis "Mupen64Plus SDL input plugin")
1994 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1995 which is capable of accurately playing many games. This package contains the
1996 Z64 RSP processor plugin.")
1997 (license license:gpl2+)))
1999 (define-public mupen64plus-video-arachnoid
2001 (name "mupen64plus-video-arachnoid")
2007 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
2009 (file-name (string-append name "-" version ".tar.gz"))
2011 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
2012 (build-system gnu-build-system)
2014 `(("pkg-config" ,pkg-config)
2018 ("mupen64plus-core" ,mupen64plus-core)))
2021 (modify-phases %standard-phases
2022 ;; The mupen64plus build system has no configure phase.
2024 ;; Makefile is in a subdirectory.
2026 'build 'cd-to-project-dir
2028 (chdir "projects/unix"))))
2030 (let ((out (assoc-ref %outputs "out"))
2031 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
2033 (string-append "PREFIX=" out)
2034 (string-append "APIDIR=" m64p "/include/mupen64plus")))
2035 ;; There are no tests.
2037 (home-page "http://www.mupen64plus.org/")
2038 (synopsis "Mupen64Plus Rice Video plugin")
2040 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
2041 which is capable of accurately playing many games. This package contains the
2042 Arachnoid video plugin.")
2043 (license license:gpl2+)))
2045 (define-public mupen64plus-video-glide64
2047 (name "mupen64plus-video-glide64")
2053 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
2055 (file-name (string-append name "-" version ".tar.gz"))
2057 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
2058 (build-system gnu-build-system)
2060 `(("pkg-config" ,pkg-config)
2064 ("mupen64plus-core" ,mupen64plus-core)
2068 (modify-phases %standard-phases
2069 ;; The mupen64plus build system has no configure phase.
2071 ;; Makefile is in a subdirectory.
2073 'build 'cd-to-project-dir
2075 (chdir "projects/unix")))
2076 ;; XXX Should be unnecessary with the next release.
2080 (substitute* "Makefile"
2081 (("SDL_CONFIG = (.*)sdl-config" all prefix)
2082 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
2084 (let ((out (assoc-ref %outputs "out"))
2085 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
2087 (string-append "PREFIX=" out)
2088 (string-append "APIDIR=" m64p "/include/mupen64plus")))
2089 ;; There are no tests.
2091 (home-page "http://www.mupen64plus.org/")
2092 (synopsis "Mupen64Plus Rice Video plugin")
2094 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
2095 which is capable of accurately playing many games. This package contains the
2096 Glide64 video plugin.")
2097 (license license:gpl2+)))
2099 (define-public mupen64plus-video-glide64mk2
2101 (name "mupen64plus-video-glide64mk2")
2107 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
2109 (file-name (string-append name "-" version ".tar.gz"))
2111 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
2112 (build-system gnu-build-system)
2114 `(("pkg-config" ,pkg-config)
2120 ("mupen64plus-core" ,mupen64plus-core)
2125 (modify-phases %standard-phases
2126 ;; The mupen64plus build system has no configure phase.
2128 ;; Makefile is in a subdirectory.
2130 'build 'cd-to-project-dir
2132 (chdir "projects/unix"))))
2134 (let ((out (assoc-ref %outputs "out"))
2135 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
2137 (string-append "PREFIX=" out)
2138 (string-append "APIDIR=" m64p "/include/mupen64plus")))
2139 ;; There are no tests.
2141 (home-page "http://www.mupen64plus.org/")
2142 (synopsis "Mupen64Plus Rice Video plugin")
2144 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
2145 which is capable of accurately playing many games. This package contains the
2146 Glide64MK2 video plugin.")
2147 (license license:gpl2+)))
2149 (define-public mupen64plus-video-rice
2151 (name "mupen64plus-video-rice")
2157 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
2159 (file-name (string-append name "-" version ".tar.gz"))
2161 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
2162 (build-system gnu-build-system)
2164 `(("pkg-config" ,pkg-config)
2167 `(("libpng" ,libpng)
2169 ("mupen64plus-core" ,mupen64plus-core)
2173 (modify-phases %standard-phases
2174 ;; The mupen64plus build system has no configure phase.
2176 ;; Makefile is in a subdirectory.
2178 'build 'cd-to-project-dir
2180 (chdir "projects/unix"))))
2182 (let ((out (assoc-ref %outputs "out"))
2183 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
2185 (string-append "PREFIX=" out)
2186 (string-append "APIDIR=" m64p "/include/mupen64plus")))
2187 ;; There are no tests.
2189 (home-page "http://www.mupen64plus.org/")
2190 (synopsis "Mupen64Plus Rice Video plugin")
2192 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
2193 which is capable of accurately playing many games. This package contains the
2194 Rice Video plugin.")
2195 (license license:gpl2+)))
2197 (define-public mupen64plus-video-z64
2199 (name "mupen64plus-video-z64")
2205 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
2207 (file-name (string-append name "-" version ".tar.gz"))
2209 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
2210 (build-system gnu-build-system)
2212 `(("pkg-config" ,pkg-config)
2216 ("mupen64plus-core" ,mupen64plus-core)
2220 (modify-phases %standard-phases
2221 ;; The mupen64plus build system has no configure phase.
2223 ;; Makefile is in a subdirectory.
2225 'build 'cd-to-project-dir
2227 (chdir "projects/unix")))
2228 ;; XXX Should be unnecessary with the next release.
2232 (substitute* "Makefile"
2233 (("SDL_CONFIG = (.*)sdl-config" all prefix)
2234 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
2236 (let ((out (assoc-ref %outputs "out"))
2237 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
2239 (string-append "PREFIX=" out)
2240 (string-append "APIDIR=" m64p "/include/mupen64plus")))
2241 ;; There are no tests.
2243 (home-page "http://www.mupen64plus.org/")
2244 (synopsis "Mupen64Plus Z64 video plugin")
2246 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
2247 which is capable of accurately playing many games. This package contains the
2249 (license license:gpl2+)))
2251 (define-public mupen64plus-ui-console
2253 (name "mupen64plus-ui-console")
2259 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
2261 (file-name (string-append name "-" version ".tar.gz"))
2263 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
2264 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
2265 (build-system gnu-build-system)
2267 `(("pkg-config" ,pkg-config)
2271 ;; Mupen64Plus supports a single data directory and a single plugin
2272 ;; directory in its configuration, yet we need data and plugin files from
2273 ;; a variety of packages. The best way to deal with this is to install
2274 ;; all packages from which data and plugin files are needed into one's
2275 ;; profile, and point the configuration there. Hence, propagate the most
2276 ;; important packages here to save the user from the bother. The patch
2277 ;; mupen64plus-ui-console-notice also gives users instructions on what
2278 ;; they need to do in order to point the configuration to their profile.
2280 `(("mupen64plus-core" ,mupen64plus-core)
2281 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
2282 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
2283 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
2284 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
2285 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
2286 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
2289 (modify-phases %standard-phases
2290 ;; The mupen64plus build system has no configure phase.
2292 ;; Makefile is in a subdirectory.
2294 'build 'cd-to-project-dir
2296 (chdir "projects/unix"))))
2298 (let ((out (assoc-ref %outputs "out"))
2299 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
2301 (string-append "PREFIX=" out)
2302 (string-append "APIDIR=" m64p "/include/mupen64plus")
2303 ;; Trailing slash matters here.
2304 (string-append "COREDIR=" m64p "/lib/")))
2305 ;; There are no tests.
2307 (home-page "http://www.mupen64plus.org/")
2308 (synopsis "Mupen64Plus SDL input plugin")
2310 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
2311 which is capable of accurately playing many games. This package contains the
2312 command line user interface. Installing this package is the easiest way
2313 towards a working Mupen64Plus for casual users.")
2314 (license license:gpl2+)))
2316 (define-public nestopia-ue
2318 (name "nestopia-ue")
2323 "https://github.com/rdanbrook/nestopia/archive/"
2325 (file-name (string-append name "-" version ".tar.gz"))
2328 "1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
2329 (modules '((guix build utils)))
2332 ;; We don't need libretro for the GNU/Linux build.
2333 (delete-file-recursively "libretro")
2335 (delete-file-recursively "source/zlib")
2336 (substitute* "source/core/NstZlib.cpp"
2337 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
2338 (build-system gnu-build-system)
2340 `(("pkg-config" ,pkg-config)))
2345 ("libarchive" ,libarchive)
2351 (modify-phases %standard-phases
2352 ;; The Nestopia build system consists solely of a Makefile.
2354 (add-before 'build 'remove-xdg-desktop-menu-call
2356 (substitute* "Makefile"
2357 (("xdg-desktop-menu install .*") ""))))
2358 (add-before 'build 'remove-gdkwayland-include
2360 (substitute* "source/unix/gtkui/gtkui.h"
2361 (("#include <gdk/gdkwayland\\.h>") "")))))
2362 #:make-flags (let ((out (assoc-ref %outputs "out")))
2363 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
2364 ;; There are no tests.
2366 (home-page "http://0ldsk00l.ca/nestopia/")
2367 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
2369 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
2370 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
2371 emulation community. It provides highly accurate emulation.")
2372 (license license:gpl2+)))
2374 (define-public emulation-station
2375 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
2377 (name "emulation-station")
2380 (method git-fetch) ; no tarball available
2382 (url "https://github.com/Aloshi/EmulationStation.git")
2383 (commit commit))) ; no version tag
2386 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
2387 (build-system cmake-build-system)
2389 '(#:tests? #f)) ; no tests
2391 `(("alsa-lib" ,alsa-lib)
2395 ("freeimage" ,freeimage)
2396 ("freetype" ,freetype)
2399 (synopsis "Video game console emulator front-end")
2400 (description "EmulationStation provides a graphical front-end to a large
2401 number of video game console emulators. It features an interface that is
2402 usable with any game controller that has at least 4 buttons, theming support,
2403 and a game metadata scraper.")
2404 (home-page "http://www.emulationstation.org")
2405 (license license:expat))))
2407 (define openttd-engine
2409 (name "openttd-engine")
2412 (origin (method url-fetch)
2413 (uri (string-append "http://binaries.openttd.org/releases/"
2414 version "/openttd-" version "-source.tar.xz"))
2417 "0dhv5bbbg1dmmq7fi3xss0a9jq2rqgb5sf9fsqzlsjcdm590j6b1"))
2418 (modules '((guix build utils)))
2420 ;; The DOS port contains proprietary software.
2421 '(delete-file-recursively "os/dos"))))
2422 (build-system gnu-build-system)
2424 `(#:tests? #f ; no "check" target
2426 (modify-phases %standard-phases
2427 ;; The build process fails if the configure script is passed the
2428 ;; option "--enable-fast-install".
2430 (lambda* (#:key inputs outputs (configure-flags '())
2432 (let ((out (assoc-ref outputs "out"))
2433 (lzo (assoc-ref inputs "lzo")))
2435 (apply system* "./configure"
2436 (string-append "--prefix=" out)
2437 ;; Provide the "lzo" path.
2438 (string-append "--with-liblzo2="
2439 lzo "/lib/liblzo2.a")
2440 ;; Put the binary in 'bin' instead of 'games'.
2442 configure-flags))))))))
2443 (native-inputs `(("pkg-config" ,pkg-config)))
2445 `(("allegro" ,allegro-4)
2446 ("fontconfig" ,fontconfig)
2447 ("freetype" ,freetype)
2454 (synopsis "Transportation economics simulator")
2455 (description "OpenTTD is a game in which you transport goods and
2456 passengers by land, water and air. It is a re-implementation of Transport
2457 Tycoon Deluxe with many enhancements including multiplayer mode,
2458 internationalization support, conditional orders and the ability to clone,
2459 autoreplace and autoupdate vehicles. This package only includes the game
2460 engine. When you start it you will be prompted to download a graphics set.")
2461 (home-page "http://openttd.org/")
2462 ;; This package is GPLv2, except for a few files located in
2463 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
2464 ;; licenses. In addition, this software contains an in-game downloader
2465 ;; from which the user may find non-functional data licensed under
2467 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
2469 (define openttd-opengfx
2471 (name "openttd-opengfx")
2476 (uri (string-append "http://binaries.openttd.org/extra/opengfx/"
2477 version "/opengfx-" version "-source.tar.xz"))
2480 "0iz66q7p1mf00njfjbc4vibh3jaybki7armkl18iz7p6x4chp9zv"))))
2481 (build-system gnu-build-system)
2483 '(#:make-flags (list "CC=gcc"
2484 (string-append "INSTALL_DIR="
2485 (assoc-ref %outputs "out")
2486 "/share/games/openttd/baseset/opengfx"))
2488 (modify-phases %standard-phases
2491 ;; Make sure HOME is writable for GIMP.
2492 (setenv "HOME" (getcwd))
2494 ;; Redirect stdout, not stderr, to /dev/null. This prevents
2495 ;; dos2unix from receiving its version information as a flag.
2496 (substitute* "Makefile"
2497 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
2498 "$(UNIX2DOS) -q --version 1>/dev/null")))))
2499 ;; The check phase for this package only checks the md5sums of the built
2500 ;; GRF files against the md5sums of the release versions. Because we use
2501 ;; different software versions than upstream does, some of the md5sums
2502 ;; are different. However, the package is still reproducible, it's safe
2503 ;; to disable this test.
2505 (native-inputs `(("dos2unix" ,dos2unix)
2507 ("grfcodec" ,grfcodec)
2509 ("python" ,python-2)))
2510 (home-page "http://dev.openttdcoop.org/projects/opengfx")
2511 (synopsis "Base graphics set for OpenTTD")
2513 "The OpenGFX projects is an implementation of the OpenTTD base grahics
2514 set that aims to ensure the best possible out-of-the-box experience.
2516 OpenGFX provides you with...
2518 @item All graphics you need to enjoy OpenTTD.
2519 @item Uniquely drawn rail vehicles for every climate.
2520 @item Completely snow-aware rivers.
2521 @item Different river and sea water.
2522 @item Snow-aware buoys.
2524 (license license:gpl2)))
2526 (define openttd-opensfx
2528 (name "openttd-opensfx")
2534 "https://binaries.openttd.org/extra/opensfx/"
2535 version "/opensfx-" version "-source.tar.gz"))
2538 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
2539 (build-system gnu-build-system)
2541 `(("catcodec" ,catcodec)
2542 ("python" ,python2-minimal)))
2545 (list (string-append "INSTALL_DIR=" %output
2546 "/share/games/openttd/baseset/opensfx"))
2548 (modify-phases %standard-phases
2549 (add-after 'unpack 'make-reproducible
2551 ;; Remove the time dependency of the installed tarball by setting
2552 ;; the modification times if its members to 0.
2553 (substitute* "scripts/Makefile.def"
2554 (("-cf") " --mtime=@0 -cf"))
2556 (delete 'configure))))
2557 (home-page "http://dev.openttdcoop.org/projects/opensfx")
2558 (synopsis "Base sounds for OpenTTD")
2559 (description "OpenSFX is a set of free base sounds for OpenTTD which make
2560 it possible to play OpenTTD without requiring the proprietary sound files from
2561 the original Transport Tycoon Deluxe.")
2562 (license license:cc-sampling-plus-1.0)))
2564 (define openttd-openmsx
2566 (name "openttd-openmsx")
2572 "https://binaries.openttd.org/extra/openmsx/"
2573 version "/openmsx-" version "-source.tar.gz"))
2576 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
2577 (build-system gnu-build-system)
2579 `(("python" ,python2-minimal)))
2582 (list (string-append "INSTALL_DIR=" %output
2583 "/share/games/openttd/baseset"))
2585 (modify-phases %standard-phases
2587 (add-after 'install 'post-install
2588 ;; Rename openmsx-version to openmsx
2589 (lambda* (#:key outputs #:allow-other-keys)
2590 (let ((install-directory (string-append (assoc-ref outputs "out")
2591 "/share/games/openttd/baseset")))
2592 (rename-file (string-append install-directory "/openmsx-" ,version)
2593 (string-append install-directory "/openmsx"))
2595 (home-page "http://dev.openttdcoop.org/projects/openmsx")
2596 (synopsis "Music set for OpenTTD")
2597 (description "OpenMSX is a music set for OpenTTD which makes it possible
2598 to play OpenTTD without requiring the proprietary music from the original
2599 Transport Tycoon Deluxe.")
2600 (license license:gpl2)))
2602 (define-public openttd
2604 (inherit openttd-engine)
2608 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
2610 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
2612 `(modify-phases ,phases
2613 (add-after 'install 'install-data
2614 (lambda* (#:key inputs outputs #:allow-other-keys)
2617 (copy-recursively (assoc-ref inputs input)
2618 (assoc-ref outputs "out")))
2619 (list "opengfx" "openmsx" "opensfx"))
2622 `(("timidity++" ,timidity++)
2623 ,@(package-inputs openttd-engine)))
2625 `(("opengfx" ,openttd-opengfx)
2626 ("openmsx" ,openttd-openmsx)
2627 ("opensfx" ,openttd-opensfx)
2628 ,@(package-native-inputs openttd-engine)))))
2630 (define-public pinball
2635 (origin (method url-fetch)
2636 (uri (string-append "mirror://sourceforge/pinball/pinball/"
2637 "pinball-" version "/"
2638 "pinball-" version ".tar.gz"))
2641 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2642 (patches (search-patches "pinball-const-fix.patch"
2643 "pinball-cstddef.patch"
2644 "pinball-missing-separators.patch"
2645 "pinball-src-deps.patch"
2646 "pinball-system-ltdl.patch"))))
2647 (build-system gnu-build-system)
2652 ("sdl-image" ,sdl-image)
2653 ("sdl-mixer" ,sdl-mixer)))
2656 (list (string-append "CPPFLAGS=-I"
2657 (assoc-ref %build-inputs "sdl-image")
2659 (assoc-ref %build-inputs "sdl-mixer")
2661 (home-page "http://pinball.sourceforge.net")
2662 (synopsis "Pinball simulator")
2663 (description "The Emilia Pinball Project is a pinball simulator. There
2664 are only two levels to play with, but they are very addictive.")
2665 (license license:gpl2)))
2667 (define-public pioneers
2673 (uri (string-append "http://downloads.sourceforge.net/pio/"
2674 "pioneers-" version ".tar.gz"))
2677 "1p1d18hrfmqcnghip3shkzcs5qkz6j99jvkdkqfi7pqdvjc323cs"))))
2678 (build-system gnu-build-system)
2679 (inputs `(("gtk+" ,gtk+)
2680 ("librsvg" ,librsvg)
2682 (native-inputs `(("intltool" ,intltool)
2683 ("pkg-config" ,pkg-config)))
2684 (synopsis "Board game inspired by The Settlers of Catan")
2685 (description "Pioneers is an emulation of the board game The Settlers of
2686 Catan. It can be played on a local network, on the internet, and with AI
2688 (home-page "http://pio.sourceforge.net/")
2689 (license license:gpl2+)))
2691 (define-public desmume
2699 "mirror://sourceforge/desmume/desmume/"
2700 version "/desmume-" version ".tar.gz"))
2703 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2704 (build-system gnu-build-system)
2706 ;; Enable support for WiFi and microphone.
2707 `(#:configure-flags '("--enable-wifi"
2708 "--enable-openal")))
2710 `(("pkg-config" ,pkg-config)
2711 ("intltool" ,intltool)))
2718 (home-page "http://desmume.org/")
2719 (synopsis "Nintendo DS emulator")
2721 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2722 (license license:gpl2)))
2724 (define-public einstein
2730 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2731 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2734 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2735 (patches (search-patches "einstein-build.patch"))))
2736 (build-system gnu-build-system)
2738 `(("freetype" ,freetype)
2739 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2742 `(("font-dejavu" ,font-dejavu)))
2744 `(#:tests? #f ; no check target
2746 (modify-phases %standard-phases
2748 (lambda* (#:key outputs inputs #:allow-other-keys)
2749 (let ((out (assoc-ref outputs "out"))
2750 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2751 "/share/fonts/truetype/DejaVuSans.ttf")))
2752 (substitute* "Makefile"
2753 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2754 ;; The patch above registers a free font for use by the binary,
2755 ;; but the font is copied during the compile phase into a
2756 ;; resources file, so we need to make the ttf file available.
2757 (symlink dejavu "res/DejaVuSans.ttf")
2759 (synopsis "Logic puzzle game")
2760 (description "The goal of this logic game is to open all cards in a 6x6
2761 grid, using a number of hints as to their relative position. The game idea
2762 is attributed to Albert Einstein.")
2763 ;; The original home page has disappeared.
2764 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2765 "http://games.flowix.com/en/index.html"))
2766 ;; License according to
2767 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2768 ;; The source code is a DFSG-sanitized tarball and does not contain any
2769 ;; license information.
2770 (license license:gpl3+)))
2772 (define-public powwow
2779 "https://www.hoopajoo.net/static/projects/powwow-"
2781 (file-name (string-append name "-" version ".tar.gz"))
2784 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2786 `(("ncurses" ,ncurses)))
2787 (build-system gnu-build-system)
2788 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2789 (synopsis "MUD and telnet client")
2791 "POWWOW is a client software which can be used for telnet as well as for
2792 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2793 the chat server psyced with the specific config located at
2794 http://lavachat.symlynx.com/unix/")
2795 (license license:gpl2+)))
2797 (define-public red-eclipse
2799 '(("acerspyro" "0zmg78scrfdv33h7vszqvzylcqjwg7d5b0j2riav3rjfh326j8xx")
2800 ("actors" "0l00rsvppqzdpsikm5qpj38jiygirszxlzay2nxp4g4n2qjq0m4a")
2801 ("appleflap" "0jhfr7f13hk3nswwxqc4jajriipr6zz6j63v955nv4sgxs7lzbjd")
2802 ("blendbrush" "1nk0zaisbqf2khrivq8ls6z2lnh6d51m133m2ppxk7k4c9gq1imq")
2803 ("caustics" "1hq08k476wayi0kmk4ps8h6jr75yinq04f1r2p8r79xsdpxq9my5")
2804 ("crosshairs" "1gmrmjm7i7n9py0qrzamk7ygi63yx1mr2pp6iwz2vwngprl03n8m")
2805 ("dziq" "0gr36ydrv8syjxv7w9dw3ix8waaq201fzxr0klkqp260p8xp215s")
2806 ("elyvisions" "05syxlpsap6nfwxnnd0ls7qj1p4vhw2jxi41pi5inwpfifapfphz")
2807 ("fonts" "184syks602xc657q08973w5ji50x5zssvd4vp2q2ig8m68iyr51c")
2808 ("freezurbern" "020gpgcpy4rqjd9d18npfm96j8f02jcjnccbxcgzk1yb58y687ya")
2809 ("john" "0hj5kwlb2gb0gsnl9bk7dkqlk8r7vxcw8gxpgrb3kfn8d9cwcb7k")
2810 ("jojo" "0fij06040r7s5p7jksxm7wxi9jqwkhhm8iywys0dagk8j2wcbvsz")
2811 ("jwin" "0ysfynjvypc8dszf7rsvk02jgw8fmsli49vy2xpm83zpkrqpddgf")
2812 ("luckystrike" "1bm0xdqjv35ry5xwbzw3a3v1xf2gj1jwfg29nyl6w3ch0h6crr11")
2813 ("maps" "0c9d1zxmpnngwhchzw6xb6cf84cx8xyycmdqcvyhamrd95d96qma")
2814 ("mayhem" "133pdql7ari159skd9qdmw0p1m73x32d1v6jswkz0xwk8vgxmkil")
2815 ("mikeplus64" "1d5npn9wlw0mviz9vhzzcsj98jvfh1wbvlh1nyqfj4ws5nfxhs7x")
2816 ("misc" "19x2ps6yxnfrz0xdhqdwncaq25ds7i4w2l8sdfi95yh2r7c5k1qn")
2817 ("nieb" "15029nipl92cb0jbh46z00k51hf3jk4v05pwx266b6b11bapdz0c")
2818 ("nobiax" "0k9apim5z4ihd5ajmnbq4gyh24w872dv0mr5v8wqn31a8gxzahhp")
2819 ("particles" "06827r9pnhzjil381xiwcbc93v9nxin7qlr59yrvk9gdzxmklk9m")
2820 ("philipk" "1l6fhl6qz471vjn05hvk29bm8dhwnzqbmi2hdylpa9k998nzkfc1")
2821 ("projectiles" "03ay8ik52n3vx723swqlnl5gpkzf1v1gadwj3zcnh43ch7nd2bqh")
2822 ("props" "1yxz7gfmb79sqqrkyfdzp4ar9rf5f1kpfij4nrkk1l8vbw9liksc")
2823 ("skyboxes" "1mm98mhb6yhb006p1hlic91jcwjxhq79mblxciwbqqa9c5g4yki6")
2824 ("snipergoth" "1vlpmwlg71g6l5b706gp82bc07i5bbw2zphzynm2fx49za0zdi44")
2825 ("sounds" "156g5wh8cvdh6zr33haqm566sd28ylnzdf2h4pqzpxbb2i19vbfg")
2826 ("textures" "0wkhl5cgymr9kslzhksi83hs15rb0q01xvax5khi6b4dcl3mrmsh")
2827 ("torley" "1xlag6ndjyqafl984n6d9zi96dv9aif7vrc2nvikc3iwgjwlbxav")
2828 ("trak" "12x9ix8zkqn9svy56qmdgj4x2814qh25f4srplgq691lqn9qjhvd")
2829 ("ulukai" "0gz1hd8hca2biskc85hw4jjacpsmqg9x4w6cwrka8x987xmc92k5")
2830 ("unnamed" "09v8fjy6jqypm1i121kilg3z6zpw7dm0i4gxhd9b7ihprvzvy8r7")
2831 ("vanities" "0m3vfq9l71pbb80qz4s3k8r5azmm158chqbw8snch09ymxm6h462")
2832 ("vegetation" "07yzm9lbzr624j4i652ny5p762p83gadg40c1k8gwff4y7yk55gn")
2833 ("weapons" "05fsp17gdrhjqdwia7rwdw9gcijaqwcnny8lf6krms43xmn8cj0x")
2834 ("wicked" "0jjgwzdibr5my369gwvmvbklpjlwq939zgf643rv0168xc087xb2"))))
2836 (name "red-eclipse")
2840 (uri (string-append "https://github.com/red-eclipse/base"
2841 "/archive/v" version ".tar.gz"))
2842 (file-name (string-append name "-" version ".tar.gz"))
2845 "1ah92axwcai0fhgm7pvfb2dxvfdiwwyh8iqyiffndh6782hxz3bc"))))
2846 (build-system gnu-build-system)
2848 `(#:tests? #f ; no check target
2849 #:make-flags (list "CC=gcc" "-Csrc"
2850 (string-append "INSTDIR="
2851 (assoc-ref %outputs "out") "/bin"))
2853 (modify-phases %standard-phases
2854 (add-after 'unpack 'unpack-data
2855 (lambda* (#:key inputs #:allow-other-keys)
2856 (delete-file-recursively "data")
2858 (for-each (lambda (name)
2859 (system* "tar" "-xvf"
2860 (assoc-ref inputs name)
2864 name "-" ,version "/"
2866 (list ,@(map car data-sources)))
2868 (delete 'configure) ; no configure script
2869 (add-after 'set-paths 'set-sdl-paths
2870 (lambda* (#:key inputs #:allow-other-keys)
2872 (string-append (assoc-ref inputs "sdl-union")
2875 (add-after 'install 'copy-data
2876 (lambda* (#:key outputs #:allow-other-keys)
2877 (let ((out (assoc-ref outputs "out")))
2878 (copy-recursively "config"
2879 (string-append out "/config"))
2880 (copy-file "doc/examples/servinit.cfg"
2881 (string-append out "/config/servinit.cfg"))
2882 (copy-recursively "data"
2883 (string-append out "/data")))
2885 (add-after 'copy-data 'wrap-program
2886 (lambda* (#:key inputs outputs #:allow-other-keys)
2887 (let* ((out (assoc-ref outputs "out"))
2888 (bin (string-append out "/bin")))
2889 (with-directory-excursion bin
2890 (rename-file "redeclipse_linux"
2891 ".redeclipse_linux-real")
2892 (rename-file "redeclipse_server_linux"
2893 ".redeclipse_server_linux-real")
2894 (call-with-output-file "redeclipse_linux"
2896 (format port "#!~a/bin/sh
2897 # Run the thing from its home, otherwise it just bails out.
2899 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2900 (assoc-ref inputs "bash") ;implicit input
2902 (string-append bin))))
2903 (call-with-output-file "redeclipse_server_linux"
2905 (format port "#!~a/bin/sh
2906 # Run the thing from its home, otherwise it just bails out.
2908 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2909 (assoc-ref inputs "bash") ;implicit input
2911 (string-append bin))))
2912 (chmod "redeclipse_linux" #o555)
2913 (chmod "redeclipse_server_linux" #o555)))
2915 (native-inputs `(("pkg-config" ,pkg-config)))
2919 ("sdl-union" ,(sdl-union (list sdl2
2922 ;; Create origin records for the many separate data packages.
2923 ,@(map (match-lambda
2929 "https://github.com/red-eclipse/"
2930 name "/archive/v" version ".tar.gz"))
2931 (sha256 (base32 hash))
2932 (file-name (string-append name "-" version
2935 (home-page "http://redeclipse.net/")
2936 (synopsis "Arena shooter derived from the Cube 2 engine")
2938 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2939 Offering an innovative parkour system and distinct but all potent weapons,
2940 Red Eclipse provides fast paced and accessible gameplay.")
2941 ;; The engine is under Zlib; data files are covered by the other
2942 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2943 (license (list license:expat
2949 (define-public higan
2957 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2959 (file-name (string-append name "-" version ".tar.gz"))
2961 (base32 "18by01ir2mvdi9hq571in1hk18gw2bd0ynq4avfs1qj0qra35fqb"))
2962 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2963 (build-system gnu-build-system)
2965 `(("pkg-config" ,pkg-config)))
2967 `(("alsa-lib" ,alsa-lib)
2971 ("gtksourceview-2" ,gtksourceview-2)
2975 ("pulseaudio" ,pulseaudio)
2979 (let ((build-phase (assoc-ref %standard-phases 'build))
2980 (install-phase (assoc-ref %standard-phases 'install)))
2981 (modify-phases %standard-phases
2982 ;; The higan build system has no configure phase.
2984 (add-before 'build 'chdir-to-higan
2987 (add-before 'install 'create-/share/applications
2988 (lambda* (#:key outputs #:allow-other-keys)
2989 (let ((out (assoc-ref outputs "out")))
2990 ;; It seems the author forgot to do this in the Makefile.
2991 (mkdir-p (string-append out "/share/applications")))))
2992 (add-after 'install 'chdir-to-icarus
2994 (chdir "../icarus")))
2995 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2996 (add-after 'build-icarus 'install-icarus install-phase)
2997 (add-after 'install-icarus 'wrap-higan-executable
2998 (lambda* (#:key inputs outputs #:allow-other-keys)
2999 (let* ((out (assoc-ref outputs "out"))
3000 (bin (string-append out "/bin"))
3001 (higan (string-append bin "/higan"))
3002 (higan-original (string-append higan "-original"))
3003 (bash (string-append (assoc-ref inputs "bash")
3005 (coreutils (assoc-ref inputs "coreutils"))
3006 (mkdir (string-append coreutils "/bin/mkdir"))
3007 (cp (string-append coreutils "/bin/cp"))
3008 (cp-r (string-append cp " -r --no-preserve=mode")))
3009 ;; First, have the executable make sure ~/.local/share/higan
3010 ;; contains up to date files. Higan insists on looking there
3011 ;; for these data files.
3012 (rename-file higan higan-original)
3013 (with-output-to-file higan
3018 ;; higan doesn't respect $XDG_DATA_HOME
3019 mkdir " -p ~/.local/share\n"
3020 cp-r " " out "/share/higan ~/.local/share\n"
3021 "exec " higan-original))))
3023 ;; Second, make sure higan will find icarus in PATH.
3025 `("PATH" ":" prefix (,bin))))))))
3027 (list "compiler=g++"
3028 (string-append "prefix=" (assoc-ref %outputs "out")))
3029 ;; There is no test suite.
3031 (home-page "http://byuu.org/emulation/higan/")
3032 (synopsis "Nintendo multi-system emulator")
3034 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
3035 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
3036 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
3037 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
3038 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
3039 ;; As noted in these files among more:
3040 ;; - icarus/icarus.cpp
3041 ;; - higan/emulator/emulator.hpp
3042 (license license:gpl3)))
3050 (uri (string-append "https://github.com/mgba-emu/mgba/archive/"
3052 (file-name (string-append name "-" version ".tar.gz"))
3055 "01zy2w5pihlkrmbm51icgyff6iqyqa5ha6qrm4aj8ibzznz03kyq"))
3056 (modules '((guix build utils)))
3058 ;; Make sure we don't use the bundled software.
3061 (let ((lib-subdir (string-append "src/third-party/" subdir)))
3062 (delete-file-recursively lib-subdir)))
3063 '("libpng" "lzma" "sqlite3" "zlib")))))
3064 (build-system cmake-build-system)
3066 `(#:tests? #f ;no "test" target
3068 (list "-DUSE_LZMA=OFF" ;do not use bundled LZMA
3069 "-DUSE_LIBZIP=OFF" ;use "zlib" instead
3070 ;; Validate RUNPATH phase fails ("error: depends on
3071 ;; 'libmgba.so.0.6', which cannot be found in RUNPATH") without
3072 ;; the following S-exp.
3073 (string-append "-DCMAKE_INSTALL_LIBDIR="
3074 (assoc-ref %outputs "out")
3076 (native-inputs `(("pkg-config" ,pkg-config)))
3077 (inputs `(("ffmpeg" ,ffmpeg)
3078 ("imagemagick" ,imagemagick)
3079 ("libedit" ,libedit)
3080 ("libepoxy" ,libepoxy)
3083 ("minizip" ,minizip)
3084 ("ncurses" ,ncurses)
3086 ("qtmultimedia" ,qtmultimedia)
3087 ("qttools" ,qttools)
3091 (home-page "https://mgba.io")
3092 (synopsis "Game Boy Advance emulator")
3094 "mGBA is an emulator for running Game Boy Advance games. It aims to be
3095 faster and more accurate than many existing Game Boy Advance emulators, as
3096 well as adding features that other emulators lack. It also supports Game Boy
3097 and Game Boy Color games.")
3098 ;; Code is mainly MPL 2.0. "blip_buf.c" is LGPL 2.1+ and "inih.c" is
3100 (license (list license:mpl2.0 license:lgpl2.1+ license:bsd-3))))
3102 (define-public grue-hunter
3104 (name "grue-hunter")
3108 (uri (string-append "https://jxself.org/" name ".tar.gz"))
3111 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
3112 (build-system trivial-build-system) ; no Makefile.PL
3113 (arguments `(#:modules ((guix build utils))
3116 (use-modules (guix build utils))
3117 (use-modules (srfi srfi-1))
3119 (let* ((tarball (assoc-ref %build-inputs "tarball"))
3120 (perl (string-append (assoc-ref %build-inputs
3123 (gzip (string-append (assoc-ref %build-inputs
3126 (tar (string-append (assoc-ref %build-inputs
3129 (out (assoc-ref %outputs "out"))
3130 (bin (string-append out "/bin"))
3131 (doc (string-append out
3132 "/share/doc/grue-hunter")))
3134 (copy-file tarball "grue-hunter.tar.gz")
3135 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
3136 (zero? (system* tar "xvf" "grue-hunter.tar"))
3139 (copy-file "grue-hunter/gh.pl"
3140 (string-append bin "/grue-hunter"))
3141 (patch-shebang (string-append bin "/grue-hunter")
3144 (install-file "grue-hunter/AGPLv3.txt" doc))))))
3145 (inputs `(("perl" ,perl)
3148 ("tarball" ,source)))
3149 (home-page "http://jxself.org/grue-hunter.shtml")
3150 (synopsis "Text adventure game")
3152 "Grue Hunter is a text adventure game written in Perl. You must make
3153 your way through an underground cave system in search of the Grue. Can you
3154 capture it and get out alive?")
3155 (license license:agpl3+)))
3157 (define-public lierolibre
3163 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
3164 version "/+download/lierolibre-"
3168 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
3170 (search-patches "lierolibre-check-unaligned-access.patch"
3171 "lierolibre-try-building-other-arch.patch"
3172 "lierolibre-remove-arch-warning.patch"
3173 "lierolibre-newer-libconfig.patch"
3174 "lierolibre-is-free-software.patch"))
3175 (modules '((guix build utils)))
3178 ;; Delete pre-compiled files.
3179 (delete-file "data/LIERO.CHR")
3180 (delete-file "data/LIERO.SND")
3182 (build-system gnu-build-system)
3184 `(("imagemagick" ,imagemagick)
3185 ("pkg-config" ,pkg-config)
3186 ("util-linux" ,util-linux)
3190 ("libconfig" ,libconfig)
3191 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
3193 (home-page "https://gitlab.com/lierolibre/lierolibre")
3194 (synopsis "Old-school earthworm action game")
3196 "lierolibre is an earthworm action game where you fight another player
3197 (or the computer) underground using a wide array of weapons.
3201 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
3202 and Game of Tag, plus AI-players without true intelligence!
3203 @item Dat nostalgia.
3204 @item Extensions via a hidden F1 menu:
3207 @item Game controller support
3208 @item Powerlevel palettes
3210 @item Ability to write game variables to plain text files.
3211 @item Ability to load game variables from both EXE and plain text files.
3212 @item Scripts to extract and repack graphics, sounds and levels.
3215 To switch between different window sizes, use F6, F7 and F8, to switch to
3216 fullscreen, use F5 or Alt+Enter.")
3217 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
3218 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
3220 (define-public warzone2100
3222 (name "warzone2100")
3226 (uri (string-append "mirror://sourceforge/" name
3227 "/releases/" version "/" name "-" version
3231 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
3232 (build-system gnu-build-system)
3235 (modify-phases %standard-phases
3236 (add-after 'unpack 'link-tests-with-qt
3238 (substitute* "tests/Makefile.in"
3239 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
3240 (string-append prefix "$(QT5_LIBS) ")))
3242 (add-after 'unpack 'remove-reference-to-missing-file
3244 (substitute* "icons/Makefile.in"
3245 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
3247 (add-after 'unpack 'patch-for-qt5.8
3249 (substitute* "lib/widget/editbox.cpp"
3253 (native-inputs `(("pkg-config" ,pkg-config)
3256 (inputs `(("fontconfig" ,fontconfig)
3257 ("freetype" ,freetype)
3258 ("fribidi" ,fribidi)
3260 ("libtheora" ,libtheora)
3261 ("libvorbis" ,libvorbis)
3262 ("libxrandr" ,libxrandr)
3266 ("qtscript" ,qtscript)
3267 ("openssl" ,openssl)
3268 ("quesoglc" ,quesoglc)
3270 (home-page "http://wz2100.net")
3271 (synopsis "3D Real-time strategy and real-time tactics game")
3273 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
3274 modes. An extensive tech tree with over 400 different technologies, combined
3275 with the unit design system, allows for a wide variety of possible units and
3277 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
3278 (license (list license:bsd-3
3283 license:lgpl2.1+))))
3285 (define-public starfighter
3287 (name "starfighter")
3292 "mirror://savannah/starfighter/"
3293 (version-major+minor version) "/"
3294 name "-" version "-src.tar.gz"))
3297 "1646hpjq8bz2fkfkja1dah511hn7zd2r7da4w9c9blhad3p5732v"))))
3298 (build-system gnu-build-system)
3300 `(("pkg-config" ,pkg-config)))
3303 ("sdl2-image" ,sdl2-image)
3304 ("sdl2-mixer" ,sdl2-mixer)))
3305 (home-page "http://starfighter.nongnu.org/")
3306 (synopsis "2D scrolling shooter game")
3308 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
3309 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
3310 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
3311 way, you will encounter new foes, make new allies, and assist local rebels
3312 in strikes against the evil corporation.")
3313 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
3314 (license (list license:gpl3+
3318 license:public-domain))))
3320 (define-public chromium-bsu
3322 (name "chromium-bsu")
3323 (version "0.9.16.1")
3326 (uri (string-append "mirror://sourceforge/" name
3327 "/Chromium B.S.U. source code/"
3328 name "-" version ".tar.gz"))
3331 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
3332 (build-system gnu-build-system)
3333 (native-inputs `(("pkg-config" ,pkg-config)))
3334 (inputs `(("gettext" ,gettext-minimal)
3336 ("quesoglc" ,quesoglc)
3337 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
3338 (home-page "http://chromium-bsu.sourceforge.net/")
3339 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
3341 "In this game you are the captain of the cargo ship Chromium B.S.U. and
3342 are responsible for delivering supplies to the troops on the front line. Your
3343 ship has a small fleet of robotic fighters which you control from the relative
3344 safety of the Chromium vessel.")
3345 ;; Clarified Artistic License for everything but sound, which is covered
3346 ;; by the Expat License.
3347 (license (list license:clarified-artistic license:expat))))
3349 (define-public tuxpaint
3352 (version "0.9.22") ;keep VER_DATE below in sync
3356 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
3357 version "/tuxpaint-" version ".tar.gz"))
3360 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
3361 (modules '((guix build utils)))
3364 ;; Remove win32 directory which contains binary dll's and the
3365 ;; deprecated visualc directory.
3366 (for-each delete-file-recursively '("win32" "visualc"))
3367 (substitute* "Makefile"
3368 ;; Do not rely on $(GPERF) being an absolute file name
3369 (("\\[ -x \\$\\(GPERF\\) \\]")
3370 "$(GPERF) --version >/dev/null 2>&1"))))
3371 (patches (search-patches "tuxpaint-stamps-path.patch"))))
3372 (build-system gnu-build-system)
3375 ("pkg-config" ,pkg-config)))
3378 ("fribidi" ,fribidi)
3379 ("gettext" ,gettext-minimal)
3381 ("librsvg" ,librsvg)
3382 ("libpaper" ,libpaper)
3384 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
3385 ;; TODO: Use system fonts rather than those in data/fonts
3387 `(#:make-flags `("VER_DATE=2014-08-23"
3388 "GPERF=gperf" "CC=gcc"
3389 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
3390 ,(string-append "PREFIX=" %output)
3391 "GNOME_PREFIX=$(PREFIX)"
3392 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
3393 #:parallel-build? #f ;fails on some systems
3394 #:tests? #f ;No tests
3395 #:phases (modify-phases %standard-phases
3396 (delete 'configure) ;no configure phase
3397 (add-after 'install 'fix-import
3398 (lambda* (#:key inputs outputs #:allow-other-keys)
3399 (let* ((out (assoc-ref outputs "out"))
3400 (net (assoc-ref inputs "netpbm"))
3401 (tpi (string-append out "/bin/tuxpaint-import")))
3403 ;; Point to installation prefix so that the default
3404 ;; configure file is found.
3405 (("/usr/local") out))
3406 ;; tuxpaint-import uses a bunch of programs from
3407 ;; netpbm, so make sure it knows where those are
3410 (,(string-append net "/bin"))))))))))
3411 (native-search-paths
3412 (list (search-path-specification
3413 (variable "TUXPAINT_STAMPS_PATH")
3414 (files '("share/tuxpaint/stamps")))))
3415 (home-page "http://www.tuxpaint.org")
3416 (synopsis "Drawing software for children")
3418 "Tux Paint is a free drawing program designed for young children (kids
3419 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
3420 and an encouraging cartoon mascot who helps guide children as they use the
3421 program. It provides a blank canvas and a variety of drawing tools to help
3422 your child be creative.")
3423 (license license:gpl2+)))
3425 (define-public tuxpaint-stamps
3427 (name "tuxpaint-stamps")
3428 (version "2014.08.23")
3432 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
3433 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
3434 "/tuxpaint-stamps-" version ".tar.gz"))
3437 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
3438 (build-system trivial-build-system)
3443 `(#:modules ((guix build utils))
3445 (use-modules (guix build utils))
3448 (assoc-ref %build-inputs "tar") "/bin" ":"
3449 (assoc-ref %build-inputs "gzip") "/bin"))
3450 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
3451 (chdir (string-append ,name "-" ,version))
3452 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
3454 (copy-recursively "stamps" dir)))))
3455 (home-page (package-home-page tuxpaint))
3456 (synopsis "Stamp images for Tux Paint")
3458 "This package contains a set of \"Rubber Stamp\" images which can be used
3459 with the \"Stamp\" tool within Tux Paint.")
3460 (license license:gpl2+)))
3462 (define-public tuxpaint-config
3464 (name "tuxpaint-config")
3465 (version "0.0.13") ;keep VER_DATE below in sync
3469 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
3470 version "/tuxpaint-config-" version ".tar.gz"))
3473 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
3474 (build-system gnu-build-system)
3476 `(("gettext" ,gettext-minimal)))
3479 ("libpaper" ,libpaper)
3480 ;; TODO: Should the following be propagated by fltk?
3485 `(#:make-flags `("VER_DATE=2014-08-23"
3486 "CONFDIR=/etc/tuxpaint" ;don't write to store
3487 ,(string-append "PREFIX=" %output)
3488 "GNOME_PREFIX=$(PREFIX)")
3489 #:parallel-build? #f ;race conditions
3490 #:tests? #f ;no tests
3491 #:phases (modify-phases %standard-phases
3492 (delete 'configure) ;no configure phase
3493 (add-before 'install 'gzip-no-name
3495 (substitute* "Makefile"
3496 ;; tuxpaint-config compresses its own documentation;
3497 ;; make sure it uses flags for reproducibility.
3498 (("gzip") "gzip --no-name"))))
3499 (add-before 'install 'make-install-dirs
3500 (lambda* (#:key outputs #:allow-other-keys)
3501 (let ((out (assoc-ref outputs "out")))
3502 (mkdir-p (string-append out "/bin"))
3504 (home-page (package-home-page tuxpaint))
3505 (synopsis "Configure Tux Paint")
3507 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
3508 (license license:gpl2))) ;no "or later" present
3510 (define-public supertux
3516 (uri (string-append "https://github.com/SuperTux/supertux/"
3517 "releases/download/v" version "/SuperTux-v"
3518 version "-Source.tar.gz"))
3521 "1i8avad7w7ikj870z519j383ldy29r6f956bs38cbr8wk513pp69"))))
3524 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
3525 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
3526 (build-system cmake-build-system)
3527 (inputs `(("sdl2" ,sdl2)
3528 ("sdl2-image" ,sdl2-image)
3529 ("sdl2-mixer" ,sdl2-mixer)
3533 ("libvorbis" ,libvorbis)
3538 (native-inputs `(("pkg-config" ,pkg-config)))
3539 (synopsis "2D platformer game")
3540 (description "SuperTux is a free classic 2D jump'n run sidescroller game
3541 in a style similar to the original Super Mario games covered under
3543 (home-page "https://supertuxproject.org/")
3544 (license license:gpl3+)))
3546 (define-public tintin++
3552 (uri (string-append "mirror://sourceforge/tintin"
3553 "/TinTin++ Source Code/" version
3554 "/tintin" "-" version ".tar.gz"))
3557 "13h39agyhlhm17zyqlb56bmbbxpimikyf5pana3gd3ylvqy1xq81"))))
3559 `(("gnutls" ,gnutls)
3561 ("readline" ,readline)
3564 '(#:tests? #f ; no test suite
3566 (modify-phases %standard-phases
3567 ;; The source is in tt/src.
3568 (add-before 'configure 'chdir
3572 (build-system gnu-build-system)
3573 (home-page "http://tintin.sourceforge.net/")
3574 (synopsis "MUD client")
3576 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
3577 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
3578 as well as those required to login via telnet on Linux / Mac OS X servers, and an
3579 auto mapper with a VT100 map display.")
3580 (license license:gpl2+)))
3587 (origin (method url-fetch)
3589 "https://github.com/sgimenez/laby/archive/"
3590 name "-" version ".tar.gz"))
3593 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
3594 (patches (search-patches "laby-make-install.patch"))))
3595 (build-system gnu-build-system)
3597 `(("lablgtk" ,lablgtk)
3599 ("ocaml-findlib" ,ocaml-findlib)))
3602 (modify-phases %standard-phases
3604 (add-before 'build 'setenv
3605 (lambda* (#:key inputs #:allow-other-keys)
3606 (let ((lablgtk (assoc-ref inputs "lablgtk")))
3607 (setenv "LD_LIBRARY_PATH"
3608 (string-append lablgtk "/lib/ocaml/stublibs"))))))
3609 #:tests? #f ; no 'check' target
3611 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
3612 (home-page "https://sgimenez.github.io/laby/")
3613 (synopsis "Programming game")
3614 (description "Learn programming, playing with ants and spider webs ;-)
3615 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
3616 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
3617 programmers may also add their own favorite language.")
3618 (license license:gpl3+)))
3620 (define-public bambam
3627 (uri (string-append "https://github.com/porridge/bambam/archive/"
3629 (file-name (string-append name "-" version ".tar.gz"))
3632 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
3633 (build-system python-build-system)
3635 `(#:python ,python-2
3636 #:tests? #f ; no tests
3638 (modify-phases %standard-phases
3640 (add-before 'install 'patch-data-dir-location
3642 (substitute* "bambam.py"
3643 (("'data'") "'../share/bambam/data'"))
3646 (lambda* (#:key outputs #:allow-other-keys)
3647 (let* ((out (assoc-ref outputs "out"))
3648 (bin (string-append out "/bin"))
3649 (share (string-append out "/share")))
3651 (copy-file "bambam.py" (string-append bin "/bambam"))
3652 (install-file "bambam.6" (string-append share "/man/man6"))
3653 (copy-recursively "data" (string-append share "/bambam/data")))
3656 `(("python-pygame" ,python-pygame)))
3657 (home-page "https://github.com/porridge/bambam")
3658 (synopsis "Keyboard mashing and doodling game for babies")
3659 (description "Bambam is a simple baby keyboard (and gamepad) masher
3660 application that locks the keyboard and mouse and instead displays bright
3661 colors, pictures, and sounds.")
3662 (license license:gpl3+)))
3664 (define-public mrrescue
3671 "https://github.com/SimonLarsen/mrrescue/releases/"
3672 "download/" version "/" name version ".love"))
3673 (file-name (string-append name "-" version ".love"))
3676 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
3677 (build-system trivial-build-system)
3679 '(#:modules ((guix build utils))
3682 (use-modules (guix build utils))
3683 (let* ((out (assoc-ref %outputs "out"))
3684 (bindir (string-append out "/bin"))
3685 (prog (string-append bindir "/mrrescue"))
3686 (source (assoc-ref %build-inputs "source"))
3687 (bash (string-append (assoc-ref %build-inputs "bash")
3689 (love (string-append (assoc-ref %build-inputs "love")
3692 (with-output-to-file prog
3694 (format #t "#!~a~%" bash)
3695 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
3701 (home-page "http://tangramgames.dk/games/mrrescue")
3702 (synopsis "Arcade-style fire fighting game")
3704 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
3705 civilians from burning buildings. The game features fast paced fire
3706 extinguishing action, intense boss battles, a catchy soundtrack and lots of
3707 throwing people around in pseudo-randomly generated buildings.")
3708 (license (list license:zlib ; for source code
3709 license:cc-by-sa3.0)))) ; for graphics and music assets
3711 (define-public hyperrogue
3715 ;; When updating this package, be sure to update the "hyperrogue-data"
3716 ;; origin in native-inputs.
3720 "http://www.roguetemple.com/z/hyper/"
3721 name (string-join (string-split version #\.) "")
3725 "0f68pcnsgl406dhm91ckn3f364bar9m9i5njp9vrmvhvv9p2icy0"))))
3726 (build-system gnu-build-system)
3728 `(#:tests? #f ; no check target
3729 #:make-flags '("CXXFLAGS=-std=c++11")
3731 (modify-phases %standard-phases
3732 (add-after 'set-paths 'set-sdl-paths
3733 (lambda* (#:key inputs #:allow-other-keys)
3735 (string-append (assoc-ref inputs "sdl-union")
3737 ;; Fix font and music paths.
3739 (lambda* (#:key inputs outputs #:allow-other-keys)
3740 (let* ((out (assoc-ref outputs "out"))
3741 (share-dir (string-append out "/share/hyperrogue"))
3742 (dejavu-dir (string-append
3743 (assoc-ref inputs "font-dejavu")
3744 "/share/fonts/truetype"))
3745 (dejavu-font "DejaVuSans-Bold.ttf")
3746 (music-file "hyperrogue-music.txt"))
3747 (substitute* "basegraph.cpp"
3749 (string-append dejavu-dir "/" dejavu-font)))
3750 (substitute* "sound.cpp"
3751 (((string-append "\\./" music-file))
3752 (string-append share-dir "/" music-file))
3754 (string-append share-dir "/sounds/")))
3755 (substitute* music-file
3757 (string-append share-dir "/sounds/"))))
3760 (lambda* (#:key inputs outputs #:allow-other-keys)
3761 (let* ((out (assoc-ref outputs "out"))
3762 (bin (string-append out "/bin"))
3763 (share-dir (string-append out "/share/hyperrogue")))
3765 (copy-file "hyper" (string-append bin "/hyperrogue"))
3766 (install-file "hyperrogue-music.txt" share-dir))
3768 (add-after 'install 'install-data
3769 (lambda* (#:key inputs outputs #:allow-other-keys)
3770 (let* ((data (assoc-ref inputs "hyperrogue-data"))
3771 (out (assoc-ref outputs "out"))
3772 (sounds (string-append out "/share/hyperrogue/sounds"))
3773 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
3775 ;; Extract media license information into sounds directory.
3777 (system* unzip "-j" data
3780 (string-join (string-split ,version #\.) "")
3781 "/sounds/credits.txt") "-d" sounds))
3782 ;; Extract sounds and music into sounds directory.
3784 (system* "unzip" "-j" data
3787 (string-join (string-split ,version #\.) "")
3788 "/*.ogg") "-d" sounds)))))))))
3790 `(("hyperrogue-data"
3795 "http://www.roguetemple.com/z/hyper/" name
3796 (string-join (string-split version #\.) "")
3800 "0bnp077qvlmxjlz1jjd6kpghlv9flxc19ac1xq3m3wyq1w9p3pab"))))
3803 `(("font-dejavu" ,font-dejavu)
3806 ("sdl-union" ,(sdl-union (list sdl
3810 (home-page "http://www.roguetemple.com/z/hyper/")
3811 (synopsis "Non-euclidean graphical rogue-like game")
3813 "HyperRogue is a game in which the player collects treasures and fights
3814 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3815 plane and not in euclidean space.
3817 In HyperRogue, the player can move through different parts of the world, which
3818 are home to particular creatures and may be subject to their own rules of
3821 While the game can use ASCII characters to display the the classical rogue
3822 symbols, it still needs graphics to render the non-euclidean world.")
3823 (license (list license:bsd-3 ; glew.c, mtrand.*
3824 license:cc-by-sa3.0 ; music
3825 license:cc-by-sa4.0 ; sounds
3827 license:public-domain ; direntx.*, some sounds
3828 license:zlib ; savepng.*
3829 license:gpl2+)))) ; remaining files
3831 (define-public kobodeluxe
3837 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3838 version ".tar.bz2"))
3841 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3842 (patches (search-patches
3843 "kobodeluxe-const-charp-conversion.patch"
3844 "kobodeluxe-enemies-pipe-decl.patch"
3845 "kobodeluxe-graphics-window-signed-char.patch"
3846 "kobodeluxe-manpage-minus-not-hyphen.patch"
3847 "kobodeluxe-midicon-segmentation-fault.patch"
3848 "kobodeluxe-paths.patch"))))
3849 (build-system gnu-build-system)
3852 (list (string-append "CPPFLAGS=-I"
3853 (assoc-ref %build-inputs "sdl-union")
3855 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3856 (synopsis "Shooter with space station destruction")
3858 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3859 for Un*x systems with X11.")
3860 (home-page "http://olofson.net/kobodl/")
3861 (license license:gpl2+)))
3863 (define-public freeciv
3870 (uri (list (string-append
3871 "http://files.freeciv.org/stable/freeciv-"
3874 "mirror://sourceforge/freeciv/Freeciv%20"
3875 (version-major+minor version) "/" version
3876 "/freeciv-" version ".tar.bz2")))
3879 "1lmydnnqraa947l7gdz6xgm0bgks1ywsivp9h4v8jr3avcv6gqzz"))))
3880 (build-system gnu-build-system)
3883 ("cyrus-sasl" ,cyrus-sasl)
3885 ("sdl-mixer" ,sdl-mixer)
3888 `(("pkg-config" ,pkg-config)))
3889 (home-page "http://www.freeciv.org/")
3890 (synopsis "Turn based empire building strategy game")
3891 (description "Freeciv is a turn based empire building strategy game
3892 inspired by the history of human civilization. The game commences in
3893 prehistory and your mission is to lead your tribe from the Stone Age
3895 (license license:gpl2+)))
3897 (define-public no-more-secrets
3899 (name "no-more-secrets")
3904 (uri (string-append "https://github.com/bartobri/no-more-secrets/"
3905 "archive/v" version ".tar.gz"))
3906 (file-name (string-append name "-" version ".tar.gz"))
3909 "00mzdif859vm75n1igrffh8c07p1nr4rlm3yb7lrkwwxhrw8xzla"))))
3910 (build-system gnu-build-system)
3913 #:make-flags (list "CC=gcc" "all-ncurses"
3914 (string-append "prefix="
3915 (assoc-ref %outputs "out")))
3917 (modify-phases %standard-phases
3918 (delete 'configure))))
3920 `(("ncurses" ,ncurses)))
3921 (home-page "https://github.com/bartobri/no-more-secrets")
3922 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
3924 "@code{No More Secrets} provides a command line tool called \"nms\"
3925 that recreates the famous data decryption effect seen on screen in the 1992
3928 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
3929 it will apply the hollywood effect, initially showing encrypted data, then
3930 starting a decryption sequence to reveal the original plaintext characters.")
3931 (license license:expat)))
3933 (define-public megaglest-data
3935 (name "megaglest-data")
3941 "https://github.com/MegaGlest/megaglest-data"
3942 "/releases/download/" version "/megaglest-data-"
3946 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
3947 (build-system cmake-build-system)
3950 (home-page "https://megaglest.org/")
3951 (synopsis "Data files for MegaGlest")
3952 (description "This package contains the data files required for MegaGlest.")
3953 (license license:cc-by-sa3.0)))
3955 (define-public megaglest
3963 "https://github.com/MegaGlest/megaglest-source"
3964 "/releases/download/" version "/megaglest-source-"
3968 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
3969 (build-system cmake-build-system)
3972 ("fontconfig" ,fontconfig)
3975 ("libjpeg-turbo" ,libjpeg-turbo)
3976 ("megaglest-data" ,megaglest-data)
3978 ("miniupnpc" ,miniupnpc)
3980 ("libircclient" ,libircclient)
3982 ("libvorbis" ,libvorbis)
3985 ("wxwidgets" ,wxwidgets)))
3987 `(("cppunit" ,cppunit)
3988 ("pkg-config" ,pkg-config)))
3991 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
3992 (assoc-ref %build-inputs "megaglest-data")
3994 "-DBUILD_MEGAGLEST_TESTS=ON")
3996 (modify-phases %standard-phases
3997 (add-after 'unpack 'fix-ini-search-path
3998 (lambda* (#:key outputs #:allow-other-keys)
3999 (substitute* "source/glest_game/global/config.cpp"
4000 (("/usr/share/megaglest/")
4001 (string-append (assoc-ref outputs "out")
4002 "/share/megaglest/"))))))
4003 #:test-target "megaglest_tests"))
4004 (home-page "https://megaglest.org/")
4005 (synopsis "3D real-time strategy (RTS) game")
4006 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
4007 game, where you control the armies of one of seven different factions: Tech,
4008 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
4009 (license license:gpl2+)))
4011 (define-public freegish
4012 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
4016 (version (string-append "0-" revision "." (string-take commit 9)))
4020 (url "https://github.com/freegish/freegish.git")
4024 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
4025 (modules '((guix build utils)))
4026 ;; The audio files in the "music" directory are licensed under
4027 ;; CC-BY-NC, so we delete them.
4030 (delete-file-recursively "music")
4032 (build-system cmake-build-system)
4034 `(#:tests? #f ; no tests included
4036 (list "-DCMAKE_INSTALL_FHS=ON")
4038 (modify-phases %standard-phases
4039 (add-after 'unpack 'set-DATAPATH
4040 (lambda* (#:key outputs #:allow-other-keys)
4041 (substitute* "CMakeLists.txt"
4042 (("^option\\(INSTALL_FHS" line)
4043 (string-append "add_definitions(-DDATAPATH=\""
4044 (assoc-ref outputs "out") "/share/freegish\")\n"
4048 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
4050 ("libvorbis" ,libvorbis)
4055 (home-page "https://github.com/freegish/freegish")
4056 (synopsis "Side-scrolling physics platformer with a ball of tar")
4057 (description "In FreeGish you control Gish, a ball of tar who lives
4058 happily with his girlfriend Brea, until one day a mysterious dark creature
4059 emerges from a sewer hole and pulls her below ground.")
4060 ;; The textures are available under the Expat license. All other assets
4061 ;; (including levels) are covered under CC-BY-SA or public domain. The
4062 ;; source code is under GPLv2+.
4063 (license (list license:gpl2+
4065 license:public-domain
4066 license:cc-by-sa3.0)))))
4068 (define-public cdogs-sdl
4074 (uri (string-append "https://github.com/cxong/cdogs-sdl/"
4075 "archive/" version ".tar.gz"))
4076 (file-name (string-append name "-" version ".tar.gz"))
4079 "17llrpdrrwi8h37vjpkxk2asj7h8qdfp2zy28wiwb7cjzribmz3k"))))
4080 (build-system cmake-build-system)
4083 (list (string-append "-DCDOGS_DATA_DIR="
4084 (assoc-ref %outputs "out")
4085 "/share/cdogs-sdl/"))))
4089 ("sdl2-image" ,sdl2-image)
4090 ("sdl2-mixer" ,sdl2-mixer)))
4091 (home-page "https://cxong.github.io/cdogs-sdl/")
4092 (synopsis "Classic overhead run-and-gun game")
4093 (description "C-Dogs SDL is a classic overhead run-and-gun game,
4094 supporting up to 4 players in co-op and deathmatch modes. Customize your
4095 player, choose from many weapons, and blast, slide and slash your way through
4096 over 100 user-created campaigns.")
4097 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
4098 ;; CC0/CC-BY/CC-BY-SA for assets.
4099 (license (list license:gpl2+
4104 license:cc-by-sa3.0))))
4112 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
4113 version "/kiki-" version "-src.tgz"))
4116 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
4117 (modules '((guix build utils)))
4120 (for-each delete-file (find-files "." "\\.dll$"))
4123 (search-patches "kiki-level-selection-crash.patch"
4124 "kiki-makefile.patch"
4125 "kiki-missing-includes.patch"
4126 "kiki-portability-64bit.patch"))))
4127 (build-system gnu-build-system)
4129 `(#:tests? #f ; there are no tests
4130 #:make-flags '("CXX=g++")
4132 (modify-phases %standard-phases
4134 (lambda* (#:key inputs outputs #:allow-other-keys)
4135 (setenv "CPLUS_INCLUDE_PATH"
4136 (string-append (assoc-ref inputs "sdl-union")
4138 (assoc-ref inputs "python")
4139 "/include/python2.7:"
4140 (getenv "CPLUS_INCLUDE_PATH")))
4141 (substitute* "src/main/main.cpp"
4142 (("#include <SDL.h>" line)
4143 (string-append line "
4144 #define K_INCLUDE_GLUT
4145 #include \"KIncludeTools.h\""))
4146 (("// initialize SDL" line)
4147 (string-append "glutInit(&argc,argv);\n" line)))
4148 (substitute* "src/main/KikiController.cpp"
4149 (("getenv\\(\"KIKI_HOME\"\\)")
4150 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
4151 (substitute* "linux/Makefile"
4153 (string-append line " -fpermissive"))
4154 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
4156 (string-append "PYTHONHOME = "
4157 (assoc-ref inputs "python")
4159 (("\\$\\(GLLIBS\\)" line)
4160 (string-append line " -lm -lpython2.7")))
4161 (substitute* "src/main/KikiPythonWidget.h"
4162 (("#define __KikiPythonWidget" line)
4163 (string-append line "\n#include \"KikiPython.h\"")))
4165 (add-before 'build 'build-kodilib
4166 (lambda* (#:key make-flags #:allow-other-keys)
4167 (with-directory-excursion "kodilib/linux"
4168 (zero? (apply system* "make" make-flags)))))
4169 (add-after 'build-kodilib 'chdir
4170 (lambda _ (chdir "linux") #t))
4172 (lambda* (#:key outputs #:allow-other-keys)
4173 (let* ((out (assoc-ref outputs "out"))
4174 (bin (string-append out "/bin"))
4175 (share (string-append out "/share/kiki")))
4178 (install-file "kiki" bin)
4179 (copy-recursively "../py" (string-append share "/py"))
4180 (copy-recursively "../sound" (string-append share "/sound"))
4184 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
4185 ("freeglut" ,freeglut-2.8)
4186 ("sdl-union" ,(sdl-union (list sdl
4189 ("python" ,python-2)))
4192 (home-page "http://kiki.sourceforge.net/")
4193 (synopsis "3D puzzle game")
4194 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
4195 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
4196 small robot living in the nano world, repair its maker.")
4197 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
4198 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
4199 ;; for a statement from the author.
4200 (license license:public-domain)))
4202 (define-public teeworlds
4208 (uri (string-append "https://github.com/teeworlds/teeworlds/"
4209 "archive/" version "-release.tar.gz"))
4210 (file-name (string-append name "-" version ".tar.gz"))
4213 "1mqhp6xjl75l49050cid36wxyjn1qr0vjx1c709dfg1lkvmgs6l3"))
4214 (modules '((guix build utils)))
4217 (for-each delete-file-recursively
4218 '("src/engine/external/wavpack/"
4219 "src/engine/external/zlib/"))
4222 (search-patches "teeworlds-use-latest-wavpack.patch"))))
4223 (build-system gnu-build-system)
4225 `(#:tests? #f ; no tests included
4227 (modify-phases %standard-phases
4229 (lambda* (#:key outputs #:allow-other-keys)
4230 ;; Embed path to assets.
4231 (substitute* "src/engine/shared/storage.cpp"
4232 (("#define DATA_DIR.*")
4233 (string-append "#define DATA_DIR \""
4234 (assoc-ref outputs "out")
4235 "/share/teeworlds/data"
4238 ;; Bam expects all files to have a recent time stamp.
4239 (for-each (lambda (file)
4243 ;; Do not use bundled libraries.
4244 (substitute* "bam.lua"
4245 (("if config.zlib.value == 1 then")
4249 settings.link.libs:Add(\"wavpack\")\n"))
4250 (substitute* "src/engine/client/sound.cpp"
4251 (("#include <engine/external/wavpack/wavpack.h>")
4252 "#include <wavpack/wavpack.h>"))
4256 (zero? (system* "bam" "-a" "-v" "release"))))
4258 (lambda* (#:key outputs #:allow-other-keys)
4259 (let* ((out (assoc-ref outputs "out"))
4260 (bin (string-append out "/bin"))
4261 (data (string-append out "/share/teeworlds/data")))
4264 (for-each (lambda (file)
4265 (install-file file bin))
4266 '("teeworlds" "teeworlds_srv"))
4267 (copy-recursively "data" data)
4269 ;; FIXME: teeworlds bundles the sources of "pnglite", a two-file PNG
4270 ;; library without a build system.
4272 `(("freetype" ,freetype)
4275 ("sdl-union" ,(sdl-union (list sdl
4278 ("wavpack" ,wavpack)
4282 ("python" ,python-2)))
4283 (home-page "https://www.teeworlds.com")
4284 (synopsis "2D retro multiplayer shooter game")
4285 (description "Teeworlds is an online multiplayer game. Battle with up to
4286 16 players in a variety of game modes, including Team Deathmatch and Capture
4287 The Flag. You can even design your own maps!")
4288 (license license:bsd-3)))
4290 (define-public enigma
4296 (uri (string-append "mirror://sourceforge/enigma-game/"
4297 "Release%20" version "/enigma-"
4301 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
4302 (build-system gnu-build-system)
4305 (list "--with-system-enet")
4307 (modify-phases %standard-phases
4308 (add-after 'unpack 'find-sdl
4310 (substitute* "configure"
4311 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
4312 (substitute* '("tools/ttf2bmf.cc"
4313 "lib-src/enigma-core/ecl_font.cc"
4314 "lib-src/enigma-core/ecl_video.cc"
4315 "lib-src/enigma-core/ecl_buffer.hh"
4316 "src/SoundEngine.cc"
4317 "src/SoundEngine.hh"
4318 "src/MusicManager.cc"
4319 "src/MusicManager.hh"
4323 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
4324 (string-append "#include \"SDL/SDL_" header ".h\"")))
4325 (substitute* "src/main.cc"
4326 (("#include <SDL_(image|ttf|mixer).h>" line header)
4327 (string-append "#include \"SDL/SDL_" header ".h\"")))
4330 `(("xerces-c" ,xerces-c)
4331 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
4335 `(("pkg-config" ,pkg-config)
4336 ("imagemagick" ,imagemagick)))
4337 (home-page "http://www.nongnu.org/enigma")
4338 (synopsis "Puzzle game with a dexterity component")
4339 (description "Enigma is a puzzle game with 550 unique levels. The object
4340 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
4341 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
4342 and most of all, countless hairy puzzles usually block your direct way to the
4343 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
4344 get bored) interact in many unexpected ways, and since many of them follow the
4345 laws of physics (Enigma’s special laws of physics, that is), controlling them
4346 with the mouse isn’t always trivial.")
4347 (license license:gpl2+)))
4349 (define-public fillets-ng
4355 (uri (string-append "mirror://sourceforge/fillets/"
4356 "Fish%20Fillets%20-%20Next%20Generation/"
4357 version "/fillets-ng-" version ".tar.gz"))
4360 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
4361 (build-system gnu-build-system)
4364 (list (string-append "--with-lua="
4365 (assoc-ref %build-inputs "lua")))
4367 (list (string-append "CFLAGS=-I"
4368 (assoc-ref %build-inputs "sdl-union")
4370 (string-append "CXXFLAGS=-I"
4371 (assoc-ref %build-inputs "sdl-union")
4374 (modify-phases %standard-phases
4375 ;; Lua 5.1 does not provide it.
4376 (add-after 'unpack 'do-not-link-with-lualib
4378 (substitute* "configure"
4381 (add-after 'install 'install-data
4382 (lambda* (#:key inputs outputs #:allow-other-keys)
4383 (let ((data (string-append (assoc-ref outputs "out")
4384 "/share/games/fillets-ng")))
4386 (zero? (system* "tar" "-xvf"
4387 (assoc-ref inputs "fillets-ng-data")
4388 "--strip-components=1"
4391 `(("sdl-union" ,(sdl-union (list sdl
4395 ("fribidi" ,fribidi)
4399 `(("pkg-config" ,pkg-config)
4403 (uri (string-append "mirror://sourceforge/fillets/"
4404 "Fish%20Fillets%20-%20Next%20Generation/"
4405 version "/fillets-ng-data-" version ".tar.gz"))
4408 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
4409 (home-page "http://fillets.sourceforge.net/")
4410 (synopsis "Puzzle game")
4411 (description "Fish Fillets NG is strictly a puzzle game. The goal in
4412 every of the seventy levels is always the same: find a safe way out. The fish
4413 utter witty remarks about their surroundings, the various inhabitants of their
4414 underwater realm quarrel among themselves or comment on the efforts of your
4415 fish. The whole game is accompanied by quiet, comforting music.")
4416 (license license:gpl2+)))
4418 (define-public crawl
4426 ;; Older releases get moved into a versioned directory
4427 (string-append "http://crawl.develz.org/release/"
4428 (version-major+minor version) "/stone_soup-"
4429 version "-nodeps.tar.xz")
4430 ;; Only the latest release is in this directory
4431 (string-append "http://crawl.develz.org/release/stone_soup-"
4432 version "-nodeps.tar.xz")))
4435 "0127dgldij2h4m7cf32yy9ndv4vcz03g4km71lmxrsi5mw7ljgpd"))
4436 (patches (search-patches "crawl-upgrade-saves.patch"))))
4437 (build-system gnu-build-system)
4439 `(("lua51" ,lua-5.1)
4440 ("ncurses" ,ncurses)
4447 ("pkg-config" ,pkg-config)))
4450 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
4451 (out (assoc-ref %outputs "out")))
4452 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
4453 (string-append "prefix=" out)
4455 ;; don't build any bundled dependencies
4461 (modify-phases %standard-phases
4464 ;; Test cases require the source to be rebuild with the -DDEBUG define.
4465 ;; Do 'check before 'build to avoid a 3rd build on make install.
4466 (add-before 'build 'check
4467 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
4468 (setenv "HOME" (getcwd))
4469 ;; Fake a terminal for the test cases.
4470 (setenv "TERM" "xterm-256color")
4471 (zero? (apply system* "make" "debug" "test"
4472 (format #f "-j~d" (parallel-job-count))
4473 ;; Force command line build for test cases.
4474 (append make-flags '("GAME=crawl" "TILES=")))))))))
4475 (synopsis "Roguelike dungeon crawler game")
4476 (description "Dungeon Crawl Stone Soup is a roguelike adventure through
4477 dungeons filled with dangerous monsters in a quest to find the mystifyingly
4478 fabulous Orb of Zot.")
4479 (home-page "https://crawl.develz.org")
4480 (license (list license:gpl2+
4488 ;; The linter here claims that patch file names should start with the package
4489 ;; name. But, in this case, the patches are inherited from crawl with the
4490 ;; "crawl-" prefix instead of "crawl-tiles-".
4491 (define-public crawl-tiles
4494 (name "crawl-tiles")
4496 (substitute-keyword-arguments
4497 (package-arguments crawl)
4498 ((#:make-flags flags)
4499 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
4501 (string-append "PROPORTIONAL_FONT=" dejavu
4502 "/share/fonts/truetype/DejaVuSans.ttf")
4503 (string-append "MONOSPACED_FONT=" dejavu
4504 "/share/fonts/truetype/DejaVuSansMono.ttf")
4506 ;; Rename the executable to allow parallel installation with crawl.
4510 `(,@(package-inputs crawl)
4511 ("font-dejavu" ,font-dejavu)
4512 ("freetype6" ,freetype)
4516 ("sdl2-image" ,sdl2-image)
4517 ("sdl2-mixer" ,sdl2-mixer)))
4519 `(,@(package-native-inputs crawl)
4520 ;; TODO: Add advpng or pngcrush for additional PNG optimization.
4522 (synopsis "Graphical roguelike dungeon crawler game")))
4524 (define-public lugaru
4530 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
4531 name "-" version ".tar.xz"))
4534 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
4535 (build-system cmake-build-system)
4538 (list "-DSYSTEM_INSTALL=ON")
4542 `(("pkg-config" ,pkg-config)))
4546 ("libjpeg" ,libjpeg-turbo)
4549 ("vorbis" ,libvorbis)
4551 (home-page "https://osslugaru.gitlab.io")
4552 (synopsis "Cross-platform third-person action game")
4553 (description "Lugaru is a third-person action game. The main character,
4554 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
4555 In his quest to find those responsible for slaughtering his village, he uncovers
4556 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
4557 and the starving wolves from a nearby den. Turner takes it upon himself to
4558 fight against their plot and save his fellow rabbits from slavery.")
4559 (license (list license:gpl2+ ; code
4562 license:cc-by-sa4.0))))
4564 (define-public 0ad-data
4567 (version "0.0.22-alpha")
4571 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4572 version "-unix-data.tar.xz"))
4573 (file-name (string-append name "-" version ".tar.xz"))
4576 "0vknk9ay9h2p34r7mym2g066f3s3c5d5vmap0ckcs5b86h5cscjc"))
4577 (modules '((guix build utils)))
4582 (let* ((dir (string-append "binaries/data/mods/" name))
4583 (file (string-append dir "/" name ".zip"))
4584 (unzip #$(file-append unzip "/bin/unzip")))
4585 (system* unzip "-d" dir file)
4586 (delete-file file)))
4589 (build-system trivial-build-system)
4590 (native-inputs `(("tar" ,tar)
4593 `(#:modules ((guix build utils))
4596 (use-modules (guix build utils))
4597 (let ((out (assoc-ref %outputs "out"))
4598 (source (assoc-ref %build-inputs "source"))
4599 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
4600 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
4601 (setenv "PATH" xz-path)
4603 (zero? (system* tar "xvf" source "-C" out "--strip=3"))))))
4604 (synopsis "Data files for 0ad")
4605 (description "0ad-data provides the data files required by the game 0ad.")
4606 (home-page "https://play0ad.com")
4607 (license (list (license:fsdg-compatible
4608 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
4609 (license:license-comment
4610 (package-license font-bitstream-vera)))
4611 (package-license font-bitstream-vera)
4621 (version "0.0.22-alpha")
4625 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4626 version "-unix-build.tar.xz"))
4627 (file-name (string-append name "-" version ".tar.xz"))
4630 "1cgmr4g5g9wv36v7ylbrvqhsjwgcsdgbqwc8zlqmnayk9zgkdpgx"))
4631 ;; A snippet here would cause a build failure because of timestamps
4632 ;; reset. See https://bugs.gnu.org/26734.
4635 `(("0ad-data" ,0ad-data)
4641 ("libvorbis" ,libvorbis)
4642 ("libxcursor" ,libxcursor)
4643 ("libxml2" ,libxml2)
4644 ("miniupnpc" ,miniupnpc)
4645 ("mozjs-38" ,mozjs-38)
4648 ("wxwidgets" ,wxwidgets)
4654 ("pkg-config" ,pkg-config)
4655 ("python-2" ,python-2)))
4656 (build-system gnu-build-system)
4659 (modify-phases %standard-phases
4660 (add-after 'unpack 'delete-bundles
4662 (delete-file-recursively "libraries/source/spidermonkey")
4664 (add-after 'unpack 'fix-x11-includes
4666 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4667 (("<Xlib.h>") "<X11/Xlib.h>"))
4668 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4669 (("<Xatom.h>") "<X11/Xatom.h>"))
4670 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4671 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
4674 (lambda* (#:key inputs outputs #:allow-other-keys)
4675 (let* ((jobs (number->string (parallel-job-count)))
4676 (out (assoc-ref outputs "out"))
4677 (lib (string-append out "/lib"))
4678 (data (string-append out "/share/0ad")))
4679 (setenv "JOBS" (string-append "-j" jobs))
4681 (with-directory-excursion "build/workspaces"
4682 (zero? (system* "./update-workspaces.sh"
4683 (string-append "--libdir=" lib)
4684 (string-append "--datadir=" data)
4686 ;; TODO: "--with-system-nvtt"
4687 "--with-system-mozjs38"))))))
4688 (add-before 'build 'chdir
4690 (chdir "build/workspaces/gcc")
4694 (lambda* (#:key inputs outputs #:allow-other-keys)
4695 (chdir "../../../binaries")
4696 (let* ((out (assoc-ref outputs "out"))
4697 (bin (string-append out "/bin"))
4698 (lib (string-append out "/lib"))
4699 (data (string-append out "/share/0ad"))
4700 (applications (string-append out "/share/applications"))
4701 (pixmaps (string-append out "/share/pixmaps"))
4702 (0ad-data (assoc-ref inputs "0ad-data")))
4704 (copy-recursively "data" data)
4705 (for-each (lambda (file)
4706 (symlink (string-append 0ad-data "/" file)
4707 (string-append data "/" file)))
4708 '("config" "mods/mod" "mods/public" "tools"))
4710 (for-each (lambda (file)
4711 (install-file file lib))
4712 (find-files "system" "\\.so$"))
4714 (install-file "system/pyrogenesis" bin)
4715 (with-directory-excursion bin
4716 (symlink "pyrogenesis" "0ad"))
4718 (with-directory-excursion "../build/resources"
4719 (install-file "0ad.desktop" applications)
4720 (install-file "0ad.png" pixmaps))
4722 (add-after 'install 'check
4724 (with-directory-excursion "system"
4725 (zero? (system* "./test"))))))))
4726 (home-page "https://play0ad.com")
4727 (synopsis "3D real-time strategy game of ancient warfare")
4728 (description "0 A.D. is a real-time strategy (RTS) game of ancient
4729 warfare. It's a historically-based war/economy game that allows players to
4730 relive or rewrite the history of twelve ancient civilizations, each depicted
4731 at their peak of economic growth and military prowess.
4733 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
4734 (license (list license:bsd-2
4745 ;; There have been no official releases.
4746 (define-public open-adventure
4747 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
4750 (name "open-adventure")
4751 (version (string-append "2.5-" revision "." (string-take commit 7)))
4755 (url "https://gitlab.com/esr/open-adventure")
4757 (file-name (string-append name "-" version "-checkout"))
4760 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
4761 (build-system gnu-build-system)
4763 `(#:make-flags (list "CC=gcc")
4764 #:parallel-build? #f ; not supported
4766 (modify-phases %standard-phases
4768 (lambda* (#:key inputs outputs #:allow-other-keys)
4769 ;; At this point linenoise is meant to be included,
4770 ;; so we have to really copy it into the working directory
4772 (let* ((linenoise (assoc-ref inputs "linenoise"))
4773 (noisepath (string-append linenoise "/include/linenoise"))
4774 (out (assoc-ref outputs "out")))
4775 (copy-recursively noisepath "linenoise"))
4777 (add-before 'build 'use-echo
4779 (substitute* "tests/Makefile"
4780 (("/bin/echo") (which "echo")))
4782 (add-after 'build 'build-manpage
4784 ;; This target is missing a dependency
4785 (substitute* "Makefile"
4787 (string-append line " advent.adoc")))
4788 (zero? (system* "make" ".adoc.6"))))
4789 ;; There is no install target
4791 (lambda* (#:key outputs #:allow-other-keys)
4792 (let* ((out (assoc-ref outputs "out"))
4793 (bin (string-append out "/bin"))
4794 (man (string-append out "/share/man/man6")))
4795 (install-file "advent" bin)
4796 (install-file "advent.6" man))
4799 `(("asciidoc" ,asciidoc)
4800 ("linenoise" ,linenoise)
4802 ("python-pyyaml" ,python-pyyaml)))
4803 (home-page "https://gitlab.com/esr/open-adventure")
4804 (synopsis "Colossal Cave Adventure")
4805 (description "The original Colossal Cave Adventure from 1976 was the
4806 origin of all text adventures, dungeon-crawl (computer) games, and
4807 computer-hosted roleplaying games. This is the last version released by
4808 Crowther & Woods, its original authors, in 1995. It has been known as
4809 \"adventure 2.5\" and \"430-point adventure\".")
4810 (license license:bsd-2))))
4812 (define-public tome4
4816 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
4820 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
4821 version ".tar.bz2"))
4824 "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03"))
4825 (modules '((guix build utils)))
4827 '(substitute* '("src/music.h" "src/tSDL.h")
4828 (("#elif defined(__FreeBSD__)" line)
4830 line " || defined(__GNUC__)"))))))
4831 (build-system gnu-build-system)
4833 `(("unzip" ,unzip)))
4835 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4837 ("premake4" ,premake4)
4839 ("vorbis" ,libvorbis)
4840 ("luajit" ,luajit)))
4842 `(#:make-flags '("CC=gcc" "config=release")
4843 #:phases (modify-phases %standard-phases
4846 (zero? (system* "premake4" "gmake"))
4848 (add-after 'set-paths 'set-sdl-paths
4849 (lambda* (#:key inputs #:allow-other-keys)
4851 (string-append (assoc-ref inputs "sdl-union")
4855 ;; premake doesn't provide install target
4857 (lambda* (#:key inputs outputs #:allow-other-keys)
4858 (let* ((out (assoc-ref outputs "out"))
4859 (usr (string-append out "/usr"))
4860 (bin (string-append out "/bin"))
4861 (licenses (string-append out "/share/licenses"))
4862 (documents (string-append out "/share/doc"))
4863 (pixmaps (string-append out "/share/pixmaps"))
4864 (icon "te4-icon.png")
4865 (data (string-append out "/share/" ,name))
4866 (applications (string-append
4867 out "/share/applications"))
4868 (unzip (string-append
4869 (assoc-ref inputs "unzip") "/bin/unzip"))
4870 (wrapper (string-append bin "/" ,name)))
4875 "game/engines/te4-" ,version ".teae")
4877 "data/gfx/" icon) "-d" pixmaps)
4879 (install-file "t-engine" data)
4881 (with-output-to-file wrapper
4886 ;; No bootstrap code found,
4887 ;; defaulting to working directory
4890 "exec -a tome4 ./t-engine \"$@\"\n"))))
4891 (chmod wrapper #o555)
4893 (for-each (lambda (file)
4894 (install-file file licenses))
4895 '("COPYING" "COPYING-MEDIA"))
4897 (for-each (lambda (file)
4898 (install-file file documents))
4899 '("CONTRIBUTING" "CREDITS"))
4901 (copy-recursively "bootstrap" (string-append
4903 (copy-recursively "game" (string-append data "/game"))
4905 (mkdir-p applications)
4906 (with-output-to-file (string-append applications "/"
4913 Comment=" ,synopsis "\n"
4918 Categories=Game;RolePlaying;\n")))))
4920 (home-page "https://te4.org")
4921 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
4922 combat and advanced character building. Play as one of many unique races and
4923 classes in the lore-filled world of Eyal, exploring random dungeons, facing
4924 challenging battles, and developing characters with your own tailored mix of
4925 abilities and powers. With a modern graphical and customisable interface,
4926 intuitive mouse control, streamlined mechanics and deep, challenging combat,
4927 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
4928 (license license:gpl3+)))