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 qt)
116 #:use-module (gnu packages compression)
117 #:use-module (gnu packages pulseaudio)
118 #:use-module (gnu packages linux)
119 #:use-module (gnu packages xiph)
120 #:use-module (gnu packages curl)
121 #:use-module (gnu packages lua)
122 #:use-module (gnu packages video)
123 #:use-module (gnu packages xml)
124 #:use-module (gnu packages tcl)
125 #:use-module (gnu packages xdisorg)
126 #:use-module (gnu packages tls)
127 #:use-module (gnu packages pcre)
128 #:use-module (gnu packages cyrus-sasl)
129 #:use-module (gnu packages messaging)
130 #:use-module (gnu packages upnp)
131 #:use-module (gnu packages wxwidgets)
132 #:use-module (gnu packages bison)
133 #:use-module (gnu packages flex)
134 #:use-module (gnu packages cmake)
135 #:use-module (gnu packages gnuzilla)
136 #:use-module (gnu packages icu4c)
137 #:use-module (gnu packages networking)
138 #:use-module (gnu packages vulkan)
139 #:use-module (gnu packages web)
140 #:use-module (guix build-system gnu)
141 #:use-module (guix build-system go)
142 #:use-module (guix build-system haskell)
143 #:use-module (guix build-system python)
144 #:use-module (guix build-system cmake)
145 #:use-module (guix build-system trivial))
147 (define-public armagetronad
149 (name "armagetronad")
150 (version "0.2.8.3.4")
153 (uri (string-append "mirror://sourceforge/" name "/stable/"
154 version "/" name "-" version ".src.tar.gz"))
157 "1pgy0r80z702qdv94aw3ywdn4ynnr4cdi86ml558pljfc5ygasj4"))))
158 (build-system gnu-build-system)
160 `(("libxml2" ,libxml2)
162 ("sdl-image" ,sdl-image)
163 ("freeglut" ,freeglut)
165 ("libjpeg-turbo" ,libjpeg-turbo)))
166 (home-page "http://www.armagetronad.org")
167 (synopsis "Tron clone in 3D")
168 (description "Armagetron is a multiplayer game in 3d that attempts to
169 emulate and expand on the lightcycle sequence from the movie Tron. It's
170 an old school arcade game slung into the 21st century. Highlights include
171 a customizable playing arena, HUD, unique graphics, and AI bots. For the
172 more advanced player there are new game modes and a wide variety of physics
173 settings to tweak as well.")
174 (license license:gpl2+)))
176 (define-public cataclysm-dda
178 (name "cataclysm-dda")
182 (uri (string-append "https://github.com/CleverRaven/Cataclysm-DDA/"
183 "archive/" version ".tar.gz"))
184 (file-name (string-append name "-" version ".tar.gz"))
187 "1xlajmgl9cviqyjpp5g5q4rbljy9gqc49v54bi8gpzr68s14gsb9"))
188 (modules '((guix build utils)))
190 ;; Import cmath header for the std::pow function.
192 (for-each (lambda (file)
194 (("#include <math.h>")
195 "#include <cmath>")))
198 (build-system gnu-build-system)
200 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
201 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1")
203 (modify-phases %standard-phases
206 (substitute* "Makefile"
207 (("ncursesw5-config") "ncursesw6-config")
208 (("RELEASE_FLAGS = -Werror") "RELEASE_FLAGS ="))
210 (add-after 'build 'build-tiles
211 (lambda* (#:key make-flags outputs #:allow-other-keys)
212 ;; Change prefix directory and enable tile graphics and sound.
214 (apply system* "make" "TILES=1" "SOUND=1"
215 (string-append "PREFIX="
216 (assoc-ref outputs "tiles"))
218 (add-after 'install 'install-tiles
219 (lambda* (#:key make-flags outputs #:allow-other-keys)
221 (apply system* "make" "install" "TILES=1" "SOUND=1"
222 (string-append "PREFIX="
223 (assoc-ref outputs "tiles"))
224 (cdr make-flags))))))
225 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
226 ;; input in order to support tests.
229 "tiles")) ; For tile graphics and sound support.
231 `(("gettext" ,gettext-minimal)
232 ("pkg-config" ,pkg-config)))
234 `(("freetype" ,freetype)
236 ("libvorbis" ,libvorbis)
239 ("sdl2-image" ,sdl2-image)
240 ("sdl2-ttf" ,sdl2-ttf)
241 ("sdl2-mixer" ,sdl2-mixer)))
242 (home-page "http://en.cataclysmdda.com/")
243 (synopsis "Survival horror roguelike video game")
245 "Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
246 Struggle to survive in a harsh, persistent, procedurally generated world.
247 Scavenge the remnants of a dead civilization for food, equipment, or, if you are
248 lucky, a vehicle with a full tank of gas to get you out of Dodge. Fight to
249 defeat or escape from a wide variety of powerful monstrosities, from zombies to
250 giant insects to killer robots and things far stranger and deadlier, and against
251 the others like yourself, that want what you have.")
252 (license license:cc-by-sa3.0)))
254 (define-public cowsay
260 (uri (string-append "https://github.com/tnalpgge/"
261 "rank-amateur-cowsay/archive/"
262 name "-" version ".tar.gz"))
265 "12w7apbf6a9qffk92r32b16w22na2fjcqbl32rn0n7zw5hrp3f6q"))))
266 (build-system gnu-build-system)
269 (modify-phases %standard-phases
270 (delete 'configure) ; no configure script
271 (delete 'build) ; nothing to be built
273 (lambda* (#:key outputs #:allow-other-keys)
274 (zero? (system* "sh" "install.sh"
275 (assoc-ref outputs "out")))))
277 (add-after 'install 'check
278 (lambda* (#:key outputs #:allow-other-keys)
279 (zero? (system* (string-append (assoc-ref outputs "out")
284 (home-page (string-append "https://web.archive.org/web/20071026043648/"
285 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
286 (synopsis "Speaking cow text filter")
287 (description "Cowsay is basically a text filter. Send some text into it,
288 and you get a cow saying your text. If you think a talking cow isn't enough,
289 cows can think too: all you have to do is run @command{cowthink}. If you're
290 tired of cows, a variety of other ASCII-art messengers are available.")
291 (license license:gpl3+)))
293 (define-public freedoom
299 (uri (string-append "https://github.com/" name "/" name
300 "/archive/v" version ".tar.gz"))
301 (file-name (string-append name "-" version ".tar.gz"))
304 "1bjijdfqhpazyifx1qda7scj7dry1azhjrnl8h8zn2vqfgdmlh0q"))))
305 (build-system gnu-build-system)
307 '(#:make-flags `(,(string-append "prefix=" (assoc-ref %outputs "out")))
309 #:tests? #f ; no check target
311 (modify-phases %standard-phases
313 (lambda* (#:key inputs outputs #:allow-other-keys)
314 (let* ((dejavu (assoc-ref inputs "font-dejavu"))
315 (freedoom (assoc-ref outputs "out"))
316 (wad-dir (string-append freedoom "/share/games/doom")))
317 ;; Replace the font-searching function in a shell
318 ;; script with a direct path to the required font.
319 ;; This is necessary because ImageMagick can only find the
320 ;; most basic fonts while in the build environment.
321 (substitute* "graphics/titlepic/create_caption"
322 (("font=\\$\\(find_font.*$")
325 "/share/fonts/truetype/DejaVuSansCondensed-Bold.ttf\n")))
326 ;; Make icon creation reproducible.
327 (substitute* "dist/Makefile"
329 "-define png:exclude-chunks=date freedm.png")
331 "-define png:exclude-chunks=date freedoom1.png")
333 "-define png:exclude-chunks=date freedoom2.png"))
334 ;; Make sure that the install scripts know where to find
335 ;; the appropriate WAD files.
336 (substitute* "dist/freedoom"
338 (string-append "IWAD=" wad-dir "/freedm.wad"))
339 (("IWAD=freedoom1.wad")
340 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
341 (("IWAD=freedoom2.wad")
342 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
345 `(("asciidoc" ,asciidoc)
347 ("font-dejavu" ,font-dejavu)
348 ("imagemagick" ,imagemagick)
349 ("python" ,python-2)))
351 `(("prboom-plus" ,prboom-plus)))
352 (home-page "https://freedoom.github.io/")
353 (synopsis "Free content game based on the Doom engine")
355 (list (search-path-specification
356 (variable "DOOMWADDIR")
357 (files '("share/games/doom")))
358 (search-path-specification
359 (variable "DOOMWADPATH")
360 (files '("share/games/doom")))))
362 "The Freedoom project aims to create a complete free content first person
363 shooter game. Freedoom by itself is just the raw material for a game: it must
364 be paired with a compatible game engine (such as @code{prboom-plus}) to be
365 played. Freedoom complements the Doom engine with free levels, artwork, sound
366 effects and music to make a completely free game.")
367 (license license:bsd-3)))
375 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
376 version "/golly-" version
380 "0dn74k3rylhx023n047lz4z6qrqijfcxi0b6jryqklhmm2n532f7"))))
381 (build-system gnu-build-system)
383 '(#:make-flags (list "CC=gcc"
384 (string-append "GOLLYDIR="
385 (assoc-ref %outputs "out")
387 #:tests? #f ; no check target
389 (modify-phases %standard-phases
391 (lambda* (#:key inputs #:allow-other-keys)
392 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
393 ;; properly set the path to the Python shared library. This
394 ;; substitution acheives the same end by different means.
395 (substitute* "gui-wx/wxprefs.cpp"
396 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
397 (string-append "pythonlib = \""
398 (assoc-ref inputs "python")
399 "/lib/libpython-2.7.so\"")))
402 (lambda* (#:key make-flags outputs #:allow-other-keys)
403 (with-directory-excursion "gui-wx"
404 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
406 (lambda* (#:key outputs #:allow-other-keys)
407 (let* ((out (assoc-ref outputs "out"))
408 (bin (string-append out "/bin"))
409 (doc (string-append out "/share/doc/golly"))
410 (pixmaps (string-append out "/share/pixmaps"))
411 (share (string-append out "/share/golly")))
412 (for-each (lambda (binary)
413 (install-file binary bin))
415 (for-each (lambda (document)
417 (string-append "docs/" document ".html")
419 '("License" "ReadMe" "ToDo"))
420 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
421 (for-each (lambda (folder)
424 (string-append share "/" folder)))
425 '("Help" "Patterns" "Rules" "Scripts")))
433 ("wxwidgets" ,wxwidgets-gtk2)
435 (home-page "http://golly.sourceforge.net/")
436 (synopsis "Software for exploring cellular automata")
438 "Golly simulates Conway's Game of Life and many other types of cellular
439 automata. The following features are available:
441 @item Support for bounded and unbounded universes, with cells of up to 256
443 @item Support for multiple algorithms, including Bill Gosper's Hashlife
445 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
446 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
447 @item Scriptable via Lua or Python.
448 @item Extracting patterns, rules and scripts from zip files.
449 @item Downloading patterns, rules and scripts from online archives.
450 @item Pasting patterns from the clipboard.
451 @item Unlimited undo/redo.
452 @item Configurable keyboard shortcuts.
453 @item Auto fit option to keep patterns within the view.
455 (license license:gpl2+)))
457 (define-public meandmyshadow
459 (name "meandmyshadow")
463 (uri (string-append "mirror://sourceforge/meandmyshadow/"
464 version "/meandmyshadow-" version
468 "1dpb7s32b2psj5w3nr5kqibib8nndi86mw8gxp4hmxwrfiisf86d"))))
469 (build-system cmake-build-system)
471 '(#:tests? #f ; there are no tests
473 (modify-phases %standard-phases
474 (add-after 'unpack 'set-sdl'paths
475 (lambda* (#:key inputs #:allow-other-keys)
476 (substitute* "cmake/Modules/FindSDL_gfx.cmake"
477 (("/usr/local/include/SDL")
478 (string-append (assoc-ref inputs "sdl")
480 ;; Because SDL provides lib/libX11.so.6 we need to explicitly
481 ;; link with libX11, even though we're using the GL backend.
482 (substitute* "CMakeLists.txt"
483 (("\\$\\{X11_LIBRARIES\\}") "-lX11"))
486 `(("pkg-config" ,pkg-config)))
488 `(("sdl" ,(sdl-union (list sdl
493 ("libx11" ,libx11) ; needed by sdl's libX11
494 ("libarchive" ,libarchive)
499 (home-page "http://meandmyshadow.sourceforge.net/")
500 (synopsis "Puzzle/platform game")
501 (description "Me and My Shadow is a puzzle/platform game in which you try
502 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
503 and much more stand between you and the exit. Record your moves and let your
504 shadow mimic them to reach blocks you couldn't reach alone.")
505 (license license:gpl3+)))
507 (define-public knights
513 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
514 version "_src.tar.gz"))
517 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
518 (build-system gnu-build-system)
521 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
523 (modify-phases %standard-phases
524 ;; No configure script.
526 #:tests? #f)) ;; No check target.
529 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
530 ("freetype" ,freetype)
531 ("fontconfig" ,fontconfig)
534 `(("pkg-config" ,pkg-config)))
535 (home-page "http://www.knightsgame.org.uk/")
536 (synopsis "Multiplayer dungeon game involving knights and quests")
537 (description "Knights is a multiplayer game involving several knights who
538 must run around a dungeon and complete various quests. Each game revolves
539 around a quest – for example, you might have to find some items and carry them
540 back to your starting point. This may sound easy, but as there are only
541 enough items in the dungeon for one player to win, you may end up having to
542 kill your opponents to get their stuff! Other quests involve escaping from
543 the dungeon, fighting a duel to the death against the enemy knights, or
544 destroying an ancient book using a special wand.")
545 ;; This package includes modified sources of lua (X11), enet (Expat), and
546 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
547 ;; license. The whole package is released under GPLv3+.
548 (license license:gpl3+)))
557 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
558 version ".000-sources." "tar.gz"))
561 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
562 (build-system gnu-build-system)
563 (inputs `(("glib" ,glib)
564 ("readline" ,readline)
568 ("gtkglext" ,gtkglext)
570 ("libcanberra" ,libcanberra)))
571 (native-inputs `(("python-2" ,python-2)
572 ("pkg-config" ,pkg-config)))
573 (home-page "http://gnubg.org")
574 (synopsis "Backgammon game")
575 (description "The GNU backgammon application can be used for playing, analyzing and
576 teaching the game. It has an advanced evaluation engine based on artificial
577 neural networks suitable for both beginners and advanced players. In
578 addition to a command-line interface, it also features an attractive, 3D
579 representation of the playing board.")
580 (license license:gpl3+)))
582 (define-public gnubik
589 (uri (string-append "mirror://gnu/gnubik/gnubik-"
593 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
594 (build-system gnu-build-system)
595 (inputs `(("gtk+" ,gtk+-2)
600 ("gtkglext" ,gtkglext)))
601 (native-inputs `(("gettext" ,gettext-minimal)
602 ("pkg-config" ,pkg-config)))
603 (home-page "https://www.gnu.org/software/gnubik/")
604 (synopsis "3d Rubik's cube game")
606 "GNUbik is a puzzle game in which you must manipulate a cube to make
607 each of its faces have a uniform color. The game is customizable, allowing
608 you to set the size of the cube (the default is 3x3) or to change the colors.
609 You may even apply photos to the faces instead of colors. The game is
610 scriptable with Guile.")
611 (license license:gpl3+)))
613 (define-public gnushogi
620 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
624 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
625 (arguments `(#:tests? #f)) ;; No check target.
626 (build-system gnu-build-system)
627 (home-page "https://www.gnu.org/software/gnushogi/")
628 (synopsis "The game of Shogi (Japanese chess)")
629 (description "GNU Shogi is a program that plays the game Shogi (Japanese
630 Chess). It is similar to standard chess but this variant is far more complicated.")
631 (license license:gpl3+)))
640 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
641 name "-" version ".tar.gz"))
644 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
645 (build-system gnu-build-system)
647 '(;; The code in LTris uses traditional GNU semantics for inline functions
648 #:configure-flags '("CFLAGS=-fgnu89-inline")
650 (modify-phases %standard-phases
651 (add-after 'set-paths 'set-sdl-paths
652 (lambda* (#:key inputs #:allow-other-keys)
654 (string-append (assoc-ref inputs "sdl-union")
658 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
659 (home-page "http://lgames.sourceforge.net/LTris/")
660 (synopsis "Tetris clone based on the SDL library")
662 "LTris is a tetris clone: differently shaped blocks are falling down the
663 rectangular playing field and can be moved sideways or rotated by 90 degree
664 units with the aim of building lines without gaps which then disappear (causing
665 any block above the deleted line to fall down). LTris has three game modes: In
666 Classic you play until the stack of blocks reaches the top of the playing field
667 and no new blocks can enter. In Figures the playing field is reset to a new
668 figure each level and later on tiles and lines suddenly appear. In Multiplayer
669 up to three players (either human or CPU) compete with each other sending
670 removed lines to all opponents. There is also a Demo mode in which you can
671 watch your CPU playing while enjoying a cup of tea!")
672 (license license:gpl2+)))
674 (define-public prboom-plus
680 (uri (string-append "mirror://sourceforge/" name "/" name "/"
681 version "/" name "-" version ".tar.gz"))
684 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
685 (modules '((guix build utils)))
688 (substitute* "src/version.c"
692 (build-system gnu-build-system)
694 '(#:configure-flags '("--disable-cpu-opt")
695 #:make-flags `(,(string-append "gamesdir="
696 (assoc-ref %outputs "out") "/bin"))
698 (modify-phases %standard-phases
699 (add-after 'set-paths 'set-sdl'paths
700 (lambda* (#:key inputs #:allow-other-keys)
702 (string-append (assoc-ref inputs "sdl-union")
706 `(("fluidsynth" ,fluidsynth)
710 ("libvorbis" ,libvorbis)
712 ("portmidi" ,portmidi)
713 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
714 (home-page "http://prboom-plus.sourceforge.net/")
715 (synopsis "Version of the classic 3D shoot'em'up game Doom")
717 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
718 (license license:gpl2+)))
726 (uri (string-append "mirror://savannah/retux/"
727 (version-major+minor version) "/retux-"
728 version "-src.tar.gz"))
731 "1pcrh3z16fl412r3k7xccrgika19ahb1xh90jihgl8yy7zza2i6p"))))
732 (build-system python-build-system)
734 `(#:tests? #f ; no check target
736 (modify-phases %standard-phases
737 ;; no setup.py script
740 (lambda* (#:key outputs #:allow-other-keys)
741 (let* ((out (assoc-ref outputs "out"))
742 (bin (string-append out "/bin"))
743 (data (string-append out "/share/retux"))
744 (doc (string-append out "/share/doc/retux")))
747 (substitute* "retux.py"
748 ;; Use the correct data directory.
749 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
750 (string-append "\"" data "\","))
751 ;; Use Python 3 so the patch-shebangs phase works properly.
752 ((".*python2.*") "#!/usr/bin/python3"))
754 (copy-file "retux.py" (string-append bin "/retux"))
756 (copy-recursively "data" data)
758 (install-file "COPYING" doc)))))))
760 `(("python-sge-pygame" ,python-sge-pygame)
761 ("python-six" ,python-six)
762 ("python-xsge" ,python-xsge)))
763 (home-page "http://retux.nongnu.org")
764 (synopsis "Action platformer game")
766 "ReTux is an action platformer loosely inspired by the Mario games,
767 utilizing the art assets from the @code{SuperTux} project.")
768 ;; GPL version 3 or later is the license for the code and some art.
769 ;; The rest of the licenses are for the art exclusively, as listed in
771 (license (list license:cc0
778 (define-public roguebox-adventures
779 (let ((commit "19a2c340b34d5b4e7cc89118c7aedc058babbd93")
782 (name "roguebox-adventures")
783 (version (git-version "2.1.2" revision commit))
789 (url "https://git.postactiv.com/themightyglider/RogueBoxAdventures.git")
791 (file-name (git-file-name name version))
794 "0afmg8fjdcs3sqdp5rc7irgr7riil8jwysfjn1imfxslf1wcx5ah"))))
795 (build-system python-build-system)
797 '(#:tests? #f ; no check target
799 (modify-phases %standard-phases
800 ;; no setup.py script
802 (lambda* (#:key outputs #:allow-other-keys)
803 (let* ((out (assoc-ref outputs "out"))
805 out "/share/games/roguebox-adventures")))
806 ;; Use the correct data directory.
807 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
808 (("basic_path + os\\.sep + 'DATA'")
809 (string-append "'" data "'"))
811 (string-append "basic_path ='" data "'\n")))
812 (substitute* "LIB/gra_files.py"
813 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
814 (string-append "basic_path ='" data "'\n")))
816 ;; The game must save in the user's home directory because
817 ;; the store is read-only.
818 (substitute* "main.py"
819 (("home_save = False") "home_save = True")
820 (("'icon_small.png'")
821 (string-append "'" data "/icon_small.png'"))))
824 (lambda* (#:key outputs #:allow-other-keys)
825 (let* ((out (assoc-ref outputs "out"))
826 (bin (string-append out "/bin"))
828 out "/share/games/roguebox-adventures"))
830 out "/share/doc/roguebox-adventures")))
834 (string-append bin "/roguebox-adventures"))
835 (chmod (string-append bin "/roguebox-adventures") #o555)
837 (for-each (lambda (file)
838 (copy-recursively file
839 (string-append data "/" file)))
840 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
841 "icon_big.png" "icon_small.png"))
843 (copy-recursively "DOC" doc)
845 (wrap-program (string-append bin "/roguebox-adventures")
846 `("PYTHONPATH" ":" prefix (,(string-append data "/LIB")))))
849 `(("python-pygame" ,python-pygame)
850 ("python-tmx" ,python-tmx)))
851 (home-page "https://rogueboxadventures.tuxfamily.org")
852 (synopsis "A classical roguelike/sandbox game")
854 "RogueBox Adventures is a graphical roguelike with strong influences
855 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
856 Adventures is to offer the player a kind of roguelike toy-world. This world
857 can be explored and changed freely.")
858 ;; The GPL3+ is for code, the rest are for art.
859 (license (list license:cc0
862 license:silofl1.1)))))
864 (define-public xshogi
871 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
875 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
876 (build-system gnu-build-system)
880 (home-page "https://www.gnu.org/software/gnushogi/")
881 (synopsis "User interface for gnushogi")
882 (description "A graphical user interface for the package @code{gnushogi}.")
883 ;; Contains a copy of GPLv3 but the licence notices simply
884 ;; state "GNU General Public Licence" without specifying a version.
885 (license license:gpl1+)))
887 (define-public abbaye
894 (uri (string-append "https://github.com/nevat/abbayedesmorts-gpl/"
895 "archive/v" version ".tar.gz"))
896 (file-name (string-append name "-" version ".tar.gz"))
899 "1a67b0hq6271dd7pvwndjq29cwn2n8gawwz17xafa3k1hrhf8vw3"))
900 (modules '((guix build utils)))
904 (delete-file-recursively "fonts")
906 (build-system gnu-build-system)
908 '(#:make-flags '("CC=gcc")
909 #:phases (modify-phases %standard-phases
910 (add-after 'set-paths 'set-sdl-paths
911 (lambda* (#:key inputs #:allow-other-keys)
913 (string-append (assoc-ref inputs "sdl-union")
915 (add-after 'patch-source-shebangs 'patch-makefile
916 (lambda* (#:key outputs #:allow-other-keys)
917 ;; Replace /usr with package output directory.
918 (substitute* "Makefile"
919 (("/usr") (assoc-ref outputs "out")))))
920 (add-before 'install 'make-install-dirs
921 (lambda* (#:key outputs #:allow-other-keys)
922 (let ((prefix (assoc-ref outputs "out")))
923 ;; Create directories that the makefile assumes exist.
924 (mkdir-p (string-append prefix "/bin"))
925 (mkdir-p (string-append prefix "/share/applications"))
926 (mkdir-p (string-append prefix "/share/pixmaps")))))
927 ;; No configure script.
929 #:tests? #f)) ;; No check target.
930 (native-inputs `(("pkg-config" ,pkg-config)))
931 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
932 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
933 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
934 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
935 France. The Cathars, who preach about good Christian beliefs, were being
936 expelled by the Catholic Church out of the Languedoc region in France. One of
937 them, called Jean Raymond, found an old church in which to hide, not knowing
938 that beneath its ruins lay buried an ancient evil.")
939 (license license:gpl3)))
941 (define-public angband
948 (uri (string-append "http://rephial.org/downloads/4.0/"
949 "angband-" version ".tar.gz"))
952 "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd"))
953 (modules '((guix build utils)))
955 ;; So, some of the sounds/graphics/tilesets are under different
956 ;; licenses... some of them even nonfree! This is a console-only
957 ;; version of this package so we just remove them.
958 ;; In the future, if someone tries to make a graphical variant of
959 ;; this package, they can deal with that mess themselves. :)
961 (for-each (lambda (subdir)
962 (let ((lib-subdir (string-append "lib/" subdir)))
963 (delete-file-recursively lib-subdir)))
964 '("fonts" "icons" "sounds" "tiles"))
965 (substitute* "lib/Makefile"
966 ;; And don't try to invoke makefiles in the directories we removed
967 (("gamedata customize help screens fonts tiles sounds icons user")
968 "gamedata customize help screens user"))
970 (build-system gnu-build-system)
972 `(#:tests? #f ;no check target
973 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
975 (modify-phases %standard-phases
976 (add-after 'unpack 'autogen.sh
978 (substitute* "acinclude.m4"
979 (("ncursesw5-config") "ncursesw6-config"))
980 (zero? (system* "sh" "autogen.sh")))))))
982 `(("autoconf" ,autoconf)
983 ("automake" ,automake)))
984 (inputs `(("ncurses" ,ncurses)))
985 (home-page "http://rephial.org/")
986 (synopsis "Dungeon exploration roguelike")
987 (description "Angband is a Classic dungeon exploration roguelike. Explore
988 the depths below Angband, seeking riches, fighting monsters, and preparing to
989 fight Morgoth, the Lord of Darkness.")
990 (license license:gpl2)))
992 (define-public pingus
999 (uri (string-append "https://github.com/Pingus/pingus/archive/v"
1001 (file-name (string-append name "-" version ".tar.gz"))
1004 "0r9v6as5vi7skvvy7b0fcaimhdlzmik64pyy68plgljhsghqkkf4"))
1005 (patches (search-patches "pingus-sdl-libs-config.patch"))))
1006 (build-system gnu-build-system)
1007 (native-inputs `(("pkg-config" ,pkg-config)
1008 ("scons-python2" ,scons-python2)))
1009 (inputs `(("sdl" ,sdl)
1010 ("sdl-image" ,sdl-image)
1011 ("sdl-mixer" ,sdl-mixer)
1017 '(#:make-flags (list (string-append "PREFIX=" %output))
1018 #:tests? #f ; no check target
1020 (modify-phases %standard-phases
1021 (delete 'configure)))) ; no configure script
1022 (home-page "http://pingus.seul.org/welcome.html")
1023 (synopsis "Lemmings clone")
1025 "Pingus is a free Lemmings-like puzzle game in which the player takes
1026 command of a bunch of small animals and has to guide them through levels.
1027 Since the animals walk on their own, the player can only influence them by
1028 giving them commands, like build a bridge, dig a hole, or redirect all animals
1029 in the other direction. Multiple such commands are necessary to reach the
1030 level's exit. The game is presented in a 2D side view.")
1031 ;; Some source files are under bsd-3 and gpl2+ licenses.
1032 (license license:gpl3+)))
1034 (define-public talkfilters
1036 (name "talkfilters")
1041 (uri (string-append "http://www.hyperrealm.com/" name "/"
1042 name "-" version ".tar.gz"))
1044 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
1045 (build-system gnu-build-system)
1046 (home-page "https://www.gnu.org/software/talkfilters/")
1047 (synopsis "Convert English text to humorous dialects")
1048 (description "The GNU Talk Filters are programs that convert English text
1049 into stereotyped or otherwise humorous dialects. The filters are provided as
1050 a C library, so they can easily be integrated into other programs.")
1051 (license license:gpl2+)))
1053 (define-public cmatrix
1060 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
1064 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
1065 (build-system gnu-build-system)
1068 (modify-phases %standard-phases
1070 (lambda* (#:key outputs #:allow-other-keys)
1071 ;; This old ‘configure’ script doesn't support
1072 ;; variables passed as arguments.
1073 (let ((out (assoc-ref outputs "out")))
1074 (setenv "CONFIG_SHELL" (which "bash"))
1076 (system* "./configure"
1077 (string-append "--prefix=" out)))))))))
1078 (inputs `(("ncurses" ,ncurses)))
1079 (home-page "http://www.asty.org/cmatrix")
1080 (synopsis "Simulate the display from \"The Matrix\"")
1081 (description "CMatrix simulates the display from \"The Matrix\" and is
1082 based on the screensaver from the movie's website. It works with terminal
1083 settings up to 132x300 and can scroll lines all at the same rate or
1084 asynchronously and at a user-defined speed.")
1085 (license license:gpl2+)))
1087 (define-public chess
1094 (uri (string-append "mirror://gnu/chess/gnuchess-" version
1098 "00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs"))))
1099 (build-system gnu-build-system)
1100 (home-page "https://www.gnu.org/software/chess/")
1101 (synopsis "Full chess implementation")
1102 (description "GNU Chess is a chess engine. It allows you to compete
1103 against the computer in a game of chess, either through the default terminal
1104 interface or via an external visual interface such as GNU XBoard.")
1105 (license license:gpl3+)))
1107 (define freedink-engine
1109 (name "freedink-engine")
1113 (uri (string-append "mirror://gnu/freedink/freedink-" version
1117 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
1118 (build-system gnu-build-system)
1119 (arguments `(#:configure-flags '("--disable-embedded-resources")))
1120 (native-inputs `(("gettext" ,gettext-minimal)
1121 ("pkg-config" ,pkg-config)))
1122 (inputs `(("sdl" ,sdl)
1123 ("sdl-image" ,sdl-image)
1124 ("sdl-mixer" ,sdl-mixer)
1125 ("sdl-ttf" ,sdl-ttf)
1126 ("sdl-gfx" ,sdl-gfx)
1127 ("fontconfig" ,fontconfig)
1129 (home-page "https://www.gnu.org/software/freedink/")
1130 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
1132 "GNU FreeDink is a free and portable re-implementation of the engine
1133 for the role-playing game Dink Smallwood. It supports not only the original
1134 game data files but it also supports user-produced game mods or \"D-Mods\".
1135 To that extent, it also includes a front-end for managing all of your D-Mods.")
1136 (license license:gpl3+)))
1138 (define freedink-data
1140 (name "freedink-data")
1141 (version "1.08.20170401")
1144 (uri (string-append "mirror://gnu/freedink/freedink-data-"
1148 "1zx7qywibhznj7bnz217404scr8dfh0xj24xjihnda5iapzz7lz8"))))
1149 (build-system gnu-build-system)
1152 (modify-phases %standard-phases
1153 (delete 'configure) ; no configure script
1154 (delete 'check)) ; no tests
1155 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1156 (home-page "https://www.gnu.org/software/freedink/")
1157 (synopsis "Game data for GNU Freedink")
1159 "This package contains the game data of GNU Freedink.")
1160 (license license:gpl3+)))
1162 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
1164 (define-public freedink
1165 ;; This is a wrapper that tells the engine where to find the data.
1166 (package (inherit freedink-engine)
1168 (build-system trivial-build-system)
1171 (use-modules (guix build utils))
1173 (let* ((output (assoc-ref %outputs "out"))
1174 (bin (string-append output "/bin"))
1175 (executable (string-append bin "/freedink")))
1177 (call-with-output-file executable
1179 (format port "#!~a/bin/sh
1180 exec ~a/bin/freedink -refdir ~a/share/dink\n"
1181 (assoc-ref %build-inputs "bash")
1182 (assoc-ref %build-inputs "engine")
1183 (assoc-ref %build-inputs "data"))
1184 (chmod port #o777)))
1186 #:modules ((guix build utils))))
1187 (inputs `(("engine" ,freedink-engine)
1188 ("data" ,freedink-data)
1190 (native-inputs '())))
1192 (define-public xboard
1199 (uri (string-append "mirror://gnu/xboard/xboard-" version
1203 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
1204 (build-system gnu-build-system)
1207 ("librsvg" ,librsvg)))
1209 `(("texinfo" ,texinfo)
1210 ("pkg-config" ,pkg-config)))
1211 (home-page "https://www.gnu.org/software/xboard/")
1212 (synopsis "Graphical user interface for chess programs")
1213 (description "GNU XBoard is a graphical board for all varieties of chess,
1214 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
1215 and Makruk. Several lesser-known variants are also supported. It presents a
1216 fully interactive graphical interface and it can load and save games in the
1217 Portable Game Notation.")
1218 (license license:gpl3+)))
1221 (define-public xboing
1228 (uri (string-append "http://www.techrescue.org/xboing/xboing"
1231 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))
1232 (patches (search-patches "xboing-CVE-2004-0149.patch"))))
1236 (modify-phases %standard-phases
1238 (lambda* (#:key outputs #:allow-other-keys)
1240 (substitute* "Imakefile"
1241 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
1242 (string-append "XPMINCLUDE = -I"
1243 (assoc-ref %build-inputs "libxpm")
1246 (substitute* "Imakefile"
1247 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
1249 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
1251 (zero? (system* "xmkmf" "-a"
1252 (string-append "-DProjectRoot="
1253 (assoc-ref outputs "out"))))))
1255 (lambda* (#:key outputs #:allow-other-keys)
1257 (zero? (system* "make" "install.man"))
1258 (zero? (system* "make" "install"))))))))
1259 (inputs `(("libx11" ,libx11)
1260 ("libxext" ,libxext)
1261 ("libxpm" ,libxpm)))
1262 (native-inputs `(("imake" ,imake)
1263 ("inetutils" ,inetutils)
1264 ("makedepend" ,makedepend)))
1265 (build-system gnu-build-system)
1266 (home-page "http://www.techrescue.org/xboing")
1267 (synopsis "Ball and paddle game")
1268 (description "XBoing is a blockout type game where you have a paddle which
1269 you control to bounce a ball around the game zone destroying blocks with a
1270 proton ball. Each block carries a different point value. The more blocks you
1271 destroy, the better your score. The person with the highest score wins.")
1272 (license (license:x11-style "file://COPYING"
1273 "Very similar to the X11 licence."))))
1275 (define-public gtypist
1281 (uri (string-append "mirror://gnu/gtypist/gtypist-"
1285 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
1286 (modules '((guix build utils)))
1288 ;; We do not provide `ncurses.h' within an `ncursesw'
1289 ;; sub-directory, so patch the source accordingly. See
1290 ;; <http://bugs.gnu.org/19018>.
1292 (for-each (lambda (file)
1294 (("ncursesw/ncurses.h")
1296 (find-files "." "configure$|\\.c$"))
1298 (build-system gnu-build-system)
1299 (inputs `(("ncurses" ,ncurses)
1301 (home-page "https://www.gnu.org/software/gtypist/")
1302 (synopsis "Typing tutor")
1304 "GNU Typist is a universal typing tutor. It can be used to learn and
1305 practice touch-typing. Several tutorials are included; in addition to
1306 tutorials for the standard QWERTY layout, there are also tutorials for the
1307 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
1308 are primarily in English, however some in other languages are provided.")
1309 (license license:gpl3+)))
1311 (define-public irrlicht
1318 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
1319 (version-major+minor version)
1320 "/" version "/irrlicht-" version ".zip"))
1323 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
1324 (build-system gnu-build-system)
1327 (modify-phases %standard-phases
1328 (add-after 'unpack 'fix-build-env
1329 (lambda* (#:key outputs #:allow-other-keys)
1330 (let ((out (assoc-ref outputs "out")))
1331 (substitute* "Makefile"
1332 (("INSTALL_DIR = /usr/local/lib")
1333 (string-append "INSTALL_DIR = " out "/lib")))
1334 ;; The Makefile assumes these directories exist.
1335 (mkdir-p (string-append out "/lib"))
1336 (mkdir-p (string-append out "/include")))))
1338 (lambda* (#:key source #:allow-other-keys)
1339 (and (zero? (system* "unzip" source))
1340 ;; The actual source is buried a few directories deep.
1341 (chdir (string-append "irrlicht-" ,version
1342 "/source/Irrlicht/")))))
1343 (delete 'configure)) ; no configure script
1344 #:tests? #f ; no check target
1345 #:make-flags '("CC=gcc" "sharedlib")))
1347 `(("unzip" ,unzip)))
1351 (synopsis "3D game engine written in C++")
1353 "The Irrlicht Engine is a high performance realtime 3D engine written in
1354 C++. Features include an OpenGL renderer, extensible materials, scene graph
1355 management, character animation, particle and other special effects, support
1356 for common mesh file formats, and collision detection.")
1357 (home-page "http://irrlicht.sourceforge.net/")
1358 (license license:zlib)))
1361 ;; The latest release on SourceForge relies on an unreleased version of SFML
1362 ;; with a different API, so we take the latest version from the official
1363 ;; repository on Github.
1364 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
1368 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
1372 (url "https://github.com/thelaui/M.A.R.S..git")
1374 (file-name (string-append name "-" version))
1377 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
1378 (patches (search-patches "mars-sfml-2.3.patch"
1379 "mars-install.patch"))))
1380 (build-system cmake-build-system)
1382 `(#:tests? #f ; There are no tests
1384 (modify-phases %standard-phases
1385 (add-after 'unpack 'fix-install-path
1387 (substitute* "src/CMakeLists.txt"
1388 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
1389 "${CMAKE_INSTALL_PREFIX}/bin"))
1391 (add-after 'unpack 'fix-data-path
1392 (lambda* (#:key outputs #:allow-other-keys)
1393 (substitute* "src/System/settings.cpp"
1394 (("C_dataPath = \"./data/\";")
1395 (string-append "C_dataPath = \""
1396 (assoc-ref outputs "out")
1397 "/share/games/marsshooter/\";")))
1401 ("fribidi" ,fribidi)
1404 (home-page "http://marsshooter.org")
1405 (synopsis "2D space shooter")
1407 "M.A.R.S. is a 2D space shooter with pretty visual effects and
1408 attractive physics. Players can battle each other or computer controlled
1409 enemies in different game modes such as space ball, death match, team death
1410 match, cannon keep, and grave-itation pit.")
1411 (license license:gpl3+))))
1413 (define minetest-data
1415 (name "minetest-data")
1420 "https://github.com/minetest/minetest_game/archive/"
1422 (file-name (string-append name "-" version ".tar.gz"))
1425 "0nibpm600rbv9dg1zgcsl5grlbqx0b5l6cg1lp6sqkwvjialb4ga"))))
1426 (build-system trivial-build-system)
1428 `(("source" ,source)
1430 ("gzip" ,(@ (gnu packages compression) gzip))))
1432 `(#:modules ((guix build utils))
1434 (use-modules (guix build utils))
1435 (let ((tar (string-append (assoc-ref %build-inputs "tar")
1437 (install-dir (string-append
1439 "/share/minetest/games/minetest_game"))
1440 (path (string-append (assoc-ref %build-inputs
1443 (setenv "PATH" path)
1444 (invoke tar "xvf" (assoc-ref %build-inputs "source"))
1445 (chdir (string-append "minetest_game-" ,version))
1446 (mkdir-p install-dir)
1447 (copy-recursively "." install-dir)
1449 (synopsis "Main game data for the Minetest game engine")
1451 "Game data for the Minetest infinite-world block sandox game.")
1452 (home-page "http://minetest.net")
1453 (license license:lgpl2.1+)))
1455 (define-public minetest
1462 "https://github.com/minetest/minetest/archive/"
1464 (file-name (string-append name "-" version ".tar.gz"))
1467 "0mbnf1ma4gsw9ah68ply04059xkfx5psdxwalxp78sgmx4ypkwqf"))))
1468 (build-system cmake-build-system)
1471 (list "-DRUN_IN_PLACE=0"
1472 "-DENABLE_FREETYPE=1"
1473 "-DENABLE_GETTEXT=1"
1474 (string-append "-DIRRLICHT_INCLUDE_DIR="
1475 (assoc-ref %build-inputs "irrlicht")
1476 "/include/irrlicht")
1477 (string-append "-DCURL_INCLUDE_DIR="
1478 (assoc-ref %build-inputs "curl")
1480 #:tests? #f)) ; no check target
1481 (native-search-paths
1482 (list (search-path-specification
1483 (variable "MINETEST_SUBGAME_PATH")
1484 (files '("share/minetest/games")))))
1486 `(("pkg-config" ,pkg-config)))
1488 `(("irrlicht" ,irrlicht)
1490 ("libjpeg" ,libjpeg)
1491 ("libxxf86vm" ,libxxf86vm)
1494 ("libvorbis" ,libvorbis)
1496 ("freetype" ,(@ (gnu packages fontutils) freetype))
1499 ("gettext" ,gettext-minimal)
1500 ("sqlite" ,sqlite)))
1502 `(("minetest-data" ,minetest-data)))
1503 (synopsis "Infinite-world block sandbox game")
1505 "Minetest is a sandbox construction game. Players can create and destroy
1506 various types of blocks in a three-dimensional open world. This allows
1507 forming structures in every possible creation, on multiplayer servers or as a
1508 single player. Mods and texture packs allow players to personalize the game
1509 in different ways.")
1510 (home-page "http://minetest.net")
1511 (license license:lgpl2.1+)))
1520 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1521 "glk/implementations/glkterm-104.tar.gz"))
1524 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
1525 (build-system gnu-build-system)
1526 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
1528 '(#:tests? #f ; no check target
1530 (modify-phases %standard-phases
1532 (lambda* (#:key outputs #:allow-other-keys)
1533 (let* ((out (assoc-ref outputs "out"))
1534 (inc (string-append out "/include"))
1535 (lib (string-append out "/lib")))
1538 (install-file file inc))
1539 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
1540 (install-file "libglkterm.a" lib))
1542 (delete 'configure)))) ; no configure script
1543 (home-page "http://www.eblong.com/zarf/glk/")
1544 (synopsis "Curses Implementation of the Glk API")
1546 "Glk defines a portable API for applications with text UIs. It was
1547 primarily designed for interactive fiction, but it should be suitable for many
1548 interactive text utilities, particularly those based on a command line.
1549 This is an implementation of the Glk library which runs in a terminal window,
1550 using the @code{curses.h} library for screen control.")
1551 (license (license:fsf-free "file://README"))))
1553 (define-public glulxe
1560 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1561 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
1564 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
1565 (build-system gnu-build-system)
1566 (inputs `(("glk" ,glkterm)))
1568 '(#:tests? #f ; no check target
1570 (let* ((glk (assoc-ref %build-inputs "glk")))
1571 (list (string-append "GLKINCLUDEDIR=" glk "/include")
1572 (string-append "GLKLIBDIR=" glk "/lib")
1573 (string-append "GLKMAKEFILE=" "Make.glkterm")))
1575 (modify-phases %standard-phases
1577 (lambda* (#:key outputs #:allow-other-keys)
1578 (let* ((out (assoc-ref outputs "out"))
1579 (bin (string-append out "/bin")))
1580 (install-file "glulxe" bin))
1582 (delete 'configure)))) ; no configure script
1583 (home-page "http://www.eblong.com/zarf/glulx/")
1584 (synopsis "Interpreter for Glulx VM")
1586 "Glulx is a 32-bit portable virtual machine intended for writing and
1587 playing interactive fiction. It was designed by Andrew Plotkin to relieve
1588 some of the restrictions in the venerable Z-machine format. This is the
1589 reference interpreter, using the Glk API.")
1590 (license license:expat)))
1592 (define-public fizmo
1598 (uri (string-append "https://christoph-ender.de/fizmo/source/"
1599 name "-" version ".tar.gz"))
1602 "1sd988db2302r7cbfcfghbmg8ck43c6hvnlnlpb0rqxb7pm9cwyy"))))
1603 (build-system gnu-build-system)
1606 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
1607 (ncurses (assoc-ref %build-inputs "ncurses")))
1608 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
1609 (string-append "jpeg_LIBS=-ljpeg")
1610 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
1611 (string-append "ncursesw_LIBS=-lncursesw")))))
1613 `(("pkg-config" ,pkg-config)))
1615 `(("freetype" ,freetype)
1616 ("libjpeg" ,libjpeg)
1618 ("libsndfile" ,libsndfile)
1619 ("libxml2" ,libxml2)
1620 ("ncurses" ,ncurses)
1622 (home-page "https://christoph-ender.de/fizmo/")
1623 (synopsis "Z-machine interpreter")
1625 "Fizmo is a console-based Z-machine interpreter. It is used to play
1626 interactive fiction, also known as text adventures, which were implemented
1627 either by Infocom or created using the Inform compiler.")
1628 (license license:bsd-3)))
1630 (define-public gnugo
1636 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
1640 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
1641 (build-system gnu-build-system)
1642 (inputs `(("readline" ,readline)))
1643 (synopsis "Play the game of Go")
1645 "GNU Go is a program that plays the game of Go, in which players
1646 place stones on a grid to form territory or capture other stones. While
1647 it can be played directly from the terminal, rendered in ASCII characters,
1648 it is also possible to play GNU Go with 3rd party graphical interfaces or
1649 even in Emacs. It supports the standard game storage format (SGF, Smart
1650 Game Format) and inter-process communication format (GMP, Go Modem
1652 (home-page "https://www.gnu.org/software/gnugo/")
1653 (license license:gpl3+)))
1655 (define-public extremetuxracer
1657 (name "extremetuxracer")
1662 "mirror://sourceforge/extremetuxracer/releases/"
1663 version "/etr-" version ".tar.xz"))
1666 "0d2j4ybdjmimg67v2fndgahgq4fvgz3fpfb3a4l1ar75n6hy776s"))))
1667 (build-system gnu-build-system)
1669 `(("pkg-config" ,pkg-config)))
1673 (synopsis "High speed arctic racing game based on Tux Racer")
1674 ;; Snarfed straight from Debian
1675 (description "Extreme Tux Racer, or etracer as it is called for short, is
1676 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
1677 game is to slide down a snow- and ice-covered mountain as quickly as possible,
1678 avoiding the trees and rocks that will slow you down.
1680 Collect herrings and other goodies while sliding down the hill, but avoid fish
1683 This game is based on the GPL version of the famous game TuxRacer.")
1684 (home-page "https://sourceforge.net/projects/extremetuxracer/")
1685 (license license:gpl2+)))
1687 (define-public supertuxkart
1689 (name "supertuxkart")
1694 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
1695 version "/supertuxkart-" version "-src.tar.xz"))
1698 "1c4w47ibj87lgwiqygq8qi7jiz6gklj4dwf5bs5zk15s0rqlw0fq"))
1699 (modules '((guix build utils)))
1701 ;; Delete bundled library sources
1703 ;; FIXME: try to unbundle enet, and angelscript
1704 (for-each delete-file-recursively
1710 (substitute* "CMakeLists.txt"
1711 ;; Supertuxkart uses modified versions of the Irrlicht engine
1712 ;; and the bullet library. The developers gave an explanation here:
1713 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1714 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1716 (build-system cmake-build-system)
1718 `(#:tests? #f ; no check target
1720 (list "-DUSE_WIIUSE=0"
1721 ;; Do not use the bundled zlib
1722 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1723 ;; FIXME: needs libopenglrecorder
1724 "-DBUILD_RECORDER=0"
1725 ;; Irrlicht returns an integer instead of a boolean
1726 "-DCMAKE_C_FLAGS=-fpermissive")
1728 (modify-phases %standard-phases
1729 (add-after 'unpack 'unbundle
1730 (lambda* (#:key inputs #:allow-other-keys)
1731 (substitute* "CMakeLists.txt"
1733 (string-append (assoc-ref inputs "glew")
1735 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1736 (string-append "include_directories(\""
1737 (assoc-ref inputs "glew")
1744 ("libvorbis" ,libvorbis)
1745 ("freetype" ,freetype)
1746 ("fribidi" ,fribidi)
1749 ("libxrandr" ,libxrandr)
1751 ;; The following input is needed to build the bundled and modified
1752 ;; version of irrlicht.
1753 ("libjpeg" ,libjpeg)))
1755 `(("pkg-config" ,pkg-config)))
1756 (home-page "https://supertuxkart.net/")
1757 (synopsis "3D kart racing game")
1758 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1759 having fun over realism. You can play with up to 4 friends on one PC, racing
1760 against each other or just trying to beat the computer; single-player mode is
1762 (license license:gpl3+)))
1764 (define-public gnujump
1770 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1774 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1775 (build-system gnu-build-system)
1778 (modify-phases %standard-phases
1780 'configure 'link-libm
1781 (lambda _ (setenv "LIBS" "-lm"))))))
1786 ("sdl-image" ,sdl-image)
1787 ("sdl-mixer" ,sdl-mixer)))
1788 (home-page "http://gnujump.es.gnu.org/")
1790 "Game of jumping to the next floor, trying not to fall")
1792 "GNUjump is a simple, yet addictive game in which you must jump from
1793 platform to platform to avoid falling, while the platforms drop at faster rates
1794 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1795 falling, themeable graphics and sounds, and replays.")
1796 (license license:gpl3+)))
1798 (define-public wesnoth
1804 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1805 (version-major+minor version) "/wesnoth-"
1807 name "-" version ".tar.bz2"))
1810 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1811 (build-system cmake-build-system)
1813 '(#:tests? #f ; no check target
1815 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1816 ;; boost/mpl/assert.hpp:313:58: error:
1817 ;; use of old-style cast [-Werror=old-style-cast]
1819 ;; cc1plus: all warnings being treated as errors
1820 '("-DENABLE_STRICT_COMPILATION=OFF")))
1822 `(("gettext" ,gettext-minimal)
1823 ("pkg-config" ,pkg-config)))
1827 ("fribidi" ,fribidi)
1828 ("libvorbis" ,libvorbis)
1830 ("sdl-image" ,sdl-image)
1831 ("sdl-mixer" ,sdl-mixer)
1832 ("sdl-net" ,sdl-net)
1833 ("sdl-ttf" ,sdl-ttf)))
1834 (home-page "http://www.wesnoth.org/")
1835 (synopsis "Turn-based strategy game")
1837 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1838 with several single player campaigns, and multiplayer games (both networked and
1841 Battle for control on a range of maps, using variety of units which have
1842 advantages and disadvantages against different types of attacks. Units gain
1843 experience and advance levels, and are carried over from one scenario to the
1845 (license license:gpl2+)))
1847 (define-public wesnoth-server
1850 (name "wesnoth-server")
1853 ("sdl-net" ,sdl-net)))
1856 (substitute-keyword-arguments (package-arguments wesnoth)
1857 ((#:configure-flags configure-flags)
1858 `(append ,configure-flags (list "-DENABLE_GAME=OFF"))))
1860 (modify-phases %standard-phases
1861 ;; Delete game assets not required by the server.
1862 (add-after 'install 'delete-data
1863 (lambda* (#:key outputs #:allow-other-keys)
1864 (delete-file-recursively (string-append (assoc-ref outputs "out")
1865 "/share/wesnoth"))))))))
1866 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
1867 (description "This package contains a dedicated server for @emph{The
1868 Battle for Wesnoth}.")))
1870 (define-public gamine
1876 (uri (string-append "mirror://sourceforge/gamine-game/"
1877 "gamine-" version ".tar.gz"))
1880 "08wnk7w84c2413hwny89j2cn89cvfdf67bfc6wl0bf475if0mf4h"))))
1881 (build-system gnu-build-system)
1883 `(("pkg-config" ,pkg-config)
1884 ("intltool" ,intltool)))
1886 `(("gstreamer" ,gstreamer)
1887 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1888 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1893 (let ((out (assoc-ref %outputs "out")))
1894 (list (string-append "PREFIX=" out)
1895 (string-append "SYSCONFDIR=" out "/etc")))
1897 (modify-phases %standard-phases
1900 'install 'wrap-gamine
1901 (lambda* (#:key outputs #:allow-other-keys)
1902 (let ((out (assoc-ref outputs "out"))
1903 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1904 (wrap-program (string-append out "/bin/gamine")
1905 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1907 (home-page "http://gamine-game.sourceforge.net/")
1908 (synopsis "Mouse and keyboard discovery for children")
1910 "Gamine is a game designed for young children who are learning to use the
1911 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1912 on the screen and keyboard to display letters.")
1913 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1914 (license license:gpl3)))
1916 (define-public raincat
1924 "http://hackage.haskell.org/package/Raincat/Raincat-"
1929 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1930 (build-system haskell-build-system)
1932 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1933 ("ghc-mtl" ,ghc-mtl)
1934 ("ghc-random" ,ghc-random)
1935 ("ghc-glut" ,ghc-glut)
1936 ("freeglut" ,freeglut)
1937 ("ghc-opengl" ,ghc-opengl)
1938 ("ghc-sdl" ,ghc-sdl)
1939 ("ghc-sdl-image" ,ghc-sdl-image)
1940 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1941 (home-page "http://www.bysusanlin.com/raincat/")
1942 (synopsis "Puzzle game with a cat in lead role")
1943 (description "Project Raincat is a game developed by Carnegie Mellon
1944 students through GCS during the Fall 2008 semester. Raincat features game
1945 play inspired from classics Lemmings and The Incredible Machine. The project
1946 proved to be an excellent learning experience for the programmers. Everything
1947 is programmed in Haskell.")
1948 (license license:bsd-3)))
1950 (define-public manaplus
1953 (version "1.7.6.10")
1957 "http://repo.manaplus.org/manaplus/download/"
1958 version "/manaplus-" version ".tar.xz"))
1961 "0l7swvpzq20am4w2rsjpp6fsvbjv07il6wbfy45a7h9zsdihmqhl"))))
1962 (build-system gnu-build-system)
1965 (list (string-append "CPPFLAGS=-I"
1966 (assoc-ref %build-inputs "sdl-union")
1969 `(("pkg-config" ,pkg-config)))
1973 ("libxml2" ,libxml2)
1975 ("sdl-union" ,(sdl-union))))
1976 (home-page "http://manaplus.org")
1977 (synopsis "Client for 'The Mana World' and similar games")
1979 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1980 fully supported client for @uref{http://www.themanaworld.org, The mana
1981 world}, @uref{http://evolonline.org, Evol Online} and
1982 @uref{http://landoffire.org, Land of fire}.")
1983 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1984 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1985 ;; The rest is under GPL2+.
1986 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1988 (define openttd-engine
1990 (name "openttd-engine")
1993 (origin (method url-fetch)
1994 (uri (string-append "http://binaries.openttd.org/releases/"
1995 version "/openttd-" version "-source.tar.xz"))
1998 "0dhv5bbbg1dmmq7fi3xss0a9jq2rqgb5sf9fsqzlsjcdm590j6b1"))
1999 (modules '((guix build utils)))
2001 ;; The DOS port contains proprietary software.
2003 (delete-file-recursively "os/dos")
2005 (build-system gnu-build-system)
2007 `(#:tests? #f ; no "check" target
2009 (modify-phases %standard-phases
2010 ;; The build process fails if the configure script is passed the
2011 ;; option "--enable-fast-install".
2013 (lambda* (#:key inputs outputs (configure-flags '())
2015 (let ((out (assoc-ref outputs "out"))
2016 (lzo (assoc-ref inputs "lzo")))
2018 (apply system* "./configure"
2019 (string-append "--prefix=" out)
2020 ;; Provide the "lzo" path.
2021 (string-append "--with-liblzo2="
2022 lzo "/lib/liblzo2.a")
2023 ;; Put the binary in 'bin' instead of 'games'.
2025 configure-flags))))))))
2026 (native-inputs `(("pkg-config" ,pkg-config)))
2028 `(("allegro" ,allegro-4)
2029 ("fontconfig" ,fontconfig)
2030 ("freetype" ,freetype)
2037 (synopsis "Transportation economics simulator")
2038 (description "OpenTTD is a game in which you transport goods and
2039 passengers by land, water and air. It is a re-implementation of Transport
2040 Tycoon Deluxe with many enhancements including multiplayer mode,
2041 internationalization support, conditional orders and the ability to clone,
2042 autoreplace and autoupdate vehicles. This package only includes the game
2043 engine. When you start it you will be prompted to download a graphics set.")
2044 (home-page "http://openttd.org/")
2045 ;; This package is GPLv2, except for a few files located in
2046 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
2047 ;; licenses. In addition, this software contains an in-game downloader
2048 ;; from which the user may find non-functional data licensed under
2050 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
2052 (define openttd-opengfx
2054 (name "openttd-opengfx")
2059 (uri (string-append "http://binaries.openttd.org/extra/opengfx/"
2060 version "/opengfx-" version "-source.tar.xz"))
2063 "0iz66q7p1mf00njfjbc4vibh3jaybki7armkl18iz7p6x4chp9zv"))))
2064 (build-system gnu-build-system)
2066 '(#:make-flags (list "CC=gcc"
2067 (string-append "INSTALL_DIR="
2068 (assoc-ref %outputs "out")
2069 "/share/games/openttd/baseset/opengfx"))
2071 (modify-phases %standard-phases
2074 ;; Make sure HOME is writable for GIMP.
2075 (setenv "HOME" (getcwd))
2077 ;; Redirect stdout, not stderr, to /dev/null. This prevents
2078 ;; dos2unix from receiving its version information as a flag.
2079 (substitute* "Makefile"
2080 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
2081 "$(UNIX2DOS) -q --version 1>/dev/null")))))
2082 ;; The check phase for this package only checks the md5sums of the built
2083 ;; GRF files against the md5sums of the release versions. Because we use
2084 ;; different software versions than upstream does, some of the md5sums
2085 ;; are different. However, the package is still reproducible, it's safe
2086 ;; to disable this test.
2088 #:parallel-build? #f))
2089 (native-inputs `(("dos2unix" ,dos2unix)
2091 ("grfcodec" ,grfcodec)
2093 ("python" ,python-2)))
2094 (home-page "http://dev.openttdcoop.org/projects/opengfx")
2095 (synopsis "Base graphics set for OpenTTD")
2097 "The OpenGFX projects is an implementation of the OpenTTD base grahics
2098 set that aims to ensure the best possible out-of-the-box experience.
2100 OpenGFX provides you with...
2102 @item All graphics you need to enjoy OpenTTD.
2103 @item Uniquely drawn rail vehicles for every climate.
2104 @item Completely snow-aware rivers.
2105 @item Different river and sea water.
2106 @item Snow-aware buoys.
2108 (license license:gpl2)))
2110 (define openttd-opensfx
2112 (name "openttd-opensfx")
2118 "https://binaries.openttd.org/extra/opensfx/"
2119 version "/opensfx-" version "-source.tar.gz"))
2122 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
2123 (build-system gnu-build-system)
2125 `(("catcodec" ,catcodec)
2126 ("python" ,python2-minimal)))
2129 (list (string-append "INSTALL_DIR=" %output
2130 "/share/games/openttd/baseset/opensfx"))
2132 (modify-phases %standard-phases
2133 (add-after 'unpack 'make-reproducible
2135 ;; Remove the time dependency of the installed tarball by setting
2136 ;; the modification times if its members to 0.
2137 (substitute* "scripts/Makefile.def"
2138 (("-cf") " --mtime=@0 -cf"))
2140 (delete 'configure))))
2141 (home-page "http://dev.openttdcoop.org/projects/opensfx")
2142 (synopsis "Base sounds for OpenTTD")
2143 (description "OpenSFX is a set of free base sounds for OpenTTD which make
2144 it possible to play OpenTTD without requiring the proprietary sound files from
2145 the original Transport Tycoon Deluxe.")
2146 (license license:cc-sampling-plus-1.0)))
2148 (define openttd-openmsx
2150 (name "openttd-openmsx")
2156 "https://binaries.openttd.org/extra/openmsx/"
2157 version "/openmsx-" version "-source.tar.gz"))
2160 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
2161 (build-system gnu-build-system)
2163 `(("python" ,python2-minimal)))
2166 (list (string-append "INSTALL_DIR=" %output
2167 "/share/games/openttd/baseset"))
2169 (modify-phases %standard-phases
2171 (add-after 'install 'post-install
2172 ;; Rename openmsx-version to openmsx
2173 (lambda* (#:key outputs #:allow-other-keys)
2174 (let ((install-directory (string-append (assoc-ref outputs "out")
2175 "/share/games/openttd/baseset")))
2176 (rename-file (string-append install-directory "/openmsx-" ,version)
2177 (string-append install-directory "/openmsx"))
2179 (home-page "http://dev.openttdcoop.org/projects/openmsx")
2180 (synopsis "Music set for OpenTTD")
2181 (description "OpenMSX is a music set for OpenTTD which makes it possible
2182 to play OpenTTD without requiring the proprietary music from the original
2183 Transport Tycoon Deluxe.")
2184 (license license:gpl2)))
2186 (define-public openttd
2188 (inherit openttd-engine)
2192 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
2194 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
2196 `(modify-phases ,phases
2197 (add-after 'install 'install-data
2198 (lambda* (#:key inputs outputs #:allow-other-keys)
2201 (copy-recursively (assoc-ref inputs input)
2202 (assoc-ref outputs "out")))
2203 (list "opengfx" "openmsx" "opensfx"))
2206 `(("timidity++" ,timidity++)
2207 ,@(package-inputs openttd-engine)))
2209 `(("opengfx" ,openttd-opengfx)
2210 ("openmsx" ,openttd-openmsx)
2211 ("opensfx" ,openttd-opensfx)
2212 ,@(package-native-inputs openttd-engine)))))
2214 (define-public openrct2
2221 (uri (string-append "https://github.com/OpenRCT2/OpenRCT2/archive/v"
2225 "1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx"))
2226 (file-name (string-append name "-" version ".tar.gz"))))
2227 (build-system cmake-build-system)
2229 `(#:tests? #f ;; no tests available
2231 (modify-phases %standard-phases
2232 (add-after 'unpack 'fix-usr-share-paths
2233 (lambda* (#:key make-flags outputs #:allow-other-keys)
2234 ;; Fix some references to /usr/share.
2235 (substitute* "src/openrct2/platform/linux.c"
2237 (string-append (assoc-ref %outputs "out") "/share")))))
2238 (add-after 'build 'fix-cmake-install-file
2240 ;; The build system tries to download a file and compare hashes.
2241 ;; Since we have no network, remove this so the install doesn't fail.
2242 (substitute* "cmake_install.cmake"
2243 (("EXPECTED_HASH SHA1=b587d83de508d0b104d14c599b76f8565900fce0")
2245 (inputs `(("curl" ,curl)
2246 ("fontconfig" ,fontconfig)
2247 ("freetype" ,freetype)
2248 ("jansson" ,jansson)
2252 ("openssl" ,openssl)
2254 ("speexdsp" ,speexdsp)
2257 `(("pkg-config" ,pkg-config)))
2258 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2259 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
2260 (description "OpenRCT2 is a free software re-implementation of
2261 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
2262 maintaining an amusement park containing attractions, shops and facilities.
2264 Note that this package does @emph{not} provide the game assets (sounds,
2266 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
2267 ;; regarding assets.
2268 (license license:gpl3+)))
2270 (define-public pinball
2275 (origin (method url-fetch)
2276 (uri (string-append "mirror://sourceforge/pinball/pinball/"
2277 "pinball-" version "/"
2278 "pinball-" version ".tar.gz"))
2281 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2282 (patches (search-patches "pinball-const-fix.patch"
2283 "pinball-cstddef.patch"
2284 "pinball-missing-separators.patch"
2285 "pinball-src-deps.patch"
2286 "pinball-system-ltdl.patch"))))
2287 (build-system gnu-build-system)
2292 ("sdl-image" ,sdl-image)
2293 ("sdl-mixer" ,sdl-mixer)))
2296 (list (string-append "CPPFLAGS=-I"
2297 (assoc-ref %build-inputs "sdl-image")
2299 (assoc-ref %build-inputs "sdl-mixer")
2301 (home-page "http://pinball.sourceforge.net")
2302 (synopsis "Pinball simulator")
2303 (description "The Emilia Pinball Project is a pinball simulator. There
2304 are only two levels to play with, but they are very addictive.")
2305 (license license:gpl2)))
2307 (define-public pioneers
2313 (uri (string-append "http://downloads.sourceforge.net/pio/"
2314 "pioneers-" version ".tar.gz"))
2317 "1p1d18hrfmqcnghip3shkzcs5qkz6j99jvkdkqfi7pqdvjc323cs"))))
2318 (build-system gnu-build-system)
2319 (inputs `(("gtk+" ,gtk+)
2320 ("librsvg" ,librsvg)
2322 (native-inputs `(("intltool" ,intltool)
2323 ("pkg-config" ,pkg-config)))
2324 (synopsis "Board game inspired by The Settlers of Catan")
2325 (description "Pioneers is an emulation of the board game The Settlers of
2326 Catan. It can be played on a local network, on the internet, and with AI
2328 (home-page "http://pio.sourceforge.net/")
2329 (license license:gpl2+)))
2331 (define-public einstein
2337 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2338 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2341 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2342 (patches (search-patches "einstein-build.patch"))))
2343 (build-system gnu-build-system)
2345 `(("freetype" ,freetype)
2346 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2349 `(("font-dejavu" ,font-dejavu)))
2351 `(#:tests? #f ; no check target
2353 (modify-phases %standard-phases
2355 (lambda* (#:key outputs inputs #:allow-other-keys)
2356 (let ((out (assoc-ref outputs "out"))
2357 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2358 "/share/fonts/truetype/DejaVuSans.ttf")))
2359 (substitute* "Makefile"
2360 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2361 ;; The patch above registers a free font for use by the binary,
2362 ;; but the font is copied during the compile phase into a
2363 ;; resources file, so we need to make the ttf file available.
2364 (symlink dejavu "res/DejaVuSans.ttf")
2366 (synopsis "Logic puzzle game")
2367 (description "The goal of this logic game is to open all cards in a 6x6
2368 grid, using a number of hints as to their relative position. The game idea
2369 is attributed to Albert Einstein.")
2370 ;; The original home page has disappeared.
2371 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2372 "http://games.flowix.com/en/index.html"))
2373 ;; License according to
2374 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2375 ;; The source code is a DFSG-sanitized tarball and does not contain any
2376 ;; license information.
2377 (license license:gpl3+)))
2379 (define-public powwow
2386 "https://www.hoopajoo.net/static/projects/powwow-"
2388 (file-name (string-append name "-" version ".tar.gz"))
2391 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2393 `(("ncurses" ,ncurses)))
2394 (build-system gnu-build-system)
2395 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2396 (synopsis "MUD and telnet client")
2398 "POWWOW is a client software which can be used for telnet as well as for
2399 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2400 the chat server psyced with the specific config located at
2401 http://lavachat.symlynx.com/unix/")
2402 (license license:gpl2+)))
2404 (define-public red-eclipse
2405 (let ((release "1.6.0")
2408 '(("acerspyro" "07mzgdahnr3w3w7kf8nmy20r199rimfx9ryqxjdr793sw0vawqd3")
2409 ("actors" "1hkgscfhg0kmwgym0mw56fhcckzbb2hh3nsvd45v4mdfyk0xnrm7")
2410 ("appleflap" "1q4xs3x904mrrbxzv6lpr3lywm8p6i8339ijzy9j091s2wdl51ka")
2411 ("blendbrush" "004md2haysr9w8fj6l7bj9wcfjqrq9wx1rrjf9dv16k5sbrkqza9")
2412 ("caustics" "1qmmv8ds70j1ixy4rvli309vbcyjq1l5j1wri6nbnjay10f9fcgq")
2413 ("crosshairs" "0q1vadg5cai9i6igl6y08774fd05gav0kinbgb2757n47ig50bns")
2414 ("dziq" "1s9248ky2qqy24z9c2vgpisz500dvsaj249pv1fkrxgsypjm1z6v")
2415 ("elyvisions" "15synpms05996v4c4kdl0h899spl4z7si9kl8c4m7rvc2yvin1ga")
2416 ("fonts" "1l4727ai8mphi7n3wcjp2lh3p47nh6w82s5dpqbbjpqr9gilb69j")
2417 ("freezurbern" "0hcdbzs02mvpsfhmahhqjv6pd8lbsag1bm6rpy61ns5qwmhg96ys")
2418 ("john" "1whyvlx87mb83kfb7jhhnwz9s7lry4li8l3xar61vmlqgmsnz33d")
2419 ("jojo" "02wxa93f5al4rlnsdjpd0hlnca0ympnj8481lgdxx70hny8zi3qi")
2420 ("jwin" "1gb4l7lbhr150hml1y0wbyx7266q5nslh6n494wwrrsvp11s2qk8")
2421 ("luckystrike" "0wy2spvhx5k233fsl283250ym5bqvkk8i6i19sw3zvzyxp2p4yq9")
2422 ("maps" "1dmvp9mskval606z5srjd909jpm6qz4fdcpaszkkhfr5ajbj30vq")
2423 ("mayhem" "0hkzzx0rxda70ixw9lfh9v1dpsbn2dj86jrr3zxjgasbgaxw37ax")
2424 ("mikeplus64" "144fxhp4qjqjw3gvhf7ym6rnfxvxc0zvd3f54jg1jgnccc1hfyah")
2425 ("misc" "0bpvibyc6vjhbzsf67xxn85yq2h97xs96icbskwzs2wsd860kq8c")
2426 ("nieb" "0d72wsibk9sg9nhin3fwzz9zljiccyln0fn42y2q2xbd4my23b1k")
2427 ("nobiax" "19lr36ys98cmpp739svjar1j942fbxz6r062gi7ygh89zh9yrgfy")
2428 ("particles" "02pnq8ksl7f6kqxss3aza98jssdq2s41rhkhki71ynavp2a5akar")
2429 ("philipk" "1xkrb7wa1pyhbs4xxx7vnnzsxrqzswk7gjbdac7i7rj0lwnfaij2")
2430 ("projectiles" "1hra0f1ifiddh16fv4pqcr2amf046lf445v0653zkyri43zgrj5f")
2431 ("props" "0ff6a8pz62f4nsk4c9cr50kirw108a661y5j6fvlsjickw3xjmyv")
2432 ("skyboxes" "1lq58dhrdiivq7llkiyqwpi3bwa89r8hbi98p7zjhw7wdn34i6n2")
2433 ("snipergoth" "0d5qf01bxd4dlffgxf8i91zq6mbyjmfd00dpyligpfj6fdbz87gc")
2434 ("sounds" "0z6jmxsr3w735hrdnxypdb0gi399pwkaycv9grjpiqy43j3ic7gj")
2435 ("textures" "0k5a47g2z99xn17vw7bqbp0w726gxmk33g5gwmqvfhxxxzzwimvi")
2436 ("torley" "12x23l8xcv9ard5v76lb210lvp66whsns2p3k3xkd1sabp5ixbd5")
2437 ("trak" "03kmwj47yb3dqzb6k9kilna9ja8c6jcnblvbs72x15767fl496pb")
2438 ("ulukai" "0vvd016a7x981ixif6dnlg45s0ak7i89pgyrgwy2fpd94nl2am15")
2439 ("unnamed" "18sxvdha41njp6g8wn56mjy6w9x778c793gh8fr0h9cnysb5gfmi")
2440 ("vanities" "1p38mc2566bmb4vdyr9n9s6fkwmynp2xlpdq2a97gzgi4nmm0232")
2441 ("vegetation" "0pf3qvqzabdcri5za61z6m89b5hq7sd3q0idkazmx88a62mcclkb")
2442 ("weapons" "1jr05y9qhhx53plvir35srvv3cmn6wa065p3bskx6h1x6dcbx3c6")
2443 ("wicked" "14b9f92h8hccp7a015z6rqgbs8236sdyxnwsq991ylnap7cbwvam"))))
2445 (name "red-eclipse")
2446 (version (if (zero? revision)
2448 (string-append release "-"
2449 (number->string revision))))
2452 (uri (string-append "https://github.com/red-eclipse/base"
2453 "/archive/v" release ".tar.gz"))
2454 (file-name (string-append name "-" version ".tar.gz"))
2457 "1vs9k6f5fgsiy1n72imlqm8khjwm8cryc08zwd4gr7yxlxv45bs0"))))
2458 (build-system gnu-build-system)
2460 `(#:tests? #f ; no check target
2461 #:make-flags (list "CC=gcc" "-Csrc"
2462 (string-append "INSTDIR="
2463 (assoc-ref %outputs "out") "/bin")
2464 (string-append "prefix="
2465 (assoc-ref %outputs "out")))
2467 (modify-phases %standard-phases
2468 (add-after 'unpack 'unpack-data
2469 (lambda* (#:key inputs #:allow-other-keys)
2470 (delete-file-recursively "data")
2472 (for-each (lambda (name)
2473 (invoke "tar" "-xvf"
2474 (assoc-ref inputs name)
2478 name "-" ,release "/"
2480 (list ,@(map car data-sources)))
2482 (add-after 'unpack-data 'add-store-data-package-path-as-default
2483 (lambda* (#:key outputs #:allow-other-keys)
2484 (substitute* "src/engine/server.cpp"
2485 (("(else[[:space:]]*)((addpackagedir\\()\"data\"(\\);))"
2488 addpackagedir_original
2490 addpackagedir_close)
2491 (string-append else_part
2495 (assoc-ref outputs "out")
2496 "/share/redeclipse/data\""
2499 addpackagedir_original
2502 (delete 'configure) ; no configure script
2503 (add-after 'set-paths 'set-sdl-paths
2504 (lambda* (#:key inputs #:allow-other-keys)
2506 (string-append (assoc-ref inputs "sdl-union")
2509 (add-after 'install 'copy-data
2510 (lambda* (#:key outputs #:allow-other-keys)
2511 (let ((out (assoc-ref outputs "out")))
2512 (copy-recursively "config"
2513 (string-append out "/config"))
2514 (copy-file "doc/examples/servinit.cfg"
2515 (string-append out "/config/servinit.cfg"))
2516 (copy-recursively "data"
2517 (string-append out "/share/redeclipse/data"))
2518 (mkdir-p (string-append out "/lib/redeclipse"))
2519 (symlink (string-append out "/share/redeclipse/data")
2520 (string-append out "/lib/redeclipse/data")))
2522 (add-after 'copy-data 'wrap-program
2523 (lambda* (#:key inputs outputs #:allow-other-keys)
2524 (let* ((out (assoc-ref outputs "out"))
2525 (bin (string-append out "/bin")))
2526 (with-directory-excursion bin
2527 (rename-file "redeclipse_linux"
2528 ".redeclipse_linux-real")
2529 (rename-file "redeclipse_server_linux"
2530 ".redeclipse_server_linux-real")
2531 (call-with-output-file "redeclipse_linux"
2533 (format port "#!~a/bin/sh
2534 # Run the thing from its home, otherwise it just bails out.
2536 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2537 (assoc-ref inputs "bash") ;implicit input
2539 (string-append bin))))
2540 (call-with-output-file "redeclipse_server_linux"
2542 (format port "#!~a/bin/sh
2543 # Run the thing from its home, otherwise it just bails out.
2545 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2546 (assoc-ref inputs "bash") ;implicit input
2548 (string-append bin))))
2549 (chmod "redeclipse_linux" #o555)
2550 (chmod "redeclipse_server_linux" #o555)))
2552 (native-inputs `(("pkg-config" ,pkg-config)))
2556 ("sdl-union" ,(sdl-union (list sdl2
2559 ;; Create origin records for the many separate data packages.
2560 ,@(map (match-lambda
2566 "https://github.com/red-eclipse/"
2567 name "/archive/v" release ".tar.gz"))
2568 (sha256 (base32 hash))
2569 (file-name (string-append name "-" version
2572 (home-page "http://redeclipse.net/")
2573 (synopsis "Arena shooter derived from the Cube 2 engine")
2575 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2576 Offering an innovative parkour system and distinct but all potent weapons,
2577 Red Eclipse provides fast paced and accessible gameplay.")
2578 ;; The engine is under Zlib; data files are covered by the other
2579 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2580 (license (list license:expat
2586 (define-public grue-hunter
2588 (name "grue-hunter")
2592 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2595 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2596 (build-system trivial-build-system) ; no Makefile.PL
2597 (arguments `(#:modules ((guix build utils))
2600 (use-modules (guix build utils))
2601 (use-modules (srfi srfi-1))
2603 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2604 (perl (string-append (assoc-ref %build-inputs
2607 (gzip (string-append (assoc-ref %build-inputs
2610 (tar (string-append (assoc-ref %build-inputs
2613 (out (assoc-ref %outputs "out"))
2614 (bin (string-append out "/bin"))
2615 (doc (string-append out
2616 "/share/doc/grue-hunter")))
2617 (copy-file tarball "grue-hunter.tar.gz")
2618 (invoke gzip "-d" "grue-hunter.tar.gz")
2619 (invoke tar "xvf" "grue-hunter.tar")
2622 (copy-file "grue-hunter/gh.pl"
2623 (string-append bin "/grue-hunter"))
2624 (patch-shebang (string-append bin "/grue-hunter")
2627 (install-file "grue-hunter/AGPLv3.txt" doc)
2630 (inputs `(("perl" ,perl)
2633 ("tarball" ,source)))
2634 (home-page "http://jxself.org/grue-hunter.shtml")
2635 (synopsis "Text adventure game")
2637 "Grue Hunter is a text adventure game written in Perl. You must make
2638 your way through an underground cave system in search of the Grue. Can you
2639 capture it and get out alive?")
2640 (license license:agpl3+)))
2642 (define-public lierolibre
2648 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
2649 version "/+download/lierolibre-"
2653 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
2655 (search-patches "lierolibre-check-unaligned-access.patch"
2656 "lierolibre-try-building-other-arch.patch"
2657 "lierolibre-remove-arch-warning.patch"
2658 "lierolibre-newer-libconfig.patch"
2659 "lierolibre-is-free-software.patch"))
2660 (modules '((guix build utils)))
2663 ;; Delete pre-compiled files.
2664 (delete-file "data/LIERO.CHR")
2665 (delete-file "data/LIERO.SND")
2667 (build-system gnu-build-system)
2669 `(("imagemagick" ,imagemagick)
2670 ("pkg-config" ,pkg-config)
2671 ("util-linux" ,util-linux)
2675 ("libconfig" ,libconfig)
2676 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
2678 (home-page "https://gitlab.com/lierolibre/lierolibre")
2679 (synopsis "Old-school earthworm action game")
2681 "lierolibre is an earthworm action game where you fight another player
2682 (or the computer) underground using a wide array of weapons.
2686 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
2687 and Game of Tag, plus AI-players without true intelligence!
2688 @item Dat nostalgia.
2689 @item Extensions via a hidden F1 menu:
2692 @item Game controller support
2693 @item Powerlevel palettes
2695 @item Ability to write game variables to plain text files.
2696 @item Ability to load game variables from both EXE and plain text files.
2697 @item Scripts to extract and repack graphics, sounds and levels.
2700 To switch between different window sizes, use F6, F7 and F8, to switch to
2701 fullscreen, use F5 or Alt+Enter.")
2702 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
2703 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
2705 (define-public warzone2100
2707 (name "warzone2100")
2711 (uri (string-append "mirror://sourceforge/" name
2712 "/releases/" version "/" name "-" version
2716 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2717 (build-system gnu-build-system)
2720 (modify-phases %standard-phases
2721 (add-after 'unpack 'link-tests-with-qt
2723 (substitute* "tests/Makefile.in"
2724 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2725 (string-append prefix "$(QT5_LIBS) ")))
2727 (add-after 'unpack 'remove-reference-to-missing-file
2729 (substitute* "icons/Makefile.in"
2730 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2732 (add-after 'unpack 'patch-for-qt5.8
2734 (substitute* "lib/widget/editbox.cpp"
2738 (native-inputs `(("pkg-config" ,pkg-config)
2741 (inputs `(("fontconfig" ,fontconfig)
2742 ("freetype" ,freetype)
2743 ("fribidi" ,fribidi)
2745 ("libtheora" ,libtheora)
2746 ("libvorbis" ,libvorbis)
2747 ("libxrandr" ,libxrandr)
2751 ("qtscript" ,qtscript)
2752 ("openssl" ,openssl)
2753 ("quesoglc" ,quesoglc)
2755 (home-page "http://wz2100.net")
2756 (synopsis "3D Real-time strategy and real-time tactics game")
2758 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2759 modes. An extensive tech tree with over 400 different technologies, combined
2760 with the unit design system, allows for a wide variety of possible units and
2762 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2763 (license (list license:bsd-3
2768 license:lgpl2.1+))))
2770 (define-public starfighter
2772 (name "starfighter")
2777 "mirror://savannah/starfighter/"
2778 (version-major+minor version) "/"
2779 name "-" version "-src.tar.gz"))
2782 "1646hpjq8bz2fkfkja1dah511hn7zd2r7da4w9c9blhad3p5732v"))))
2783 (build-system gnu-build-system)
2785 `(("pkg-config" ,pkg-config)))
2788 ("sdl2-image" ,sdl2-image)
2789 ("sdl2-mixer" ,sdl2-mixer)))
2790 (home-page "http://starfighter.nongnu.org/")
2791 (synopsis "2D scrolling shooter game")
2793 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2794 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2795 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2796 way, you will encounter new foes, make new allies, and assist local rebels
2797 in strikes against the evil corporation.")
2798 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2799 (license (list license:gpl3+
2803 license:public-domain))))
2805 (define-public chromium-bsu
2807 (name "chromium-bsu")
2808 (version "0.9.16.1")
2811 (uri (string-append "mirror://sourceforge/" name
2812 "/Chromium B.S.U. source code/"
2813 name "-" version ".tar.gz"))
2816 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
2817 (build-system gnu-build-system)
2818 (native-inputs `(("pkg-config" ,pkg-config)))
2819 (inputs `(("gettext" ,gettext-minimal)
2821 ("quesoglc" ,quesoglc)
2822 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2823 (home-page "http://chromium-bsu.sourceforge.net/")
2824 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2826 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2827 are responsible for delivering supplies to the troops on the front line. Your
2828 ship has a small fleet of robotic fighters which you control from the relative
2829 safety of the Chromium vessel.")
2830 ;; Clarified Artistic License for everything but sound, which is covered
2831 ;; by the Expat License.
2832 (license (list license:clarified-artistic license:expat))))
2834 (define-public tuxpaint
2837 (version "0.9.22") ;keep VER_DATE below in sync
2841 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2842 version "/tuxpaint-" version ".tar.gz"))
2845 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2846 (modules '((guix build utils)))
2849 ;; Remove win32 directory which contains binary dll's and the
2850 ;; deprecated visualc directory.
2851 (for-each delete-file-recursively '("win32" "visualc"))
2852 (substitute* "Makefile"
2853 ;; Do not rely on $(GPERF) being an absolute file name
2854 (("\\[ -x \\$\\(GPERF\\) \\]")
2855 "$(GPERF) --version >/dev/null 2>&1"))
2857 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2858 (build-system gnu-build-system)
2861 ("pkg-config" ,pkg-config)))
2864 ("fribidi" ,fribidi)
2865 ("gettext" ,gettext-minimal)
2867 ("librsvg" ,librsvg)
2868 ("libpaper" ,libpaper)
2870 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2871 ;; TODO: Use system fonts rather than those in data/fonts
2873 `(#:make-flags `("VER_DATE=2014-08-23"
2874 "GPERF=gperf" "CC=gcc"
2875 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2876 ,(string-append "PREFIX=" %output)
2877 "GNOME_PREFIX=$(PREFIX)"
2878 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2879 #:parallel-build? #f ;fails on some systems
2880 #:tests? #f ;No tests
2881 #:phases (modify-phases %standard-phases
2882 (delete 'configure) ;no configure phase
2883 (add-after 'install 'fix-import
2884 (lambda* (#:key inputs outputs #:allow-other-keys)
2885 (let* ((out (assoc-ref outputs "out"))
2886 (net (assoc-ref inputs "netpbm"))
2887 (tpi (string-append out "/bin/tuxpaint-import")))
2889 ;; Point to installation prefix so that the default
2890 ;; configure file is found.
2891 (("/usr/local") out))
2892 ;; tuxpaint-import uses a bunch of programs from
2893 ;; netpbm, so make sure it knows where those are
2896 (,(string-append net "/bin"))))))))))
2897 (native-search-paths
2898 (list (search-path-specification
2899 (variable "TUXPAINT_STAMPS_PATH")
2900 (files '("share/tuxpaint/stamps")))))
2901 (home-page "http://www.tuxpaint.org")
2902 (synopsis "Drawing software for children")
2904 "Tux Paint is a free drawing program designed for young children (kids
2905 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2906 and an encouraging cartoon mascot who helps guide children as they use the
2907 program. It provides a blank canvas and a variety of drawing tools to help
2908 your child be creative.")
2909 (license license:gpl2+)))
2911 (define-public tuxpaint-stamps
2913 (name "tuxpaint-stamps")
2914 (version "2014.08.23")
2918 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2919 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2920 "/tuxpaint-stamps-" version ".tar.gz"))
2923 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2924 (build-system trivial-build-system)
2929 `(#:modules ((guix build utils))
2931 (use-modules (guix build utils))
2934 (assoc-ref %build-inputs "tar") "/bin" ":"
2935 (assoc-ref %build-inputs "gzip") "/bin"))
2936 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2937 (chdir (string-append ,name "-" ,version))
2938 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2940 (copy-recursively "stamps" dir))
2942 (home-page (package-home-page tuxpaint))
2943 (synopsis "Stamp images for Tux Paint")
2945 "This package contains a set of \"Rubber Stamp\" images which can be used
2946 with the \"Stamp\" tool within Tux Paint.")
2947 (license license:gpl2+)))
2949 (define-public tuxpaint-config
2951 (name "tuxpaint-config")
2952 (version "0.0.13") ;keep VER_DATE below in sync
2956 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2957 version "/tuxpaint-config-" version ".tar.gz"))
2960 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2961 (build-system gnu-build-system)
2963 `(("gettext" ,gettext-minimal)))
2966 ("libpaper" ,libpaper)
2967 ;; TODO: Should the following be propagated by fltk?
2972 `(#:make-flags `("VER_DATE=2014-08-23"
2973 "CONFDIR=/etc/tuxpaint" ;don't write to store
2974 ,(string-append "PREFIX=" %output)
2975 "GNOME_PREFIX=$(PREFIX)")
2976 #:parallel-build? #f ;race conditions
2977 #:tests? #f ;no tests
2978 #:phases (modify-phases %standard-phases
2979 (delete 'configure) ;no configure phase
2980 (add-before 'install 'gzip-no-name
2982 (substitute* "Makefile"
2983 ;; tuxpaint-config compresses its own documentation;
2984 ;; make sure it uses flags for reproducibility.
2985 (("gzip") "gzip --no-name"))))
2986 (add-before 'install 'make-install-dirs
2987 (lambda* (#:key outputs #:allow-other-keys)
2988 (let ((out (assoc-ref outputs "out")))
2989 (mkdir-p (string-append out "/bin"))
2991 (home-page (package-home-page tuxpaint))
2992 (synopsis "Configure Tux Paint")
2994 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2995 (license license:gpl2))) ;no "or later" present
2997 (define-public supertux
3003 (uri (string-append "https://github.com/SuperTux/supertux/"
3004 "releases/download/v" version "/SuperTux-v"
3005 version "-Source.tar.gz"))
3008 "1i8avad7w7ikj870z519j383ldy29r6f956bs38cbr8wk513pp69"))))
3011 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
3012 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
3013 (build-system cmake-build-system)
3014 (inputs `(("sdl2" ,sdl2)
3015 ("sdl2-image" ,sdl2-image)
3016 ("sdl2-mixer" ,sdl2-mixer)
3020 ("libvorbis" ,libvorbis)
3025 (native-inputs `(("pkg-config" ,pkg-config)))
3026 (synopsis "2D platformer game")
3027 (description "SuperTux is a free classic 2D jump'n run sidescroller game
3028 in a style similar to the original Super Mario games covered under
3030 (home-page "https://supertuxproject.org/")
3031 (license license:gpl3+)))
3033 (define-public tintin++
3039 (uri (string-append "mirror://sourceforge/tintin"
3040 "/TinTin++ Source Code/" version
3041 "/tintin" "-" version ".tar.gz"))
3044 "1g7bh8xs1ml0iyraps3a3dzaycci922y7fk5j0wyr4ssyjzsy8nx"))))
3046 `(("gnutls" ,gnutls)
3048 ("readline" ,readline)
3051 '(#:tests? #f ; no test suite
3053 (modify-phases %standard-phases
3054 ;; The source is in tt/src.
3055 (add-before 'configure 'chdir
3059 (build-system gnu-build-system)
3060 (home-page "http://tintin.sourceforge.net/")
3061 (synopsis "MUD client")
3063 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
3064 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
3065 as well as those required to login via telnet on Linux / Mac OS X servers, and an
3066 auto mapper with a VT100 map display.")
3067 (license license:gpl2+)))
3074 (origin (method url-fetch)
3076 "https://github.com/sgimenez/laby/archive/"
3077 name "-" version ".tar.gz"))
3080 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
3081 (patches (search-patches "laby-make-install.patch"))))
3082 (build-system gnu-build-system)
3084 `(("lablgtk" ,lablgtk)
3086 ("ocaml-findlib" ,ocaml-findlib)))
3089 (modify-phases %standard-phases
3091 (add-before 'build 'setenv
3092 (lambda* (#:key inputs #:allow-other-keys)
3093 (let ((lablgtk (assoc-ref inputs "lablgtk")))
3094 (setenv "LD_LIBRARY_PATH"
3095 (string-append lablgtk "/lib/ocaml/stublibs"))))))
3096 #:tests? #f ; no 'check' target
3098 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
3099 (home-page "https://sgimenez.github.io/laby/")
3100 (synopsis "Programming game")
3101 (description "Learn programming, playing with ants and spider webs ;-)
3102 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
3103 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
3104 programmers may also add their own favorite language.")
3105 (license license:gpl3+)))
3107 (define-public bambam
3114 (uri (string-append "https://github.com/porridge/bambam/archive/"
3116 (file-name (string-append name "-" version ".tar.gz"))
3119 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
3120 (build-system python-build-system)
3122 `(#:python ,python-2
3123 #:tests? #f ; no tests
3125 (modify-phases %standard-phases
3127 (add-before 'install 'patch-data-dir-location
3129 (substitute* "bambam.py"
3130 (("'data'") "'../share/bambam/data'"))
3133 (lambda* (#:key outputs #:allow-other-keys)
3134 (let* ((out (assoc-ref outputs "out"))
3135 (bin (string-append out "/bin"))
3136 (share (string-append out "/share")))
3138 (copy-file "bambam.py" (string-append bin "/bambam"))
3139 (install-file "bambam.6" (string-append share "/man/man6"))
3140 (copy-recursively "data" (string-append share "/bambam/data")))
3143 `(("python-pygame" ,python-pygame)))
3144 (home-page "https://github.com/porridge/bambam")
3145 (synopsis "Keyboard mashing and doodling game for babies")
3146 (description "Bambam is a simple baby keyboard (and gamepad) masher
3147 application that locks the keyboard and mouse and instead displays bright
3148 colors, pictures, and sounds.")
3149 (license license:gpl3+)))
3151 (define-public mrrescue
3158 "https://github.com/SimonLarsen/mrrescue/releases/"
3159 "download/" version "/" name version ".love"))
3160 (file-name (string-append name "-" version ".love"))
3163 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
3164 (build-system trivial-build-system)
3166 '(#:modules ((guix build utils))
3169 (use-modules (guix build utils))
3170 (let* ((out (assoc-ref %outputs "out"))
3171 (bindir (string-append out "/bin"))
3172 (prog (string-append bindir "/mrrescue"))
3173 (source (assoc-ref %build-inputs "source"))
3174 (bash (string-append (assoc-ref %build-inputs "bash")
3176 (love (string-append (assoc-ref %build-inputs "love")
3179 (with-output-to-file prog
3181 (format #t "#!~a~%" bash)
3182 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
3188 (home-page "http://tangramgames.dk/games/mrrescue")
3189 (synopsis "Arcade-style fire fighting game")
3191 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
3192 civilians from burning buildings. The game features fast paced fire
3193 extinguishing action, intense boss battles, a catchy soundtrack and lots of
3194 throwing people around in pseudo-randomly generated buildings.")
3195 (license (list license:zlib ; for source code
3196 license:cc-by-sa3.0)))) ; for graphics and music assets
3198 (define-public hyperrogue
3202 ;; When updating this package, be sure to update the "hyperrogue-data"
3203 ;; origin in native-inputs.
3207 "http://www.roguetemple.com/z/hyper/"
3208 name (string-join (string-split version #\.) "")
3212 "0f68pcnsgl406dhm91ckn3f364bar9m9i5njp9vrmvhvv9p2icy0"))))
3213 (build-system gnu-build-system)
3215 `(#:tests? #f ; no check target
3216 #:make-flags '("CXXFLAGS=-std=c++11")
3218 (modify-phases %standard-phases
3219 (add-after 'set-paths 'set-sdl-paths
3220 (lambda* (#:key inputs #:allow-other-keys)
3222 (string-append (assoc-ref inputs "sdl-union")
3224 ;; Fix font and music paths.
3226 (lambda* (#:key inputs outputs #:allow-other-keys)
3227 (let* ((out (assoc-ref outputs "out"))
3228 (share-dir (string-append out "/share/hyperrogue"))
3229 (dejavu-dir (string-append
3230 (assoc-ref inputs "font-dejavu")
3231 "/share/fonts/truetype"))
3232 (dejavu-font "DejaVuSans-Bold.ttf")
3233 (music-file "hyperrogue-music.txt"))
3234 (substitute* "basegraph.cpp"
3236 (string-append dejavu-dir "/" dejavu-font)))
3237 (substitute* "sound.cpp"
3238 (((string-append "\\./" music-file))
3239 (string-append share-dir "/" music-file))
3241 (string-append share-dir "/sounds/")))
3242 (substitute* music-file
3244 (string-append share-dir "/sounds/"))))
3247 (lambda* (#:key inputs outputs #:allow-other-keys)
3248 (let* ((out (assoc-ref outputs "out"))
3249 (bin (string-append out "/bin"))
3250 (share-dir (string-append out "/share/hyperrogue")))
3252 (copy-file "hyper" (string-append bin "/hyperrogue"))
3253 (install-file "hyperrogue-music.txt" share-dir))
3255 (add-after 'install 'install-data
3256 (lambda* (#:key inputs outputs #:allow-other-keys)
3257 (let* ((data (assoc-ref inputs "hyperrogue-data"))
3258 (out (assoc-ref outputs "out"))
3259 (sounds (string-append out "/share/hyperrogue/sounds"))
3260 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
3262 ;; Extract media license information into sounds directory.
3264 (system* unzip "-j" data
3267 (string-join (string-split ,version #\.) "")
3268 "/sounds/credits.txt") "-d" sounds))
3269 ;; Extract sounds and music into sounds directory.
3271 (system* "unzip" "-j" data
3274 (string-join (string-split ,version #\.) "")
3275 "/*.ogg") "-d" sounds)))))))))
3277 `(("hyperrogue-data"
3282 "http://www.roguetemple.com/z/hyper/" name
3283 (string-join (string-split version #\.) "")
3287 "0bnp077qvlmxjlz1jjd6kpghlv9flxc19ac1xq3m3wyq1w9p3pab"))))
3290 `(("font-dejavu" ,font-dejavu)
3293 ("sdl-union" ,(sdl-union (list sdl
3297 (home-page "http://www.roguetemple.com/z/hyper/")
3298 (synopsis "Non-euclidean graphical rogue-like game")
3300 "HyperRogue is a game in which the player collects treasures and fights
3301 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3302 plane and not in euclidean space.
3304 In HyperRogue, the player can move through different parts of the world, which
3305 are home to particular creatures and may be subject to their own rules of
3308 While the game can use ASCII characters to display the the classical rogue
3309 symbols, it still needs graphics to render the non-euclidean world.")
3310 (license (list license:bsd-3 ; glew.c, mtrand.*
3311 license:cc-by-sa3.0 ; music
3312 license:cc-by-sa4.0 ; sounds
3314 license:public-domain ; direntx.*, some sounds
3315 license:zlib ; savepng.*
3316 license:gpl2+)))) ; remaining files
3318 (define-public kobodeluxe
3324 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3325 version ".tar.bz2"))
3328 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3329 (patches (search-patches
3330 "kobodeluxe-const-charp-conversion.patch"
3331 "kobodeluxe-enemies-pipe-decl.patch"
3332 "kobodeluxe-graphics-window-signed-char.patch"
3333 "kobodeluxe-manpage-minus-not-hyphen.patch"
3334 "kobodeluxe-midicon-segmentation-fault.patch"
3335 "kobodeluxe-paths.patch"))))
3336 (build-system gnu-build-system)
3339 (list (string-append "CPPFLAGS=-I"
3340 (assoc-ref %build-inputs "sdl-union")
3342 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3343 (synopsis "Shooter with space station destruction")
3345 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3346 for Un*x systems with X11.")
3347 (home-page "http://olofson.net/kobodl/")
3348 (license license:gpl2+)))
3350 (define-public freeciv
3357 (uri (list (string-append
3358 "http://files.freeciv.org/stable/freeciv-"
3361 "mirror://sourceforge/freeciv/Freeciv%20"
3362 (version-major+minor version) "/" version
3363 "/freeciv-" version ".tar.bz2")))
3366 "1lmydnnqraa947l7gdz6xgm0bgks1ywsivp9h4v8jr3avcv6gqzz"))))
3367 (build-system gnu-build-system)
3370 ("cyrus-sasl" ,cyrus-sasl)
3372 ("sdl-mixer" ,sdl-mixer)
3375 `(("pkg-config" ,pkg-config)))
3376 (home-page "http://www.freeciv.org/")
3377 (synopsis "Turn based empire building strategy game")
3378 (description "Freeciv is a turn based empire building strategy game
3379 inspired by the history of human civilization. The game commences in
3380 prehistory and your mission is to lead your tribe from the Stone Age
3382 (license license:gpl2+)))
3384 (define-public no-more-secrets
3386 (name "no-more-secrets")
3391 (uri (string-append "https://github.com/bartobri/no-more-secrets/"
3392 "archive/v" version ".tar.gz"))
3393 (file-name (string-append name "-" version ".tar.gz"))
3396 "1kpx1rirc3i7fb4lymp0hx5rqr0s2ay4za261rw3bcy6d23l1kyg"))))
3397 (build-system gnu-build-system)
3400 #:make-flags (list "CC=gcc" "all-ncurses"
3401 (string-append "prefix="
3402 (assoc-ref %outputs "out")))
3404 (modify-phases %standard-phases
3405 (delete 'configure))))
3407 `(("ncurses" ,ncurses)))
3408 (home-page "https://github.com/bartobri/no-more-secrets")
3409 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
3411 "@code{No More Secrets} provides a command line tool called \"nms\"
3412 that recreates the famous data decryption effect seen on screen in the 1992
3415 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
3416 it will apply the hollywood effect, initially showing encrypted data, then
3417 starting a decryption sequence to reveal the original plaintext characters.")
3418 (license license:expat)))
3420 (define-public megaglest-data
3422 (name "megaglest-data")
3428 "https://github.com/MegaGlest/megaglest-data"
3429 "/releases/download/" version "/megaglest-data-"
3433 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
3434 (build-system cmake-build-system)
3437 (home-page "https://megaglest.org/")
3438 (synopsis "Data files for MegaGlest")
3439 (description "This package contains the data files required for MegaGlest.")
3440 (license license:cc-by-sa3.0)))
3442 (define-public megaglest
3450 "https://github.com/MegaGlest/megaglest-source"
3451 "/releases/download/" version "/megaglest-source-"
3455 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
3456 (build-system cmake-build-system)
3459 ("fontconfig" ,fontconfig)
3462 ("libjpeg-turbo" ,libjpeg-turbo)
3463 ("megaglest-data" ,megaglest-data)
3465 ("miniupnpc" ,miniupnpc)
3467 ("libircclient" ,libircclient)
3469 ("libvorbis" ,libvorbis)
3472 ("wxwidgets" ,wxwidgets)))
3474 `(("cppunit" ,cppunit)
3475 ("pkg-config" ,pkg-config)))
3478 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
3479 (assoc-ref %build-inputs "megaglest-data")
3481 "-DBUILD_MEGAGLEST_TESTS=ON")
3483 (modify-phases %standard-phases
3484 (add-after 'unpack 'fix-ini-search-path
3485 (lambda* (#:key outputs #:allow-other-keys)
3486 (substitute* "source/glest_game/global/config.cpp"
3487 (("/usr/share/megaglest/")
3488 (string-append (assoc-ref outputs "out")
3489 "/share/megaglest/"))))))
3490 #:test-target "megaglest_tests"))
3491 (home-page "https://megaglest.org/")
3492 (synopsis "3D real-time strategy (RTS) game")
3493 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
3494 game, where you control the armies of one of seven different factions: Tech,
3495 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
3496 (license license:gpl2+)))
3498 (define-public freegish
3499 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
3503 (version (string-append "0-" revision "." (string-take commit 9)))
3507 (url "https://github.com/freegish/freegish.git")
3509 (file-name (git-file-name name version))
3512 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
3513 (modules '((guix build utils)))
3514 ;; The audio files in the "music" directory are licensed under
3515 ;; CC-BY-NC, so we delete them.
3518 (delete-file-recursively "music")
3520 (build-system cmake-build-system)
3522 `(#:tests? #f ; no tests included
3524 (list "-DCMAKE_INSTALL_FHS=ON")
3526 (modify-phases %standard-phases
3527 (add-after 'unpack 'set-DATAPATH
3528 (lambda* (#:key outputs #:allow-other-keys)
3529 (substitute* "CMakeLists.txt"
3530 (("^option\\(INSTALL_FHS" line)
3531 (string-append "add_definitions(-DDATAPATH=\""
3532 (assoc-ref outputs "out") "/share/freegish\")\n"
3536 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
3538 ("libvorbis" ,libvorbis)
3543 (home-page "https://github.com/freegish/freegish")
3544 (synopsis "Side-scrolling physics platformer with a ball of tar")
3545 (description "In FreeGish you control Gish, a ball of tar who lives
3546 happily with his girlfriend Brea, until one day a mysterious dark creature
3547 emerges from a sewer hole and pulls her below ground.")
3548 ;; The textures are available under the Expat license. All other assets
3549 ;; (including levels) are covered under CC-BY-SA or public domain. The
3550 ;; source code is under GPLv2+.
3551 (license (list license:gpl2+
3553 license:public-domain
3554 license:cc-by-sa3.0)))))
3556 (define-public cdogs-sdl
3557 ;; XXX: Use version 0.6.7 when it's available.
3558 (let ((commit "bab2031369b9ea2dbeb7eedbde10a43dd8ca83db")
3562 (version (git-version "0.6.6" revision commit))
3566 (url "https://github.com/cxong/cdogs-sdl.git")
3568 (file-name (git-file-name name version))
3571 "09sfqhrrffhvxbhigvrxfmai52w01w3f9kjmixjhqvqlkhn77c9n"))))
3572 (build-system cmake-build-system)
3575 (list (string-append "-DCDOGS_DATA_DIR="
3576 (assoc-ref %outputs "out")
3577 "/share/cdogs-sdl/"))))
3581 ("sdl2-image" ,sdl2-image)
3582 ("sdl2-mixer" ,sdl2-mixer)))
3583 (home-page "https://cxong.github.io/cdogs-sdl/")
3584 (synopsis "Classic overhead run-and-gun game")
3585 (description "C-Dogs SDL is a classic overhead run-and-gun game,
3586 supporting up to 4 players in co-op and deathmatch modes. Customize your
3587 player, choose from many weapons, and blast, slide and slash your way through
3588 over 100 user-created campaigns.")
3589 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
3590 ;; CC0/CC-BY/CC-BY-SA for assets.
3591 (license (list license:gpl2+
3596 license:cc-by-sa3.0)))))
3604 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
3605 version "/kiki-" version "-src.tgz"))
3608 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
3609 (modules '((guix build utils)))
3612 (for-each delete-file (find-files "." "\\.dll$"))
3615 (search-patches "kiki-level-selection-crash.patch"
3616 "kiki-makefile.patch"
3617 "kiki-missing-includes.patch"
3618 "kiki-portability-64bit.patch"))))
3619 (build-system gnu-build-system)
3621 `(#:tests? #f ; there are no tests
3622 #:make-flags '("CXX=g++")
3624 (modify-phases %standard-phases
3626 (lambda* (#:key inputs outputs #:allow-other-keys)
3627 (setenv "CPLUS_INCLUDE_PATH"
3628 (string-append (assoc-ref inputs "sdl-union")
3630 (assoc-ref inputs "python")
3631 "/include/python2.7:"
3632 (getenv "CPLUS_INCLUDE_PATH")))
3633 (substitute* "src/main/main.cpp"
3634 (("#include <SDL.h>" line)
3635 (string-append line "
3636 #define K_INCLUDE_GLUT
3637 #include \"KIncludeTools.h\""))
3638 (("// initialize SDL" line)
3639 (string-append "glutInit(&argc,argv);\n" line)))
3640 (substitute* "src/main/KikiController.cpp"
3641 (("getenv\\(\"KIKI_HOME\"\\)")
3642 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
3643 (substitute* "linux/Makefile"
3645 (string-append line " -fpermissive"))
3646 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
3648 (string-append "PYTHONHOME = "
3649 (assoc-ref inputs "python")
3651 (("\\$\\(GLLIBS\\)" line)
3652 (string-append line " -lm -lpython2.7")))
3653 (substitute* "src/main/KikiPythonWidget.h"
3654 (("#define __KikiPythonWidget" line)
3655 (string-append line "\n#include \"KikiPython.h\"")))
3657 (add-before 'build 'build-kodilib
3658 (lambda* (#:key make-flags #:allow-other-keys)
3659 (with-directory-excursion "kodilib/linux"
3660 (zero? (apply system* "make" make-flags)))))
3661 (add-after 'build-kodilib 'chdir
3662 (lambda _ (chdir "linux") #t))
3664 (lambda* (#:key outputs #:allow-other-keys)
3665 (let* ((out (assoc-ref outputs "out"))
3666 (bin (string-append out "/bin"))
3667 (share (string-append out "/share/kiki")))
3670 (install-file "kiki" bin)
3671 (copy-recursively "../py" (string-append share "/py"))
3672 (copy-recursively "../sound" (string-append share "/sound"))
3676 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
3677 ("freeglut" ,freeglut-2.8)
3678 ("sdl-union" ,(sdl-union (list sdl
3681 ("python" ,python-2)))
3684 (home-page "http://kiki.sourceforge.net/")
3685 (synopsis "3D puzzle game")
3686 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
3687 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
3688 small robot living in the nano world, repair its maker.")
3689 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
3690 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
3691 ;; for a statement from the author.
3692 (license license:public-domain)))
3694 (define-public teeworlds
3700 (uri (string-append "https://github.com/teeworlds/teeworlds/"
3701 "archive/" version "-release.tar.gz"))
3702 (file-name (string-append name "-" version ".tar.gz"))
3705 "1mqhp6xjl75l49050cid36wxyjn1qr0vjx1c709dfg1lkvmgs6l3"))
3706 (modules '((guix build utils)))
3709 (for-each delete-file-recursively
3710 '("src/engine/external/wavpack/"
3711 "src/engine/external/zlib/"))
3714 (search-patches "teeworlds-use-latest-wavpack.patch"))))
3715 (build-system gnu-build-system)
3717 `(#:tests? #f ; no tests included
3719 (modify-phases %standard-phases
3721 (lambda* (#:key outputs #:allow-other-keys)
3722 ;; Embed path to assets.
3723 (substitute* "src/engine/shared/storage.cpp"
3724 (("#define DATA_DIR.*")
3725 (string-append "#define DATA_DIR \""
3726 (assoc-ref outputs "out")
3727 "/share/teeworlds/data"
3730 ;; Bam expects all files to have a recent time stamp.
3731 (for-each (lambda (file)
3735 ;; Do not use bundled libraries.
3736 (substitute* "bam.lua"
3737 (("if config.zlib.value == 1 then")
3741 settings.link.libs:Add(\"wavpack\")\n"))
3742 (substitute* "src/engine/client/sound.cpp"
3743 (("#include <engine/external/wavpack/wavpack.h>")
3744 "#include <wavpack/wavpack.h>"))
3748 (zero? (system* "bam" "-a" "-v" "release"))))
3750 (lambda* (#:key outputs #:allow-other-keys)
3751 (let* ((out (assoc-ref outputs "out"))
3752 (bin (string-append out "/bin"))
3753 (data (string-append out "/share/teeworlds/data")))
3756 (for-each (lambda (file)
3757 (install-file file bin))
3758 '("teeworlds" "teeworlds_srv"))
3759 (copy-recursively "data" data)
3761 ;; FIXME: teeworlds bundles the sources of "pnglite", a two-file PNG
3762 ;; library without a build system.
3764 `(("freetype" ,freetype)
3767 ("sdl-union" ,(sdl-union (list sdl
3770 ("wavpack" ,wavpack)
3774 ("python" ,python-2)))
3775 (home-page "https://www.teeworlds.com")
3776 (synopsis "2D retro multiplayer shooter game")
3777 (description "Teeworlds is an online multiplayer game. Battle with up to
3778 16 players in a variety of game modes, including Team Deathmatch and Capture
3779 The Flag. You can even design your own maps!")
3780 (license license:bsd-3)))
3782 (define-public enigma
3788 (uri (string-append "mirror://sourceforge/enigma-game/"
3789 "Release%20" version "/enigma-"
3793 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
3794 (build-system gnu-build-system)
3797 (list "--with-system-enet")
3799 (modify-phases %standard-phases
3800 (add-after 'unpack 'find-sdl
3802 (substitute* "configure"
3803 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
3804 (substitute* '("tools/ttf2bmf.cc"
3805 "lib-src/enigma-core/ecl_font.cc"
3806 "lib-src/enigma-core/ecl_video.cc"
3807 "lib-src/enigma-core/ecl_buffer.hh"
3808 "src/SoundEngine.cc"
3809 "src/SoundEngine.hh"
3810 "src/MusicManager.cc"
3811 "src/MusicManager.hh"
3815 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
3816 (string-append "#include \"SDL/SDL_" header ".h\"")))
3817 (substitute* "src/main.cc"
3818 (("#include <SDL_(image|ttf|mixer).h>" line header)
3819 (string-append "#include \"SDL/SDL_" header ".h\"")))
3822 `(("xerces-c" ,xerces-c)
3823 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
3827 `(("pkg-config" ,pkg-config)
3828 ("imagemagick" ,imagemagick)))
3829 (home-page "https://www.nongnu.org/enigma")
3830 (synopsis "Puzzle game with a dexterity component")
3831 (description "Enigma is a puzzle game with 550 unique levels. The object
3832 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
3833 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
3834 and most of all, countless hairy puzzles usually block your direct way to the
3835 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
3836 get bored) interact in many unexpected ways, and since many of them follow the
3837 laws of physics (Enigma’s special laws of physics, that is), controlling them
3838 with the mouse isn’t always trivial.")
3839 (license license:gpl2+)))
3841 (define-public fillets-ng
3847 (uri (string-append "mirror://sourceforge/fillets/"
3848 "Fish%20Fillets%20-%20Next%20Generation/"
3849 version "/fillets-ng-" version ".tar.gz"))
3852 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
3853 (build-system gnu-build-system)
3856 (list (string-append "--with-lua="
3857 (assoc-ref %build-inputs "lua")))
3859 (list (string-append "CFLAGS=-I"
3860 (assoc-ref %build-inputs "sdl-union")
3862 (string-append "CXXFLAGS=-I"
3863 (assoc-ref %build-inputs "sdl-union")
3866 (modify-phases %standard-phases
3867 ;; Lua 5.1 does not provide it.
3868 (add-after 'unpack 'do-not-link-with-lualib
3870 (substitute* "configure"
3873 (add-after 'install 'install-data
3874 (lambda* (#:key inputs outputs #:allow-other-keys)
3875 (let ((data (string-append (assoc-ref outputs "out")
3876 "/share/games/fillets-ng")))
3878 (zero? (system* "tar" "-xvf"
3879 (assoc-ref inputs "fillets-ng-data")
3880 "--strip-components=1"
3883 `(("sdl-union" ,(sdl-union (list sdl
3887 ("fribidi" ,fribidi)
3891 `(("pkg-config" ,pkg-config)
3895 (uri (string-append "mirror://sourceforge/fillets/"
3896 "Fish%20Fillets%20-%20Next%20Generation/"
3897 version "/fillets-ng-data-" version ".tar.gz"))
3900 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
3901 (home-page "http://fillets.sourceforge.net/")
3902 (synopsis "Puzzle game")
3903 (description "Fish Fillets NG is strictly a puzzle game. The goal in
3904 every of the seventy levels is always the same: find a safe way out. The fish
3905 utter witty remarks about their surroundings, the various inhabitants of their
3906 underwater realm quarrel among themselves or comment on the efforts of your
3907 fish. The whole game is accompanied by quiet, comforting music.")
3908 (license license:gpl2+)))
3910 (define-public crawl
3918 ;; Older releases get moved into a versioned directory
3919 (string-append "http://crawl.develz.org/release/"
3920 (version-major+minor version) "/stone_soup-"
3921 version "-nodeps.tar.xz")
3922 ;; Only the latest release is in this directory
3923 (string-append "http://crawl.develz.org/release/stone_soup-"
3924 version "-nodeps.tar.xz")))
3927 "0mmnkch8s9l7dh136yjvcyjr0vmyzv7z370rlcyir91qz6gg82n1"))
3928 (patches (search-patches "crawl-upgrade-saves.patch"))))
3929 (build-system gnu-build-system)
3931 `(("lua51" ,lua-5.1)
3932 ("ncurses" ,ncurses)
3939 ("pkg-config" ,pkg-config)))
3942 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
3943 (out (assoc-ref %outputs "out")))
3944 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
3945 (string-append "prefix=" out)
3947 ;; don't build any bundled dependencies
3953 (modify-phases %standard-phases
3956 ;; Test cases require the source to be rebuild with the -DDEBUG define.
3957 ;; Do 'check before 'build to avoid a 3rd build on make install.
3958 (add-before 'build 'check
3959 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
3960 (setenv "HOME" (getcwd))
3961 ;; Fake a terminal for the test cases.
3962 (setenv "TERM" "xterm-256color")
3963 (zero? (apply system* "make" "debug" "test"
3964 (format #f "-j~d" (parallel-job-count))
3965 ;; Force command line build for test cases.
3966 (append make-flags '("GAME=crawl" "TILES=")))))))))
3967 (synopsis "Roguelike dungeon crawler game")
3968 (description "Dungeon Crawl Stone Soup is a roguelike adventure through
3969 dungeons filled with dangerous monsters in a quest to find the mystifyingly
3970 fabulous Orb of Zot.")
3971 (home-page "https://crawl.develz.org")
3972 (license (list license:gpl2+
3980 ;; The linter here claims that patch file names should start with the package
3981 ;; name. But, in this case, the patches are inherited from crawl with the
3982 ;; "crawl-" prefix instead of "crawl-tiles-".
3983 (define-public crawl-tiles
3986 (name "crawl-tiles")
3988 (substitute-keyword-arguments
3989 (package-arguments crawl)
3990 ((#:make-flags flags)
3991 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
3993 (string-append "PROPORTIONAL_FONT=" dejavu
3994 "/share/fonts/truetype/DejaVuSans.ttf")
3995 (string-append "MONOSPACED_FONT=" dejavu
3996 "/share/fonts/truetype/DejaVuSansMono.ttf")
3998 ;; Rename the executable to allow parallel installation with crawl.
4002 `(,@(package-inputs crawl)
4003 ("font-dejavu" ,font-dejavu)
4004 ("freetype6" ,freetype)
4008 ("sdl2-image" ,sdl2-image)
4009 ("sdl2-mixer" ,sdl2-mixer)))
4011 `(,@(package-native-inputs crawl)
4012 ("pngcrush" ,pngcrush)
4014 (synopsis "Graphical roguelike dungeon crawler game")))
4016 (define-public lugaru
4022 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
4023 name "-" version ".tar.xz"))
4026 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
4027 (build-system cmake-build-system)
4030 (list "-DSYSTEM_INSTALL=ON")
4034 `(("pkg-config" ,pkg-config)))
4038 ("libjpeg" ,libjpeg-turbo)
4041 ("vorbis" ,libvorbis)
4043 (home-page "https://osslugaru.gitlab.io")
4044 (synopsis "Cross-platform third-person action game")
4045 (description "Lugaru is a third-person action game. The main character,
4046 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
4047 In his quest to find those responsible for slaughtering his village, he uncovers
4048 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
4049 and the starving wolves from a nearby den. Turner takes it upon himself to
4050 fight against their plot and save his fellow rabbits from slavery.")
4051 (license (list license:gpl2+ ; code
4054 license:cc-by-sa4.0))))
4056 (define-public 0ad-data
4059 (version "0.0.22-alpha")
4063 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4064 version "-unix-data.tar.xz"))
4065 (file-name (string-append name "-" version ".tar.xz"))
4068 "0vknk9ay9h2p34r7mym2g066f3s3c5d5vmap0ckcs5b86h5cscjc"))
4069 (modules '((guix build utils)))
4072 (for-each (lambda (name)
4073 (let* ((dir (string-append "binaries/data/mods/" name))
4074 (file (string-append dir "/" name ".zip"))
4075 (unzip #$(file-append unzip "/bin/unzip")))
4076 (invoke unzip "-d" dir file)
4077 (delete-file file)))
4080 (build-system trivial-build-system)
4081 (native-inputs `(("tar" ,tar)
4084 `(#:modules ((guix build utils))
4087 (use-modules (guix build utils))
4088 (let ((out (assoc-ref %outputs "out"))
4089 (source (assoc-ref %build-inputs "source"))
4090 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
4091 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
4092 (setenv "PATH" xz-path)
4094 (invoke tar "xvf" source "-C" out "--strip=3")))))
4095 (synopsis "Data files for 0ad")
4096 (description "0ad-data provides the data files required by the game 0ad.")
4097 (home-page "https://play0ad.com")
4098 (license (list (license:fsdg-compatible
4099 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
4100 (license:license-comment
4101 (package-license font-bitstream-vera)))
4102 (package-license font-bitstream-vera)
4112 (version "0.0.22-alpha")
4116 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4117 version "-unix-build.tar.xz"))
4118 (file-name (string-append name "-" version ".tar.xz"))
4121 "1cgmr4g5g9wv36v7ylbrvqhsjwgcsdgbqwc8zlqmnayk9zgkdpgx"))
4122 ;; A snippet here would cause a build failure because of timestamps
4123 ;; reset. See https://bugs.gnu.org/26734.
4126 `(("0ad-data" ,0ad-data)
4132 ("libvorbis" ,libvorbis)
4133 ("libxcursor" ,libxcursor)
4134 ("libxml2" ,libxml2)
4135 ("miniupnpc" ,miniupnpc)
4136 ("mozjs-38" ,mozjs-38)
4139 ("wxwidgets" ,wxwidgets)
4145 ("pkg-config" ,pkg-config)
4146 ("python-2" ,python-2)))
4147 (build-system gnu-build-system)
4149 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
4151 (modify-phases %standard-phases
4152 (add-after 'unpack 'delete-bundles
4154 (delete-file-recursively "libraries/source/spidermonkey")
4156 (add-after 'unpack 'fix-x11-includes
4158 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4159 (("<Xlib.h>") "<X11/Xlib.h>"))
4160 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4161 (("<Xatom.h>") "<X11/Xatom.h>"))
4162 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4163 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
4166 (lambda* (#:key inputs outputs #:allow-other-keys)
4167 (let* ((jobs (number->string (parallel-job-count)))
4168 (out (assoc-ref outputs "out"))
4169 (lib (string-append out "/lib"))
4170 (data (string-append out "/share/0ad")))
4171 (setenv "JOBS" (string-append "-j" jobs))
4173 (with-directory-excursion "build/workspaces"
4174 (zero? (system* "./update-workspaces.sh"
4175 (string-append "--libdir=" lib)
4176 (string-append "--datadir=" data)
4177 ;; TODO: "--with-system-nvtt"
4178 "--with-system-mozjs38"))))))
4181 (lambda* (#:key inputs outputs #:allow-other-keys)
4183 (let* ((out (assoc-ref outputs "out"))
4184 (bin (string-append out "/bin"))
4185 (lib (string-append out "/lib"))
4186 (data (string-append out "/share/0ad"))
4187 (applications (string-append out "/share/applications"))
4188 (pixmaps (string-append out "/share/pixmaps"))
4189 (0ad-data (assoc-ref inputs "0ad-data")))
4191 (copy-recursively "data" data)
4192 (for-each (lambda (file)
4193 (symlink (string-append 0ad-data "/" file)
4194 (string-append data "/" file)))
4195 '("config" "mods/mod" "mods/public" "tools"))
4197 (for-each (lambda (file)
4198 (install-file file lib))
4199 (find-files "system" "\\.so$"))
4201 (install-file "system/pyrogenesis" bin)
4202 (with-directory-excursion bin
4203 (symlink "pyrogenesis" "0ad"))
4205 (with-directory-excursion "../build/resources"
4206 (install-file "0ad.desktop" applications)
4207 (install-file "0ad.png" pixmaps))
4209 (add-after 'install 'check
4211 (with-directory-excursion "system"
4212 (zero? (system* "./test"))))))))
4213 (home-page "https://play0ad.com")
4214 (synopsis "3D real-time strategy game of ancient warfare")
4215 (description "0 A.D. is a real-time strategy (RTS) game of ancient
4216 warfare. It's a historically-based war/economy game that allows players to
4217 relive or rewrite the history of twelve ancient civilizations, each depicted
4218 at their peak of economic growth and military prowess.
4220 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
4221 (license (list license:bsd-2
4232 ;; There have been no official releases.
4233 (define-public open-adventure
4234 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
4237 (name "open-adventure")
4238 (version (string-append "2.5-" revision "." (string-take commit 7)))
4242 (url "https://gitlab.com/esr/open-adventure")
4244 (file-name (string-append name "-" version "-checkout"))
4247 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
4248 (build-system gnu-build-system)
4250 `(#:make-flags (list "CC=gcc")
4251 #:parallel-build? #f ; not supported
4253 (modify-phases %standard-phases
4255 (lambda* (#:key inputs outputs #:allow-other-keys)
4256 ;; Linenoise is meant to be included, so we have to
4257 ;; copy it into the working directory.
4258 (let* ((linenoise (assoc-ref inputs "linenoise"))
4259 (noisepath (string-append linenoise "/include/linenoise"))
4260 (out (assoc-ref outputs "out")))
4261 (copy-recursively noisepath "linenoise"))
4263 (add-before 'build 'use-echo
4265 (substitute* "tests/Makefile"
4266 (("/bin/echo") (which "echo")))
4268 (add-after 'build 'build-manpage
4270 ;; This target is missing a dependency
4271 (substitute* "Makefile"
4273 (string-append line " advent.adoc")))
4274 (zero? (system* "make" ".adoc.6"))))
4275 ;; There is no install target
4277 (lambda* (#:key outputs #:allow-other-keys)
4278 (let* ((out (assoc-ref outputs "out"))
4279 (bin (string-append out "/bin"))
4280 (man (string-append out "/share/man/man6")))
4281 (install-file "advent" bin)
4282 (install-file "advent.6" man))
4285 `(("asciidoc" ,asciidoc)
4286 ("linenoise" ,linenoise)
4288 ("python-pyyaml" ,python-pyyaml)))
4289 (home-page "https://gitlab.com/esr/open-adventure")
4290 (synopsis "Colossal Cave Adventure")
4291 (description "The original Colossal Cave Adventure from 1976 was the
4292 origin of all text adventures, dungeon-crawl (computer) games, and
4293 computer-hosted roleplaying games. This is the last version released by
4294 Crowther & Woods, its original authors, in 1995. It has been known as
4295 \"adventure 2.5\" and \"430-point adventure\".")
4296 (license license:bsd-2))))
4298 (define-public tome4
4302 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
4306 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
4307 version ".tar.bz2"))
4310 "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03"))
4311 (modules '((guix build utils)))
4314 (substitute* '("src/music.h" "src/tSDL.h")
4315 (("#elif defined(__FreeBSD__)" line)
4317 line " || defined(__GNUC__)")))
4319 (build-system gnu-build-system)
4321 `(("unzip" ,unzip)))
4323 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4325 ("premake4" ,premake4)
4327 ("vorbis" ,libvorbis)
4328 ("luajit" ,luajit)))
4330 `(#:make-flags '("CC=gcc" "config=release")
4331 #:phases (modify-phases %standard-phases
4334 (zero? (system* "premake4" "gmake"))
4336 (add-after 'set-paths 'set-sdl-paths
4337 (lambda* (#:key inputs #:allow-other-keys)
4339 (string-append (assoc-ref inputs "sdl-union")
4343 ;; premake doesn't provide install target
4345 (lambda* (#:key inputs outputs #:allow-other-keys)
4346 (let* ((out (assoc-ref outputs "out"))
4347 (usr (string-append out "/usr"))
4348 (bin (string-append out "/bin"))
4349 (licenses (string-append out "/share/licenses"))
4350 (documents (string-append out "/share/doc"))
4351 (pixmaps (string-append out "/share/pixmaps"))
4352 (icon "te4-icon.png")
4353 (data (string-append out "/share/" ,name))
4354 (applications (string-append
4355 out "/share/applications"))
4356 (unzip (string-append
4357 (assoc-ref inputs "unzip") "/bin/unzip"))
4358 (wrapper (string-append bin "/" ,name)))
4363 "game/engines/te4-" ,version ".teae")
4365 "data/gfx/" icon) "-d" pixmaps)
4367 (install-file "t-engine" data)
4369 (with-output-to-file wrapper
4374 ;; No bootstrap code found,
4375 ;; defaulting to working directory
4378 "exec -a tome4 ./t-engine \"$@\"\n"))))
4379 (chmod wrapper #o555)
4381 (for-each (lambda (file)
4382 (install-file file licenses))
4383 '("COPYING" "COPYING-MEDIA"))
4385 (for-each (lambda (file)
4386 (install-file file documents))
4387 '("CONTRIBUTING" "CREDITS"))
4389 (copy-recursively "bootstrap" (string-append
4391 (copy-recursively "game" (string-append data "/game"))
4393 (mkdir-p applications)
4394 (with-output-to-file (string-append applications "/"
4401 Comment=" ,synopsis "\n"
4406 Categories=Game;RolePlaying;\n")))))
4408 (home-page "https://te4.org")
4409 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
4410 combat and advanced character building. Play as one of many unique races and
4411 classes in the lore-filled world of Eyal, exploring random dungeons, facing
4412 challenging battles, and developing characters with your own tailored mix of
4413 abilities and powers. With a modern graphical and customisable interface,
4414 intuitive mouse control, streamlined mechanics and deep, challenging combat,
4415 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
4416 (license license:gpl3+)))
4418 (define-public quakespasm
4425 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
4429 "0b2nz7w4za32pc34r62ql270z692qcjs2pm0i3svkxkvfammhdfq"))))
4432 #:make-flags '("CC=gcc"
4435 "USE_CODEC_MIKMOD=1"
4438 #:phases (modify-phases %standard-phases
4440 (add-after 'unpack 'fix-makefile-paths
4441 (lambda* (#:key outputs #:allow-other-keys)
4442 (let ((out (assoc-ref outputs "out")))
4443 (mkdir-p (string-append out "/bin"))
4444 (substitute* "Quake/Makefile"
4445 (("/usr/local/games")
4446 (string-append out "/bin")))
4448 (build-system gnu-build-system)
4449 (inputs `(("libmikmod" ,libmikmod)
4450 ("libvorbis" ,libvorbis)
4455 (synopsis "First person shooter engine for Quake 1")
4456 (description "Quakespasm is a modern engine for id software's Quake 1.
4457 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4458 some graphical niceities, and numerous bug-fixes and other improvements.")
4459 (home-page "http://quakespasm.sourceforge.net/")
4460 (license license:gpl2+)))
4462 (define-public vkquake
4464 (inherit quakespasm)
4470 (uri (string-append "https://github.com/Novum/vkQuake/archive/"
4472 (file-name (string-append name "-" version ".tar.gz"))
4475 "1p0nh2v2ilylw62fxc5qpfcmyhs0s64w8sgh036nc6kn21kbjc0d"))))
4478 (let ((vulkanlib (string-append (assoc-ref %build-inputs
4479 "vulkan-icd-loader") "/lib")))
4483 "USE_CODEC_MIKMOD=1"
4485 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
4487 #:phases (modify-phases %standard-phases
4489 (add-after 'unpack 'fix-makefile-paths
4490 (lambda* (#:key outputs #:allow-other-keys)
4491 (let ((vulkan (assoc-ref %build-inputs
4492 "vulkan-icd-loader"))
4493 (out (assoc-ref outputs "out")))
4494 (mkdir-p (string-append out "/bin"))
4495 (substitute* "Quake/Makefile" ((" /usr")
4496 (string-append " " out)))
4497 (substitute* "Quake/Makefile" (("/games")
4498 (string-append "/bin")))
4499 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
4501 ,@(strip-keyword-arguments '(#:make-flags #:phases)
4502 (package-arguments quakespasm))))
4503 (inputs `(("vulkan-icd-loader" ,vulkan-icd-loader)
4504 ,@(package-inputs quakespasm)))
4505 (description "vkquake is a modern engine for id software's Quake 1.
4506 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4507 some graphical niceities, and numerous bug-fixes and other improvements.")
4508 (home-page "https://github.com/Novum/vkQuake")))
4510 (define-public yamagi-quake2
4512 (name "yamagi-quake2")
4517 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
4521 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
4522 (build-system gnu-build-system)
4527 ;; link openAL instead of using dlopen at runtime
4528 "DLOPEN_OPENAL=\"no\""
4529 ;; an optional directory where it will look for quake2 data files
4530 ;; in addition to the current working directory
4531 "WITH_SYSTEMWIDE=yes"
4532 "WITH_SYSTEMDIR=\"/opt/quake2\"")
4534 (modify-phases %standard-phases
4537 (lambda* (#:key outputs #:allow-other-keys)
4538 (let ((out (assoc-ref outputs "out")))
4539 (mkdir-p (string-append out "/lib"))
4540 (mkdir-p (string-append out "/bin"))
4541 ;; The yamagi-quake2 binary must be in the same directory
4542 ;; as it's engine libraries, but symlinking it to /bin is okay
4543 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
4544 (copy-recursively "release"
4545 (string-append out "/lib/yamagi-quake2"))
4546 (symlink (string-append out "/lib/yamagi-quake2/quake2")
4547 (string-append out "/bin/yamagi-quake2"))
4548 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
4549 (string-append out "/bin/yamagi-q2ded"))))))))
4550 (inputs `(("sdl2" ,sdl2)
4552 ("libvorbis" ,libvorbis)
4554 ("openal" ,openal)))
4555 (native-inputs `(("pkg-config" ,pkg-config)))
4556 (synopsis "First person shooter engine based on quake2")
4557 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
4558 The main focus is an unchanged single player experience like back in 1997,
4559 thus the gameplay and the graphics are unaltered. However the user may use one
4560 of the unofficial retexturing packs. In comparison with the official client,
4561 over 1000 bugs were fixed and an extensive code audit done,
4562 making Yamagi Quake II one of the most solid Quake II implementations available.")
4563 (home-page "https://www.yamagi.org/quake2/")
4564 (license (list license:gpl2+ ; game and server
4565 (license:non-copyleft ; info-zip
4567 "See Info-Zip section.")
4568 license:public-domain)))) ; stb
4570 (define-public the-butterfly-effect
4572 (name "the-butterfly-effect")
4578 "https://github.com/the-butterfly-effect/tbe/archive/"
4579 "v" version ".tar.gz"))
4580 (file-name (string-append name "-" version ".tar.gz"))
4583 "18qkp7fgdvyl3haqqa693mgyic7afsznsxgz98z9wn4csaqxsnby"))))
4584 (build-system gnu-build-system)
4587 (modify-phases %standard-phases
4589 ;; There is no "install" phase. By default, tbe is installed
4590 ;; in the build directory. Provide our own installation.
4592 (lambda* (#:key outputs #:allow-other-keys)
4593 (let* ((out (assoc-ref outputs "out"))
4594 (bin (string-append out "/bin"))
4595 (share (string-append out "/share")))
4596 (install-file "usr/games/tbe" bin)
4598 (copy-recursively "usr/share" share)
4600 ;; Test suite requires a running Xorg server. Even when
4601 ;; provided, it fails with "D-Bus library appears to be
4602 ;; incorrectly set up; failed to read machine uuid: Failed to
4603 ;; open "/etc/machine-id": No such file or directory" along
4604 ;; with multiple "QPainter:: ... Painter not active" warnings.
4607 `(("qtbase" ,qtbase)
4611 ("gettext-minimal" ,gettext-minimal)
4612 ("qttools" ,qttools)))
4613 (synopsis "Realistic physics puzzle game")
4614 (description "The Butterfly Effect (tbe) is a game that uses
4615 realistic physics simulations to combine lots of simple mechanical
4616 elements to achieve a simple goal in the most complex way possible.")
4617 (home-page "http://the-butterfly-effect.org/")
4618 ;; Main license is GPL2-only. However, artwork is distributed
4619 ;; under various licenses, listed here.
4620 (license (list license:gpl2 license:public-domain license:expat
4621 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
4623 (define-public pioneer
4626 (version "20171001")
4629 (uri (string-append "https://github.com/pioneerspacesim/pioneer/"
4630 "archive/" version ".tar.gz"))
4631 (file-name (string-append name "-" version ".tar.gz"))
4634 "1nxhx22swfqq6lfvcnpfm31wig3sjv5pp0rslj79nbxc7nyihh8m"))))
4635 (build-system gnu-build-system)
4637 `(("autoconf" ,autoconf)
4638 ("automake" ,automake)
4639 ("pkg-config" ,pkg-config)))
4641 `(("assimp" ,assimp)
4643 ("freetype" ,freetype)
4646 ("libsigc++" ,libsigc++)
4647 ("libvorbis" ,libvorbis)
4648 ("lua" ,lua-5.2) ;not compatible with 5.3
4650 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
4652 `(#:tests? #f ;tests are broken
4653 #:configure-flags (list "--with-external-liblua"
4654 (string-append "PIONEER_DATA_DIR="
4655 %output "/share/games/pioneer"))
4656 #:phases (modify-phases %standard-phases
4657 (add-before 'bootstrap 'fix-lua-check
4659 (substitute* "configure.ac"
4661 (string-append "lua-" ,(version-major+minor
4662 (package-version lua-5.2))))))))))
4663 (home-page "http://pioneerspacesim.net")
4664 (synopsis "Game of lonely space adventure")
4666 "Pioneer is a space adventure game set in our galaxy at the turn of the
4667 31st century. The game is open-ended, and you are free to eke out whatever
4668 kind of space-faring existence you can think of. Look for fame or fortune by
4669 exploring the millions of star systems. Turn to a life of crime as a pirate,
4670 smuggler or bounty hunter. Forge and break alliances with the various
4671 factions fighting for power, freedom or self-determination. The universe is
4672 whatever you make of it.")
4673 (license license:gpl3)))
4675 (define-public badass
4676 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
4680 (version (git-version "0.0" revision commit))
4684 (url "https://github.com/umayr/badass.git")
4686 (file-name (git-file-name name version))
4689 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
4690 (build-system go-build-system)
4692 '(#:import-path "github.com/umayr/badass"))
4693 (synopsis "Hacking contribution graphs in git")
4695 "Badass generates false commits for a range of dates, essentially
4696 hacking the gamification of contribution graphs on platforms such as
4698 (home-page "https://github.com/umayr/badass")
4699 (license license:expat))))
4701 (define-public colobot
4704 (version "0.1.11-alpha")
4708 (uri (string-append "https://github.com/colobot/colobot/archive/"
4709 "colobot-gold-" version ".tar.gz"))
4712 "160rq9fp5vd0qaqr3jvzvzrcxk9cac532y8vx4cvq0a8hgylrbad"))))
4713 (build-system cmake-build-system)
4715 `(#:tests? #f ;no test
4717 (modify-phases %standard-phases
4718 (add-after 'unpack 'unpack-data
4719 (lambda* (#:key inputs #:allow-other-keys)
4720 (let ((data (assoc-ref inputs "colobot-data")))
4721 (invoke "tar" "-xvf" data "-Cdata" "--strip-components=1")
4723 (add-after 'unpack-data 'install-music
4724 (lambda* (#:key inputs #:allow-other-keys)
4725 ;; Installation process tries to download music files using
4726 ;; "wget" if not already present. Since we are going to install
4727 ;; them, skip "wget" command check.
4728 (substitute* "data/music/CMakeLists.txt"
4729 (("find_program\\(WGET wget\\)") ""))
4730 ;; Effectively install music.
4731 (let ((data (assoc-ref inputs "colobot-music")))
4732 (invoke "tar" "-xvf" data "-Cdata/music")
4734 (add-after 'install 'fix-install-directory
4735 ;; Move binary from "games/" to "bin/".
4736 (lambda* (#:key outputs #:allow-other-keys)
4737 (let ((out (assoc-ref outputs "out")))
4738 (rename-file (string-append out "/games")
4739 (string-append out "/bin"))
4746 "https://github.com/colobot/colobot-data/archive/"
4747 "colobot-gold-" version ".tar.gz"))
4750 "1pdpsyr41g7xmk03k2g76l214f53ahk04qnkzmsv1fdbbaq7p109"))))
4754 (uri (string-append "https://colobot.info/files/music/"
4755 "colobot-music_ogg_" version ".tar.gz"))
4758 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
4759 ("gettext" ,gettext-minimal)
4760 ("librsvg" ,librsvg)
4762 ("python" ,python-wrapper)))
4768 ("libsndfile" ,libsndfile)
4769 ("libvorbis" ,libvorbis)
4772 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
4773 (synopsis "Educational programming strategy game")
4774 (description "Colobot: Gold Edition is a real-time strategy game, where
4775 you can program your units (bots) in a language called CBOT, which is similar
4776 to C++ and Java. Your mission is to find a new planet to live and survive.
4777 You can save humanity and get programming skills!")
4778 (home-page "https://colobot.info")
4779 (license license:gpl3+)))
4781 (define-public gzdoom
4788 (string-append "https://zdoom.org/files/gzdoom/src/gzdoom-g"
4792 "09a4kx3ry8pc9r578m7yprwa7zsdqxjpn10lyc92r5g9sx4l1m1a"))
4793 (patches (search-patches "gzdoom-search-in-installed-share.patch"))
4794 (modules '((guix build utils)))
4797 (delete-file-recursively "bzip2")
4798 (delete-file-recursively "game-music-emu")
4799 (delete-file-recursively "jpeg-6b")
4800 (delete-file-recursively "zlib")
4805 (let ((out (assoc-ref %outputs "out")))
4808 "-DCMAKE_CXX_FLAGS:="
4809 "-DSHARE_DIR=\\\"" out "/share/\\\" "
4810 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
4811 ;; look for libraries at buildtime instead of
4812 ;; dynamically finding them at runtime
4814 "-DDYN_FLUIDSYNTH=OFF"
4817 "-DDYN_SNDFILE=OFF"))
4819 (modify-phases %standard-phases
4820 (add-before 'configure 'fix-referenced-paths
4821 (lambda* (#:key inputs outputs #:allow-other-keys)
4822 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
4823 (timidity++ (assoc-ref inputs "timidity++"))
4824 (out (assoc-ref outputs "out")))
4827 "src/CMakeLists.txt"
4828 (("COMMAND /bin/sh")
4829 (string-append "COMMAND " (which "sh"))))
4832 "src/sound/mididevices/music_fluidsynth_mididevice.cpp"
4833 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
4834 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
4837 "src/sound/mididevices/music_timiditypp_mididevice.cpp"
4838 (("exename = \"timidity\"")
4839 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
4841 (build-system cmake-build-system)
4842 (inputs `(("bzip2" ,bzip2)
4843 ("fluid-3" ,fluid-3)
4844 ("fluidsynth" ,fluidsynth)
4847 ("libjpeg" ,libjpeg)
4848 ("libsndfile" ,libsndfile)
4853 ("timidity++" ,timidity++)
4855 (native-inputs `(("pkg-config" ,pkg-config)
4857 (synopsis "Modern Doom 2 source port")
4858 (description "GZdoom is a port of the Doom 2 game engine, with a modern
4859 renderer. It improves modding support with ZDoom's advanced mapping features
4860 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
4861 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
4862 (home-page "https://zdoom.org/index")
4863 (license (list license:gpl3+ ; gzdoom game
4864 license:lgpl3+ ; gzdoom renderer
4865 license:expat ; gdtoa
4866 (license:non-copyleft ; modified dumb
4867 "file://dumb/licence.txt"
4868 "Dumb license, explicitly GPL compatible.")))))