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, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017 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, 2018 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, 2018 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 © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nils Gillmann <ng0@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
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 freedesktop)
74 #:use-module (gnu packages fribidi)
75 #:use-module (gnu packages game-development)
76 #:use-module (gnu packages gettext)
77 #:use-module (gnu packages ghostscript)
78 #:use-module (gnu packages gimp)
79 #:use-module (gnu packages gl)
80 #:use-module (gnu packages glib)
81 #:use-module (gnu packages gnome)
82 #:use-module (gnu packages gperf)
83 #:use-module (gnu packages graphics)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages guile)
86 #:use-module (gnu packages imagemagick)
87 #:use-module (gnu packages libcanberra)
88 #:use-module (gnu packages libedit)
89 #:use-module (gnu packages libunwind)
90 #:use-module (gnu packages haskell)
91 #:use-module (gnu packages mp3)
92 #:use-module (gnu packages music)
93 #:use-module (gnu packages icu4c)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages ncurses)
96 #:use-module (gnu packages netpbm)
97 #:use-module (gnu packages networking)
98 #:use-module (gnu packages ocaml)
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages readline)
101 #:use-module (gnu packages textutils)
102 #:use-module (gnu packages xorg)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages databases)
105 #:use-module (gnu packages shells)
106 #:use-module (gnu packages sdl)
107 #:use-module (gnu packages swig)
108 #:use-module (gnu packages texinfo)
109 #:use-module (gnu packages check)
110 #:use-module (gnu packages fonts)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages gstreamer)
113 #:use-module (gnu packages bash)
114 #:use-module (gnu packages perl)
115 #:use-module (gnu packages perl-check)
116 #:use-module (gnu packages qt)
117 #:use-module (gnu packages compression)
118 #:use-module (gnu packages pulseaudio)
119 #:use-module (gnu packages linux)
120 #:use-module (gnu packages xiph)
121 #:use-module (gnu packages curl)
122 #:use-module (gnu packages lua)
123 #:use-module (gnu packages video)
124 #:use-module (gnu packages xml)
125 #:use-module (gnu packages tcl)
126 #:use-module (gnu packages xdisorg)
127 #:use-module (gnu packages tls)
128 #:use-module (gnu packages pcre)
129 #:use-module (gnu packages cyrus-sasl)
130 #:use-module (gnu packages messaging)
131 #:use-module (gnu packages upnp)
132 #:use-module (gnu packages wxwidgets)
133 #:use-module (gnu packages bison)
134 #:use-module (gnu packages flex)
135 #:use-module (gnu packages cmake)
136 #:use-module (gnu packages gnuzilla)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages networking)
139 #:use-module (gnu packages vulkan)
140 #:use-module (gnu packages web)
141 #:use-module (guix build-system gnu)
142 #:use-module (guix build-system go)
143 #:use-module (guix build-system haskell)
144 #:use-module (guix build-system python)
145 #:use-module (guix build-system cmake)
146 #:use-module (guix build-system trivial))
148 (define-public armagetronad
150 (name "armagetronad")
151 (version "0.2.8.3.4")
154 (uri (string-append "mirror://sourceforge/" name "/stable/"
155 version "/" name "-" version ".src.tar.gz"))
158 "1pgy0r80z702qdv94aw3ywdn4ynnr4cdi86ml558pljfc5ygasj4"))))
159 (build-system gnu-build-system)
161 `(("libxml2" ,libxml2)
163 ("sdl-image" ,sdl-image)
164 ("freeglut" ,freeglut)
166 ("libjpeg-turbo" ,libjpeg-turbo)))
167 (home-page "http://www.armagetronad.org")
168 (synopsis "Tron clone in 3D")
169 (description "Armagetron is a multiplayer game in 3d that attempts to
170 emulate and expand on the lightcycle sequence from the movie Tron. It's
171 an old school arcade game slung into the 21st century. Highlights include
172 a customizable playing arena, HUD, unique graphics, and AI bots. For the
173 more advanced player there are new game modes and a wide variety of physics
174 settings to tweak as well.")
175 (license license:gpl2+)))
177 (define-public cataclysm-dda
179 (name "cataclysm-dda")
183 (uri (string-append "https://github.com/CleverRaven/Cataclysm-DDA/"
184 "archive/" version ".tar.gz"))
185 (file-name (string-append name "-" version ".tar.gz"))
188 "1xlajmgl9cviqyjpp5g5q4rbljy9gqc49v54bi8gpzr68s14gsb9"))
189 (modules '((guix build utils)))
191 ;; Import cmath header for the std::pow function.
193 (for-each (lambda (file)
195 (("#include <math.h>")
196 "#include <cmath>")))
199 (build-system gnu-build-system)
201 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
202 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1")
204 (modify-phases %standard-phases
207 (substitute* "Makefile"
208 (("ncursesw5-config") "ncursesw6-config")
209 (("RELEASE_FLAGS = -Werror") "RELEASE_FLAGS ="))
211 (add-after 'build 'build-tiles
212 (lambda* (#:key make-flags outputs #:allow-other-keys)
213 ;; Change prefix directory and enable tile graphics and sound.
215 (apply system* "make" "TILES=1" "SOUND=1"
216 (string-append "PREFIX="
217 (assoc-ref outputs "tiles"))
219 (add-after 'install 'install-tiles
220 (lambda* (#:key make-flags outputs #:allow-other-keys)
222 (apply system* "make" "install" "TILES=1" "SOUND=1"
223 (string-append "PREFIX="
224 (assoc-ref outputs "tiles"))
225 (cdr make-flags))))))
226 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
227 ;; input in order to support tests.
230 "tiles")) ; For tile graphics and sound support.
232 `(("gettext" ,gettext-minimal)
233 ("pkg-config" ,pkg-config)))
235 `(("freetype" ,freetype)
237 ("libvorbis" ,libvorbis)
240 ("sdl2-image" ,sdl2-image)
241 ("sdl2-ttf" ,sdl2-ttf)
242 ("sdl2-mixer" ,sdl2-mixer)))
243 (home-page "http://en.cataclysmdda.com/")
244 (synopsis "Survival horror roguelike video game")
246 "Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
247 Struggle to survive in a harsh, persistent, procedurally generated world.
248 Scavenge the remnants of a dead civilization for food, equipment, or, if you are
249 lucky, a vehicle with a full tank of gas to get you out of Dodge. Fight to
250 defeat or escape from a wide variety of powerful monstrosities, from zombies to
251 giant insects to killer robots and things far stranger and deadlier, and against
252 the others like yourself, that want what you have.")
253 (license license:cc-by-sa3.0)))
255 (define-public cowsay
261 (uri (string-append "https://github.com/tnalpgge/"
262 "rank-amateur-cowsay/archive/"
263 name "-" version ".tar.gz"))
266 "12w7apbf6a9qffk92r32b16w22na2fjcqbl32rn0n7zw5hrp3f6q"))))
267 (build-system gnu-build-system)
270 (modify-phases %standard-phases
271 (delete 'configure) ; no configure script
272 (delete 'build) ; nothing to be built
274 (lambda* (#:key outputs #:allow-other-keys)
275 (zero? (system* "sh" "install.sh"
276 (assoc-ref outputs "out")))))
278 (add-after 'install 'check
279 (lambda* (#:key outputs #:allow-other-keys)
280 (zero? (system* (string-append (assoc-ref outputs "out")
285 (home-page (string-append "https://web.archive.org/web/20071026043648/"
286 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
287 (synopsis "Speaking cow text filter")
288 (description "Cowsay is basically a text filter. Send some text into it,
289 and you get a cow saying your text. If you think a talking cow isn't enough,
290 cows can think too: all you have to do is run @command{cowthink}. If you're
291 tired of cows, a variety of other ASCII-art messengers are available.")
292 (license license:gpl3+)))
294 (define-public freedoom
300 (uri (string-append "https://github.com/" name "/" name
301 "/archive/v" version ".tar.gz"))
302 (file-name (string-append name "-" version ".tar.gz"))
305 "1bjijdfqhpazyifx1qda7scj7dry1azhjrnl8h8zn2vqfgdmlh0q"))))
306 (build-system gnu-build-system)
308 '(#:make-flags `(,(string-append "prefix=" (assoc-ref %outputs "out")))
310 #:tests? #f ; no check target
312 (modify-phases %standard-phases
314 (lambda* (#:key inputs outputs #:allow-other-keys)
315 (let* ((dejavu (assoc-ref inputs "font-dejavu"))
316 (freedoom (assoc-ref outputs "out"))
317 (wad-dir (string-append freedoom "/share/games/doom")))
318 ;; Replace the font-searching function in a shell
319 ;; script with a direct path to the required font.
320 ;; This is necessary because ImageMagick can only find the
321 ;; most basic fonts while in the build environment.
322 (substitute* "graphics/titlepic/create_caption"
323 (("font=\\$\\(find_font.*$")
326 "/share/fonts/truetype/DejaVuSansCondensed-Bold.ttf\n")))
327 ;; Make icon creation reproducible.
328 (substitute* "dist/Makefile"
330 "-define png:exclude-chunks=date freedm.png")
332 "-define png:exclude-chunks=date freedoom1.png")
334 "-define png:exclude-chunks=date freedoom2.png"))
335 ;; Make sure that the install scripts know where to find
336 ;; the appropriate WAD files.
337 (substitute* "dist/freedoom"
339 (string-append "IWAD=" wad-dir "/freedm.wad"))
340 (("IWAD=freedoom1.wad")
341 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
342 (("IWAD=freedoom2.wad")
343 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
346 `(("asciidoc" ,asciidoc)
348 ("font-dejavu" ,font-dejavu)
349 ("imagemagick" ,imagemagick)
350 ("python" ,python-2)))
352 `(("prboom-plus" ,prboom-plus)))
353 (home-page "https://freedoom.github.io/")
354 (synopsis "Free content game based on the Doom engine")
356 (list (search-path-specification
357 (variable "DOOMWADDIR")
358 (files '("share/games/doom")))
359 (search-path-specification
360 (variable "DOOMWADPATH")
361 (files '("share/games/doom")))))
363 "The Freedoom project aims to create a complete free content first person
364 shooter game. Freedoom by itself is just the raw material for a game: it must
365 be paired with a compatible game engine (such as @code{prboom-plus}) to be
366 played. Freedoom complements the Doom engine with free levels, artwork, sound
367 effects and music to make a completely free game.")
368 (license license:bsd-3)))
376 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
377 version "/golly-" version
381 "0dn74k3rylhx023n047lz4z6qrqijfcxi0b6jryqklhmm2n532f7"))))
382 (build-system gnu-build-system)
384 '(#:make-flags (list "CC=gcc"
385 (string-append "GOLLYDIR="
386 (assoc-ref %outputs "out")
388 #:tests? #f ; no check target
390 (modify-phases %standard-phases
392 (lambda* (#:key inputs #:allow-other-keys)
393 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
394 ;; properly set the path to the Python shared library. This
395 ;; substitution acheives the same end by different means.
396 (substitute* "gui-wx/wxprefs.cpp"
397 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
398 (string-append "pythonlib = \""
399 (assoc-ref inputs "python")
400 "/lib/libpython-2.7.so\"")))
403 (lambda* (#:key make-flags outputs #:allow-other-keys)
404 (with-directory-excursion "gui-wx"
405 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
407 (lambda* (#:key outputs #:allow-other-keys)
408 (let* ((out (assoc-ref outputs "out"))
409 (bin (string-append out "/bin"))
410 (doc (string-append out "/share/doc/golly"))
411 (pixmaps (string-append out "/share/pixmaps"))
412 (share (string-append out "/share/golly")))
413 (for-each (lambda (binary)
414 (install-file binary bin))
416 (for-each (lambda (document)
418 (string-append "docs/" document ".html")
420 '("License" "ReadMe" "ToDo"))
421 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
422 (for-each (lambda (folder)
425 (string-append share "/" folder)))
426 '("Help" "Patterns" "Rules" "Scripts")))
434 ("wxwidgets" ,wxwidgets-gtk2)
436 (home-page "http://golly.sourceforge.net/")
437 (synopsis "Software for exploring cellular automata")
439 "Golly simulates Conway's Game of Life and many other types of cellular
440 automata. The following features are available:
442 @item Support for bounded and unbounded universes, with cells of up to 256
444 @item Support for multiple algorithms, including Bill Gosper's Hashlife
446 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
447 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
448 @item Scriptable via Lua or Python.
449 @item Extracting patterns, rules and scripts from zip files.
450 @item Downloading patterns, rules and scripts from online archives.
451 @item Pasting patterns from the clipboard.
452 @item Unlimited undo/redo.
453 @item Configurable keyboard shortcuts.
454 @item Auto fit option to keep patterns within the view.
456 (license license:gpl2+)))
458 (define-public meandmyshadow
460 (name "meandmyshadow")
464 (uri (string-append "mirror://sourceforge/meandmyshadow/"
465 version "/meandmyshadow-" version
469 "1dpb7s32b2psj5w3nr5kqibib8nndi86mw8gxp4hmxwrfiisf86d"))))
470 (build-system cmake-build-system)
472 '(#:tests? #f ; there are no tests
474 (modify-phases %standard-phases
475 (add-after 'unpack 'set-sdl'paths
476 (lambda* (#:key inputs #:allow-other-keys)
477 (substitute* "cmake/Modules/FindSDL_gfx.cmake"
478 (("/usr/local/include/SDL")
479 (string-append (assoc-ref inputs "sdl")
481 ;; Because SDL provides lib/libX11.so.6 we need to explicitly
482 ;; link with libX11, even though we're using the GL backend.
483 (substitute* "CMakeLists.txt"
484 (("\\$\\{X11_LIBRARIES\\}") "-lX11"))
487 `(("pkg-config" ,pkg-config)))
489 `(("sdl" ,(sdl-union (list sdl
494 ("libx11" ,libx11) ; needed by sdl's libX11
495 ("libarchive" ,libarchive)
500 (home-page "http://meandmyshadow.sourceforge.net/")
501 (synopsis "Puzzle/platform game")
502 (description "Me and My Shadow is a puzzle/platform game in which you try
503 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
504 and much more stand between you and the exit. Record your moves and let your
505 shadow mimic them to reach blocks you couldn't reach alone.")
506 (license license:gpl3+)))
508 (define-public knights
514 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
515 version "_src.tar.gz"))
518 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
519 (build-system gnu-build-system)
522 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
524 (modify-phases %standard-phases
525 ;; No configure script.
527 #:tests? #f)) ;; No check target.
530 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
531 ("freetype" ,freetype)
532 ("fontconfig" ,fontconfig)
535 `(("pkg-config" ,pkg-config)))
536 (home-page "http://www.knightsgame.org.uk/")
537 (synopsis "Multiplayer dungeon game involving knights and quests")
538 (description "Knights is a multiplayer game involving several knights who
539 must run around a dungeon and complete various quests. Each game revolves
540 around a quest – for example, you might have to find some items and carry them
541 back to your starting point. This may sound easy, but as there are only
542 enough items in the dungeon for one player to win, you may end up having to
543 kill your opponents to get their stuff! Other quests involve escaping from
544 the dungeon, fighting a duel to the death against the enemy knights, or
545 destroying an ancient book using a special wand.")
546 ;; This package includes modified sources of lua (X11), enet (Expat), and
547 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
548 ;; license. The whole package is released under GPLv3+.
549 (license license:gpl3+)))
558 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
559 version ".000-sources." "tar.gz"))
562 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
563 (build-system gnu-build-system)
564 (inputs `(("glib" ,glib)
565 ("readline" ,readline)
569 ("gtkglext" ,gtkglext)
571 ("libcanberra" ,libcanberra)))
572 (native-inputs `(("python-2" ,python-2)
573 ("pkg-config" ,pkg-config)))
574 (home-page "http://gnubg.org")
575 (synopsis "Backgammon game")
576 (description "The GNU backgammon application can be used for playing, analyzing and
577 teaching the game. It has an advanced evaluation engine based on artificial
578 neural networks suitable for both beginners and advanced players. In
579 addition to a command-line interface, it also features an attractive, 3D
580 representation of the playing board.")
581 (license license:gpl3+)))
583 (define-public gnubik
590 (uri (string-append "mirror://gnu/gnubik/gnubik-"
594 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
595 (build-system gnu-build-system)
596 (inputs `(("gtk+" ,gtk+-2)
601 ("gtkglext" ,gtkglext)))
602 (native-inputs `(("gettext" ,gettext-minimal)
603 ("pkg-config" ,pkg-config)))
604 (home-page "https://www.gnu.org/software/gnubik/")
605 (synopsis "3d Rubik's cube game")
607 "GNUbik is a puzzle game in which you must manipulate a cube to make
608 each of its faces have a uniform color. The game is customizable, allowing
609 you to set the size of the cube (the default is 3x3) or to change the colors.
610 You may even apply photos to the faces instead of colors. The game is
611 scriptable with Guile.")
612 (license license:gpl3+)))
614 (define-public gnushogi
621 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
625 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
626 (arguments `(#:tests? #f)) ;; No check target.
627 (build-system gnu-build-system)
628 (home-page "https://www.gnu.org/software/gnushogi/")
629 (synopsis "The game of Shogi (Japanese chess)")
630 (description "GNU Shogi is a program that plays the game Shogi (Japanese
631 Chess). It is similar to standard chess but this variant is far more complicated.")
632 (license license:gpl3+)))
641 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
642 name "-" version ".tar.gz"))
645 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
646 (build-system gnu-build-system)
648 '(;; The code in LTris uses traditional GNU semantics for inline functions
649 #:configure-flags '("CFLAGS=-fgnu89-inline")
651 (modify-phases %standard-phases
652 (add-after 'set-paths 'set-sdl-paths
653 (lambda* (#:key inputs #:allow-other-keys)
655 (string-append (assoc-ref inputs "sdl-union")
659 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
660 (home-page "http://lgames.sourceforge.net/LTris/")
661 (synopsis "Tetris clone based on the SDL library")
663 "LTris is a tetris clone: differently shaped blocks are falling down the
664 rectangular playing field and can be moved sideways or rotated by 90 degree
665 units with the aim of building lines without gaps which then disappear (causing
666 any block above the deleted line to fall down). LTris has three game modes: In
667 Classic you play until the stack of blocks reaches the top of the playing field
668 and no new blocks can enter. In Figures the playing field is reset to a new
669 figure each level and later on tiles and lines suddenly appear. In Multiplayer
670 up to three players (either human or CPU) compete with each other sending
671 removed lines to all opponents. There is also a Demo mode in which you can
672 watch your CPU playing while enjoying a cup of tea!")
673 (license license:gpl2+)))
675 (define-public prboom-plus
681 (uri (string-append "mirror://sourceforge/" name "/" name "/"
682 version "/" name "-" version ".tar.gz"))
685 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
686 (modules '((guix build utils)))
689 (substitute* "src/version.c"
693 (build-system gnu-build-system)
695 '(#:configure-flags '("--disable-cpu-opt")
696 #:make-flags `(,(string-append "gamesdir="
697 (assoc-ref %outputs "out") "/bin"))
699 (modify-phases %standard-phases
700 (add-after 'set-paths 'set-sdl'paths
701 (lambda* (#:key inputs #:allow-other-keys)
703 (string-append (assoc-ref inputs "sdl-union")
707 `(("fluidsynth" ,fluidsynth)
711 ("libvorbis" ,libvorbis)
713 ("portmidi" ,portmidi)
714 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
715 (home-page "http://prboom-plus.sourceforge.net/")
716 (synopsis "Version of the classic 3D shoot'em'up game Doom")
718 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
719 (license license:gpl2+)))
727 (uri (string-append "mirror://savannah/retux/"
728 (version-major+minor version) "/retux-"
729 version "-src.tar.gz"))
732 "1pcrh3z16fl412r3k7xccrgika19ahb1xh90jihgl8yy7zza2i6p"))))
733 (build-system python-build-system)
735 `(#:tests? #f ; no check target
737 (modify-phases %standard-phases
738 ;; no setup.py script
741 (lambda* (#:key outputs #:allow-other-keys)
742 (let* ((out (assoc-ref outputs "out"))
743 (bin (string-append out "/bin"))
744 (data (string-append out "/share/retux"))
745 (doc (string-append out "/share/doc/retux")))
748 (substitute* "retux.py"
749 ;; Use the correct data directory.
750 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
751 (string-append "\"" data "\","))
752 ;; Use Python 3 so the patch-shebangs phase works properly.
753 ((".*python2.*") "#!/usr/bin/python3"))
755 (copy-file "retux.py" (string-append bin "/retux"))
757 (copy-recursively "data" data)
759 (install-file "COPYING" doc)))))))
761 `(("python-sge-pygame" ,python-sge-pygame)
762 ("python-six" ,python-six)
763 ("python-xsge" ,python-xsge)))
764 (home-page "http://retux.nongnu.org")
765 (synopsis "Action platformer game")
767 "ReTux is an action platformer loosely inspired by the Mario games,
768 utilizing the art assets from the @code{SuperTux} project.")
769 ;; GPL version 3 or later is the license for the code and some art.
770 ;; The rest of the licenses are for the art exclusively, as listed in
772 (license (list license:cc0
779 (define-public roguebox-adventures
780 (let ((commit "19a2c340b34d5b4e7cc89118c7aedc058babbd93")
783 (name "roguebox-adventures")
784 (version (git-version "2.1.2" revision commit))
790 (url "https://git.postactiv.com/themightyglider/RogueBoxAdventures.git")
792 (file-name (git-file-name name version))
795 "0afmg8fjdcs3sqdp5rc7irgr7riil8jwysfjn1imfxslf1wcx5ah"))))
796 (build-system python-build-system)
798 '(#:tests? #f ; no check target
800 (modify-phases %standard-phases
801 ;; no setup.py script
803 (lambda* (#:key outputs #:allow-other-keys)
804 (let* ((out (assoc-ref outputs "out"))
806 out "/share/games/roguebox-adventures")))
807 ;; Use the correct data directory.
808 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
809 (("basic_path + os\\.sep + 'DATA'")
810 (string-append "'" data "'"))
812 (string-append "basic_path ='" data "'\n")))
813 (substitute* "LIB/gra_files.py"
814 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
815 (string-append "basic_path ='" data "'\n")))
817 ;; The game must save in the user's home directory because
818 ;; the store is read-only.
819 (substitute* "main.py"
820 (("home_save = False") "home_save = True")
821 (("'icon_small.png'")
822 (string-append "'" data "/icon_small.png'"))))
825 (lambda* (#:key outputs #:allow-other-keys)
826 (let* ((out (assoc-ref outputs "out"))
827 (bin (string-append out "/bin"))
829 out "/share/games/roguebox-adventures"))
831 out "/share/doc/roguebox-adventures")))
835 (string-append bin "/roguebox-adventures"))
836 (chmod (string-append bin "/roguebox-adventures") #o555)
838 (for-each (lambda (file)
839 (copy-recursively file
840 (string-append data "/" file)))
841 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
842 "icon_big.png" "icon_small.png"))
844 (copy-recursively "DOC" doc)
846 (wrap-program (string-append bin "/roguebox-adventures")
847 `("PYTHONPATH" ":" prefix (,(string-append data "/LIB")))))
850 `(("python-pygame" ,python-pygame)
851 ("python-tmx" ,python-tmx)))
852 (home-page "https://rogueboxadventures.tuxfamily.org")
853 (synopsis "A classical roguelike/sandbox game")
855 "RogueBox Adventures is a graphical roguelike with strong influences
856 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
857 Adventures is to offer the player a kind of roguelike toy-world. This world
858 can be explored and changed freely.")
859 ;; The GPL3+ is for code, the rest are for art.
860 (license (list license:cc0
863 license:silofl1.1)))))
865 (define-public xshogi
872 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
876 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
877 (build-system gnu-build-system)
881 (home-page "https://www.gnu.org/software/gnushogi/")
882 (synopsis "User interface for gnushogi")
883 (description "A graphical user interface for the package @code{gnushogi}.")
884 ;; Contains a copy of GPLv3 but the licence notices simply
885 ;; state "GNU General Public Licence" without specifying a version.
886 (license license:gpl1+)))
888 (define-public abbaye
895 (uri (string-append "https://github.com/nevat/abbayedesmorts-gpl/"
896 "archive/v" version ".tar.gz"))
897 (file-name (string-append name "-" version ".tar.gz"))
900 "1a67b0hq6271dd7pvwndjq29cwn2n8gawwz17xafa3k1hrhf8vw3"))
901 (modules '((guix build utils)))
905 (delete-file-recursively "fonts")
907 (build-system gnu-build-system)
909 '(#:make-flags '("CC=gcc")
910 #:phases (modify-phases %standard-phases
911 (add-after 'set-paths 'set-sdl-paths
912 (lambda* (#:key inputs #:allow-other-keys)
914 (string-append (assoc-ref inputs "sdl-union")
916 (add-after 'patch-source-shebangs 'patch-makefile
917 (lambda* (#:key outputs #:allow-other-keys)
918 ;; Replace /usr with package output directory.
919 (substitute* "Makefile"
920 (("/usr") (assoc-ref outputs "out")))))
921 (add-before 'install 'make-install-dirs
922 (lambda* (#:key outputs #:allow-other-keys)
923 (let ((prefix (assoc-ref outputs "out")))
924 ;; Create directories that the makefile assumes exist.
925 (mkdir-p (string-append prefix "/bin"))
926 (mkdir-p (string-append prefix "/share/applications"))
927 (mkdir-p (string-append prefix "/share/pixmaps")))))
928 ;; No configure script.
930 #:tests? #f)) ;; No check target.
931 (native-inputs `(("pkg-config" ,pkg-config)))
932 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
933 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
934 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
935 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
936 France. The Cathars, who preach about good Christian beliefs, were being
937 expelled by the Catholic Church out of the Languedoc region in France. One of
938 them, called Jean Raymond, found an old church in which to hide, not knowing
939 that beneath its ruins lay buried an ancient evil.")
940 (license license:gpl3)))
942 (define-public angband
949 (uri (string-append "http://rephial.org/downloads/4.0/"
950 "angband-" version ".tar.gz"))
953 "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd"))
954 (modules '((guix build utils)))
956 ;; So, some of the sounds/graphics/tilesets are under different
957 ;; licenses... some of them even nonfree! This is a console-only
958 ;; version of this package so we just remove them.
959 ;; In the future, if someone tries to make a graphical variant of
960 ;; this package, they can deal with that mess themselves. :)
962 (for-each (lambda (subdir)
963 (let ((lib-subdir (string-append "lib/" subdir)))
964 (delete-file-recursively lib-subdir)))
965 '("fonts" "icons" "sounds" "tiles"))
966 (substitute* "lib/Makefile"
967 ;; And don't try to invoke makefiles in the directories we removed
968 (("gamedata customize help screens fonts tiles sounds icons user")
969 "gamedata customize help screens user"))
971 (build-system gnu-build-system)
973 `(#:tests? #f ;no check target
974 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
976 (modify-phases %standard-phases
977 (add-after 'unpack 'autogen.sh
979 (substitute* "acinclude.m4"
980 (("ncursesw5-config") "ncursesw6-config"))
981 (zero? (system* "sh" "autogen.sh")))))))
983 `(("autoconf" ,autoconf)
984 ("automake" ,automake)))
985 (inputs `(("ncurses" ,ncurses)))
986 (home-page "http://rephial.org/")
987 (synopsis "Dungeon exploration roguelike")
988 (description "Angband is a Classic dungeon exploration roguelike. Explore
989 the depths below Angband, seeking riches, fighting monsters, and preparing to
990 fight Morgoth, the Lord of Darkness.")
991 (license license:gpl2)))
993 (define-public pingus
1000 (uri (string-append "https://github.com/Pingus/pingus/archive/v"
1002 (file-name (string-append name "-" version ".tar.gz"))
1005 "0r9v6as5vi7skvvy7b0fcaimhdlzmik64pyy68plgljhsghqkkf4"))
1006 (patches (search-patches "pingus-sdl-libs-config.patch"))))
1007 (build-system gnu-build-system)
1008 (native-inputs `(("pkg-config" ,pkg-config)
1009 ("scons-python2" ,scons-python2)))
1010 (inputs `(("sdl" ,sdl)
1011 ("sdl-image" ,sdl-image)
1012 ("sdl-mixer" ,sdl-mixer)
1018 '(#:make-flags (list (string-append "PREFIX=" %output))
1019 #:tests? #f ; no check target
1021 (modify-phases %standard-phases
1022 (delete 'configure)))) ; no configure script
1023 (home-page "http://pingus.seul.org/welcome.html")
1024 (synopsis "Lemmings clone")
1026 "Pingus is a free Lemmings-like puzzle game in which the player takes
1027 command of a bunch of small animals and has to guide them through levels.
1028 Since the animals walk on their own, the player can only influence them by
1029 giving them commands, like build a bridge, dig a hole, or redirect all animals
1030 in the other direction. Multiple such commands are necessary to reach the
1031 level's exit. The game is presented in a 2D side view.")
1032 ;; Some source files are under bsd-3 and gpl2+ licenses.
1033 (license license:gpl3+)))
1035 (define-public talkfilters
1037 (name "talkfilters")
1042 (uri (string-append "http://www.hyperrealm.com/" name "/"
1043 name "-" version ".tar.gz"))
1045 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
1046 (build-system gnu-build-system)
1047 (home-page "https://www.gnu.org/software/talkfilters/")
1048 (synopsis "Convert English text to humorous dialects")
1049 (description "The GNU Talk Filters are programs that convert English text
1050 into stereotyped or otherwise humorous dialects. The filters are provided as
1051 a C library, so they can easily be integrated into other programs.")
1052 (license license:gpl2+)))
1054 (define-public cmatrix
1061 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
1065 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
1066 (build-system gnu-build-system)
1069 (modify-phases %standard-phases
1071 (lambda* (#:key outputs #:allow-other-keys)
1072 ;; This old ‘configure’ script doesn't support
1073 ;; variables passed as arguments.
1074 (let ((out (assoc-ref outputs "out")))
1075 (setenv "CONFIG_SHELL" (which "bash"))
1077 (system* "./configure"
1078 (string-append "--prefix=" out)))))))))
1079 (inputs `(("ncurses" ,ncurses)))
1080 (home-page "http://www.asty.org/cmatrix")
1081 (synopsis "Simulate the display from \"The Matrix\"")
1082 (description "CMatrix simulates the display from \"The Matrix\" and is
1083 based on the screensaver from the movie's website. It works with terminal
1084 settings up to 132x300 and can scroll lines all at the same rate or
1085 asynchronously and at a user-defined speed.")
1086 (license license:gpl2+)))
1088 (define-public chess
1095 (uri (string-append "mirror://gnu/chess/gnuchess-" version
1099 "00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs"))))
1100 (build-system gnu-build-system)
1101 (home-page "https://www.gnu.org/software/chess/")
1102 (synopsis "Full chess implementation")
1103 (description "GNU Chess is a chess engine. It allows you to compete
1104 against the computer in a game of chess, either through the default terminal
1105 interface or via an external visual interface such as GNU XBoard.")
1106 (license license:gpl3+)))
1108 (define freedink-engine
1110 (name "freedink-engine")
1114 (uri (string-append "mirror://gnu/freedink/freedink-" version
1118 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
1119 (build-system gnu-build-system)
1120 (arguments `(#:configure-flags '("--disable-embedded-resources")))
1121 (native-inputs `(("gettext" ,gettext-minimal)
1122 ("pkg-config" ,pkg-config)))
1123 (inputs `(("sdl" ,sdl)
1124 ("sdl-image" ,sdl-image)
1125 ("sdl-mixer" ,sdl-mixer)
1126 ("sdl-ttf" ,sdl-ttf)
1127 ("sdl-gfx" ,sdl-gfx)
1128 ("fontconfig" ,fontconfig)
1130 (home-page "https://www.gnu.org/software/freedink/")
1131 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
1133 "GNU FreeDink is a free and portable re-implementation of the engine
1134 for the role-playing game Dink Smallwood. It supports not only the original
1135 game data files but it also supports user-produced game mods or \"D-Mods\".
1136 To that extent, it also includes a front-end for managing all of your D-Mods.")
1137 (license license:gpl3+)))
1139 (define freedink-data
1141 (name "freedink-data")
1142 (version "1.08.20170401")
1145 (uri (string-append "mirror://gnu/freedink/freedink-data-"
1149 "1zx7qywibhznj7bnz217404scr8dfh0xj24xjihnda5iapzz7lz8"))))
1150 (build-system gnu-build-system)
1153 (modify-phases %standard-phases
1154 (delete 'configure) ; no configure script
1155 (delete 'check)) ; no tests
1156 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1157 (home-page "https://www.gnu.org/software/freedink/")
1158 (synopsis "Game data for GNU Freedink")
1160 "This package contains the game data of GNU Freedink.")
1161 (license license:gpl3+)))
1163 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
1165 (define-public freedink
1166 ;; This is a wrapper that tells the engine where to find the data.
1167 (package (inherit freedink-engine)
1169 (build-system trivial-build-system)
1172 (use-modules (guix build utils))
1174 (let* ((output (assoc-ref %outputs "out"))
1175 (bin (string-append output "/bin"))
1176 (executable (string-append bin "/freedink")))
1178 (call-with-output-file executable
1180 (format port "#!~a/bin/sh
1181 exec ~a/bin/freedink -refdir ~a/share/dink\n"
1182 (assoc-ref %build-inputs "bash")
1183 (assoc-ref %build-inputs "engine")
1184 (assoc-ref %build-inputs "data"))
1185 (chmod port #o777)))
1187 #:modules ((guix build utils))))
1188 (inputs `(("engine" ,freedink-engine)
1189 ("data" ,freedink-data)
1191 (native-inputs '())))
1193 (define-public xboard
1200 (uri (string-append "mirror://gnu/xboard/xboard-" version
1204 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
1205 (build-system gnu-build-system)
1208 ("librsvg" ,librsvg)))
1210 `(("texinfo" ,texinfo)
1211 ("pkg-config" ,pkg-config)))
1212 (home-page "https://www.gnu.org/software/xboard/")
1213 (synopsis "Graphical user interface for chess programs")
1214 (description "GNU XBoard is a graphical board for all varieties of chess,
1215 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
1216 and Makruk. Several lesser-known variants are also supported. It presents a
1217 fully interactive graphical interface and it can load and save games in the
1218 Portable Game Notation.")
1219 (license license:gpl3+)))
1222 (define-public xboing
1229 (uri (string-append "http://www.techrescue.org/xboing/xboing"
1232 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))
1233 (patches (search-patches "xboing-CVE-2004-0149.patch"))))
1237 (modify-phases %standard-phases
1239 (lambda* (#:key outputs #:allow-other-keys)
1241 (substitute* "Imakefile"
1242 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
1243 (string-append "XPMINCLUDE = -I"
1244 (assoc-ref %build-inputs "libxpm")
1247 (substitute* "Imakefile"
1248 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
1250 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
1252 (zero? (system* "xmkmf" "-a"
1253 (string-append "-DProjectRoot="
1254 (assoc-ref outputs "out"))))))
1256 (lambda* (#:key outputs #:allow-other-keys)
1258 (zero? (system* "make" "install.man"))
1259 (zero? (system* "make" "install"))))))))
1260 (inputs `(("libx11" ,libx11)
1261 ("libxext" ,libxext)
1262 ("libxpm" ,libxpm)))
1263 (native-inputs `(("imake" ,imake)
1264 ("inetutils" ,inetutils)
1265 ("makedepend" ,makedepend)))
1266 (build-system gnu-build-system)
1267 (home-page "http://www.techrescue.org/xboing")
1268 (synopsis "Ball and paddle game")
1269 (description "XBoing is a blockout type game where you have a paddle which
1270 you control to bounce a ball around the game zone destroying blocks with a
1271 proton ball. Each block carries a different point value. The more blocks you
1272 destroy, the better your score. The person with the highest score wins.")
1273 (license (license:x11-style "file://COPYING"
1274 "Very similar to the X11 licence."))))
1276 (define-public gtypist
1282 (uri (string-append "mirror://gnu/gtypist/gtypist-"
1286 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
1287 (modules '((guix build utils)))
1289 ;; We do not provide `ncurses.h' within an `ncursesw'
1290 ;; sub-directory, so patch the source accordingly. See
1291 ;; <http://bugs.gnu.org/19018>.
1293 (for-each (lambda (file)
1295 (("ncursesw/ncurses.h")
1297 (find-files "." "configure$|\\.c$"))
1299 (build-system gnu-build-system)
1300 (inputs `(("ncurses" ,ncurses)
1302 (home-page "https://www.gnu.org/software/gtypist/")
1303 (synopsis "Typing tutor")
1305 "GNU Typist is a universal typing tutor. It can be used to learn and
1306 practice touch-typing. Several tutorials are included; in addition to
1307 tutorials for the standard QWERTY layout, there are also tutorials for the
1308 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
1309 are primarily in English, however some in other languages are provided.")
1310 (license license:gpl3+)))
1312 (define-public irrlicht
1319 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
1320 (version-major+minor version)
1321 "/" version "/irrlicht-" version ".zip"))
1324 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
1325 (build-system gnu-build-system)
1328 (modify-phases %standard-phases
1329 (add-after 'unpack 'fix-build-env
1330 (lambda* (#:key outputs #:allow-other-keys)
1331 (let ((out (assoc-ref outputs "out")))
1332 (substitute* "Makefile"
1333 (("INSTALL_DIR = /usr/local/lib")
1334 (string-append "INSTALL_DIR = " out "/lib")))
1335 ;; The Makefile assumes these directories exist.
1336 (mkdir-p (string-append out "/lib"))
1337 (mkdir-p (string-append out "/include")))))
1339 (lambda* (#:key source #:allow-other-keys)
1340 (and (zero? (system* "unzip" source))
1341 ;; The actual source is buried a few directories deep.
1342 (chdir (string-append "irrlicht-" ,version
1343 "/source/Irrlicht/")))))
1344 (delete 'configure)) ; no configure script
1345 #:tests? #f ; no check target
1346 #:make-flags '("CC=gcc" "sharedlib")))
1348 `(("unzip" ,unzip)))
1352 (synopsis "3D game engine written in C++")
1354 "The Irrlicht Engine is a high performance realtime 3D engine written in
1355 C++. Features include an OpenGL renderer, extensible materials, scene graph
1356 management, character animation, particle and other special effects, support
1357 for common mesh file formats, and collision detection.")
1358 (home-page "http://irrlicht.sourceforge.net/")
1359 (license license:zlib)))
1362 ;; The latest release on SourceForge relies on an unreleased version of SFML
1363 ;; with a different API, so we take the latest version from the official
1364 ;; repository on Github.
1365 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
1369 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
1373 (url "https://github.com/thelaui/M.A.R.S..git")
1375 (file-name (string-append name "-" version))
1378 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
1379 (patches (search-patches "mars-sfml-2.3.patch"
1380 "mars-install.patch"))))
1381 (build-system cmake-build-system)
1383 `(#:tests? #f ; There are no tests
1385 (modify-phases %standard-phases
1386 (add-after 'unpack 'fix-install-path
1388 (substitute* "src/CMakeLists.txt"
1389 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
1390 "${CMAKE_INSTALL_PREFIX}/bin"))
1392 (add-after 'unpack 'fix-data-path
1393 (lambda* (#:key outputs #:allow-other-keys)
1394 (substitute* "src/System/settings.cpp"
1395 (("C_dataPath = \"./data/\";")
1396 (string-append "C_dataPath = \""
1397 (assoc-ref outputs "out")
1398 "/share/games/marsshooter/\";")))
1402 ("fribidi" ,fribidi)
1405 (home-page "http://marsshooter.org")
1406 (synopsis "2D space shooter")
1408 "M.A.R.S. is a 2D space shooter with pretty visual effects and
1409 attractive physics. Players can battle each other or computer controlled
1410 enemies in different game modes such as space ball, death match, team death
1411 match, cannon keep, and grave-itation pit.")
1412 (license license:gpl3+))))
1414 (define minetest-data
1416 (name "minetest-data")
1421 "https://github.com/minetest/minetest_game/archive/"
1423 (file-name (string-append name "-" version ".tar.gz"))
1426 "0nibpm600rbv9dg1zgcsl5grlbqx0b5l6cg1lp6sqkwvjialb4ga"))))
1427 (build-system trivial-build-system)
1429 `(("source" ,source)
1431 ("gzip" ,(@ (gnu packages compression) gzip))))
1433 `(#:modules ((guix build utils))
1435 (use-modules (guix build utils))
1436 (let ((tar (string-append (assoc-ref %build-inputs "tar")
1438 (install-dir (string-append
1440 "/share/minetest/games/minetest_game"))
1441 (path (string-append (assoc-ref %build-inputs
1444 (setenv "PATH" path)
1445 (invoke tar "xvf" (assoc-ref %build-inputs "source"))
1446 (chdir (string-append "minetest_game-" ,version))
1447 (mkdir-p install-dir)
1448 (copy-recursively "." install-dir)
1450 (synopsis "Main game data for the Minetest game engine")
1452 "Game data for the Minetest infinite-world block sandox game.")
1453 (home-page "http://minetest.net")
1454 (license license:lgpl2.1+)))
1456 (define-public minetest
1463 "https://github.com/minetest/minetest/archive/"
1465 (file-name (string-append name "-" version ".tar.gz"))
1468 "0mbnf1ma4gsw9ah68ply04059xkfx5psdxwalxp78sgmx4ypkwqf"))))
1469 (build-system cmake-build-system)
1472 (list "-DRUN_IN_PLACE=0"
1473 "-DENABLE_FREETYPE=1"
1474 "-DENABLE_GETTEXT=1"
1475 (string-append "-DIRRLICHT_INCLUDE_DIR="
1476 (assoc-ref %build-inputs "irrlicht")
1477 "/include/irrlicht")
1478 (string-append "-DCURL_INCLUDE_DIR="
1479 (assoc-ref %build-inputs "curl")
1481 #:tests? #f)) ; no check target
1482 (native-search-paths
1483 (list (search-path-specification
1484 (variable "MINETEST_SUBGAME_PATH")
1485 (files '("share/minetest/games")))))
1487 `(("pkg-config" ,pkg-config)))
1489 `(("irrlicht" ,irrlicht)
1491 ("libjpeg" ,libjpeg)
1492 ("libxxf86vm" ,libxxf86vm)
1495 ("libvorbis" ,libvorbis)
1497 ("freetype" ,(@ (gnu packages fontutils) freetype))
1500 ("gettext" ,gettext-minimal)
1501 ("sqlite" ,sqlite)))
1503 `(("minetest-data" ,minetest-data)))
1504 (synopsis "Infinite-world block sandbox game")
1506 "Minetest is a sandbox construction game. Players can create and destroy
1507 various types of blocks in a three-dimensional open world. This allows
1508 forming structures in every possible creation, on multiplayer servers or as a
1509 single player. Mods and texture packs allow players to personalize the game
1510 in different ways.")
1511 (home-page "http://minetest.net")
1512 (license license:lgpl2.1+)))
1521 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1522 "glk/implementations/glkterm-104.tar.gz"))
1525 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
1526 (build-system gnu-build-system)
1527 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
1529 '(#:tests? #f ; no check target
1531 (modify-phases %standard-phases
1533 (lambda* (#:key outputs #:allow-other-keys)
1534 (let* ((out (assoc-ref outputs "out"))
1535 (inc (string-append out "/include"))
1536 (lib (string-append out "/lib")))
1539 (install-file file inc))
1540 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
1541 (install-file "libglkterm.a" lib))
1543 (delete 'configure)))) ; no configure script
1544 (home-page "http://www.eblong.com/zarf/glk/")
1545 (synopsis "Curses Implementation of the Glk API")
1547 "Glk defines a portable API for applications with text UIs. It was
1548 primarily designed for interactive fiction, but it should be suitable for many
1549 interactive text utilities, particularly those based on a command line.
1550 This is an implementation of the Glk library which runs in a terminal window,
1551 using the @code{curses.h} library for screen control.")
1552 (license (license:fsf-free "file://README"))))
1554 (define-public glulxe
1561 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1562 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
1565 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
1566 (build-system gnu-build-system)
1567 (inputs `(("glk" ,glkterm)))
1569 '(#:tests? #f ; no check target
1571 (let* ((glk (assoc-ref %build-inputs "glk")))
1572 (list (string-append "GLKINCLUDEDIR=" glk "/include")
1573 (string-append "GLKLIBDIR=" glk "/lib")
1574 (string-append "GLKMAKEFILE=" "Make.glkterm")))
1576 (modify-phases %standard-phases
1578 (lambda* (#:key outputs #:allow-other-keys)
1579 (let* ((out (assoc-ref outputs "out"))
1580 (bin (string-append out "/bin")))
1581 (install-file "glulxe" bin))
1583 (delete 'configure)))) ; no configure script
1584 (home-page "http://www.eblong.com/zarf/glulx/")
1585 (synopsis "Interpreter for Glulx VM")
1587 "Glulx is a 32-bit portable virtual machine intended for writing and
1588 playing interactive fiction. It was designed by Andrew Plotkin to relieve
1589 some of the restrictions in the venerable Z-machine format. This is the
1590 reference interpreter, using the Glk API.")
1591 (license license:expat)))
1593 (define-public fizmo
1599 (uri (string-append "https://christoph-ender.de/fizmo/source/"
1600 name "-" version ".tar.gz"))
1603 "1sd988db2302r7cbfcfghbmg8ck43c6hvnlnlpb0rqxb7pm9cwyy"))))
1604 (build-system gnu-build-system)
1607 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
1608 (ncurses (assoc-ref %build-inputs "ncurses")))
1609 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
1610 (string-append "jpeg_LIBS=-ljpeg")
1611 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
1612 (string-append "ncursesw_LIBS=-lncursesw")))))
1614 `(("pkg-config" ,pkg-config)))
1616 `(("freetype" ,freetype)
1617 ("libjpeg" ,libjpeg)
1619 ("libsndfile" ,libsndfile)
1620 ("libxml2" ,libxml2)
1621 ("ncurses" ,ncurses)
1623 (home-page "https://christoph-ender.de/fizmo/")
1624 (synopsis "Z-machine interpreter")
1626 "Fizmo is a console-based Z-machine interpreter. It is used to play
1627 interactive fiction, also known as text adventures, which were implemented
1628 either by Infocom or created using the Inform compiler.")
1629 (license license:bsd-3)))
1631 (define-public gnugo
1637 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
1641 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
1642 (build-system gnu-build-system)
1643 (inputs `(("readline" ,readline)))
1644 (synopsis "Play the game of Go")
1646 "GNU Go is a program that plays the game of Go, in which players
1647 place stones on a grid to form territory or capture other stones. While
1648 it can be played directly from the terminal, rendered in ASCII characters,
1649 it is also possible to play GNU Go with 3rd party graphical interfaces or
1650 even in Emacs. It supports the standard game storage format (SGF, Smart
1651 Game Format) and inter-process communication format (GMP, Go Modem
1653 (home-page "https://www.gnu.org/software/gnugo/")
1654 (license license:gpl3+)))
1656 (define-public extremetuxracer
1658 (name "extremetuxracer")
1663 "mirror://sourceforge/extremetuxracer/releases/"
1664 version "/etr-" version ".tar.xz"))
1667 "0d2j4ybdjmimg67v2fndgahgq4fvgz3fpfb3a4l1ar75n6hy776s"))))
1668 (build-system gnu-build-system)
1670 `(("pkg-config" ,pkg-config)))
1674 (synopsis "High speed arctic racing game based on Tux Racer")
1675 ;; Snarfed straight from Debian
1676 (description "Extreme Tux Racer, or etracer as it is called for short, is
1677 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
1678 game is to slide down a snow- and ice-covered mountain as quickly as possible,
1679 avoiding the trees and rocks that will slow you down.
1681 Collect herrings and other goodies while sliding down the hill, but avoid fish
1684 This game is based on the GPL version of the famous game TuxRacer.")
1685 (home-page "https://sourceforge.net/projects/extremetuxracer/")
1686 (license license:gpl2+)))
1688 (define-public supertuxkart
1690 (name "supertuxkart")
1695 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
1696 version "/supertuxkart-" version "-src.tar.xz"))
1699 "1c4w47ibj87lgwiqygq8qi7jiz6gklj4dwf5bs5zk15s0rqlw0fq"))
1700 (modules '((guix build utils)))
1702 ;; Delete bundled library sources
1704 ;; FIXME: try to unbundle enet, and angelscript
1705 (for-each delete-file-recursively
1711 (substitute* "CMakeLists.txt"
1712 ;; Supertuxkart uses modified versions of the Irrlicht engine
1713 ;; and the bullet library. The developers gave an explanation here:
1714 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1715 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1717 (build-system cmake-build-system)
1719 `(#:tests? #f ; no check target
1721 (list "-DUSE_WIIUSE=0"
1722 ;; Do not use the bundled zlib
1723 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1724 ;; FIXME: needs libopenglrecorder
1725 "-DBUILD_RECORDER=0"
1726 ;; Irrlicht returns an integer instead of a boolean
1727 "-DCMAKE_C_FLAGS=-fpermissive")
1729 (modify-phases %standard-phases
1730 (add-after 'unpack 'unbundle
1731 (lambda* (#:key inputs #:allow-other-keys)
1732 (substitute* "CMakeLists.txt"
1734 (string-append (assoc-ref inputs "glew")
1736 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1737 (string-append "include_directories(\""
1738 (assoc-ref inputs "glew")
1745 ("libvorbis" ,libvorbis)
1746 ("freetype" ,freetype)
1747 ("fribidi" ,fribidi)
1750 ("libxrandr" ,libxrandr)
1752 ;; The following input is needed to build the bundled and modified
1753 ;; version of irrlicht.
1754 ("libjpeg" ,libjpeg)))
1756 `(("pkg-config" ,pkg-config)))
1757 (home-page "https://supertuxkart.net/")
1758 (synopsis "3D kart racing game")
1759 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1760 having fun over realism. You can play with up to 4 friends on one PC, racing
1761 against each other or just trying to beat the computer; single-player mode is
1763 (license license:gpl3+)))
1765 (define-public gnujump
1771 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1775 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1776 (build-system gnu-build-system)
1779 (modify-phases %standard-phases
1781 'configure 'link-libm
1782 (lambda _ (setenv "LIBS" "-lm"))))))
1787 ("sdl-image" ,sdl-image)
1788 ("sdl-mixer" ,sdl-mixer)))
1789 (home-page "http://gnujump.es.gnu.org/")
1791 "Game of jumping to the next floor, trying not to fall")
1793 "GNUjump is a simple, yet addictive game in which you must jump from
1794 platform to platform to avoid falling, while the platforms drop at faster rates
1795 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1796 falling, themeable graphics and sounds, and replays.")
1797 (license license:gpl3+)))
1799 (define-public wesnoth
1805 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1806 (version-major+minor version) "/wesnoth-"
1808 name "-" version ".tar.bz2"))
1811 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1812 (build-system cmake-build-system)
1814 '(#:tests? #f ; no check target
1816 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1817 ;; boost/mpl/assert.hpp:313:58: error:
1818 ;; use of old-style cast [-Werror=old-style-cast]
1820 ;; cc1plus: all warnings being treated as errors
1821 '("-DENABLE_STRICT_COMPILATION=OFF")))
1823 `(("gettext" ,gettext-minimal)
1824 ("pkg-config" ,pkg-config)))
1828 ("fribidi" ,fribidi)
1829 ("libvorbis" ,libvorbis)
1831 ("sdl-image" ,sdl-image)
1832 ("sdl-mixer" ,sdl-mixer)
1833 ("sdl-net" ,sdl-net)
1834 ("sdl-ttf" ,sdl-ttf)))
1835 (home-page "http://www.wesnoth.org/")
1836 (synopsis "Turn-based strategy game")
1838 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1839 with several single player campaigns, and multiplayer games (both networked and
1842 Battle for control on a range of maps, using variety of units which have
1843 advantages and disadvantages against different types of attacks. Units gain
1844 experience and advance levels, and are carried over from one scenario to the
1846 (license license:gpl2+)))
1848 (define-public wesnoth-server
1851 (name "wesnoth-server")
1854 ("sdl-net" ,sdl-net)))
1857 (substitute-keyword-arguments (package-arguments wesnoth)
1858 ((#:configure-flags configure-flags)
1859 `(append ,configure-flags (list "-DENABLE_GAME=OFF"))))
1861 (modify-phases %standard-phases
1862 ;; Delete game assets not required by the server.
1863 (add-after 'install 'delete-data
1864 (lambda* (#:key outputs #:allow-other-keys)
1865 (delete-file-recursively (string-append (assoc-ref outputs "out")
1866 "/share/wesnoth"))))))))
1867 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
1868 (description "This package contains a dedicated server for @emph{The
1869 Battle for Wesnoth}.")))
1871 (define-public gamine
1877 (uri (string-append "mirror://sourceforge/gamine-game/"
1878 "gamine-" version ".tar.gz"))
1881 "08wnk7w84c2413hwny89j2cn89cvfdf67bfc6wl0bf475if0mf4h"))))
1882 (build-system gnu-build-system)
1884 `(("pkg-config" ,pkg-config)
1885 ("intltool" ,intltool)))
1887 `(("gstreamer" ,gstreamer)
1888 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1889 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1894 (let ((out (assoc-ref %outputs "out")))
1895 (list (string-append "PREFIX=" out)
1896 (string-append "SYSCONFDIR=" out "/etc")))
1898 (modify-phases %standard-phases
1901 'install 'wrap-gamine
1902 (lambda* (#:key outputs #:allow-other-keys)
1903 (let ((out (assoc-ref outputs "out"))
1904 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1905 (wrap-program (string-append out "/bin/gamine")
1906 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1908 (home-page "http://gamine-game.sourceforge.net/")
1909 (synopsis "Mouse and keyboard discovery for children")
1911 "Gamine is a game designed for young children who are learning to use the
1912 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1913 on the screen and keyboard to display letters.")
1914 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1915 (license license:gpl3)))
1917 (define-public raincat
1925 "http://hackage.haskell.org/package/Raincat/Raincat-"
1930 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1931 (build-system haskell-build-system)
1933 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1934 ("ghc-mtl" ,ghc-mtl)
1935 ("ghc-random" ,ghc-random)
1936 ("ghc-glut" ,ghc-glut)
1937 ("freeglut" ,freeglut)
1938 ("ghc-opengl" ,ghc-opengl)
1939 ("ghc-sdl" ,ghc-sdl)
1940 ("ghc-sdl-image" ,ghc-sdl-image)
1941 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1942 (home-page "http://www.bysusanlin.com/raincat/")
1943 (synopsis "Puzzle game with a cat in lead role")
1944 (description "Project Raincat is a game developed by Carnegie Mellon
1945 students through GCS during the Fall 2008 semester. Raincat features game
1946 play inspired from classics Lemmings and The Incredible Machine. The project
1947 proved to be an excellent learning experience for the programmers. Everything
1948 is programmed in Haskell.")
1949 (license license:bsd-3)))
1951 (define-public manaplus
1954 (version "1.7.6.10")
1958 "http://repo.manaplus.org/manaplus/download/"
1959 version "/manaplus-" version ".tar.xz"))
1962 "0l7swvpzq20am4w2rsjpp6fsvbjv07il6wbfy45a7h9zsdihmqhl"))))
1963 (build-system gnu-build-system)
1966 (list (string-append "CPPFLAGS=-I"
1967 (assoc-ref %build-inputs "sdl-union")
1970 `(("pkg-config" ,pkg-config)))
1974 ("libxml2" ,libxml2)
1976 ("sdl-union" ,(sdl-union))))
1977 (home-page "http://manaplus.org")
1978 (synopsis "Client for 'The Mana World' and similar games")
1980 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1981 fully supported client for @uref{http://www.themanaworld.org, The mana
1982 world}, @uref{http://evolonline.org, Evol Online} and
1983 @uref{http://landoffire.org, Land of fire}.")
1984 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1985 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1986 ;; The rest is under GPL2+.
1987 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1989 (define openttd-engine
1991 (name "openttd-engine")
1994 (origin (method url-fetch)
1995 (uri (string-append "http://binaries.openttd.org/releases/"
1996 version "/openttd-" version "-source.tar.xz"))
1999 "0dhv5bbbg1dmmq7fi3xss0a9jq2rqgb5sf9fsqzlsjcdm590j6b1"))
2000 (modules '((guix build utils)))
2002 ;; The DOS port contains proprietary software.
2004 (delete-file-recursively "os/dos")
2006 (build-system gnu-build-system)
2008 `(#:tests? #f ; no "check" target
2010 (modify-phases %standard-phases
2011 ;; The build process fails if the configure script is passed the
2012 ;; option "--enable-fast-install".
2014 (lambda* (#:key inputs outputs (configure-flags '())
2016 (let ((out (assoc-ref outputs "out"))
2017 (lzo (assoc-ref inputs "lzo")))
2019 (apply system* "./configure"
2020 (string-append "--prefix=" out)
2021 ;; Provide the "lzo" path.
2022 (string-append "--with-liblzo2="
2023 lzo "/lib/liblzo2.a")
2024 ;; Put the binary in 'bin' instead of 'games'.
2026 configure-flags))))))))
2027 (native-inputs `(("pkg-config" ,pkg-config)))
2029 `(("allegro" ,allegro-4)
2030 ("fontconfig" ,fontconfig)
2031 ("freetype" ,freetype)
2038 (synopsis "Transportation economics simulator")
2039 (description "OpenTTD is a game in which you transport goods and
2040 passengers by land, water and air. It is a re-implementation of Transport
2041 Tycoon Deluxe with many enhancements including multiplayer mode,
2042 internationalization support, conditional orders and the ability to clone,
2043 autoreplace and autoupdate vehicles. This package only includes the game
2044 engine. When you start it you will be prompted to download a graphics set.")
2045 (home-page "http://openttd.org/")
2046 ;; This package is GPLv2, except for a few files located in
2047 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
2048 ;; licenses. In addition, this software contains an in-game downloader
2049 ;; from which the user may find non-functional data licensed under
2051 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
2053 (define openttd-opengfx
2055 (name "openttd-opengfx")
2060 (uri (string-append "http://binaries.openttd.org/extra/opengfx/"
2061 version "/opengfx-" version "-source.tar.xz"))
2064 "0iz66q7p1mf00njfjbc4vibh3jaybki7armkl18iz7p6x4chp9zv"))))
2065 (build-system gnu-build-system)
2067 '(#:make-flags (list "CC=gcc"
2068 (string-append "INSTALL_DIR="
2069 (assoc-ref %outputs "out")
2070 "/share/games/openttd/baseset/opengfx"))
2072 (modify-phases %standard-phases
2075 ;; Make sure HOME is writable for GIMP.
2076 (setenv "HOME" (getcwd))
2078 ;; Redirect stdout, not stderr, to /dev/null. This prevents
2079 ;; dos2unix from receiving its version information as a flag.
2080 (substitute* "Makefile"
2081 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
2082 "$(UNIX2DOS) -q --version 1>/dev/null")))))
2083 ;; The check phase for this package only checks the md5sums of the built
2084 ;; GRF files against the md5sums of the release versions. Because we use
2085 ;; different software versions than upstream does, some of the md5sums
2086 ;; are different. However, the package is still reproducible, it's safe
2087 ;; to disable this test.
2089 #:parallel-build? #f))
2090 (native-inputs `(("dos2unix" ,dos2unix)
2092 ("grfcodec" ,grfcodec)
2094 ("python" ,python-2)))
2095 (home-page "http://dev.openttdcoop.org/projects/opengfx")
2096 (synopsis "Base graphics set for OpenTTD")
2098 "The OpenGFX projects is an implementation of the OpenTTD base grahics
2099 set that aims to ensure the best possible out-of-the-box experience.
2101 OpenGFX provides you with...
2103 @item All graphics you need to enjoy OpenTTD.
2104 @item Uniquely drawn rail vehicles for every climate.
2105 @item Completely snow-aware rivers.
2106 @item Different river and sea water.
2107 @item Snow-aware buoys.
2109 (license license:gpl2)))
2111 (define openttd-opensfx
2113 (name "openttd-opensfx")
2119 "https://binaries.openttd.org/extra/opensfx/"
2120 version "/opensfx-" version "-source.tar.gz"))
2123 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
2124 (build-system gnu-build-system)
2126 `(("catcodec" ,catcodec)
2127 ("python" ,python2-minimal)))
2130 (list (string-append "INSTALL_DIR=" %output
2131 "/share/games/openttd/baseset/opensfx"))
2133 (modify-phases %standard-phases
2134 (add-after 'unpack 'make-reproducible
2136 ;; Remove the time dependency of the installed tarball by setting
2137 ;; the modification times if its members to 0.
2138 (substitute* "scripts/Makefile.def"
2139 (("-cf") " --mtime=@0 -cf"))
2141 (delete 'configure))))
2142 (home-page "http://dev.openttdcoop.org/projects/opensfx")
2143 (synopsis "Base sounds for OpenTTD")
2144 (description "OpenSFX is a set of free base sounds for OpenTTD which make
2145 it possible to play OpenTTD without requiring the proprietary sound files from
2146 the original Transport Tycoon Deluxe.")
2147 (license license:cc-sampling-plus-1.0)))
2149 (define openttd-openmsx
2151 (name "openttd-openmsx")
2157 "https://binaries.openttd.org/extra/openmsx/"
2158 version "/openmsx-" version "-source.tar.gz"))
2161 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
2162 (build-system gnu-build-system)
2164 `(("python" ,python2-minimal)))
2167 (list (string-append "INSTALL_DIR=" %output
2168 "/share/games/openttd/baseset"))
2170 (modify-phases %standard-phases
2172 (add-after 'install 'post-install
2173 ;; Rename openmsx-version to openmsx
2174 (lambda* (#:key outputs #:allow-other-keys)
2175 (let ((install-directory (string-append (assoc-ref outputs "out")
2176 "/share/games/openttd/baseset")))
2177 (rename-file (string-append install-directory "/openmsx-" ,version)
2178 (string-append install-directory "/openmsx"))
2180 (home-page "http://dev.openttdcoop.org/projects/openmsx")
2181 (synopsis "Music set for OpenTTD")
2182 (description "OpenMSX is a music set for OpenTTD which makes it possible
2183 to play OpenTTD without requiring the proprietary music from the original
2184 Transport Tycoon Deluxe.")
2185 (license license:gpl2)))
2187 (define-public openttd
2189 (inherit openttd-engine)
2193 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
2195 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
2197 `(modify-phases ,phases
2198 (add-after 'install 'install-data
2199 (lambda* (#:key inputs outputs #:allow-other-keys)
2202 (copy-recursively (assoc-ref inputs input)
2203 (assoc-ref outputs "out")))
2204 (list "opengfx" "openmsx" "opensfx"))
2207 `(("timidity++" ,timidity++)
2208 ,@(package-inputs openttd-engine)))
2210 `(("opengfx" ,openttd-opengfx)
2211 ("openmsx" ,openttd-openmsx)
2212 ("opensfx" ,openttd-opensfx)
2213 ,@(package-native-inputs openttd-engine)))))
2215 (define-public openrct2
2222 (uri (string-append "https://github.com/OpenRCT2/OpenRCT2/archive/v"
2226 "1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx"))
2227 (file-name (string-append name "-" version ".tar.gz"))))
2228 (build-system cmake-build-system)
2230 `(#:tests? #f ;; no tests available
2232 (modify-phases %standard-phases
2233 (add-after 'unpack 'fix-usr-share-paths
2234 (lambda* (#:key make-flags outputs #:allow-other-keys)
2235 ;; Fix some references to /usr/share.
2236 (substitute* "src/openrct2/platform/linux.c"
2238 (string-append (assoc-ref %outputs "out") "/share")))))
2239 (add-after 'build 'fix-cmake-install-file
2241 ;; The build system tries to download a file and compare hashes.
2242 ;; Since we have no network, remove this so the install doesn't fail.
2243 (substitute* "cmake_install.cmake"
2244 (("EXPECTED_HASH SHA1=b587d83de508d0b104d14c599b76f8565900fce0")
2246 (inputs `(("curl" ,curl)
2247 ("fontconfig" ,fontconfig)
2248 ("freetype" ,freetype)
2249 ("jansson" ,jansson)
2253 ("openssl" ,openssl)
2255 ("speexdsp" ,speexdsp)
2258 `(("pkg-config" ,pkg-config)))
2259 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2260 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
2261 (description "OpenRCT2 is a free software re-implementation of
2262 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
2263 maintaining an amusement park containing attractions, shops and facilities.
2265 Note that this package does @emph{not} provide the game assets (sounds,
2267 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
2268 ;; regarding assets.
2269 (license license:gpl3+)))
2271 (define-public pinball
2276 (origin (method url-fetch)
2277 (uri (string-append "mirror://sourceforge/pinball/pinball/"
2278 "pinball-" version "/"
2279 "pinball-" version ".tar.gz"))
2282 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2283 (patches (search-patches "pinball-const-fix.patch"
2284 "pinball-cstddef.patch"
2285 "pinball-missing-separators.patch"
2286 "pinball-src-deps.patch"
2287 "pinball-system-ltdl.patch"))))
2288 (build-system gnu-build-system)
2293 ("sdl-image" ,sdl-image)
2294 ("sdl-mixer" ,sdl-mixer)))
2297 (list (string-append "CPPFLAGS=-I"
2298 (assoc-ref %build-inputs "sdl-image")
2300 (assoc-ref %build-inputs "sdl-mixer")
2302 (home-page "http://pinball.sourceforge.net")
2303 (synopsis "Pinball simulator")
2304 (description "The Emilia Pinball Project is a pinball simulator. There
2305 are only two levels to play with, but they are very addictive.")
2306 (license license:gpl2)))
2308 (define-public pioneers
2314 (uri (string-append "http://downloads.sourceforge.net/pio/"
2315 "pioneers-" version ".tar.gz"))
2318 "1p1d18hrfmqcnghip3shkzcs5qkz6j99jvkdkqfi7pqdvjc323cs"))))
2319 (build-system gnu-build-system)
2320 (inputs `(("gtk+" ,gtk+)
2321 ("librsvg" ,librsvg)
2323 (native-inputs `(("intltool" ,intltool)
2324 ("pkg-config" ,pkg-config)))
2325 (synopsis "Board game inspired by The Settlers of Catan")
2326 (description "Pioneers is an emulation of the board game The Settlers of
2327 Catan. It can be played on a local network, on the internet, and with AI
2329 (home-page "http://pio.sourceforge.net/")
2330 (license license:gpl2+)))
2332 (define-public einstein
2338 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2339 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2342 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2343 (patches (search-patches "einstein-build.patch"))))
2344 (build-system gnu-build-system)
2346 `(("freetype" ,freetype)
2347 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2350 `(("font-dejavu" ,font-dejavu)))
2352 `(#:tests? #f ; no check target
2354 (modify-phases %standard-phases
2356 (lambda* (#:key outputs inputs #:allow-other-keys)
2357 (let ((out (assoc-ref outputs "out"))
2358 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2359 "/share/fonts/truetype/DejaVuSans.ttf")))
2360 (substitute* "Makefile"
2361 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2362 ;; The patch above registers a free font for use by the binary,
2363 ;; but the font is copied during the compile phase into a
2364 ;; resources file, so we need to make the ttf file available.
2365 (symlink dejavu "res/DejaVuSans.ttf")
2367 (synopsis "Logic puzzle game")
2368 (description "The goal of this logic game is to open all cards in a 6x6
2369 grid, using a number of hints as to their relative position. The game idea
2370 is attributed to Albert Einstein.")
2371 ;; The original home page has disappeared.
2372 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2373 "http://games.flowix.com/en/index.html"))
2374 ;; License according to
2375 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2376 ;; The source code is a DFSG-sanitized tarball and does not contain any
2377 ;; license information.
2378 (license license:gpl3+)))
2380 (define-public powwow
2387 "https://www.hoopajoo.net/static/projects/powwow-"
2389 (file-name (string-append name "-" version ".tar.gz"))
2392 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2394 `(("ncurses" ,ncurses)))
2395 (build-system gnu-build-system)
2396 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2397 (synopsis "MUD and telnet client")
2399 "POWWOW is a client software which can be used for telnet as well as for
2400 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2401 the chat server psyced with the specific config located at
2402 http://lavachat.symlynx.com/unix/")
2403 (license license:gpl2+)))
2405 (define-public red-eclipse
2406 (let ((release "1.6.0")
2409 '(("acerspyro" "07mzgdahnr3w3w7kf8nmy20r199rimfx9ryqxjdr793sw0vawqd3")
2410 ("actors" "1hkgscfhg0kmwgym0mw56fhcckzbb2hh3nsvd45v4mdfyk0xnrm7")
2411 ("appleflap" "1q4xs3x904mrrbxzv6lpr3lywm8p6i8339ijzy9j091s2wdl51ka")
2412 ("blendbrush" "004md2haysr9w8fj6l7bj9wcfjqrq9wx1rrjf9dv16k5sbrkqza9")
2413 ("caustics" "1qmmv8ds70j1ixy4rvli309vbcyjq1l5j1wri6nbnjay10f9fcgq")
2414 ("crosshairs" "0q1vadg5cai9i6igl6y08774fd05gav0kinbgb2757n47ig50bns")
2415 ("dziq" "1s9248ky2qqy24z9c2vgpisz500dvsaj249pv1fkrxgsypjm1z6v")
2416 ("elyvisions" "15synpms05996v4c4kdl0h899spl4z7si9kl8c4m7rvc2yvin1ga")
2417 ("fonts" "1l4727ai8mphi7n3wcjp2lh3p47nh6w82s5dpqbbjpqr9gilb69j")
2418 ("freezurbern" "0hcdbzs02mvpsfhmahhqjv6pd8lbsag1bm6rpy61ns5qwmhg96ys")
2419 ("john" "1whyvlx87mb83kfb7jhhnwz9s7lry4li8l3xar61vmlqgmsnz33d")
2420 ("jojo" "02wxa93f5al4rlnsdjpd0hlnca0ympnj8481lgdxx70hny8zi3qi")
2421 ("jwin" "1gb4l7lbhr150hml1y0wbyx7266q5nslh6n494wwrrsvp11s2qk8")
2422 ("luckystrike" "0wy2spvhx5k233fsl283250ym5bqvkk8i6i19sw3zvzyxp2p4yq9")
2423 ("maps" "1dmvp9mskval606z5srjd909jpm6qz4fdcpaszkkhfr5ajbj30vq")
2424 ("mayhem" "0hkzzx0rxda70ixw9lfh9v1dpsbn2dj86jrr3zxjgasbgaxw37ax")
2425 ("mikeplus64" "144fxhp4qjqjw3gvhf7ym6rnfxvxc0zvd3f54jg1jgnccc1hfyah")
2426 ("misc" "0bpvibyc6vjhbzsf67xxn85yq2h97xs96icbskwzs2wsd860kq8c")
2427 ("nieb" "0d72wsibk9sg9nhin3fwzz9zljiccyln0fn42y2q2xbd4my23b1k")
2428 ("nobiax" "19lr36ys98cmpp739svjar1j942fbxz6r062gi7ygh89zh9yrgfy")
2429 ("particles" "02pnq8ksl7f6kqxss3aza98jssdq2s41rhkhki71ynavp2a5akar")
2430 ("philipk" "1xkrb7wa1pyhbs4xxx7vnnzsxrqzswk7gjbdac7i7rj0lwnfaij2")
2431 ("projectiles" "1hra0f1ifiddh16fv4pqcr2amf046lf445v0653zkyri43zgrj5f")
2432 ("props" "0ff6a8pz62f4nsk4c9cr50kirw108a661y5j6fvlsjickw3xjmyv")
2433 ("skyboxes" "1lq58dhrdiivq7llkiyqwpi3bwa89r8hbi98p7zjhw7wdn34i6n2")
2434 ("snipergoth" "0d5qf01bxd4dlffgxf8i91zq6mbyjmfd00dpyligpfj6fdbz87gc")
2435 ("sounds" "0z6jmxsr3w735hrdnxypdb0gi399pwkaycv9grjpiqy43j3ic7gj")
2436 ("textures" "0k5a47g2z99xn17vw7bqbp0w726gxmk33g5gwmqvfhxxxzzwimvi")
2437 ("torley" "12x23l8xcv9ard5v76lb210lvp66whsns2p3k3xkd1sabp5ixbd5")
2438 ("trak" "03kmwj47yb3dqzb6k9kilna9ja8c6jcnblvbs72x15767fl496pb")
2439 ("ulukai" "0vvd016a7x981ixif6dnlg45s0ak7i89pgyrgwy2fpd94nl2am15")
2440 ("unnamed" "18sxvdha41njp6g8wn56mjy6w9x778c793gh8fr0h9cnysb5gfmi")
2441 ("vanities" "1p38mc2566bmb4vdyr9n9s6fkwmynp2xlpdq2a97gzgi4nmm0232")
2442 ("vegetation" "0pf3qvqzabdcri5za61z6m89b5hq7sd3q0idkazmx88a62mcclkb")
2443 ("weapons" "1jr05y9qhhx53plvir35srvv3cmn6wa065p3bskx6h1x6dcbx3c6")
2444 ("wicked" "14b9f92h8hccp7a015z6rqgbs8236sdyxnwsq991ylnap7cbwvam"))))
2446 (name "red-eclipse")
2447 (version (if (zero? revision)
2449 (string-append release "-"
2450 (number->string revision))))
2453 (uri (string-append "https://github.com/red-eclipse/base"
2454 "/archive/v" release ".tar.gz"))
2455 (file-name (string-append name "-" version ".tar.gz"))
2458 "1vs9k6f5fgsiy1n72imlqm8khjwm8cryc08zwd4gr7yxlxv45bs0"))))
2459 (build-system gnu-build-system)
2461 `(#:tests? #f ; no check target
2462 #:make-flags (list "CC=gcc" "-Csrc"
2463 (string-append "INSTDIR="
2464 (assoc-ref %outputs "out") "/bin")
2465 (string-append "prefix="
2466 (assoc-ref %outputs "out")))
2468 (modify-phases %standard-phases
2469 (add-after 'unpack 'unpack-data
2470 (lambda* (#:key inputs #:allow-other-keys)
2471 (delete-file-recursively "data")
2473 (for-each (lambda (name)
2474 (invoke "tar" "-xvf"
2475 (assoc-ref inputs name)
2479 name "-" ,release "/"
2481 (list ,@(map car data-sources)))
2483 (add-after 'unpack-data 'add-store-data-package-path-as-default
2484 (lambda* (#:key outputs #:allow-other-keys)
2485 (substitute* "src/engine/server.cpp"
2486 (("(else[[:space:]]*)((addpackagedir\\()\"data\"(\\);))"
2489 addpackagedir_original
2491 addpackagedir_close)
2492 (string-append else_part
2496 (assoc-ref outputs "out")
2497 "/share/redeclipse/data\""
2500 addpackagedir_original
2503 (delete 'configure) ; no configure script
2504 (add-after 'set-paths 'set-sdl-paths
2505 (lambda* (#:key inputs #:allow-other-keys)
2507 (string-append (assoc-ref inputs "sdl-union")
2510 (add-after 'install 'copy-data
2511 (lambda* (#:key outputs #:allow-other-keys)
2512 (let ((out (assoc-ref outputs "out")))
2513 (copy-recursively "config"
2514 (string-append out "/config"))
2515 (copy-file "doc/examples/servinit.cfg"
2516 (string-append out "/config/servinit.cfg"))
2517 (copy-recursively "data"
2518 (string-append out "/share/redeclipse/data"))
2519 (mkdir-p (string-append out "/lib/redeclipse"))
2520 (symlink (string-append out "/share/redeclipse/data")
2521 (string-append out "/lib/redeclipse/data")))
2523 (add-after 'copy-data 'wrap-program
2524 (lambda* (#:key inputs outputs #:allow-other-keys)
2525 (let* ((out (assoc-ref outputs "out"))
2526 (bin (string-append out "/bin")))
2527 (with-directory-excursion bin
2528 (rename-file "redeclipse_linux"
2529 ".redeclipse_linux-real")
2530 (rename-file "redeclipse_server_linux"
2531 ".redeclipse_server_linux-real")
2532 (call-with-output-file "redeclipse_linux"
2534 (format port "#!~a/bin/sh
2535 # Run the thing from its home, otherwise it just bails out.
2537 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2538 (assoc-ref inputs "bash") ;implicit input
2540 (string-append bin))))
2541 (call-with-output-file "redeclipse_server_linux"
2543 (format port "#!~a/bin/sh
2544 # Run the thing from its home, otherwise it just bails out.
2546 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2547 (assoc-ref inputs "bash") ;implicit input
2549 (string-append bin))))
2550 (chmod "redeclipse_linux" #o555)
2551 (chmod "redeclipse_server_linux" #o555)))
2553 (native-inputs `(("pkg-config" ,pkg-config)))
2557 ("sdl-union" ,(sdl-union (list sdl2
2560 ;; Create origin records for the many separate data packages.
2561 ,@(map (match-lambda
2567 "https://github.com/red-eclipse/"
2568 name "/archive/v" release ".tar.gz"))
2569 (sha256 (base32 hash))
2570 (file-name (string-append name "-" version
2573 (home-page "http://redeclipse.net/")
2574 (synopsis "Arena shooter derived from the Cube 2 engine")
2576 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2577 Offering an innovative parkour system and distinct but all potent weapons,
2578 Red Eclipse provides fast paced and accessible gameplay.")
2579 ;; The engine is under Zlib; data files are covered by the other
2580 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2581 (license (list license:expat
2587 (define-public grue-hunter
2589 (name "grue-hunter")
2593 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2596 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2597 (build-system trivial-build-system) ; no Makefile.PL
2598 (arguments `(#:modules ((guix build utils))
2601 (use-modules (guix build utils))
2602 (use-modules (srfi srfi-1))
2604 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2605 (perl (string-append (assoc-ref %build-inputs
2608 (gzip (string-append (assoc-ref %build-inputs
2611 (tar (string-append (assoc-ref %build-inputs
2614 (out (assoc-ref %outputs "out"))
2615 (bin (string-append out "/bin"))
2616 (doc (string-append out
2617 "/share/doc/grue-hunter")))
2618 (copy-file tarball "grue-hunter.tar.gz")
2619 (invoke gzip "-d" "grue-hunter.tar.gz")
2620 (invoke tar "xvf" "grue-hunter.tar")
2623 (copy-file "grue-hunter/gh.pl"
2624 (string-append bin "/grue-hunter"))
2625 (patch-shebang (string-append bin "/grue-hunter")
2628 (install-file "grue-hunter/AGPLv3.txt" doc)
2631 (inputs `(("perl" ,perl)
2634 ("tarball" ,source)))
2635 (home-page "http://jxself.org/grue-hunter.shtml")
2636 (synopsis "Text adventure game")
2638 "Grue Hunter is a text adventure game written in Perl. You must make
2639 your way through an underground cave system in search of the Grue. Can you
2640 capture it and get out alive?")
2641 (license license:agpl3+)))
2643 (define-public lierolibre
2649 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
2650 version "/+download/lierolibre-"
2654 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
2656 (search-patches "lierolibre-check-unaligned-access.patch"
2657 "lierolibre-try-building-other-arch.patch"
2658 "lierolibre-remove-arch-warning.patch"
2659 "lierolibre-newer-libconfig.patch"
2660 "lierolibre-is-free-software.patch"))
2661 (modules '((guix build utils)))
2664 ;; Delete pre-compiled files.
2665 (delete-file "data/LIERO.CHR")
2666 (delete-file "data/LIERO.SND")
2668 (build-system gnu-build-system)
2670 `(("imagemagick" ,imagemagick)
2671 ("pkg-config" ,pkg-config)
2672 ("util-linux" ,util-linux)
2676 ("libconfig" ,libconfig)
2677 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
2679 (home-page "https://gitlab.com/lierolibre/lierolibre")
2680 (synopsis "Old-school earthworm action game")
2682 "lierolibre is an earthworm action game where you fight another player
2683 (or the computer) underground using a wide array of weapons.
2687 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
2688 and Game of Tag, plus AI-players without true intelligence!
2689 @item Dat nostalgia.
2690 @item Extensions via a hidden F1 menu:
2693 @item Game controller support
2694 @item Powerlevel palettes
2696 @item Ability to write game variables to plain text files.
2697 @item Ability to load game variables from both EXE and plain text files.
2698 @item Scripts to extract and repack graphics, sounds and levels.
2701 To switch between different window sizes, use F6, F7 and F8, to switch to
2702 fullscreen, use F5 or Alt+Enter.")
2703 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
2704 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
2706 (define-public warzone2100
2708 (name "warzone2100")
2712 (uri (string-append "mirror://sourceforge/" name
2713 "/releases/" version "/" name "-" version
2717 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2718 (build-system gnu-build-system)
2721 (modify-phases %standard-phases
2722 (add-after 'unpack 'link-tests-with-qt
2724 (substitute* "tests/Makefile.in"
2725 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2726 (string-append prefix "$(QT5_LIBS) ")))
2728 (add-after 'unpack 'remove-reference-to-missing-file
2730 (substitute* "icons/Makefile.in"
2731 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2733 (add-after 'unpack 'patch-for-qt5.8
2735 (substitute* "lib/widget/editbox.cpp"
2739 (native-inputs `(("pkg-config" ,pkg-config)
2742 (inputs `(("fontconfig" ,fontconfig)
2743 ("freetype" ,freetype)
2744 ("fribidi" ,fribidi)
2746 ("libtheora" ,libtheora)
2747 ("libvorbis" ,libvorbis)
2748 ("libxrandr" ,libxrandr)
2752 ("qtscript" ,qtscript)
2753 ("openssl" ,openssl)
2754 ("quesoglc" ,quesoglc)
2756 (home-page "http://wz2100.net")
2757 (synopsis "3D Real-time strategy and real-time tactics game")
2759 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2760 modes. An extensive tech tree with over 400 different technologies, combined
2761 with the unit design system, allows for a wide variety of possible units and
2763 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2764 (license (list license:bsd-3
2769 license:lgpl2.1+))))
2771 (define-public starfighter
2773 (name "starfighter")
2778 "mirror://savannah/starfighter/"
2779 (version-major+minor version) "/"
2780 name "-" version "-src.tar.gz"))
2783 "1646hpjq8bz2fkfkja1dah511hn7zd2r7da4w9c9blhad3p5732v"))))
2784 (build-system gnu-build-system)
2786 `(("pkg-config" ,pkg-config)))
2789 ("sdl2-image" ,sdl2-image)
2790 ("sdl2-mixer" ,sdl2-mixer)))
2791 (home-page "http://starfighter.nongnu.org/")
2792 (synopsis "2D scrolling shooter game")
2794 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2795 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2796 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2797 way, you will encounter new foes, make new allies, and assist local rebels
2798 in strikes against the evil corporation.")
2799 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2800 (license (list license:gpl3+
2804 license:public-domain))))
2806 (define-public chromium-bsu
2808 (name "chromium-bsu")
2809 (version "0.9.16.1")
2812 (uri (string-append "mirror://sourceforge/" name
2813 "/Chromium B.S.U. source code/"
2814 name "-" version ".tar.gz"))
2817 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
2818 (build-system gnu-build-system)
2819 (native-inputs `(("pkg-config" ,pkg-config)))
2820 (inputs `(("gettext" ,gettext-minimal)
2822 ("quesoglc" ,quesoglc)
2823 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2824 (home-page "http://chromium-bsu.sourceforge.net/")
2825 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2827 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2828 are responsible for delivering supplies to the troops on the front line. Your
2829 ship has a small fleet of robotic fighters which you control from the relative
2830 safety of the Chromium vessel.")
2831 ;; Clarified Artistic License for everything but sound, which is covered
2832 ;; by the Expat License.
2833 (license (list license:clarified-artistic license:expat))))
2835 (define-public tuxpaint
2838 (version "0.9.22") ;keep VER_DATE below in sync
2842 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2843 version "/tuxpaint-" version ".tar.gz"))
2846 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2847 (modules '((guix build utils)))
2850 ;; Remove win32 directory which contains binary dll's and the
2851 ;; deprecated visualc directory.
2852 (for-each delete-file-recursively '("win32" "visualc"))
2853 (substitute* "Makefile"
2854 ;; Do not rely on $(GPERF) being an absolute file name
2855 (("\\[ -x \\$\\(GPERF\\) \\]")
2856 "$(GPERF) --version >/dev/null 2>&1"))
2858 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2859 (build-system gnu-build-system)
2862 ("pkg-config" ,pkg-config)))
2865 ("fribidi" ,fribidi)
2866 ("gettext" ,gettext-minimal)
2868 ("librsvg" ,librsvg)
2869 ("libpaper" ,libpaper)
2871 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2872 ;; TODO: Use system fonts rather than those in data/fonts
2874 `(#:make-flags `("VER_DATE=2014-08-23"
2875 "GPERF=gperf" "CC=gcc"
2876 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2877 ,(string-append "PREFIX=" %output)
2878 "GNOME_PREFIX=$(PREFIX)"
2879 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2880 #:parallel-build? #f ;fails on some systems
2881 #:tests? #f ;No tests
2882 #:phases (modify-phases %standard-phases
2883 (delete 'configure) ;no configure phase
2884 (add-after 'install 'fix-import
2885 (lambda* (#:key inputs outputs #:allow-other-keys)
2886 (let* ((out (assoc-ref outputs "out"))
2887 (net (assoc-ref inputs "netpbm"))
2888 (tpi (string-append out "/bin/tuxpaint-import")))
2890 ;; Point to installation prefix so that the default
2891 ;; configure file is found.
2892 (("/usr/local") out))
2893 ;; tuxpaint-import uses a bunch of programs from
2894 ;; netpbm, so make sure it knows where those are
2897 (,(string-append net "/bin"))))))))))
2898 (native-search-paths
2899 (list (search-path-specification
2900 (variable "TUXPAINT_STAMPS_PATH")
2901 (files '("share/tuxpaint/stamps")))))
2902 (home-page "http://www.tuxpaint.org")
2903 (synopsis "Drawing software for children")
2905 "Tux Paint is a free drawing program designed for young children (kids
2906 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2907 and an encouraging cartoon mascot who helps guide children as they use the
2908 program. It provides a blank canvas and a variety of drawing tools to help
2909 your child be creative.")
2910 (license license:gpl2+)))
2912 (define-public tuxpaint-stamps
2914 (name "tuxpaint-stamps")
2915 (version "2014.08.23")
2919 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2920 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2921 "/tuxpaint-stamps-" version ".tar.gz"))
2924 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2925 (build-system trivial-build-system)
2930 `(#:modules ((guix build utils))
2932 (use-modules (guix build utils))
2935 (assoc-ref %build-inputs "tar") "/bin" ":"
2936 (assoc-ref %build-inputs "gzip") "/bin"))
2937 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2938 (chdir (string-append ,name "-" ,version))
2939 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2941 (copy-recursively "stamps" dir))
2943 (home-page (package-home-page tuxpaint))
2944 (synopsis "Stamp images for Tux Paint")
2946 "This package contains a set of \"Rubber Stamp\" images which can be used
2947 with the \"Stamp\" tool within Tux Paint.")
2948 (license license:gpl2+)))
2950 (define-public tuxpaint-config
2952 (name "tuxpaint-config")
2953 (version "0.0.13") ;keep VER_DATE below in sync
2957 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2958 version "/tuxpaint-config-" version ".tar.gz"))
2961 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2962 (build-system gnu-build-system)
2964 `(("gettext" ,gettext-minimal)))
2967 ("libpaper" ,libpaper)
2968 ;; TODO: Should the following be propagated by fltk?
2973 `(#:make-flags `("VER_DATE=2014-08-23"
2974 "CONFDIR=/etc/tuxpaint" ;don't write to store
2975 ,(string-append "PREFIX=" %output)
2976 "GNOME_PREFIX=$(PREFIX)")
2977 #:parallel-build? #f ;race conditions
2978 #:tests? #f ;no tests
2979 #:phases (modify-phases %standard-phases
2980 (delete 'configure) ;no configure phase
2981 (add-before 'install 'gzip-no-name
2983 (substitute* "Makefile"
2984 ;; tuxpaint-config compresses its own documentation;
2985 ;; make sure it uses flags for reproducibility.
2986 (("gzip") "gzip --no-name"))))
2987 (add-before 'install 'make-install-dirs
2988 (lambda* (#:key outputs #:allow-other-keys)
2989 (let ((out (assoc-ref outputs "out")))
2990 (mkdir-p (string-append out "/bin"))
2992 (home-page (package-home-page tuxpaint))
2993 (synopsis "Configure Tux Paint")
2995 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2996 (license license:gpl2))) ;no "or later" present
2998 (define-public supertux
3004 (uri (string-append "https://github.com/SuperTux/supertux/"
3005 "releases/download/v" version "/SuperTux-v"
3006 version "-Source.tar.gz"))
3009 "1i8avad7w7ikj870z519j383ldy29r6f956bs38cbr8wk513pp69"))))
3012 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
3013 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
3014 (build-system cmake-build-system)
3015 (inputs `(("sdl2" ,sdl2)
3016 ("sdl2-image" ,sdl2-image)
3017 ("sdl2-mixer" ,sdl2-mixer)
3021 ("libvorbis" ,libvorbis)
3026 (native-inputs `(("pkg-config" ,pkg-config)))
3027 (synopsis "2D platformer game")
3028 (description "SuperTux is a free classic 2D jump'n run sidescroller game
3029 in a style similar to the original Super Mario games covered under
3031 (home-page "https://supertuxproject.org/")
3032 (license license:gpl3+)))
3034 (define-public tintin++
3040 (uri (string-append "mirror://sourceforge/tintin"
3041 "/TinTin++ Source Code/" version
3042 "/tintin" "-" version ".tar.gz"))
3045 "1g7bh8xs1ml0iyraps3a3dzaycci922y7fk5j0wyr4ssyjzsy8nx"))))
3047 `(("gnutls" ,gnutls)
3049 ("readline" ,readline)
3052 '(#:tests? #f ; no test suite
3054 (modify-phases %standard-phases
3055 ;; The source is in tt/src.
3056 (add-before 'configure 'chdir
3060 (build-system gnu-build-system)
3061 (home-page "http://tintin.sourceforge.net/")
3062 (synopsis "MUD client")
3064 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
3065 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
3066 as well as those required to login via telnet on Linux / Mac OS X servers, and an
3067 auto mapper with a VT100 map display.")
3068 (license license:gpl2+)))
3075 (origin (method url-fetch)
3077 "https://github.com/sgimenez/laby/archive/"
3078 name "-" version ".tar.gz"))
3081 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
3082 (patches (search-patches "laby-make-install.patch"))))
3083 (build-system gnu-build-system)
3085 `(("lablgtk" ,lablgtk)
3087 ("ocaml-findlib" ,ocaml-findlib)))
3090 (modify-phases %standard-phases
3092 (add-before 'build 'setenv
3093 (lambda* (#:key inputs #:allow-other-keys)
3094 (let ((lablgtk (assoc-ref inputs "lablgtk")))
3095 (setenv "LD_LIBRARY_PATH"
3096 (string-append lablgtk "/lib/ocaml/stublibs"))))))
3097 #:tests? #f ; no 'check' target
3099 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
3100 (home-page "https://sgimenez.github.io/laby/")
3101 (synopsis "Programming game")
3102 (description "Learn programming, playing with ants and spider webs ;-)
3103 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
3104 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
3105 programmers may also add their own favorite language.")
3106 (license license:gpl3+)))
3108 (define-public bambam
3115 (uri (string-append "https://github.com/porridge/bambam/archive/"
3117 (file-name (string-append name "-" version ".tar.gz"))
3120 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
3121 (build-system python-build-system)
3123 `(#:python ,python-2
3124 #:tests? #f ; no tests
3126 (modify-phases %standard-phases
3128 (add-before 'install 'patch-data-dir-location
3130 (substitute* "bambam.py"
3131 (("'data'") "'../share/bambam/data'"))
3134 (lambda* (#:key outputs #:allow-other-keys)
3135 (let* ((out (assoc-ref outputs "out"))
3136 (bin (string-append out "/bin"))
3137 (share (string-append out "/share")))
3139 (copy-file "bambam.py" (string-append bin "/bambam"))
3140 (install-file "bambam.6" (string-append share "/man/man6"))
3141 (copy-recursively "data" (string-append share "/bambam/data")))
3144 `(("python-pygame" ,python-pygame)))
3145 (home-page "https://github.com/porridge/bambam")
3146 (synopsis "Keyboard mashing and doodling game for babies")
3147 (description "Bambam is a simple baby keyboard (and gamepad) masher
3148 application that locks the keyboard and mouse and instead displays bright
3149 colors, pictures, and sounds.")
3150 (license license:gpl3+)))
3152 (define-public mrrescue
3159 "https://github.com/SimonLarsen/mrrescue/releases/"
3160 "download/" version "/" name version ".love"))
3161 (file-name (string-append name "-" version ".love"))
3164 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
3165 (build-system trivial-build-system)
3167 '(#:modules ((guix build utils))
3170 (use-modules (guix build utils))
3171 (let* ((out (assoc-ref %outputs "out"))
3172 (bindir (string-append out "/bin"))
3173 (prog (string-append bindir "/mrrescue"))
3174 (source (assoc-ref %build-inputs "source"))
3175 (bash (string-append (assoc-ref %build-inputs "bash")
3177 (love (string-append (assoc-ref %build-inputs "love")
3180 (with-output-to-file prog
3182 (format #t "#!~a~%" bash)
3183 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
3189 (home-page "http://tangramgames.dk/games/mrrescue")
3190 (synopsis "Arcade-style fire fighting game")
3192 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
3193 civilians from burning buildings. The game features fast paced fire
3194 extinguishing action, intense boss battles, a catchy soundtrack and lots of
3195 throwing people around in pseudo-randomly generated buildings.")
3196 (license (list license:zlib ; for source code
3197 license:cc-by-sa3.0)))) ; for graphics and music assets
3199 (define-public hyperrogue
3203 ;; When updating this package, be sure to update the "hyperrogue-data"
3204 ;; origin in native-inputs.
3208 "http://www.roguetemple.com/z/hyper/"
3209 name (string-join (string-split version #\.) "")
3213 "0f68pcnsgl406dhm91ckn3f364bar9m9i5njp9vrmvhvv9p2icy0"))))
3214 (build-system gnu-build-system)
3216 `(#:tests? #f ; no check target
3217 #:make-flags '("CXXFLAGS=-std=c++11")
3219 (modify-phases %standard-phases
3220 (add-after 'set-paths 'set-sdl-paths
3221 (lambda* (#:key inputs #:allow-other-keys)
3223 (string-append (assoc-ref inputs "sdl-union")
3225 ;; Fix font and music paths.
3227 (lambda* (#:key inputs outputs #:allow-other-keys)
3228 (let* ((out (assoc-ref outputs "out"))
3229 (share-dir (string-append out "/share/hyperrogue"))
3230 (dejavu-dir (string-append
3231 (assoc-ref inputs "font-dejavu")
3232 "/share/fonts/truetype"))
3233 (dejavu-font "DejaVuSans-Bold.ttf")
3234 (music-file "hyperrogue-music.txt"))
3235 (substitute* "basegraph.cpp"
3237 (string-append dejavu-dir "/" dejavu-font)))
3238 (substitute* "sound.cpp"
3239 (((string-append "\\./" music-file))
3240 (string-append share-dir "/" music-file))
3242 (string-append share-dir "/sounds/")))
3243 (substitute* music-file
3245 (string-append share-dir "/sounds/"))))
3248 (lambda* (#:key inputs outputs #:allow-other-keys)
3249 (let* ((out (assoc-ref outputs "out"))
3250 (bin (string-append out "/bin"))
3251 (share-dir (string-append out "/share/hyperrogue")))
3253 (copy-file "hyper" (string-append bin "/hyperrogue"))
3254 (install-file "hyperrogue-music.txt" share-dir))
3256 (add-after 'install 'install-data
3257 (lambda* (#:key inputs outputs #:allow-other-keys)
3258 (let* ((data (assoc-ref inputs "hyperrogue-data"))
3259 (out (assoc-ref outputs "out"))
3260 (sounds (string-append out "/share/hyperrogue/sounds"))
3261 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
3263 ;; Extract media license information into sounds directory.
3265 (system* unzip "-j" data
3268 (string-join (string-split ,version #\.) "")
3269 "/sounds/credits.txt") "-d" sounds))
3270 ;; Extract sounds and music into sounds directory.
3272 (system* "unzip" "-j" data
3275 (string-join (string-split ,version #\.) "")
3276 "/*.ogg") "-d" sounds)))))))))
3278 `(("hyperrogue-data"
3283 "http://www.roguetemple.com/z/hyper/" name
3284 (string-join (string-split version #\.) "")
3288 "0bnp077qvlmxjlz1jjd6kpghlv9flxc19ac1xq3m3wyq1w9p3pab"))))
3291 `(("font-dejavu" ,font-dejavu)
3294 ("sdl-union" ,(sdl-union (list sdl
3298 (home-page "http://www.roguetemple.com/z/hyper/")
3299 (synopsis "Non-euclidean graphical rogue-like game")
3301 "HyperRogue is a game in which the player collects treasures and fights
3302 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3303 plane and not in euclidean space.
3305 In HyperRogue, the player can move through different parts of the world, which
3306 are home to particular creatures and may be subject to their own rules of
3309 While the game can use ASCII characters to display the the classical rogue
3310 symbols, it still needs graphics to render the non-euclidean world.")
3311 (license (list license:bsd-3 ; glew.c, mtrand.*
3312 license:cc-by-sa3.0 ; music
3313 license:cc-by-sa4.0 ; sounds
3315 license:public-domain ; direntx.*, some sounds
3316 license:zlib ; savepng.*
3317 license:gpl2+)))) ; remaining files
3319 (define-public kobodeluxe
3325 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3326 version ".tar.bz2"))
3329 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3330 (patches (search-patches
3331 "kobodeluxe-const-charp-conversion.patch"
3332 "kobodeluxe-enemies-pipe-decl.patch"
3333 "kobodeluxe-graphics-window-signed-char.patch"
3334 "kobodeluxe-manpage-minus-not-hyphen.patch"
3335 "kobodeluxe-midicon-segmentation-fault.patch"
3336 "kobodeluxe-paths.patch"))))
3337 (build-system gnu-build-system)
3340 (list (string-append "CPPFLAGS=-I"
3341 (assoc-ref %build-inputs "sdl-union")
3343 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3344 (synopsis "Shooter with space station destruction")
3346 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3347 for Un*x systems with X11.")
3348 (home-page "http://olofson.net/kobodl/")
3349 (license license:gpl2+)))
3351 (define-public freeciv
3358 (uri (list (string-append
3359 "http://files.freeciv.org/stable/freeciv-"
3362 "mirror://sourceforge/freeciv/Freeciv%20"
3363 (version-major+minor version) "/" version
3364 "/freeciv-" version ".tar.bz2")))
3367 "1lmydnnqraa947l7gdz6xgm0bgks1ywsivp9h4v8jr3avcv6gqzz"))))
3368 (build-system gnu-build-system)
3371 ("cyrus-sasl" ,cyrus-sasl)
3373 ("sdl-mixer" ,sdl-mixer)
3376 `(("pkg-config" ,pkg-config)))
3377 (home-page "http://www.freeciv.org/")
3378 (synopsis "Turn based empire building strategy game")
3379 (description "Freeciv is a turn based empire building strategy game
3380 inspired by the history of human civilization. The game commences in
3381 prehistory and your mission is to lead your tribe from the Stone Age
3383 (license license:gpl2+)))
3385 (define-public no-more-secrets
3387 (name "no-more-secrets")
3392 (uri (string-append "https://github.com/bartobri/no-more-secrets/"
3393 "archive/v" version ".tar.gz"))
3394 (file-name (string-append name "-" version ".tar.gz"))
3397 "1kpx1rirc3i7fb4lymp0hx5rqr0s2ay4za261rw3bcy6d23l1kyg"))))
3398 (build-system gnu-build-system)
3401 #:make-flags (list "CC=gcc" "all-ncurses"
3402 (string-append "prefix="
3403 (assoc-ref %outputs "out")))
3405 (modify-phases %standard-phases
3406 (delete 'configure))))
3408 `(("ncurses" ,ncurses)))
3409 (home-page "https://github.com/bartobri/no-more-secrets")
3410 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
3412 "@code{No More Secrets} provides a command line tool called \"nms\"
3413 that recreates the famous data decryption effect seen on screen in the 1992
3416 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
3417 it will apply the hollywood effect, initially showing encrypted data, then
3418 starting a decryption sequence to reveal the original plaintext characters.")
3419 (license license:expat)))
3421 (define-public megaglest-data
3423 (name "megaglest-data")
3429 "https://github.com/MegaGlest/megaglest-data"
3430 "/releases/download/" version "/megaglest-data-"
3434 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
3435 (build-system cmake-build-system)
3438 (home-page "https://megaglest.org/")
3439 (synopsis "Data files for MegaGlest")
3440 (description "This package contains the data files required for MegaGlest.")
3441 (license license:cc-by-sa3.0)))
3443 (define-public megaglest
3451 "https://github.com/MegaGlest/megaglest-source"
3452 "/releases/download/" version "/megaglest-source-"
3456 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
3457 (build-system cmake-build-system)
3460 ("fontconfig" ,fontconfig)
3463 ("libjpeg-turbo" ,libjpeg-turbo)
3464 ("megaglest-data" ,megaglest-data)
3466 ("miniupnpc" ,miniupnpc)
3468 ("libircclient" ,libircclient)
3470 ("libvorbis" ,libvorbis)
3473 ("wxwidgets" ,wxwidgets)))
3475 `(("cppunit" ,cppunit)
3476 ("pkg-config" ,pkg-config)))
3479 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
3480 (assoc-ref %build-inputs "megaglest-data")
3482 "-DBUILD_MEGAGLEST_TESTS=ON")
3484 (modify-phases %standard-phases
3485 (add-after 'unpack 'fix-ini-search-path
3486 (lambda* (#:key outputs #:allow-other-keys)
3487 (substitute* "source/glest_game/global/config.cpp"
3488 (("/usr/share/megaglest/")
3489 (string-append (assoc-ref outputs "out")
3490 "/share/megaglest/"))))))
3491 #:test-target "megaglest_tests"))
3492 (home-page "https://megaglest.org/")
3493 (synopsis "3D real-time strategy (RTS) game")
3494 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
3495 game, where you control the armies of one of seven different factions: Tech,
3496 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
3497 (license license:gpl2+)))
3499 (define-public freegish
3500 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
3504 (version (string-append "0-" revision "." (string-take commit 9)))
3508 (url "https://github.com/freegish/freegish.git")
3510 (file-name (git-file-name name version))
3513 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
3514 (modules '((guix build utils)))
3515 ;; The audio files in the "music" directory are licensed under
3516 ;; CC-BY-NC, so we delete them.
3519 (delete-file-recursively "music")
3521 (build-system cmake-build-system)
3523 `(#:tests? #f ; no tests included
3525 (list "-DCMAKE_INSTALL_FHS=ON")
3527 (modify-phases %standard-phases
3528 (add-after 'unpack 'set-DATAPATH
3529 (lambda* (#:key outputs #:allow-other-keys)
3530 (substitute* "CMakeLists.txt"
3531 (("^option\\(INSTALL_FHS" line)
3532 (string-append "add_definitions(-DDATAPATH=\""
3533 (assoc-ref outputs "out") "/share/freegish\")\n"
3537 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
3539 ("libvorbis" ,libvorbis)
3544 (home-page "https://github.com/freegish/freegish")
3545 (synopsis "Side-scrolling physics platformer with a ball of tar")
3546 (description "In FreeGish you control Gish, a ball of tar who lives
3547 happily with his girlfriend Brea, until one day a mysterious dark creature
3548 emerges from a sewer hole and pulls her below ground.")
3549 ;; The textures are available under the Expat license. All other assets
3550 ;; (including levels) are covered under CC-BY-SA or public domain. The
3551 ;; source code is under GPLv2+.
3552 (license (list license:gpl2+
3554 license:public-domain
3555 license:cc-by-sa3.0)))))
3557 (define-public cdogs-sdl
3558 ;; XXX: Use version 0.6.7 when it's available.
3559 (let ((commit "bab2031369b9ea2dbeb7eedbde10a43dd8ca83db")
3563 (version (git-version "0.6.6" revision commit))
3567 (url "https://github.com/cxong/cdogs-sdl.git")
3569 (file-name (git-file-name name version))
3572 "09sfqhrrffhvxbhigvrxfmai52w01w3f9kjmixjhqvqlkhn77c9n"))))
3573 (build-system cmake-build-system)
3576 (list (string-append "-DCDOGS_DATA_DIR="
3577 (assoc-ref %outputs "out")
3578 "/share/cdogs-sdl/"))))
3582 ("sdl2-image" ,sdl2-image)
3583 ("sdl2-mixer" ,sdl2-mixer)))
3584 (home-page "https://cxong.github.io/cdogs-sdl/")
3585 (synopsis "Classic overhead run-and-gun game")
3586 (description "C-Dogs SDL is a classic overhead run-and-gun game,
3587 supporting up to 4 players in co-op and deathmatch modes. Customize your
3588 player, choose from many weapons, and blast, slide and slash your way through
3589 over 100 user-created campaigns.")
3590 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
3591 ;; CC0/CC-BY/CC-BY-SA for assets.
3592 (license (list license:gpl2+
3597 license:cc-by-sa3.0)))))
3605 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
3606 version "/kiki-" version "-src.tgz"))
3609 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
3610 (modules '((guix build utils)))
3613 (for-each delete-file (find-files "." "\\.dll$"))
3616 (search-patches "kiki-level-selection-crash.patch"
3617 "kiki-makefile.patch"
3618 "kiki-missing-includes.patch"
3619 "kiki-portability-64bit.patch"))))
3620 (build-system gnu-build-system)
3622 `(#:tests? #f ; there are no tests
3623 #:make-flags '("CXX=g++")
3625 (modify-phases %standard-phases
3627 (lambda* (#:key inputs outputs #:allow-other-keys)
3628 (setenv "CPLUS_INCLUDE_PATH"
3629 (string-append (assoc-ref inputs "sdl-union")
3631 (assoc-ref inputs "python")
3632 "/include/python2.7:"
3633 (getenv "CPLUS_INCLUDE_PATH")))
3634 (substitute* "src/main/main.cpp"
3635 (("#include <SDL.h>" line)
3636 (string-append line "
3637 #define K_INCLUDE_GLUT
3638 #include \"KIncludeTools.h\""))
3639 (("// initialize SDL" line)
3640 (string-append "glutInit(&argc,argv);\n" line)))
3641 (substitute* "src/main/KikiController.cpp"
3642 (("getenv\\(\"KIKI_HOME\"\\)")
3643 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
3644 (substitute* "linux/Makefile"
3646 (string-append line " -fpermissive"))
3647 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
3649 (string-append "PYTHONHOME = "
3650 (assoc-ref inputs "python")
3652 (("\\$\\(GLLIBS\\)" line)
3653 (string-append line " -lm -lpython2.7")))
3654 (substitute* "src/main/KikiPythonWidget.h"
3655 (("#define __KikiPythonWidget" line)
3656 (string-append line "\n#include \"KikiPython.h\"")))
3658 (add-before 'build 'build-kodilib
3659 (lambda* (#:key make-flags #:allow-other-keys)
3660 (with-directory-excursion "kodilib/linux"
3661 (zero? (apply system* "make" make-flags)))))
3662 (add-after 'build-kodilib 'chdir
3663 (lambda _ (chdir "linux") #t))
3665 (lambda* (#:key outputs #:allow-other-keys)
3666 (let* ((out (assoc-ref outputs "out"))
3667 (bin (string-append out "/bin"))
3668 (share (string-append out "/share/kiki")))
3671 (install-file "kiki" bin)
3672 (copy-recursively "../py" (string-append share "/py"))
3673 (copy-recursively "../sound" (string-append share "/sound"))
3677 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
3678 ("freeglut" ,freeglut-2.8)
3679 ("sdl-union" ,(sdl-union (list sdl
3682 ("python" ,python-2)))
3685 (home-page "http://kiki.sourceforge.net/")
3686 (synopsis "3D puzzle game")
3687 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
3688 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
3689 small robot living in the nano world, repair its maker.")
3690 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
3691 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
3692 ;; for a statement from the author.
3693 (license license:public-domain)))
3695 (define-public teeworlds
3701 (uri (string-append "https://github.com/teeworlds/teeworlds/"
3702 "archive/" version "-release.tar.gz"))
3703 (file-name (string-append name "-" version ".tar.gz"))
3706 "1mqhp6xjl75l49050cid36wxyjn1qr0vjx1c709dfg1lkvmgs6l3"))
3707 (modules '((guix build utils)))
3710 (for-each delete-file-recursively
3711 '("src/engine/external/wavpack/"
3712 "src/engine/external/zlib/"))
3715 (search-patches "teeworlds-use-latest-wavpack.patch"))))
3716 (build-system gnu-build-system)
3718 `(#:tests? #f ; no tests included
3720 (modify-phases %standard-phases
3722 (lambda* (#:key outputs #:allow-other-keys)
3723 ;; Embed path to assets.
3724 (substitute* "src/engine/shared/storage.cpp"
3725 (("#define DATA_DIR.*")
3726 (string-append "#define DATA_DIR \""
3727 (assoc-ref outputs "out")
3728 "/share/teeworlds/data"
3731 ;; Bam expects all files to have a recent time stamp.
3732 (for-each (lambda (file)
3736 ;; Do not use bundled libraries.
3737 (substitute* "bam.lua"
3738 (("if config.zlib.value == 1 then")
3742 settings.link.libs:Add(\"wavpack\")\n"))
3743 (substitute* "src/engine/client/sound.cpp"
3744 (("#include <engine/external/wavpack/wavpack.h>")
3745 "#include <wavpack/wavpack.h>"))
3749 (zero? (system* "bam" "-a" "-v" "release"))))
3751 (lambda* (#:key outputs #:allow-other-keys)
3752 (let* ((out (assoc-ref outputs "out"))
3753 (bin (string-append out "/bin"))
3754 (data (string-append out "/share/teeworlds/data")))
3757 (for-each (lambda (file)
3758 (install-file file bin))
3759 '("teeworlds" "teeworlds_srv"))
3760 (copy-recursively "data" data)
3762 ;; FIXME: teeworlds bundles the sources of "pnglite", a two-file PNG
3763 ;; library without a build system.
3765 `(("freetype" ,freetype)
3768 ("sdl-union" ,(sdl-union (list sdl
3771 ("wavpack" ,wavpack)
3775 ("python" ,python-2)))
3776 (home-page "https://www.teeworlds.com")
3777 (synopsis "2D retro multiplayer shooter game")
3778 (description "Teeworlds is an online multiplayer game. Battle with up to
3779 16 players in a variety of game modes, including Team Deathmatch and Capture
3780 The Flag. You can even design your own maps!")
3781 (license license:bsd-3)))
3783 (define-public enigma
3789 (uri (string-append "mirror://sourceforge/enigma-game/"
3790 "Release%20" version "/enigma-"
3794 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
3795 (build-system gnu-build-system)
3798 (list "--with-system-enet")
3800 (modify-phases %standard-phases
3801 (add-after 'unpack 'find-sdl
3803 (substitute* "configure"
3804 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
3805 (substitute* '("tools/ttf2bmf.cc"
3806 "lib-src/enigma-core/ecl_font.cc"
3807 "lib-src/enigma-core/ecl_video.cc"
3808 "lib-src/enigma-core/ecl_buffer.hh"
3809 "src/SoundEngine.cc"
3810 "src/SoundEngine.hh"
3811 "src/MusicManager.cc"
3812 "src/MusicManager.hh"
3816 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
3817 (string-append "#include \"SDL/SDL_" header ".h\"")))
3818 (substitute* "src/main.cc"
3819 (("#include <SDL_(image|ttf|mixer).h>" line header)
3820 (string-append "#include \"SDL/SDL_" header ".h\"")))
3823 `(("xerces-c" ,xerces-c)
3824 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
3828 `(("pkg-config" ,pkg-config)
3829 ("imagemagick" ,imagemagick)))
3830 (home-page "https://www.nongnu.org/enigma")
3831 (synopsis "Puzzle game with a dexterity component")
3832 (description "Enigma is a puzzle game with 550 unique levels. The object
3833 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
3834 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
3835 and most of all, countless hairy puzzles usually block your direct way to the
3836 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
3837 get bored) interact in many unexpected ways, and since many of them follow the
3838 laws of physics (Enigma’s special laws of physics, that is), controlling them
3839 with the mouse isn’t always trivial.")
3840 (license license:gpl2+)))
3842 (define-public fillets-ng
3848 (uri (string-append "mirror://sourceforge/fillets/"
3849 "Fish%20Fillets%20-%20Next%20Generation/"
3850 version "/fillets-ng-" version ".tar.gz"))
3853 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
3854 (build-system gnu-build-system)
3857 (list (string-append "--with-lua="
3858 (assoc-ref %build-inputs "lua")))
3860 (list (string-append "CFLAGS=-I"
3861 (assoc-ref %build-inputs "sdl-union")
3863 (string-append "CXXFLAGS=-I"
3864 (assoc-ref %build-inputs "sdl-union")
3867 (modify-phases %standard-phases
3868 ;; Lua 5.1 does not provide it.
3869 (add-after 'unpack 'do-not-link-with-lualib
3871 (substitute* "configure"
3874 (add-after 'install 'install-data
3875 (lambda* (#:key inputs outputs #:allow-other-keys)
3876 (let ((data (string-append (assoc-ref outputs "out")
3877 "/share/games/fillets-ng")))
3879 (zero? (system* "tar" "-xvf"
3880 (assoc-ref inputs "fillets-ng-data")
3881 "--strip-components=1"
3884 `(("sdl-union" ,(sdl-union (list sdl
3888 ("fribidi" ,fribidi)
3892 `(("pkg-config" ,pkg-config)
3896 (uri (string-append "mirror://sourceforge/fillets/"
3897 "Fish%20Fillets%20-%20Next%20Generation/"
3898 version "/fillets-ng-data-" version ".tar.gz"))
3901 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
3902 (home-page "http://fillets.sourceforge.net/")
3903 (synopsis "Puzzle game")
3904 (description "Fish Fillets NG is strictly a puzzle game. The goal in
3905 every of the seventy levels is always the same: find a safe way out. The fish
3906 utter witty remarks about their surroundings, the various inhabitants of their
3907 underwater realm quarrel among themselves or comment on the efforts of your
3908 fish. The whole game is accompanied by quiet, comforting music.")
3909 (license license:gpl2+)))
3911 (define-public crawl
3919 ;; Older releases get moved into a versioned directory
3920 (string-append "http://crawl.develz.org/release/"
3921 (version-major+minor version) "/stone_soup-"
3922 version "-nodeps.tar.xz")
3923 ;; Only the latest release is in this directory
3924 (string-append "http://crawl.develz.org/release/stone_soup-"
3925 version "-nodeps.tar.xz")))
3928 "0mmnkch8s9l7dh136yjvcyjr0vmyzv7z370rlcyir91qz6gg82n1"))
3929 (patches (search-patches "crawl-upgrade-saves.patch"))))
3930 (build-system gnu-build-system)
3932 `(("lua51" ,lua-5.1)
3933 ("ncurses" ,ncurses)
3940 ("pkg-config" ,pkg-config)))
3943 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
3944 (out (assoc-ref %outputs "out")))
3945 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
3946 (string-append "prefix=" out)
3948 ;; don't build any bundled dependencies
3954 (modify-phases %standard-phases
3957 ;; Test cases require the source to be rebuild with the -DDEBUG define.
3958 ;; Do 'check before 'build to avoid a 3rd build on make install.
3959 (add-before 'build 'check
3960 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
3961 (setenv "HOME" (getcwd))
3962 ;; Fake a terminal for the test cases.
3963 (setenv "TERM" "xterm-256color")
3964 (zero? (apply system* "make" "debug" "test"
3965 (format #f "-j~d" (parallel-job-count))
3966 ;; Force command line build for test cases.
3967 (append make-flags '("GAME=crawl" "TILES=")))))))))
3968 (synopsis "Roguelike dungeon crawler game")
3969 (description "Dungeon Crawl Stone Soup is a roguelike adventure through
3970 dungeons filled with dangerous monsters in a quest to find the mystifyingly
3971 fabulous Orb of Zot.")
3972 (home-page "https://crawl.develz.org")
3973 (license (list license:gpl2+
3981 ;; The linter here claims that patch file names should start with the package
3982 ;; name. But, in this case, the patches are inherited from crawl with the
3983 ;; "crawl-" prefix instead of "crawl-tiles-".
3984 (define-public crawl-tiles
3987 (name "crawl-tiles")
3989 (substitute-keyword-arguments
3990 (package-arguments crawl)
3991 ((#:make-flags flags)
3992 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
3994 (string-append "PROPORTIONAL_FONT=" dejavu
3995 "/share/fonts/truetype/DejaVuSans.ttf")
3996 (string-append "MONOSPACED_FONT=" dejavu
3997 "/share/fonts/truetype/DejaVuSansMono.ttf")
3999 ;; Rename the executable to allow parallel installation with crawl.
4003 `(,@(package-inputs crawl)
4004 ("font-dejavu" ,font-dejavu)
4005 ("freetype6" ,freetype)
4009 ("sdl2-image" ,sdl2-image)
4010 ("sdl2-mixer" ,sdl2-mixer)))
4012 `(,@(package-native-inputs crawl)
4013 ("pngcrush" ,pngcrush)
4015 (synopsis "Graphical roguelike dungeon crawler game")))
4017 (define-public lugaru
4023 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
4024 name "-" version ".tar.xz"))
4027 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
4028 (build-system cmake-build-system)
4031 (list "-DSYSTEM_INSTALL=ON")
4035 `(("pkg-config" ,pkg-config)))
4039 ("libjpeg" ,libjpeg-turbo)
4042 ("vorbis" ,libvorbis)
4044 (home-page "https://osslugaru.gitlab.io")
4045 (synopsis "Cross-platform third-person action game")
4046 (description "Lugaru is a third-person action game. The main character,
4047 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
4048 In his quest to find those responsible for slaughtering his village, he uncovers
4049 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
4050 and the starving wolves from a nearby den. Turner takes it upon himself to
4051 fight against their plot and save his fellow rabbits from slavery.")
4052 (license (list license:gpl2+ ; code
4055 license:cc-by-sa4.0))))
4057 (define-public 0ad-data
4060 (version "0.0.22-alpha")
4064 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4065 version "-unix-data.tar.xz"))
4066 (file-name (string-append name "-" version ".tar.xz"))
4069 "0vknk9ay9h2p34r7mym2g066f3s3c5d5vmap0ckcs5b86h5cscjc"))
4070 (modules '((guix build utils)))
4073 (for-each (lambda (name)
4074 (let* ((dir (string-append "binaries/data/mods/" name))
4075 (file (string-append dir "/" name ".zip"))
4076 (unzip #$(file-append unzip "/bin/unzip")))
4077 (invoke unzip "-d" dir file)
4078 (delete-file file)))
4081 (build-system trivial-build-system)
4082 (native-inputs `(("tar" ,tar)
4085 `(#:modules ((guix build utils))
4088 (use-modules (guix build utils))
4089 (let ((out (assoc-ref %outputs "out"))
4090 (source (assoc-ref %build-inputs "source"))
4091 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
4092 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
4093 (setenv "PATH" xz-path)
4095 (invoke tar "xvf" source "-C" out "--strip=3")))))
4096 (synopsis "Data files for 0ad")
4097 (description "0ad-data provides the data files required by the game 0ad.")
4098 (home-page "https://play0ad.com")
4099 (license (list (license:fsdg-compatible
4100 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
4101 (license:license-comment
4102 (package-license font-bitstream-vera)))
4103 (package-license font-bitstream-vera)
4113 (version "0.0.22-alpha")
4117 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4118 version "-unix-build.tar.xz"))
4119 (file-name (string-append name "-" version ".tar.xz"))
4122 "1cgmr4g5g9wv36v7ylbrvqhsjwgcsdgbqwc8zlqmnayk9zgkdpgx"))
4123 ;; A snippet here would cause a build failure because of timestamps
4124 ;; reset. See https://bugs.gnu.org/26734.
4127 `(("0ad-data" ,0ad-data)
4133 ("libvorbis" ,libvorbis)
4134 ("libxcursor" ,libxcursor)
4135 ("libxml2" ,libxml2)
4136 ("miniupnpc" ,miniupnpc)
4137 ("mozjs-38" ,mozjs-38)
4140 ("wxwidgets" ,wxwidgets)
4146 ("pkg-config" ,pkg-config)
4147 ("python-2" ,python-2)))
4148 (build-system gnu-build-system)
4150 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
4152 (modify-phases %standard-phases
4153 (add-after 'unpack 'delete-bundles
4155 (delete-file-recursively "libraries/source/spidermonkey")
4157 (add-after 'unpack 'fix-x11-includes
4159 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4160 (("<Xlib.h>") "<X11/Xlib.h>"))
4161 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4162 (("<Xatom.h>") "<X11/Xatom.h>"))
4163 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4164 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
4167 (lambda* (#:key inputs outputs #:allow-other-keys)
4168 (let* ((jobs (number->string (parallel-job-count)))
4169 (out (assoc-ref outputs "out"))
4170 (lib (string-append out "/lib"))
4171 (data (string-append out "/share/0ad")))
4172 (setenv "JOBS" (string-append "-j" jobs))
4174 (with-directory-excursion "build/workspaces"
4175 (zero? (system* "./update-workspaces.sh"
4176 (string-append "--libdir=" lib)
4177 (string-append "--datadir=" data)
4178 ;; TODO: "--with-system-nvtt"
4179 "--with-system-mozjs38"))))))
4182 (lambda* (#:key inputs outputs #:allow-other-keys)
4184 (let* ((out (assoc-ref outputs "out"))
4185 (bin (string-append out "/bin"))
4186 (lib (string-append out "/lib"))
4187 (data (string-append out "/share/0ad"))
4188 (applications (string-append out "/share/applications"))
4189 (pixmaps (string-append out "/share/pixmaps"))
4190 (0ad-data (assoc-ref inputs "0ad-data")))
4192 (copy-recursively "data" data)
4193 (for-each (lambda (file)
4194 (symlink (string-append 0ad-data "/" file)
4195 (string-append data "/" file)))
4196 '("config" "mods/mod" "mods/public" "tools"))
4198 (for-each (lambda (file)
4199 (install-file file lib))
4200 (find-files "system" "\\.so$"))
4202 (install-file "system/pyrogenesis" bin)
4203 (with-directory-excursion bin
4204 (symlink "pyrogenesis" "0ad"))
4206 (with-directory-excursion "../build/resources"
4207 (install-file "0ad.desktop" applications)
4208 (install-file "0ad.png" pixmaps))
4210 (add-after 'install 'check
4212 (with-directory-excursion "system"
4213 (zero? (system* "./test"))))))))
4214 (home-page "https://play0ad.com")
4215 (synopsis "3D real-time strategy game of ancient warfare")
4216 (description "0 A.D. is a real-time strategy (RTS) game of ancient
4217 warfare. It's a historically-based war/economy game that allows players to
4218 relive or rewrite the history of twelve ancient civilizations, each depicted
4219 at their peak of economic growth and military prowess.
4221 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
4222 (license (list license:bsd-2
4233 ;; There have been no official releases.
4234 (define-public open-adventure
4235 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
4238 (name "open-adventure")
4239 (version (string-append "2.5-" revision "." (string-take commit 7)))
4243 (url "https://gitlab.com/esr/open-adventure")
4245 (file-name (string-append name "-" version "-checkout"))
4248 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
4249 (build-system gnu-build-system)
4251 `(#:make-flags (list "CC=gcc")
4252 #:parallel-build? #f ; not supported
4254 (modify-phases %standard-phases
4256 (lambda* (#:key inputs outputs #:allow-other-keys)
4257 ;; Linenoise is meant to be included, so we have to
4258 ;; copy it into the working directory.
4259 (let* ((linenoise (assoc-ref inputs "linenoise"))
4260 (noisepath (string-append linenoise "/include/linenoise"))
4261 (out (assoc-ref outputs "out")))
4262 (copy-recursively noisepath "linenoise"))
4264 (add-before 'build 'use-echo
4266 (substitute* "tests/Makefile"
4267 (("/bin/echo") (which "echo")))
4269 (add-after 'build 'build-manpage
4271 ;; This target is missing a dependency
4272 (substitute* "Makefile"
4274 (string-append line " advent.adoc")))
4275 (zero? (system* "make" ".adoc.6"))))
4276 ;; There is no install target
4278 (lambda* (#:key outputs #:allow-other-keys)
4279 (let* ((out (assoc-ref outputs "out"))
4280 (bin (string-append out "/bin"))
4281 (man (string-append out "/share/man/man6")))
4282 (install-file "advent" bin)
4283 (install-file "advent.6" man))
4286 `(("asciidoc" ,asciidoc)
4287 ("linenoise" ,linenoise)
4289 ("python-pyyaml" ,python-pyyaml)))
4290 (home-page "https://gitlab.com/esr/open-adventure")
4291 (synopsis "Colossal Cave Adventure")
4292 (description "The original Colossal Cave Adventure from 1976 was the
4293 origin of all text adventures, dungeon-crawl (computer) games, and
4294 computer-hosted roleplaying games. This is the last version released by
4295 Crowther & Woods, its original authors, in 1995. It has been known as
4296 \"adventure 2.5\" and \"430-point adventure\".")
4297 (license license:bsd-2))))
4299 (define-public tome4
4303 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
4307 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
4308 version ".tar.bz2"))
4311 "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03"))
4312 (modules '((guix build utils)))
4315 (substitute* '("src/music.h" "src/tSDL.h")
4316 (("#elif defined(__FreeBSD__)" line)
4318 line " || defined(__GNUC__)")))
4320 (build-system gnu-build-system)
4322 `(("unzip" ,unzip)))
4324 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4326 ("premake4" ,premake4)
4328 ("vorbis" ,libvorbis)
4329 ("luajit" ,luajit)))
4331 `(#:make-flags '("CC=gcc" "config=release")
4332 #:phases (modify-phases %standard-phases
4335 (zero? (system* "premake4" "gmake"))
4337 (add-after 'set-paths 'set-sdl-paths
4338 (lambda* (#:key inputs #:allow-other-keys)
4340 (string-append (assoc-ref inputs "sdl-union")
4344 ;; premake doesn't provide install target
4346 (lambda* (#:key inputs outputs #:allow-other-keys)
4347 (let* ((out (assoc-ref outputs "out"))
4348 (usr (string-append out "/usr"))
4349 (bin (string-append out "/bin"))
4350 (licenses (string-append out "/share/licenses"))
4351 (documents (string-append out "/share/doc"))
4352 (pixmaps (string-append out "/share/pixmaps"))
4353 (icon "te4-icon.png")
4354 (data (string-append out "/share/" ,name))
4355 (applications (string-append
4356 out "/share/applications"))
4357 (unzip (string-append
4358 (assoc-ref inputs "unzip") "/bin/unzip"))
4359 (wrapper (string-append bin "/" ,name)))
4364 "game/engines/te4-" ,version ".teae")
4366 "data/gfx/" icon) "-d" pixmaps)
4368 (install-file "t-engine" data)
4370 (with-output-to-file wrapper
4375 ;; No bootstrap code found,
4376 ;; defaulting to working directory
4379 "exec -a tome4 ./t-engine \"$@\"\n"))))
4380 (chmod wrapper #o555)
4382 (for-each (lambda (file)
4383 (install-file file licenses))
4384 '("COPYING" "COPYING-MEDIA"))
4386 (for-each (lambda (file)
4387 (install-file file documents))
4388 '("CONTRIBUTING" "CREDITS"))
4390 (copy-recursively "bootstrap" (string-append
4392 (copy-recursively "game" (string-append data "/game"))
4394 (mkdir-p applications)
4395 (with-output-to-file (string-append applications "/"
4402 Comment=" ,synopsis "\n"
4407 Categories=Game;RolePlaying;\n")))))
4409 (home-page "https://te4.org")
4410 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
4411 combat and advanced character building. Play as one of many unique races and
4412 classes in the lore-filled world of Eyal, exploring random dungeons, facing
4413 challenging battles, and developing characters with your own tailored mix of
4414 abilities and powers. With a modern graphical and customisable interface,
4415 intuitive mouse control, streamlined mechanics and deep, challenging combat,
4416 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
4417 (license license:gpl3+)))
4419 (define-public quakespasm
4426 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
4430 "0b2nz7w4za32pc34r62ql270z692qcjs2pm0i3svkxkvfammhdfq"))))
4433 #:make-flags '("CC=gcc"
4436 "USE_CODEC_MIKMOD=1"
4439 #:phases (modify-phases %standard-phases
4441 (add-after 'unpack 'fix-makefile-paths
4442 (lambda* (#:key outputs #:allow-other-keys)
4443 (let ((out (assoc-ref outputs "out")))
4444 (mkdir-p (string-append out "/bin"))
4445 (substitute* "Quake/Makefile"
4446 (("/usr/local/games")
4447 (string-append out "/bin")))
4449 (build-system gnu-build-system)
4450 (inputs `(("libmikmod" ,libmikmod)
4451 ("libvorbis" ,libvorbis)
4456 (synopsis "First person shooter engine for Quake 1")
4457 (description "Quakespasm is a modern engine for id software's Quake 1.
4458 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4459 some graphical niceities, and numerous bug-fixes and other improvements.")
4460 (home-page "http://quakespasm.sourceforge.net/")
4461 (license license:gpl2+)))
4463 (define-public vkquake
4465 (inherit quakespasm)
4471 (uri (string-append "https://github.com/Novum/vkQuake/archive/"
4473 (file-name (string-append name "-" version ".tar.gz"))
4476 "1p0nh2v2ilylw62fxc5qpfcmyhs0s64w8sgh036nc6kn21kbjc0d"))))
4479 (let ((vulkanlib (string-append (assoc-ref %build-inputs
4480 "vulkan-icd-loader") "/lib")))
4484 "USE_CODEC_MIKMOD=1"
4486 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
4488 #:phases (modify-phases %standard-phases
4490 (add-after 'unpack 'fix-makefile-paths
4491 (lambda* (#:key outputs #:allow-other-keys)
4492 (let ((vulkan (assoc-ref %build-inputs
4493 "vulkan-icd-loader"))
4494 (out (assoc-ref outputs "out")))
4495 (mkdir-p (string-append out "/bin"))
4496 (substitute* "Quake/Makefile" ((" /usr")
4497 (string-append " " out)))
4498 (substitute* "Quake/Makefile" (("/games")
4499 (string-append "/bin")))
4500 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
4502 ,@(strip-keyword-arguments '(#:make-flags #:phases)
4503 (package-arguments quakespasm))))
4504 (inputs `(("vulkan-icd-loader" ,vulkan-icd-loader)
4505 ,@(package-inputs quakespasm)))
4506 (description "vkquake is a modern engine for id software's Quake 1.
4507 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4508 some graphical niceities, and numerous bug-fixes and other improvements.")
4509 (home-page "https://github.com/Novum/vkQuake")))
4511 (define-public yamagi-quake2
4513 (name "yamagi-quake2")
4518 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
4522 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
4523 (build-system gnu-build-system)
4528 ;; link openAL instead of using dlopen at runtime
4529 "DLOPEN_OPENAL=\"no\""
4530 ;; an optional directory where it will look for quake2 data files
4531 ;; in addition to the current working directory
4532 "WITH_SYSTEMWIDE=yes"
4533 "WITH_SYSTEMDIR=\"/opt/quake2\"")
4535 (modify-phases %standard-phases
4538 (lambda* (#:key outputs #:allow-other-keys)
4539 (let ((out (assoc-ref outputs "out")))
4540 (mkdir-p (string-append out "/lib"))
4541 (mkdir-p (string-append out "/bin"))
4542 ;; The yamagi-quake2 binary must be in the same directory
4543 ;; as it's engine libraries, but symlinking it to /bin is okay
4544 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
4545 (copy-recursively "release"
4546 (string-append out "/lib/yamagi-quake2"))
4547 (symlink (string-append out "/lib/yamagi-quake2/quake2")
4548 (string-append out "/bin/yamagi-quake2"))
4549 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
4550 (string-append out "/bin/yamagi-q2ded"))))))))
4551 (inputs `(("sdl2" ,sdl2)
4553 ("libvorbis" ,libvorbis)
4555 ("openal" ,openal)))
4556 (native-inputs `(("pkg-config" ,pkg-config)))
4557 (synopsis "First person shooter engine based on quake2")
4558 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
4559 The main focus is an unchanged single player experience like back in 1997,
4560 thus the gameplay and the graphics are unaltered. However the user may use one
4561 of the unofficial retexturing packs. In comparison with the official client,
4562 over 1000 bugs were fixed and an extensive code audit done,
4563 making Yamagi Quake II one of the most solid Quake II implementations available.")
4564 (home-page "https://www.yamagi.org/quake2/")
4565 (license (list license:gpl2+ ; game and server
4566 (license:non-copyleft ; info-zip
4568 "See Info-Zip section.")
4569 license:public-domain)))) ; stb
4571 (define-public the-butterfly-effect
4573 (name "the-butterfly-effect")
4579 "https://github.com/the-butterfly-effect/tbe/archive/"
4580 "v" version ".tar.gz"))
4581 (file-name (string-append name "-" version ".tar.gz"))
4584 "18qkp7fgdvyl3haqqa693mgyic7afsznsxgz98z9wn4csaqxsnby"))))
4585 (build-system gnu-build-system)
4588 (modify-phases %standard-phases
4590 ;; There is no "install" phase. By default, tbe is installed
4591 ;; in the build directory. Provide our own installation.
4593 (lambda* (#:key outputs #:allow-other-keys)
4594 (let* ((out (assoc-ref outputs "out"))
4595 (bin (string-append out "/bin"))
4596 (share (string-append out "/share")))
4597 (install-file "usr/games/tbe" bin)
4599 (copy-recursively "usr/share" share)
4601 ;; Test suite requires a running Xorg server. Even when
4602 ;; provided, it fails with "D-Bus library appears to be
4603 ;; incorrectly set up; failed to read machine uuid: Failed to
4604 ;; open "/etc/machine-id": No such file or directory" along
4605 ;; with multiple "QPainter:: ... Painter not active" warnings.
4608 `(("qtbase" ,qtbase)
4612 ("gettext-minimal" ,gettext-minimal)
4613 ("qttools" ,qttools)))
4614 (synopsis "Realistic physics puzzle game")
4615 (description "The Butterfly Effect (tbe) is a game that uses
4616 realistic physics simulations to combine lots of simple mechanical
4617 elements to achieve a simple goal in the most complex way possible.")
4618 (home-page "http://the-butterfly-effect.org/")
4619 ;; Main license is GPL2-only. However, artwork is distributed
4620 ;; under various licenses, listed here.
4621 (license (list license:gpl2 license:public-domain license:expat
4622 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
4624 (define-public pioneer
4627 (version "20180203")
4631 (url "https://github.com/pioneerspacesim/pioneer.git")
4633 (file-name (git-file-name name version))
4636 "0hp2mf36kj2v93hka8m8lxw2qhmnjc62wjlpw7c7ix0r8xa01i6h"))))
4637 (build-system gnu-build-system)
4639 `(("autoconf" ,autoconf)
4640 ("automake" ,automake)
4641 ("pkg-config" ,pkg-config)))
4643 `(("assimp" ,assimp)
4645 ("freetype" ,freetype)
4648 ("libsigc++" ,libsigc++)
4649 ("libvorbis" ,libvorbis)
4650 ("lua" ,lua-5.2) ;not compatible with 5.3
4652 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
4654 `(#:tests? #f ;tests are broken
4655 #:configure-flags (list "--with-external-liblua"
4656 (string-append "PIONEER_DATA_DIR="
4657 %output "/share/games/pioneer"))
4658 #:phases (modify-phases %standard-phases
4659 (add-before 'bootstrap 'fix-lua-check
4661 (substitute* "configure.ac"
4663 (string-append "lua-" ,(version-major+minor
4664 (package-version lua-5.2))))))))))
4665 (home-page "http://pioneerspacesim.net")
4666 (synopsis "Game of lonely space adventure")
4668 "Pioneer is a space adventure game set in our galaxy at the turn of the
4669 31st century. The game is open-ended, and you are free to eke out whatever
4670 kind of space-faring existence you can think of. Look for fame or fortune by
4671 exploring the millions of star systems. Turn to a life of crime as a pirate,
4672 smuggler or bounty hunter. Forge and break alliances with the various
4673 factions fighting for power, freedom or self-determination. The universe is
4674 whatever you make of it.")
4675 (license license:gpl3)))
4677 (define-public badass
4678 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
4682 (version (git-version "0.0" revision commit))
4686 (url "https://github.com/umayr/badass.git")
4688 (file-name (git-file-name name version))
4691 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
4692 (build-system go-build-system)
4694 '(#:import-path "github.com/umayr/badass"))
4695 (synopsis "Hacking contribution graphs in git")
4697 "Badass generates false commits for a range of dates, essentially
4698 hacking the gamification of contribution graphs on platforms such as
4700 (home-page "https://github.com/umayr/badass")
4701 (license license:expat))))
4703 (define-public colobot
4706 (version "0.1.11-alpha")
4710 (uri (string-append "https://github.com/colobot/colobot/archive/"
4711 "colobot-gold-" version ".tar.gz"))
4714 "160rq9fp5vd0qaqr3jvzvzrcxk9cac532y8vx4cvq0a8hgylrbad"))))
4715 (build-system cmake-build-system)
4717 `(#:tests? #f ;no test
4719 (modify-phases %standard-phases
4720 (add-after 'unpack 'unpack-data
4721 (lambda* (#:key inputs #:allow-other-keys)
4722 (let ((data (assoc-ref inputs "colobot-data")))
4723 (invoke "tar" "-xvf" data "-Cdata" "--strip-components=1")
4725 (add-after 'unpack-data 'install-music
4726 (lambda* (#:key inputs #:allow-other-keys)
4727 ;; Installation process tries to download music files using
4728 ;; "wget" if not already present. Since we are going to install
4729 ;; them, skip "wget" command check.
4730 (substitute* "data/music/CMakeLists.txt"
4731 (("find_program\\(WGET wget\\)") ""))
4732 ;; Effectively install music.
4733 (let ((data (assoc-ref inputs "colobot-music")))
4734 (invoke "tar" "-xvf" data "-Cdata/music")
4736 (add-after 'install 'fix-install-directory
4737 ;; Move binary from "games/" to "bin/".
4738 (lambda* (#:key outputs #:allow-other-keys)
4739 (let ((out (assoc-ref outputs "out")))
4740 (rename-file (string-append out "/games")
4741 (string-append out "/bin"))
4748 "https://github.com/colobot/colobot-data/archive/"
4749 "colobot-gold-" version ".tar.gz"))
4752 "1pdpsyr41g7xmk03k2g76l214f53ahk04qnkzmsv1fdbbaq7p109"))))
4756 (uri (string-append "https://colobot.info/files/music/"
4757 "colobot-music_ogg_" version ".tar.gz"))
4760 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
4761 ("gettext" ,gettext-minimal)
4762 ("librsvg" ,librsvg)
4764 ("python" ,python-wrapper)))
4770 ("libsndfile" ,libsndfile)
4771 ("libvorbis" ,libvorbis)
4774 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
4775 (synopsis "Educational programming strategy game")
4776 (description "Colobot: Gold Edition is a real-time strategy game, where
4777 you can program your units (bots) in a language called CBOT, which is similar
4778 to C++ and Java. Your mission is to find a new planet to live and survive.
4779 You can save humanity and get programming skills!")
4780 (home-page "https://colobot.info")
4781 (license license:gpl3+)))
4783 (define-public gzdoom
4790 (string-append "https://zdoom.org/files/gzdoom/src/gzdoom-g"
4794 "09a4kx3ry8pc9r578m7yprwa7zsdqxjpn10lyc92r5g9sx4l1m1a"))
4795 (patches (search-patches "gzdoom-search-in-installed-share.patch"))
4796 (modules '((guix build utils)))
4799 (delete-file-recursively "bzip2")
4800 (delete-file-recursively "game-music-emu")
4801 (delete-file-recursively "jpeg-6b")
4802 (delete-file-recursively "zlib")
4807 (let ((out (assoc-ref %outputs "out")))
4810 "-DCMAKE_CXX_FLAGS:="
4811 "-DSHARE_DIR=\\\"" out "/share/\\\" "
4812 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
4813 ;; look for libraries at buildtime instead of
4814 ;; dynamically finding them at runtime
4816 "-DDYN_FLUIDSYNTH=OFF"
4819 "-DDYN_SNDFILE=OFF"))
4821 (modify-phases %standard-phases
4822 (add-before 'configure 'fix-referenced-paths
4823 (lambda* (#:key inputs outputs #:allow-other-keys)
4824 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
4825 (timidity++ (assoc-ref inputs "timidity++"))
4826 (out (assoc-ref outputs "out")))
4829 "src/CMakeLists.txt"
4830 (("COMMAND /bin/sh")
4831 (string-append "COMMAND " (which "sh"))))
4834 "src/sound/mididevices/music_fluidsynth_mididevice.cpp"
4835 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
4836 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
4839 "src/sound/mididevices/music_timiditypp_mididevice.cpp"
4840 (("exename = \"timidity\"")
4841 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
4843 (build-system cmake-build-system)
4844 (inputs `(("bzip2" ,bzip2)
4845 ("fluid-3" ,fluid-3)
4846 ("fluidsynth" ,fluidsynth)
4849 ("libjpeg" ,libjpeg)
4850 ("libsndfile" ,libsndfile)
4855 ("timidity++" ,timidity++)
4857 (native-inputs `(("pkg-config" ,pkg-config)
4859 (synopsis "Modern Doom 2 source port")
4860 (description "GZdoom is a port of the Doom 2 game engine, with a modern
4861 renderer. It improves modding support with ZDoom's advanced mapping features
4862 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
4863 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
4864 (home-page "https://zdoom.org/index")
4865 (license (list license:gpl3+ ; gzdoom game
4866 license:lgpl3+ ; gzdoom renderer
4867 license:expat ; gdtoa
4868 (license:non-copyleft ; modified dumb
4869 "file://dumb/licence.txt"
4870 "Dumb license, explicitly GPL compatible.")))))
4872 (define-public fortune-mod
4874 (name "fortune-mod")
4878 (uri (string-append "https://github.com/shlomif/fortune-mod/"
4879 "archive/" name "-" version ".tar.gz"))
4882 "1hnqpkassh7fwg2jgvybr8mw7vzfikbrhb5r22367ilfwxnl9yd2"))))
4883 (build-system cmake-build-system)
4885 `(#:test-target "check"
4887 (modify-phases %standard-phases
4888 (add-after 'unpack 'fix-build-env
4889 (lambda* (#:key inputs #:allow-other-keys)
4890 (use-modules (guix build utils))
4891 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
4892 (copy-file cmake-rules
4893 (string-append "fortune-mod/cmake/"
4894 (strip-store-file-name cmake-rules)))
4895 (chdir "fortune-mod"))))
4896 (add-after 'install 'fix-install-directory
4897 ;; Move binary from "games/" to "bin/".
4898 (lambda* (#:key outputs #:allow-other-keys)
4899 (let ((out (assoc-ref outputs "out")))
4900 (rename-file (string-append out "/games/fortune")
4901 (string-append out "/bin/fortune"))
4903 (inputs `(("recode" ,recode)))
4906 ;; The following is only needed for tests.
4907 ("perl-file-find-object" ,perl-file-find-object)
4908 ("perl-test-differences" ,perl-test-differences)
4909 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
4910 ("perl-io-all" ,perl-io-all)
4911 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
4915 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
4916 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
4917 "shlomif-cmake-modules/Shlomif_Common.cmake"))
4919 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))))
4920 (home-page "http://www.shlomifish.org/open-source/projects/fortune-mod/")
4921 (synopsis "The Fortune Cookie program from BSD games")
4922 (description "Fortune is a command-line utility which displays a random
4923 quotation from a collection of quotes.")
4924 (license license:bsd-4)))