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 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nils Gillmann <ng0@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
36 ;;; This file is part of GNU Guix.
38 ;;; GNU Guix is free software; you can redistribute it and/or modify it
39 ;;; under the terms of the GNU General Public License as published by
40 ;;; the Free Software Foundation; either version 3 of the License, or (at
41 ;;; your option) any later version.
43 ;;; GNU Guix is distributed in the hope that it will be useful, but
44 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
45 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 ;;; GNU General Public License for more details.
48 ;;; You should have received a copy of the GNU General Public License
49 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51 (define-module (gnu packages games)
52 #:use-module (ice-9 match)
53 #:use-module ((guix licenses) #:prefix license:)
54 #:use-module (guix utils)
55 #:use-module (guix packages)
56 #:use-module (guix download)
57 #:use-module (guix git-download)
58 #:use-module (guix svn-download)
59 #:use-module (guix gexp)
60 #:use-module (gnu packages)
61 #:use-module (gnu packages algebra)
62 #:use-module (gnu packages autotools)
63 #:use-module (gnu packages backup)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages build-tools)
66 #:use-module (gnu packages admin)
67 #:use-module (gnu packages audio)
68 #:use-module (gnu packages avahi)
69 #:use-module (gnu packages boost)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages docbook)
72 #:use-module (gnu packages fltk)
73 #:use-module (gnu packages freedesktop)
74 #:use-module (gnu packages fribidi)
75 #:use-module (gnu packages game-development)
76 #:use-module (gnu packages gettext)
77 #:use-module (gnu packages ghostscript)
78 #:use-module (gnu packages gimp)
79 #:use-module (gnu packages gl)
80 #:use-module (gnu packages glib)
81 #:use-module (gnu packages gnome)
82 #:use-module (gnu packages gperf)
83 #:use-module (gnu packages graphics)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages guile)
86 #:use-module (gnu packages imagemagick)
87 #:use-module (gnu packages libcanberra)
88 #:use-module (gnu packages libedit)
89 #:use-module (gnu packages libunwind)
90 #:use-module (gnu packages haskell)
91 #:use-module (gnu packages mp3)
92 #:use-module (gnu packages music)
93 #:use-module (gnu packages icu4c)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages ncurses)
96 #:use-module (gnu packages netpbm)
97 #:use-module (gnu packages networking)
98 #:use-module (gnu packages ocaml)
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages readline)
101 #:use-module (gnu packages textutils)
102 #:use-module (gnu packages xorg)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages databases)
105 #:use-module (gnu packages shells)
106 #:use-module (gnu packages sdl)
107 #:use-module (gnu packages swig)
108 #:use-module (gnu packages texinfo)
109 #:use-module (gnu packages check)
110 #:use-module (gnu packages fonts)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages gstreamer)
113 #:use-module (gnu packages bash)
114 #:use-module (gnu packages perl)
115 #:use-module (gnu packages perl-check)
116 #:use-module (gnu packages qt)
117 #:use-module (gnu packages compression)
118 #:use-module (gnu packages pulseaudio)
119 #:use-module (gnu packages linux)
120 #:use-module (gnu packages xiph)
121 #:use-module (gnu packages curl)
122 #:use-module (gnu packages lua)
123 #:use-module (gnu packages video)
124 #:use-module (gnu packages xml)
125 #:use-module (gnu packages tcl)
126 #:use-module (gnu packages xdisorg)
127 #:use-module (gnu packages tls)
128 #:use-module (gnu packages pcre)
129 #:use-module (gnu packages cyrus-sasl)
130 #:use-module (gnu packages messaging)
131 #:use-module (gnu packages upnp)
132 #:use-module (gnu packages wxwidgets)
133 #:use-module (gnu packages bison)
134 #:use-module (gnu packages flex)
135 #:use-module (gnu packages cmake)
136 #:use-module (gnu packages gnuzilla)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages networking)
139 #:use-module (gnu packages vulkan)
140 #:use-module (gnu packages web)
141 #:use-module (guix build-system gnu)
142 #:use-module (guix build-system go)
143 #:use-module (guix build-system haskell)
144 #:use-module (guix build-system python)
145 #:use-module (guix build-system cmake)
146 #:use-module (guix build-system trivial))
148 (define-public armagetronad
150 (name "armagetronad")
151 (version "0.2.8.3.4")
154 (uri (string-append "mirror://sourceforge/" name "/stable/"
155 version "/" name "-" version ".src.tar.gz"))
158 "1pgy0r80z702qdv94aw3ywdn4ynnr4cdi86ml558pljfc5ygasj4"))))
159 (build-system gnu-build-system)
161 `(("libxml2" ,libxml2)
163 ("sdl-image" ,sdl-image)
164 ("freeglut" ,freeglut)
166 ("libjpeg-turbo" ,libjpeg-turbo)))
167 (home-page "http://www.armagetronad.org")
168 (synopsis "Tron clone in 3D")
169 (description "Armagetron is a multiplayer game in 3d that attempts to
170 emulate and expand on the lightcycle sequence from the movie Tron. It's
171 an old school arcade game slung into the 21st century. Highlights include
172 a customizable playing arena, HUD, unique graphics, and AI bots. For the
173 more advanced player there are new game modes and a wide variety of physics
174 settings to tweak as well.")
175 (license license:gpl2+)))
177 (define-public cataclysm-dda
179 (name "cataclysm-dda")
183 (uri (string-append "https://github.com/CleverRaven/Cataclysm-DDA/"
184 "archive/" version ".tar.gz"))
185 (file-name (string-append name "-" version ".tar.gz"))
188 "1xlajmgl9cviqyjpp5g5q4rbljy9gqc49v54bi8gpzr68s14gsb9"))
189 (modules '((guix build utils)))
191 ;; Import cmath header for the std::pow function.
192 '(for-each (lambda (file)
194 (("#include <math.h>")
195 "#include <cmath>")))
196 (find-files "src")))))
197 (build-system gnu-build-system)
199 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
200 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1")
202 (modify-phases %standard-phases
205 (substitute* "Makefile"
206 (("ncursesw5-config") "ncursesw6-config")
207 (("RELEASE_FLAGS = -Werror") "RELEASE_FLAGS ="))
209 (add-after 'build 'build-tiles
210 (lambda* (#:key make-flags outputs #:allow-other-keys)
211 ;; Change prefix directory and enable tile graphics and sound.
213 (apply system* "make" "TILES=1" "SOUND=1"
214 (string-append "PREFIX="
215 (assoc-ref outputs "tiles"))
217 (add-after 'install 'install-tiles
218 (lambda* (#:key make-flags outputs #:allow-other-keys)
220 (apply system* "make" "install" "TILES=1" "SOUND=1"
221 (string-append "PREFIX="
222 (assoc-ref outputs "tiles"))
223 (cdr make-flags))))))
224 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
225 ;; input in order to support tests.
228 "tiles")) ; For tile graphics and sound support.
230 `(("gettext" ,gettext-minimal)
231 ("pkg-config" ,pkg-config)))
233 `(("freetype" ,freetype)
235 ("libvorbis" ,libvorbis)
238 ("sdl2-image" ,sdl2-image)
239 ("sdl2-ttf" ,sdl2-ttf)
240 ("sdl2-mixer" ,sdl2-mixer)))
241 (home-page "http://en.cataclysmdda.com/")
242 (synopsis "Survival horror roguelike video game")
244 "Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
245 Struggle to survive in a harsh, persistent, procedurally generated world.
246 Scavenge the remnants of a dead civilization for food, equipment, or, if you are
247 lucky, a vehicle with a full tank of gas to get you out of Dodge. Fight to
248 defeat or escape from a wide variety of powerful monstrosities, from zombies to
249 giant insects to killer robots and things far stranger and deadlier, and against
250 the others like yourself, that want what you have.")
251 (license license:cc-by-sa3.0)))
253 (define-public cowsay
259 (uri (string-append "https://github.com/tnalpgge/"
260 "rank-amateur-cowsay/archive/"
261 name "-" version ".tar.gz"))
264 "12w7apbf6a9qffk92r32b16w22na2fjcqbl32rn0n7zw5hrp3f6q"))))
265 (build-system gnu-build-system)
268 (modify-phases %standard-phases
269 (delete 'configure) ; no configure script
270 (delete 'build) ; nothing to be built
272 (lambda* (#:key outputs #:allow-other-keys)
273 (zero? (system* "sh" "install.sh"
274 (assoc-ref outputs "out")))))
276 (add-after 'install 'check
277 (lambda* (#:key outputs #:allow-other-keys)
278 (zero? (system* (string-append (assoc-ref outputs "out")
283 (home-page (string-append "https://web.archive.org/web/20071026043648/"
284 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
285 (synopsis "Speaking cow text filter")
286 (description "Cowsay is basically a text filter. Send some text into it,
287 and you get a cow saying your text. If you think a talking cow isn't enough,
288 cows can think too: all you have to do is run @command{cowthink}. If you're
289 tired of cows, a variety of other ASCII-art messengers are available.")
290 (license license:gpl3+)))
292 (define-public freedoom
298 (uri (string-append "https://github.com/" name "/" name
299 "/archive/v" version ".tar.gz"))
300 (file-name (string-append name "-" version ".tar.gz"))
303 "1bjijdfqhpazyifx1qda7scj7dry1azhjrnl8h8zn2vqfgdmlh0q"))))
304 (build-system gnu-build-system)
306 '(#:make-flags `(,(string-append "prefix=" (assoc-ref %outputs "out")))
308 #:tests? #f ; no check target
310 (modify-phases %standard-phases
312 (lambda* (#:key inputs outputs #:allow-other-keys)
313 (let* ((dejavu (assoc-ref inputs "font-dejavu"))
314 (freedoom (assoc-ref outputs "out"))
315 (wad-dir (string-append freedoom "/share/games/doom")))
316 ;; Replace the font-searching function in a shell
317 ;; script with a direct path to the required font.
318 ;; This is necessary because ImageMagick can only find the
319 ;; most basic fonts while in the build environment.
320 (substitute* "graphics/titlepic/create_caption"
321 (("font=\\$\\(find_font.*$")
324 "/share/fonts/truetype/DejaVuSansCondensed-Bold.ttf\n")))
325 ;; Make icon creation reproducible.
326 (substitute* "dist/Makefile"
328 "-define png:exclude-chunks=date freedm.png")
330 "-define png:exclude-chunks=date freedoom1.png")
332 "-define png:exclude-chunks=date freedoom2.png"))
333 ;; Make sure that the install scripts know where to find
334 ;; the appropriate WAD files.
335 (substitute* "dist/freedoom"
337 (string-append "IWAD=" wad-dir "/freedm.wad"))
338 (("IWAD=freedoom1.wad")
339 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
340 (("IWAD=freedoom2.wad")
341 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
344 `(("asciidoc" ,asciidoc)
346 ("font-dejavu" ,font-dejavu)
347 ("imagemagick" ,imagemagick)
348 ("python" ,python-2)))
350 `(("prboom-plus" ,prboom-plus)))
351 (home-page "https://freedoom.github.io/")
352 (synopsis "Free content game based on the Doom engine")
354 (list (search-path-specification
355 (variable "DOOMWADDIR")
356 (files '("share/games/doom")))
357 (search-path-specification
358 (variable "DOOMWADPATH")
359 (files '("share/games/doom")))))
361 "The Freedoom project aims to create a complete free content first person
362 shooter game. Freedoom by itself is just the raw material for a game: it must
363 be paired with a compatible game engine (such as @code{prboom-plus}) to be
364 played. Freedoom complements the Doom engine with free levels, artwork, sound
365 effects and music to make a completely free game.")
366 (license license:bsd-3)))
374 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
375 version "/golly-" version
379 "0dn74k3rylhx023n047lz4z6qrqijfcxi0b6jryqklhmm2n532f7"))))
380 (build-system gnu-build-system)
382 '(#:make-flags (list "CC=gcc"
383 (string-append "GOLLYDIR="
384 (assoc-ref %outputs "out")
386 #:tests? #f ; no check target
388 (modify-phases %standard-phases
390 (lambda* (#:key inputs #:allow-other-keys)
391 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
392 ;; properly set the path to the Python shared library. This
393 ;; substitution acheives the same end by different means.
394 (substitute* "gui-wx/wxprefs.cpp"
395 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
396 (string-append "pythonlib = \""
397 (assoc-ref inputs "python")
398 "/lib/libpython-2.7.so\"")))
401 (lambda* (#:key make-flags outputs #:allow-other-keys)
402 (with-directory-excursion "gui-wx"
403 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
405 (lambda* (#:key outputs #:allow-other-keys)
406 (let* ((out (assoc-ref outputs "out"))
407 (bin (string-append out "/bin"))
408 (doc (string-append out "/share/doc/golly"))
409 (pixmaps (string-append out "/share/pixmaps"))
410 (share (string-append out "/share/golly")))
411 (for-each (lambda (binary)
412 (install-file binary bin))
414 (for-each (lambda (document)
416 (string-append "docs/" document ".html")
418 '("License" "ReadMe" "ToDo"))
419 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
420 (for-each (lambda (folder)
423 (string-append share "/" folder)))
424 '("Help" "Patterns" "Rules" "Scripts")))
432 ("wxwidgets" ,wxwidgets-gtk2)
434 (home-page "http://golly.sourceforge.net/")
435 (synopsis "Software for exploring cellular automata")
437 "Golly simulates Conway's Game of Life and many other types of cellular
438 automata. The following features are available:
440 @item Support for bounded and unbounded universes, with cells of up to 256
442 @item Support for multiple algorithms, including Bill Gosper's Hashlife
444 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
445 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
446 @item Scriptable via Lua or Python.
447 @item Extracting patterns, rules and scripts from zip files.
448 @item Downloading patterns, rules and scripts from online archives.
449 @item Pasting patterns from the clipboard.
450 @item Unlimited undo/redo.
451 @item Configurable keyboard shortcuts.
452 @item Auto fit option to keep patterns within the view.
454 (license license:gpl2+)))
456 (define-public meandmyshadow
458 (name "meandmyshadow")
462 (uri (string-append "mirror://sourceforge/meandmyshadow/"
463 version "/meandmyshadow-" version
467 "1dpb7s32b2psj5w3nr5kqibib8nndi86mw8gxp4hmxwrfiisf86d"))))
468 (build-system cmake-build-system)
470 '(#:tests? #f ; there are no tests
472 (modify-phases %standard-phases
473 (add-after 'unpack 'set-sdl'paths
474 (lambda* (#:key inputs #:allow-other-keys)
475 (substitute* "cmake/Modules/FindSDL_gfx.cmake"
476 (("/usr/local/include/SDL")
477 (string-append (assoc-ref inputs "sdl")
479 ;; Because SDL provides lib/libX11.so.6 we need to explicitly
480 ;; link with libX11, even though we're using the GL backend.
481 (substitute* "CMakeLists.txt"
482 (("\\$\\{X11_LIBRARIES\\}") "-lX11"))
485 `(("pkg-config" ,pkg-config)))
487 `(("sdl" ,(sdl-union (list sdl
492 ("libx11" ,libx11) ; needed by sdl's libX11
493 ("libarchive" ,libarchive)
498 (home-page "http://meandmyshadow.sourceforge.net/")
499 (synopsis "Puzzle/platform game")
500 (description "Me and My Shadow is a puzzle/platform game in which you try
501 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
502 and much more stand between you and the exit. Record your moves and let your
503 shadow mimic them to reach blocks you couldn't reach alone.")
504 (license license:gpl3+)))
506 (define-public knights
512 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
513 version "_src.tar.gz"))
516 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
517 (build-system gnu-build-system)
520 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
522 (modify-phases %standard-phases
523 ;; No configure script.
525 #:tests? #f)) ;; No check target.
528 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
529 ("freetype" ,freetype)
530 ("fontconfig" ,fontconfig)
533 `(("pkg-config" ,pkg-config)))
534 (home-page "http://www.knightsgame.org.uk/")
535 (synopsis "Multiplayer dungeon game involving knights and quests")
536 (description "Knights is a multiplayer game involving several knights who
537 must run around a dungeon and complete various quests. Each game revolves
538 around a quest – for example, you might have to find some items and carry them
539 back to your starting point. This may sound easy, but as there are only
540 enough items in the dungeon for one player to win, you may end up having to
541 kill your opponents to get their stuff! Other quests involve escaping from
542 the dungeon, fighting a duel to the death against the enemy knights, or
543 destroying an ancient book using a special wand.")
544 ;; This package includes modified sources of lua (X11), enet (Expat), and
545 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
546 ;; license. The whole package is released under GPLv3+.
547 (license license:gpl3+)))
556 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
557 version ".000-sources." "tar.gz"))
560 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
561 (build-system gnu-build-system)
562 (inputs `(("glib" ,glib)
563 ("readline" ,readline)
567 ("gtkglext" ,gtkglext)
569 ("libcanberra" ,libcanberra)))
570 (native-inputs `(("python-2" ,python-2)
571 ("pkg-config" ,pkg-config)))
572 (home-page "http://gnubg.org")
573 (synopsis "Backgammon game")
574 (description "The GNU backgammon application can be used for playing, analyzing and
575 teaching the game. It has an advanced evaluation engine based on artificial
576 neural networks suitable for both beginners and advanced players. In
577 addition to a command-line interface, it also features an attractive, 3D
578 representation of the playing board.")
579 (license license:gpl3+)))
581 (define-public gnubik
588 (uri (string-append "mirror://gnu/gnubik/gnubik-"
592 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
593 (build-system gnu-build-system)
594 (inputs `(("gtk+" ,gtk+-2)
599 ("gtkglext" ,gtkglext)))
600 (native-inputs `(("gettext" ,gettext-minimal)
601 ("pkg-config" ,pkg-config)))
602 (home-page "https://www.gnu.org/software/gnubik/")
603 (synopsis "3d Rubik's cube game")
605 "GNUbik is a puzzle game in which you must manipulate a cube to make
606 each of its faces have a uniform color. The game is customizable, allowing
607 you to set the size of the cube (the default is 3x3) or to change the colors.
608 You may even apply photos to the faces instead of colors. The game is
609 scriptable with Guile.")
610 (license license:gpl3+)))
612 (define-public gnushogi
619 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
623 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
624 (arguments `(#:tests? #f)) ;; No check target.
625 (build-system gnu-build-system)
626 (home-page "https://www.gnu.org/software/gnushogi/")
627 (synopsis "The game of Shogi (Japanese chess)")
628 (description "GNU Shogi is a program that plays the game Shogi (Japanese
629 Chess). It is similar to standard chess but this variant is far more complicated.")
630 (license license:gpl3+)))
639 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
640 name "-" version ".tar.gz"))
643 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
644 (build-system gnu-build-system)
646 '(;; The code in LTris uses traditional GNU semantics for inline functions
647 #:configure-flags '("CFLAGS=-fgnu89-inline")
649 (modify-phases %standard-phases
650 (add-after 'set-paths 'set-sdl-paths
651 (lambda* (#:key inputs #:allow-other-keys)
653 (string-append (assoc-ref inputs "sdl-union")
657 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
658 (home-page "http://lgames.sourceforge.net/LTris/")
659 (synopsis "Tetris clone based on the SDL library")
661 "LTris is a tetris clone: differently shaped blocks are falling down the
662 rectangular playing field and can be moved sideways or rotated by 90 degree
663 units with the aim of building lines without gaps which then disappear (causing
664 any block above the deleted line to fall down). LTris has three game modes: In
665 Classic you play until the stack of blocks reaches the top of the playing field
666 and no new blocks can enter. In Figures the playing field is reset to a new
667 figure each level and later on tiles and lines suddenly appear. In Multiplayer
668 up to three players (either human or CPU) compete with each other sending
669 removed lines to all opponents. There is also a Demo mode in which you can
670 watch your CPU playing while enjoying a cup of tea!")
671 (license license:gpl2+)))
673 (define-public prboom-plus
679 (uri (string-append "mirror://sourceforge/" name "/" name "/"
680 version "/" name "-" version ".tar.gz"))
683 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
684 (modules '((guix build utils)))
686 '(substitute* "src/version.c"
688 (("__TIME__") "")))))
689 (build-system gnu-build-system)
691 '(#:configure-flags '("--disable-cpu-opt")
692 #:make-flags `(,(string-append "gamesdir="
693 (assoc-ref %outputs "out") "/bin"))
695 (modify-phases %standard-phases
696 (add-after 'set-paths 'set-sdl'paths
697 (lambda* (#:key inputs #:allow-other-keys)
699 (string-append (assoc-ref inputs "sdl-union")
703 `(("fluidsynth" ,fluidsynth)
707 ("libvorbis" ,libvorbis)
709 ("portmidi" ,portmidi)
710 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
711 (home-page "http://prboom-plus.sourceforge.net/")
712 (synopsis "Version of the classic 3D shoot'em'up game Doom")
714 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
715 (license license:gpl2+)))
723 (uri (string-append "mirror://savannah/retux/"
724 (version-major+minor version) "/retux-"
725 version "-src.tar.gz"))
728 "1pcrh3z16fl412r3k7xccrgika19ahb1xh90jihgl8yy7zza2i6p"))))
729 (build-system python-build-system)
731 `(#:tests? #f ; no check target
733 (modify-phases %standard-phases
734 ;; no setup.py script
737 (lambda* (#:key outputs #:allow-other-keys)
738 (let* ((out (assoc-ref outputs "out"))
739 (bin (string-append out "/bin"))
740 (data (string-append out "/share/retux"))
741 (doc (string-append out "/share/doc/retux")))
744 (substitute* "retux.py"
745 ;; Use the correct data directory.
746 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
747 (string-append "\"" data "\","))
748 ;; Use Python 3 so the patch-shebangs phase works properly.
749 ((".*python2.*") "#!/usr/bin/python3"))
751 (copy-file "retux.py" (string-append bin "/retux"))
753 (copy-recursively "data" data)
755 (install-file "COPYING" doc)))))))
757 `(("python-sge-pygame" ,python-sge-pygame)
758 ("python-six" ,python-six)
759 ("python-xsge" ,python-xsge)))
760 (home-page "http://retux.nongnu.org")
761 (synopsis "Action platformer game")
763 "ReTux is an action platformer loosely inspired by the Mario games,
764 utilizing the art assets from the @code{SuperTux} project.")
765 ;; GPL version 3 or later is the license for the code and some art.
766 ;; The rest of the licenses are for the art exclusively, as listed in
768 (license (list license:cc0
775 (define-public roguebox-adventures
777 (name "roguebox-adventures")
783 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
784 (string-join (string-split version #\.) "_") "_Source.zip"))
785 (file-name (string-append name "-" version ".zip"))
788 "0kmzdgnik8fsf3bg55546l77p3mfxn2awkzfzzdn20n82rd2babw"))))
789 (build-system python-build-system)
791 `(#:tests? #f ; no check target
793 (modify-phases %standard-phases
795 (lambda* (#:key source #:allow-other-keys)
796 (and (invoke "unzip" source)
797 ;; The actual source is buried a few directories deep.
798 (chdir (string-append "RogueBoxAdventures_v"
800 (string-split ,version #\.) "_")
802 ;; no setup.py script
804 (lambda* (#:key outputs #:allow-other-keys)
805 (let* ((out (assoc-ref outputs "out"))
807 out "/share/games/roguebox-adventures")))
808 ;; Use the correct data directory.
809 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
810 (("basic_path + os\\.sep + 'DATA'")
811 (string-append "'" data "'"))
813 (string-append "basic_path ='" data "'\n")))
814 (substitute* "LIB/gra_files.py"
815 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
816 (string-append "basic_path ='" data "'\n")))
818 ;; The game must save in the user's home directory because
819 ;; the store is read-only.
820 (substitute* "main.py"
821 (("home_save = False") "home_save = True")
822 (("'icon_small.png'")
823 (string-append "'" data "/icon_small.png'"))))
826 (lambda* (#:key outputs #:allow-other-keys)
827 (let* ((out (assoc-ref outputs "out"))
828 (bin (string-append out "/bin"))
830 (string-append bin "/roguebox-adventures"))
832 out "/share/games/roguebox-adventures"))
833 (lib (string-append data "/LIB"))
835 out "/share/doc/roguebox-adventures")))
839 (for-each (lambda (file)
840 (copy-recursively file
841 (string-append data "/" file)))
842 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
843 "icon_big.png" "icon_small.png"))
844 (for-each (lambda (file)
846 (install-file file lib))
847 '("main.py" "run.py"))
849 (copy-recursively "DOC" doc)
851 (call-with-output-file
856 export PYTHONPATH=~a/LIB:~a
857 exec -a \"~a\" ~a \"$@\"\n"
858 (which "bash") data (getenv "PYTHONPATH")
860 (string-append lib "/main.py"))))
861 (chmod roguebox-adventures #o555))
866 `(("python-pygame" ,python-pygame)
867 ("python-tmx" ,python-tmx)))
868 (home-page "https://rogueboxadventures.tuxfamily.org")
869 (synopsis "A classical roguelike/sandbox game")
871 "RogueBox Adventures is a graphical roguelike with strong influences
872 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
873 Adventures is to offer the player a kind of roguelike toy-world. This world
874 can be explored and changed freely.")
875 ;; The GPL3+ is for code, the rest are for art.
876 (license (list license:cc0
879 license:silofl1.1))))
881 (define-public xshogi
888 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
892 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
893 (build-system gnu-build-system)
897 (home-page "https://www.gnu.org/software/gnushogi/")
898 (synopsis "User interface for gnushogi")
899 (description "A graphical user interface for the package @code{gnushogi}.")
900 ;; Contains a copy of GPLv3 but the licence notices simply
901 ;; state "GNU General Public Licence" without specifying a version.
902 (license license:gpl1+)))
904 (define-public abbaye
911 (uri (string-append "https://github.com/nevat/abbayedesmorts-gpl/"
912 "archive/v" version ".tar.gz"))
913 (file-name (string-append name "-" version ".tar.gz"))
916 "1a67b0hq6271dd7pvwndjq29cwn2n8gawwz17xafa3k1hrhf8vw3"))
917 (modules '((guix build utils)))
920 '(delete-file-recursively "fonts"))))
921 (build-system gnu-build-system)
923 '(#:make-flags '("CC=gcc")
924 #:phases (modify-phases %standard-phases
925 (add-after 'set-paths 'set-sdl-paths
926 (lambda* (#:key inputs #:allow-other-keys)
928 (string-append (assoc-ref inputs "sdl-union")
930 (add-after 'patch-source-shebangs 'patch-makefile
931 (lambda* (#:key outputs #:allow-other-keys)
932 ;; Replace /usr with package output directory.
933 (substitute* "Makefile"
934 (("/usr") (assoc-ref outputs "out")))))
935 (add-before 'install 'make-install-dirs
936 (lambda* (#:key outputs #:allow-other-keys)
937 (let ((prefix (assoc-ref outputs "out")))
938 ;; Create directories that the makefile assumes exist.
939 (mkdir-p (string-append prefix "/bin"))
940 (mkdir-p (string-append prefix "/share/applications"))
941 (mkdir-p (string-append prefix "/share/pixmaps")))))
942 ;; No configure script.
944 #:tests? #f)) ;; No check target.
945 (native-inputs `(("pkg-config" ,pkg-config)))
946 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
947 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
948 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
949 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
950 France. The Cathars, who preach about good Christian beliefs, were being
951 expelled by the Catholic Church out of the Languedoc region in France. One of
952 them, called Jean Raymond, found an old church in which to hide, not knowing
953 that beneath its ruins lay buried an ancient evil.")
954 (license license:gpl3)))
956 (define-public angband
963 (uri (string-append "http://rephial.org/downloads/4.0/"
964 "angband-" version ".tar.gz"))
967 "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd"))
968 (modules '((guix build utils)))
970 ;; So, some of the sounds/graphics/tilesets are under different
971 ;; licenses... some of them even nonfree! This is a console-only
972 ;; version of this package so we just remove them.
973 ;; In the future, if someone tries to make a graphical variant of
974 ;; this package, they can deal with that mess themselves. :)
978 (let ((lib-subdir (string-append "lib/" subdir)))
979 (delete-file-recursively lib-subdir)))
980 '("fonts" "icons" "sounds" "tiles"))
981 (substitute* "lib/Makefile"
982 ;; And don't try to invoke makefiles in the directories we removed
983 (("gamedata customize help screens fonts tiles sounds icons user")
984 "gamedata customize help screens user"))))))
985 (build-system gnu-build-system)
987 `(#:tests? #f ;no check target
988 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
990 (modify-phases %standard-phases
991 (add-after 'unpack 'autogen.sh
993 (substitute* "acinclude.m4"
994 (("ncursesw5-config") "ncursesw6-config"))
995 (zero? (system* "sh" "autogen.sh")))))))
997 `(("autoconf" ,autoconf)
998 ("automake" ,automake)))
999 (inputs `(("ncurses" ,ncurses)))
1000 (home-page "http://rephial.org/")
1001 (synopsis "Dungeon exploration roguelike")
1002 (description "Angband is a Classic dungeon exploration roguelike. Explore
1003 the depths below Angband, seeking riches, fighting monsters, and preparing to
1004 fight Morgoth, the Lord of Darkness.")
1005 (license license:gpl2)))
1007 (define-public pingus
1014 (uri (string-append "https://github.com/Pingus/pingus/archive/v"
1016 (file-name (string-append name "-" version ".tar.gz"))
1019 "0r9v6as5vi7skvvy7b0fcaimhdlzmik64pyy68plgljhsghqkkf4"))
1020 (patches (search-patches "pingus-sdl-libs-config.patch"))))
1021 (build-system gnu-build-system)
1022 (native-inputs `(("pkg-config" ,pkg-config)
1023 ("scons-python2" ,scons-python2)))
1024 (inputs `(("sdl" ,sdl)
1025 ("sdl-image" ,sdl-image)
1026 ("sdl-mixer" ,sdl-mixer)
1032 '(#:make-flags (list (string-append "PREFIX=" %output))
1033 #:tests? #f ; no check target
1035 (modify-phases %standard-phases
1036 (delete 'configure)))) ; no configure script
1037 (home-page "http://pingus.seul.org/welcome.html")
1038 (synopsis "Lemmings clone")
1040 "Pingus is a free Lemmings-like puzzle game in which the player takes
1041 command of a bunch of small animals and has to guide them through levels.
1042 Since the animals walk on their own, the player can only influence them by
1043 giving them commands, like build a bridge, dig a hole, or redirect all animals
1044 in the other direction. Multiple such commands are necessary to reach the
1045 level's exit. The game is presented in a 2D side view.")
1046 ;; Some source files are under bsd-3 and gpl2+ licenses.
1047 (license license:gpl3+)))
1049 (define-public talkfilters
1051 (name "talkfilters")
1056 (uri (string-append "http://www.hyperrealm.com/" name "/"
1057 name "-" version ".tar.gz"))
1059 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
1060 (build-system gnu-build-system)
1061 (home-page "https://www.gnu.org/software/talkfilters/")
1062 (synopsis "Convert English text to humorous dialects")
1063 (description "The GNU Talk Filters are programs that convert English text
1064 into stereotyped or otherwise humorous dialects. The filters are provided as
1065 a C library, so they can easily be integrated into other programs.")
1066 (license license:gpl2+)))
1068 (define-public cmatrix
1075 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
1079 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
1080 (build-system gnu-build-system)
1083 (modify-phases %standard-phases
1085 (lambda* (#:key outputs #:allow-other-keys)
1086 ;; This old ‘configure’ script doesn't support
1087 ;; variables passed as arguments.
1088 (let ((out (assoc-ref outputs "out")))
1089 (setenv "CONFIG_SHELL" (which "bash"))
1091 (system* "./configure"
1092 (string-append "--prefix=" out)))))))))
1093 (inputs `(("ncurses" ,ncurses)))
1094 (home-page "http://www.asty.org/cmatrix")
1095 (synopsis "Simulate the display from \"The Matrix\"")
1096 (description "CMatrix simulates the display from \"The Matrix\" and is
1097 based on the screensaver from the movie's website. It works with terminal
1098 settings up to 132x300 and can scroll lines all at the same rate or
1099 asynchronously and at a user-defined speed.")
1100 (license license:gpl2+)))
1102 (define-public chess
1109 (uri (string-append "mirror://gnu/chess/gnuchess-" version
1113 "00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs"))))
1114 (build-system gnu-build-system)
1115 (home-page "https://www.gnu.org/software/chess/")
1116 (synopsis "Full chess implementation")
1117 (description "GNU Chess is a chess engine. It allows you to compete
1118 against the computer in a game of chess, either through the default terminal
1119 interface or via an external visual interface such as GNU XBoard.")
1120 (license license:gpl3+)))
1122 (define freedink-engine
1124 (name "freedink-engine")
1128 (uri (string-append "mirror://gnu/freedink/freedink-" version
1132 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
1133 (build-system gnu-build-system)
1134 (arguments `(#:configure-flags '("--disable-embedded-resources")))
1135 (native-inputs `(("gettext" ,gettext-minimal)
1136 ("pkg-config" ,pkg-config)))
1137 (inputs `(("sdl" ,sdl)
1138 ("sdl-image" ,sdl-image)
1139 ("sdl-mixer" ,sdl-mixer)
1140 ("sdl-ttf" ,sdl-ttf)
1141 ("sdl-gfx" ,sdl-gfx)
1142 ("fontconfig" ,fontconfig)
1144 (home-page "https://www.gnu.org/software/freedink/")
1145 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
1147 "GNU FreeDink is a free and portable re-implementation of the engine
1148 for the role-playing game Dink Smallwood. It supports not only the original
1149 game data files but it also supports user-produced game mods or \"D-Mods\".
1150 To that extent, it also includes a front-end for managing all of your D-Mods.")
1151 (license license:gpl3+)))
1153 (define freedink-data
1155 (name "freedink-data")
1156 (version "1.08.20170401")
1159 (uri (string-append "mirror://gnu/freedink/freedink-data-"
1163 "1zx7qywibhznj7bnz217404scr8dfh0xj24xjihnda5iapzz7lz8"))))
1164 (build-system gnu-build-system)
1167 (modify-phases %standard-phases
1168 (delete 'configure) ; no configure script
1169 (delete 'check)) ; no tests
1170 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1171 (home-page "https://www.gnu.org/software/freedink/")
1172 (synopsis "Game data for GNU Freedink")
1174 "This package contains the game data of GNU Freedink.")
1175 (license license:gpl3+)))
1177 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
1179 (define-public freedink
1180 ;; This is a wrapper that tells the engine where to find the data.
1181 (package (inherit freedink-engine)
1183 (build-system trivial-build-system)
1186 (use-modules (guix build utils))
1188 (let* ((output (assoc-ref %outputs "out"))
1189 (bin (string-append output "/bin"))
1190 (executable (string-append bin "/freedink")))
1192 (call-with-output-file executable
1194 (format port "#!~a/bin/sh
1195 exec ~a/bin/freedink -refdir ~a/share/dink\n"
1196 (assoc-ref %build-inputs "bash")
1197 (assoc-ref %build-inputs "engine")
1198 (assoc-ref %build-inputs "data"))
1199 (chmod port #o777)))))
1200 #:modules ((guix build utils))))
1201 (inputs `(("engine" ,freedink-engine)
1202 ("data" ,freedink-data)
1204 (native-inputs '())))
1206 (define-public xboard
1213 (uri (string-append "mirror://gnu/xboard/xboard-" version
1217 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
1218 (build-system gnu-build-system)
1221 ("librsvg" ,librsvg)))
1223 `(("texinfo" ,texinfo)
1224 ("pkg-config" ,pkg-config)))
1225 (home-page "https://www.gnu.org/software/xboard/")
1226 (synopsis "Graphical user interface for chess programs")
1227 (description "GNU XBoard is a graphical board for all varieties of chess,
1228 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
1229 and Makruk. Several lesser-known variants are also supported. It presents a
1230 fully interactive graphical interface and it can load and save games in the
1231 Portable Game Notation.")
1232 (license license:gpl3+)))
1235 (define-public xboing
1242 (uri (string-append "http://www.techrescue.org/xboing/xboing"
1245 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))
1246 (patches (search-patches "xboing-CVE-2004-0149.patch"))))
1250 (modify-phases %standard-phases
1252 (lambda* (#:key outputs #:allow-other-keys)
1254 (substitute* "Imakefile"
1255 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
1256 (string-append "XPMINCLUDE = -I"
1257 (assoc-ref %build-inputs "libxpm")
1260 (substitute* "Imakefile"
1261 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
1263 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
1265 (zero? (system* "xmkmf" "-a"
1266 (string-append "-DProjectRoot="
1267 (assoc-ref outputs "out"))))))
1269 (lambda* (#:key outputs #:allow-other-keys)
1271 (zero? (system* "make" "install.man"))
1272 (zero? (system* "make" "install"))))))))
1273 (inputs `(("libx11" ,libx11)
1274 ("libxext" ,libxext)
1275 ("libxpm" ,libxpm)))
1276 (native-inputs `(("imake" ,imake)
1277 ("inetutils" ,inetutils)
1278 ("makedepend" ,makedepend)))
1279 (build-system gnu-build-system)
1280 (home-page "http://www.techrescue.org/xboing")
1281 (synopsis "Ball and paddle game")
1282 (description "XBoing is a blockout type game where you have a paddle which
1283 you control to bounce a ball around the game zone destroying blocks with a
1284 proton ball. Each block carries a different point value. The more blocks you
1285 destroy, the better your score. The person with the highest score wins.")
1286 (license (license:x11-style "file://COPYING"
1287 "Very similar to the X11 licence."))))
1289 (define-public gtypist
1295 (uri (string-append "mirror://gnu/gtypist/gtypist-"
1299 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
1300 (modules '((guix build utils)))
1302 ;; We do not provide `ncurses.h' within an `ncursesw'
1303 ;; sub-directory, so patch the source accordingly. See
1304 ;; <http://bugs.gnu.org/19018>.
1305 '(for-each (lambda (file)
1307 (("ncursesw/ncurses.h")
1309 (find-files "." "configure$|\\.c$")))))
1310 (build-system gnu-build-system)
1311 (inputs `(("ncurses" ,ncurses)
1313 (home-page "https://www.gnu.org/software/gtypist/")
1314 (synopsis "Typing tutor")
1316 "GNU Typist is a universal typing tutor. It can be used to learn and
1317 practice touch-typing. Several tutorials are included; in addition to
1318 tutorials for the standard QWERTY layout, there are also tutorials for the
1319 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
1320 are primarily in English, however some in other languages are provided.")
1321 (license license:gpl3+)))
1323 (define-public irrlicht
1330 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
1331 (version-major+minor version)
1332 "/" version "/irrlicht-" version ".zip"))
1335 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
1336 (build-system gnu-build-system)
1339 (modify-phases %standard-phases
1340 (add-after 'unpack 'fix-build-env
1341 (lambda* (#:key outputs #:allow-other-keys)
1342 (let ((out (assoc-ref outputs "out")))
1343 (substitute* "Makefile"
1344 (("INSTALL_DIR = /usr/local/lib")
1345 (string-append "INSTALL_DIR = " out "/lib")))
1346 ;; The Makefile assumes these directories exist.
1347 (mkdir-p (string-append out "/lib"))
1348 (mkdir-p (string-append out "/include")))))
1350 (lambda* (#:key source #:allow-other-keys)
1351 (and (zero? (system* "unzip" source))
1352 ;; The actual source is buried a few directories deep.
1353 (chdir (string-append "irrlicht-" ,version
1354 "/source/Irrlicht/")))))
1355 (delete 'configure)) ; no configure script
1356 #:tests? #f ; no check target
1357 #:make-flags '("CC=gcc" "sharedlib")))
1359 `(("unzip" ,unzip)))
1363 (synopsis "3D game engine written in C++")
1365 "The Irrlicht Engine is a high performance realtime 3D engine written in
1366 C++. Features include an OpenGL renderer, extensible materials, scene graph
1367 management, character animation, particle and other special effects, support
1368 for common mesh file formats, and collision detection.")
1369 (home-page "http://irrlicht.sourceforge.net/")
1370 (license license:zlib)))
1373 ;; The latest release on SourceForge relies on an unreleased version of SFML
1374 ;; with a different API, so we take the latest version from the official
1375 ;; repository on Github.
1376 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
1380 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
1384 (url "https://github.com/thelaui/M.A.R.S..git")
1386 (file-name (string-append name "-" version))
1389 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
1390 (patches (search-patches "mars-sfml-2.3.patch"
1391 "mars-install.patch"))))
1392 (build-system cmake-build-system)
1394 `(#:tests? #f ; There are no tests
1396 (modify-phases %standard-phases
1397 (add-after 'unpack 'fix-install-path
1399 (substitute* "src/CMakeLists.txt"
1400 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
1401 "${CMAKE_INSTALL_PREFIX}/bin"))
1403 (add-after 'unpack 'fix-data-path
1404 (lambda* (#:key outputs #:allow-other-keys)
1405 (substitute* "src/System/settings.cpp"
1406 (("C_dataPath = \"./data/\";")
1407 (string-append "C_dataPath = \""
1408 (assoc-ref outputs "out")
1409 "/share/games/marsshooter/\";")))
1413 ("fribidi" ,fribidi)
1416 (home-page "http://marsshooter.org")
1417 (synopsis "2D space shooter")
1419 "M.A.R.S. is a 2D space shooter with pretty visual effects and
1420 attractive physics. Players can battle each other or computer controlled
1421 enemies in different game modes such as space ball, death match, team death
1422 match, cannon keep, and grave-itation pit.")
1423 (license license:gpl3+))))
1425 (define minetest-data
1427 (name "minetest-data")
1432 "https://github.com/minetest/minetest_game/archive/"
1434 (file-name (string-append name "-" version ".tar.gz"))
1437 "0nibpm600rbv9dg1zgcsl5grlbqx0b5l6cg1lp6sqkwvjialb4ga"))))
1438 (build-system trivial-build-system)
1440 `(("source" ,source)
1442 ("gzip" ,(@ (gnu packages compression) gzip))))
1444 `(#:modules ((guix build utils))
1446 (use-modules (guix build utils))
1447 (let ((tar (string-append (assoc-ref %build-inputs "tar")
1449 (install-dir (string-append
1451 "/share/minetest/games/minetest_game"))
1452 (path (string-append (assoc-ref %build-inputs
1455 (setenv "PATH" path)
1456 (system* tar "xvf" (assoc-ref %build-inputs "source"))
1457 (chdir (string-append "minetest_game-" ,version))
1458 (mkdir-p install-dir)
1459 (copy-recursively "." install-dir)))))
1460 (synopsis "Main game data for the Minetest game engine")
1462 "Game data for the Minetest infinite-world block sandox game.")
1463 (home-page "http://minetest.net")
1464 (license license:lgpl2.1+)))
1466 (define-public minetest
1473 "https://github.com/minetest/minetest/archive/"
1475 (file-name (string-append name "-" version ".tar.gz"))
1478 "0mbnf1ma4gsw9ah68ply04059xkfx5psdxwalxp78sgmx4ypkwqf"))))
1479 (build-system cmake-build-system)
1482 (list "-DRUN_IN_PLACE=0"
1483 "-DENABLE_FREETYPE=1"
1484 "-DENABLE_GETTEXT=1"
1485 (string-append "-DIRRLICHT_INCLUDE_DIR="
1486 (assoc-ref %build-inputs "irrlicht")
1487 "/include/irrlicht")
1488 (string-append "-DCURL_INCLUDE_DIR="
1489 (assoc-ref %build-inputs "curl")
1491 #:tests? #f)) ; no check target
1492 (native-search-paths
1493 (list (search-path-specification
1494 (variable "MINETEST_SUBGAME_PATH")
1495 (files '("share/minetest/games")))))
1497 `(("pkg-config" ,pkg-config)))
1499 `(("irrlicht" ,irrlicht)
1501 ("libjpeg" ,libjpeg)
1502 ("libxxf86vm" ,libxxf86vm)
1505 ("libvorbis" ,libvorbis)
1507 ("freetype" ,(@ (gnu packages fontutils) freetype))
1510 ("gettext" ,gettext-minimal)
1511 ("sqlite" ,sqlite)))
1513 `(("minetest-data" ,minetest-data)))
1514 (synopsis "Infinite-world block sandbox game")
1516 "Minetest is a sandbox construction game. Players can create and destroy
1517 various types of blocks in a three-dimensional open world. This allows
1518 forming structures in every possible creation, on multiplayer servers or as a
1519 single player. Mods and texture packs allow players to personalize the game
1520 in different ways.")
1521 (home-page "http://minetest.net")
1522 (license license:lgpl2.1+)))
1531 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1532 "glk/implementations/glkterm-104.tar.gz"))
1535 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
1536 (build-system gnu-build-system)
1537 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
1539 '(#:tests? #f ; no check target
1541 (modify-phases %standard-phases
1543 (lambda* (#:key outputs #:allow-other-keys)
1544 (let* ((out (assoc-ref outputs "out"))
1545 (inc (string-append out "/include"))
1546 (lib (string-append out "/lib")))
1549 (install-file file inc))
1550 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
1551 (install-file "libglkterm.a" lib))
1553 (delete 'configure)))) ; no configure script
1554 (home-page "http://www.eblong.com/zarf/glk/")
1555 (synopsis "Curses Implementation of the Glk API")
1557 "Glk defines a portable API for applications with text UIs. It was
1558 primarily designed for interactive fiction, but it should be suitable for many
1559 interactive text utilities, particularly those based on a command line.
1560 This is an implementation of the Glk library which runs in a terminal window,
1561 using the @code{curses.h} library for screen control.")
1562 (license (license:fsf-free "file://README"))))
1564 (define-public glulxe
1571 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1572 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
1575 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
1576 (build-system gnu-build-system)
1577 (inputs `(("glk" ,glkterm)))
1579 '(#:tests? #f ; no check target
1581 (let* ((glk (assoc-ref %build-inputs "glk")))
1582 (list (string-append "GLKINCLUDEDIR=" glk "/include")
1583 (string-append "GLKLIBDIR=" glk "/lib")
1584 (string-append "GLKMAKEFILE=" "Make.glkterm")))
1586 (modify-phases %standard-phases
1588 (lambda* (#:key outputs #:allow-other-keys)
1589 (let* ((out (assoc-ref outputs "out"))
1590 (bin (string-append out "/bin")))
1591 (install-file "glulxe" bin))
1593 (delete 'configure)))) ; no configure script
1594 (home-page "http://www.eblong.com/zarf/glulx/")
1595 (synopsis "Interpreter for Glulx VM")
1597 "Glulx is a 32-bit portable virtual machine intended for writing and
1598 playing interactive fiction. It was designed by Andrew Plotkin to relieve
1599 some of the restrictions in the venerable Z-machine format. This is the
1600 reference interpreter, using the Glk API.")
1601 (license license:expat)))
1603 (define-public fizmo
1609 (uri (string-append "https://christoph-ender.de/fizmo/source/"
1610 name "-" version ".tar.gz"))
1613 "1sd988db2302r7cbfcfghbmg8ck43c6hvnlnlpb0rqxb7pm9cwyy"))))
1614 (build-system gnu-build-system)
1617 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
1618 (ncurses (assoc-ref %build-inputs "ncurses")))
1619 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
1620 (string-append "jpeg_LIBS=-ljpeg")
1621 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
1622 (string-append "ncursesw_LIBS=-lncursesw")))))
1624 `(("pkg-config" ,pkg-config)))
1626 `(("freetype" ,freetype)
1627 ("libjpeg" ,libjpeg)
1629 ("libsndfile" ,libsndfile)
1630 ("libxml2" ,libxml2)
1631 ("ncurses" ,ncurses)
1633 (home-page "https://christoph-ender.de/fizmo/")
1634 (synopsis "Z-machine interpreter")
1636 "Fizmo is a console-based Z-machine interpreter. It is used to play
1637 interactive fiction, also known as text adventures, which were implemented
1638 either by Infocom or created using the Inform compiler.")
1639 (license license:bsd-3)))
1641 (define-public gnugo
1647 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
1651 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
1652 (build-system gnu-build-system)
1653 (inputs `(("readline" ,readline)))
1654 (synopsis "Play the game of Go")
1656 "GNU Go is a program that plays the game of Go, in which players
1657 place stones on a grid to form territory or capture other stones. While
1658 it can be played directly from the terminal, rendered in ASCII characters,
1659 it is also possible to play GNU Go with 3rd party graphical interfaces or
1660 even in Emacs. It supports the standard game storage format (SGF, Smart
1661 Game Format) and inter-process communication format (GMP, Go Modem
1663 (home-page "https://www.gnu.org/software/gnugo/")
1664 (license license:gpl3+)))
1666 (define-public extremetuxracer
1668 (name "extremetuxracer")
1673 "mirror://sourceforge/extremetuxracer/releases/"
1674 version "/etr-" version ".tar.xz"))
1677 "0d2j4ybdjmimg67v2fndgahgq4fvgz3fpfb3a4l1ar75n6hy776s"))))
1678 (build-system gnu-build-system)
1680 `(("pkg-config" ,pkg-config)))
1684 (synopsis "High speed arctic racing game based on Tux Racer")
1685 ;; Snarfed straight from Debian
1686 (description "Extreme Tux Racer, or etracer as it is called for short, is
1687 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
1688 game is to slide down a snow- and ice-covered mountain as quickly as possible,
1689 avoiding the trees and rocks that will slow you down.
1691 Collect herrings and other goodies while sliding down the hill, but avoid fish
1694 This game is based on the GPL version of the famous game TuxRacer.")
1695 (home-page "https://sourceforge.net/projects/extremetuxracer/")
1696 (license license:gpl2+)))
1698 (define-public supertuxkart
1700 (name "supertuxkart")
1705 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
1706 version "/supertuxkart-" version "-src.tar.xz"))
1709 "1c4w47ibj87lgwiqygq8qi7jiz6gklj4dwf5bs5zk15s0rqlw0fq"))
1710 (modules '((guix build utils)))
1712 ;; Delete bundled library sources
1714 ;; FIXME: try to unbundle enet, and angelscript
1715 (for-each delete-file-recursively
1721 (substitute* "CMakeLists.txt"
1722 ;; Supertuxkart uses modified versions of the Irrlicht engine
1723 ;; and the bullet library. The developers gave an explanation here:
1724 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1725 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1727 (build-system cmake-build-system)
1729 `(#:tests? #f ; no check target
1731 (list "-DUSE_WIIUSE=0"
1732 ;; Do not use the bundled zlib
1733 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1734 ;; FIXME: needs libopenglrecorder
1735 "-DBUILD_RECORDER=0"
1736 ;; Irrlicht returns an integer instead of a boolean
1737 "-DCMAKE_C_FLAGS=-fpermissive")
1739 (modify-phases %standard-phases
1740 (add-after 'unpack 'unbundle
1741 (lambda* (#:key inputs #:allow-other-keys)
1742 (substitute* "CMakeLists.txt"
1744 (string-append (assoc-ref inputs "glew")
1746 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1747 (string-append "include_directories(\""
1748 (assoc-ref inputs "glew")
1755 ("libvorbis" ,libvorbis)
1756 ("freetype" ,freetype)
1757 ("fribidi" ,fribidi)
1760 ("libxrandr" ,libxrandr)
1762 ;; The following input is needed to build the bundled and modified
1763 ;; version of irrlicht.
1764 ("libjpeg" ,libjpeg)))
1766 `(("pkg-config" ,pkg-config)))
1767 (home-page "https://supertuxkart.net/")
1768 (synopsis "3D kart racing game")
1769 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1770 having fun over realism. You can play with up to 4 friends on one PC, racing
1771 against each other or just trying to beat the computer; single-player mode is
1773 (license license:gpl3+)))
1775 (define-public gnujump
1781 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1785 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1786 (build-system gnu-build-system)
1789 (modify-phases %standard-phases
1791 'configure 'link-libm
1792 (lambda _ (setenv "LIBS" "-lm"))))))
1797 ("sdl-image" ,sdl-image)
1798 ("sdl-mixer" ,sdl-mixer)))
1799 (home-page "http://gnujump.es.gnu.org/")
1801 "Game of jumping to the next floor, trying not to fall")
1803 "GNUjump is a simple, yet addictive game in which you must jump from
1804 platform to platform to avoid falling, while the platforms drop at faster rates
1805 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1806 falling, themeable graphics and sounds, and replays.")
1807 (license license:gpl3+)))
1809 (define-public wesnoth
1815 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1816 (version-major+minor version) "/wesnoth-"
1818 name "-" version ".tar.bz2"))
1821 "1mzrnbv71b4s41c5x8clhb53l8lidiwzny1hl828228pvys5bxkb"))))
1822 (build-system cmake-build-system)
1824 `(#:tests? #f)) ; no check target
1826 `(("gettext" ,gettext-minimal)
1827 ("pkg-config" ,pkg-config)))
1831 ("fribidi" ,fribidi)
1832 ("libvorbis" ,libvorbis)
1833 ("openssl" ,openssl)
1835 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
1836 (home-page "https://www.wesnoth.org/")
1837 (synopsis "Turn-based strategy game")
1839 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1840 with several single player campaigns, and multiplayer games (both networked and
1843 Battle for control on a range of maps, using variety of units which have
1844 advantages and disadvantages against different types of attacks. Units gain
1845 experience and advance levels, and are carried over from one scenario to the
1847 (license license:gpl2+)))
1849 (define-public wesnoth-server
1852 (name "wesnoth-server")
1856 ("openssl" ,openssl)
1859 `(#:configure-flags '("-DENABLE_GAME=OFF")
1860 ,@(package-arguments wesnoth)))
1861 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
1862 (description "This package contains a dedicated server for @emph{The
1863 Battle for Wesnoth}.")))
1865 (define-public gamine
1871 (uri (string-append "mirror://sourceforge/gamine-game/"
1872 "gamine-" version ".tar.gz"))
1875 "08wnk7w84c2413hwny89j2cn89cvfdf67bfc6wl0bf475if0mf4h"))))
1876 (build-system gnu-build-system)
1878 `(("pkg-config" ,pkg-config)
1879 ("intltool" ,intltool)))
1881 `(("gstreamer" ,gstreamer)
1882 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1883 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1888 (let ((out (assoc-ref %outputs "out")))
1889 (list (string-append "PREFIX=" out)
1890 (string-append "SYSCONFDIR=" out "/etc")))
1892 (modify-phases %standard-phases
1895 'install 'wrap-gamine
1896 (lambda* (#:key outputs #:allow-other-keys)
1897 (let ((out (assoc-ref outputs "out"))
1898 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1899 (wrap-program (string-append out "/bin/gamine")
1900 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1902 (home-page "http://gamine-game.sourceforge.net/")
1903 (synopsis "Mouse and keyboard discovery for children")
1905 "Gamine is a game designed for young children who are learning to use the
1906 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1907 on the screen and keyboard to display letters.")
1908 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1909 (license license:gpl3)))
1911 (define-public raincat
1919 "http://hackage.haskell.org/package/Raincat/Raincat-"
1924 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1925 (build-system haskell-build-system)
1927 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1928 ("ghc-mtl" ,ghc-mtl)
1929 ("ghc-random" ,ghc-random)
1930 ("ghc-glut" ,ghc-glut)
1931 ("freeglut" ,freeglut)
1932 ("ghc-opengl" ,ghc-opengl)
1933 ("ghc-sdl" ,ghc-sdl)
1934 ("ghc-sdl-image" ,ghc-sdl-image)
1935 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1936 (home-page "http://www.bysusanlin.com/raincat/")
1937 (synopsis "Puzzle game with a cat in lead role")
1938 (description "Project Raincat is a game developed by Carnegie Mellon
1939 students through GCS during the Fall 2008 semester. Raincat features game
1940 play inspired from classics Lemmings and The Incredible Machine. The project
1941 proved to be an excellent learning experience for the programmers. Everything
1942 is programmed in Haskell.")
1943 (license license:bsd-3)))
1945 (define-public manaplus
1948 (version "1.7.6.10")
1952 "http://repo.manaplus.org/manaplus/download/"
1953 version "/manaplus-" version ".tar.xz"))
1956 "0l7swvpzq20am4w2rsjpp6fsvbjv07il6wbfy45a7h9zsdihmqhl"))))
1957 (build-system gnu-build-system)
1960 (list (string-append "CPPFLAGS=-I"
1961 (assoc-ref %build-inputs "sdl-union")
1964 `(("pkg-config" ,pkg-config)))
1968 ("libxml2" ,libxml2)
1970 ("sdl-union" ,(sdl-union))))
1971 (home-page "http://manaplus.org")
1972 (synopsis "Client for 'The Mana World' and similar games")
1974 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1975 fully supported client for @uref{http://www.themanaworld.org, The mana
1976 world}, @uref{http://evolonline.org, Evol Online} and
1977 @uref{http://landoffire.org, Land of fire}.")
1978 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1979 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1980 ;; The rest is under GPL2+.
1981 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1983 (define openttd-engine
1985 (name "openttd-engine")
1988 (origin (method url-fetch)
1989 (uri (string-append "http://binaries.openttd.org/releases/"
1990 version "/openttd-" version "-source.tar.xz"))
1993 "0dhv5bbbg1dmmq7fi3xss0a9jq2rqgb5sf9fsqzlsjcdm590j6b1"))
1994 (modules '((guix build utils)))
1996 ;; The DOS port contains proprietary software.
1997 '(delete-file-recursively "os/dos"))))
1998 (build-system gnu-build-system)
2000 `(#:tests? #f ; no "check" target
2002 (modify-phases %standard-phases
2003 ;; The build process fails if the configure script is passed the
2004 ;; option "--enable-fast-install".
2006 (lambda* (#:key inputs outputs (configure-flags '())
2008 (let ((out (assoc-ref outputs "out"))
2009 (lzo (assoc-ref inputs "lzo")))
2011 (apply system* "./configure"
2012 (string-append "--prefix=" out)
2013 ;; Provide the "lzo" path.
2014 (string-append "--with-liblzo2="
2015 lzo "/lib/liblzo2.a")
2016 ;; Put the binary in 'bin' instead of 'games'.
2018 configure-flags))))))))
2019 (native-inputs `(("pkg-config" ,pkg-config)))
2021 `(("allegro" ,allegro-4)
2022 ("fontconfig" ,fontconfig)
2023 ("freetype" ,freetype)
2030 (synopsis "Transportation economics simulator")
2031 (description "OpenTTD is a game in which you transport goods and
2032 passengers by land, water and air. It is a re-implementation of Transport
2033 Tycoon Deluxe with many enhancements including multiplayer mode,
2034 internationalization support, conditional orders and the ability to clone,
2035 autoreplace and autoupdate vehicles. This package only includes the game
2036 engine. When you start it you will be prompted to download a graphics set.")
2037 (home-page "http://openttd.org/")
2038 ;; This package is GPLv2, except for a few files located in
2039 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
2040 ;; licenses. In addition, this software contains an in-game downloader
2041 ;; from which the user may find non-functional data licensed under
2043 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
2045 (define openttd-opengfx
2047 (name "openttd-opengfx")
2052 (uri (string-append "http://binaries.openttd.org/extra/opengfx/"
2053 version "/opengfx-" version "-source.tar.xz"))
2056 "0iz66q7p1mf00njfjbc4vibh3jaybki7armkl18iz7p6x4chp9zv"))))
2057 (build-system gnu-build-system)
2059 '(#:make-flags (list "CC=gcc"
2060 (string-append "INSTALL_DIR="
2061 (assoc-ref %outputs "out")
2062 "/share/games/openttd/baseset/opengfx"))
2064 (modify-phases %standard-phases
2067 ;; Make sure HOME is writable for GIMP.
2068 (setenv "HOME" (getcwd))
2070 ;; Redirect stdout, not stderr, to /dev/null. This prevents
2071 ;; dos2unix from receiving its version information as a flag.
2072 (substitute* "Makefile"
2073 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
2074 "$(UNIX2DOS) -q --version 1>/dev/null")))))
2075 ;; The check phase for this package only checks the md5sums of the built
2076 ;; GRF files against the md5sums of the release versions. Because we use
2077 ;; different software versions than upstream does, some of the md5sums
2078 ;; are different. However, the package is still reproducible, it's safe
2079 ;; to disable this test.
2081 #:parallel-build? #f))
2082 (native-inputs `(("dos2unix" ,dos2unix)
2084 ("grfcodec" ,grfcodec)
2086 ("python" ,python-2)))
2087 (home-page "http://dev.openttdcoop.org/projects/opengfx")
2088 (synopsis "Base graphics set for OpenTTD")
2090 "The OpenGFX projects is an implementation of the OpenTTD base grahics
2091 set that aims to ensure the best possible out-of-the-box experience.
2093 OpenGFX provides you with...
2095 @item All graphics you need to enjoy OpenTTD.
2096 @item Uniquely drawn rail vehicles for every climate.
2097 @item Completely snow-aware rivers.
2098 @item Different river and sea water.
2099 @item Snow-aware buoys.
2101 (license license:gpl2)))
2103 (define openttd-opensfx
2105 (name "openttd-opensfx")
2111 "https://binaries.openttd.org/extra/opensfx/"
2112 version "/opensfx-" version "-source.tar.gz"))
2115 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
2116 (build-system gnu-build-system)
2118 `(("catcodec" ,catcodec)
2119 ("python" ,python2-minimal)))
2122 (list (string-append "INSTALL_DIR=" %output
2123 "/share/games/openttd/baseset/opensfx"))
2125 (modify-phases %standard-phases
2126 (add-after 'unpack 'make-reproducible
2128 ;; Remove the time dependency of the installed tarball by setting
2129 ;; the modification times if its members to 0.
2130 (substitute* "scripts/Makefile.def"
2131 (("-cf") " --mtime=@0 -cf"))
2133 (delete 'configure))))
2134 (home-page "http://dev.openttdcoop.org/projects/opensfx")
2135 (synopsis "Base sounds for OpenTTD")
2136 (description "OpenSFX is a set of free base sounds for OpenTTD which make
2137 it possible to play OpenTTD without requiring the proprietary sound files from
2138 the original Transport Tycoon Deluxe.")
2139 (license license:cc-sampling-plus-1.0)))
2141 (define openttd-openmsx
2143 (name "openttd-openmsx")
2149 "https://binaries.openttd.org/extra/openmsx/"
2150 version "/openmsx-" version "-source.tar.gz"))
2153 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
2154 (build-system gnu-build-system)
2156 `(("python" ,python2-minimal)))
2159 (list (string-append "INSTALL_DIR=" %output
2160 "/share/games/openttd/baseset"))
2162 (modify-phases %standard-phases
2164 (add-after 'install 'post-install
2165 ;; Rename openmsx-version to openmsx
2166 (lambda* (#:key outputs #:allow-other-keys)
2167 (let ((install-directory (string-append (assoc-ref outputs "out")
2168 "/share/games/openttd/baseset")))
2169 (rename-file (string-append install-directory "/openmsx-" ,version)
2170 (string-append install-directory "/openmsx"))
2172 (home-page "http://dev.openttdcoop.org/projects/openmsx")
2173 (synopsis "Music set for OpenTTD")
2174 (description "OpenMSX is a music set for OpenTTD which makes it possible
2175 to play OpenTTD without requiring the proprietary music from the original
2176 Transport Tycoon Deluxe.")
2177 (license license:gpl2)))
2179 (define-public openttd
2181 (inherit openttd-engine)
2185 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
2187 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
2189 `(modify-phases ,phases
2190 (add-after 'install 'install-data
2191 (lambda* (#:key inputs outputs #:allow-other-keys)
2194 (copy-recursively (assoc-ref inputs input)
2195 (assoc-ref outputs "out")))
2196 (list "opengfx" "openmsx" "opensfx"))
2199 `(("timidity++" ,timidity++)
2200 ,@(package-inputs openttd-engine)))
2202 `(("opengfx" ,openttd-opengfx)
2203 ("openmsx" ,openttd-openmsx)
2204 ("opensfx" ,openttd-opensfx)
2205 ,@(package-native-inputs openttd-engine)))))
2207 (define-public openrct2
2214 (uri (string-append "https://github.com/OpenRCT2/OpenRCT2/archive/v"
2218 "1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx"))
2219 (file-name (string-append name "-" version ".tar.gz"))))
2220 (build-system cmake-build-system)
2222 `(#:tests? #f ;; no tests available
2224 (modify-phases %standard-phases
2225 (add-after 'unpack 'fix-usr-share-paths
2226 (lambda* (#:key make-flags outputs #:allow-other-keys)
2227 ;; Fix some references to /usr/share.
2228 (substitute* "src/openrct2/platform/linux.c"
2230 (string-append (assoc-ref %outputs "out") "/share")))))
2231 (add-after 'build 'fix-cmake-install-file
2233 ;; The build system tries to download a file and compare hashes.
2234 ;; Since we have no network, remove this so the install doesn't fail.
2235 (substitute* "cmake_install.cmake"
2236 (("EXPECTED_HASH SHA1=b587d83de508d0b104d14c599b76f8565900fce0")
2238 (inputs `(("curl" ,curl)
2239 ("fontconfig" ,fontconfig)
2240 ("freetype" ,freetype)
2241 ("jansson" ,jansson)
2245 ("openssl" ,openssl)
2247 ("speexdsp" ,speexdsp)
2250 `(("pkg-config" ,pkg-config)))
2251 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2252 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
2253 (description "OpenRCT2 is a free software re-implementation of
2254 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
2255 maintaining an amusement park containing attractions, shops and facilities.
2257 Note that this package does @emph{not} provide the game assets (sounds,
2259 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
2260 ;; regarding assets.
2261 (license license:gpl3+)))
2263 (define-public pinball
2268 (origin (method url-fetch)
2269 (uri (string-append "mirror://sourceforge/pinball/pinball/"
2270 "pinball-" version "/"
2271 "pinball-" version ".tar.gz"))
2274 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2275 (patches (search-patches "pinball-const-fix.patch"
2276 "pinball-cstddef.patch"
2277 "pinball-missing-separators.patch"
2278 "pinball-src-deps.patch"
2279 "pinball-system-ltdl.patch"))))
2280 (build-system gnu-build-system)
2285 ("sdl-image" ,sdl-image)
2286 ("sdl-mixer" ,sdl-mixer)))
2289 (list (string-append "CPPFLAGS=-I"
2290 (assoc-ref %build-inputs "sdl-image")
2292 (assoc-ref %build-inputs "sdl-mixer")
2294 (home-page "http://pinball.sourceforge.net")
2295 (synopsis "Pinball simulator")
2296 (description "The Emilia Pinball Project is a pinball simulator. There
2297 are only two levels to play with, but they are very addictive.")
2298 (license license:gpl2)))
2300 (define-public pioneers
2306 (uri (string-append "http://downloads.sourceforge.net/pio/"
2307 "pioneers-" version ".tar.gz"))
2310 "1p1d18hrfmqcnghip3shkzcs5qkz6j99jvkdkqfi7pqdvjc323cs"))))
2311 (build-system gnu-build-system)
2312 (inputs `(("gtk+" ,gtk+)
2313 ("librsvg" ,librsvg)
2315 (native-inputs `(("intltool" ,intltool)
2316 ("pkg-config" ,pkg-config)))
2317 (synopsis "Board game inspired by The Settlers of Catan")
2318 (description "Pioneers is an emulation of the board game The Settlers of
2319 Catan. It can be played on a local network, on the internet, and with AI
2321 (home-page "http://pio.sourceforge.net/")
2322 (license license:gpl2+)))
2324 (define-public einstein
2330 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2331 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2334 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2335 (patches (search-patches "einstein-build.patch"))))
2336 (build-system gnu-build-system)
2338 `(("freetype" ,freetype)
2339 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2342 `(("font-dejavu" ,font-dejavu)))
2344 `(#:tests? #f ; no check target
2346 (modify-phases %standard-phases
2348 (lambda* (#:key outputs inputs #:allow-other-keys)
2349 (let ((out (assoc-ref outputs "out"))
2350 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2351 "/share/fonts/truetype/DejaVuSans.ttf")))
2352 (substitute* "Makefile"
2353 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2354 ;; The patch above registers a free font for use by the binary,
2355 ;; but the font is copied during the compile phase into a
2356 ;; resources file, so we need to make the ttf file available.
2357 (symlink dejavu "res/DejaVuSans.ttf")
2359 (synopsis "Logic puzzle game")
2360 (description "The goal of this logic game is to open all cards in a 6x6
2361 grid, using a number of hints as to their relative position. The game idea
2362 is attributed to Albert Einstein.")
2363 ;; The original home page has disappeared.
2364 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2365 "http://games.flowix.com/en/index.html"))
2366 ;; License according to
2367 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2368 ;; The source code is a DFSG-sanitized tarball and does not contain any
2369 ;; license information.
2370 (license license:gpl3+)))
2372 (define-public powwow
2379 "https://www.hoopajoo.net/static/projects/powwow-"
2381 (file-name (string-append name "-" version ".tar.gz"))
2384 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2386 `(("ncurses" ,ncurses)))
2387 (build-system gnu-build-system)
2388 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2389 (synopsis "MUD and telnet client")
2391 "POWWOW is a client software which can be used for telnet as well as for
2392 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2393 the chat server psyced with the specific config located at
2394 http://lavachat.symlynx.com/unix/")
2395 (license license:gpl2+)))
2397 (define-public red-eclipse
2398 (let ((release "1.6.0")
2401 '(("acerspyro" "07mzgdahnr3w3w7kf8nmy20r199rimfx9ryqxjdr793sw0vawqd3")
2402 ("actors" "1hkgscfhg0kmwgym0mw56fhcckzbb2hh3nsvd45v4mdfyk0xnrm7")
2403 ("appleflap" "1q4xs3x904mrrbxzv6lpr3lywm8p6i8339ijzy9j091s2wdl51ka")
2404 ("blendbrush" "004md2haysr9w8fj6l7bj9wcfjqrq9wx1rrjf9dv16k5sbrkqza9")
2405 ("caustics" "1qmmv8ds70j1ixy4rvli309vbcyjq1l5j1wri6nbnjay10f9fcgq")
2406 ("crosshairs" "0q1vadg5cai9i6igl6y08774fd05gav0kinbgb2757n47ig50bns")
2407 ("dziq" "1s9248ky2qqy24z9c2vgpisz500dvsaj249pv1fkrxgsypjm1z6v")
2408 ("elyvisions" "15synpms05996v4c4kdl0h899spl4z7si9kl8c4m7rvc2yvin1ga")
2409 ("fonts" "1l4727ai8mphi7n3wcjp2lh3p47nh6w82s5dpqbbjpqr9gilb69j")
2410 ("freezurbern" "0hcdbzs02mvpsfhmahhqjv6pd8lbsag1bm6rpy61ns5qwmhg96ys")
2411 ("john" "1whyvlx87mb83kfb7jhhnwz9s7lry4li8l3xar61vmlqgmsnz33d")
2412 ("jojo" "02wxa93f5al4rlnsdjpd0hlnca0ympnj8481lgdxx70hny8zi3qi")
2413 ("jwin" "1gb4l7lbhr150hml1y0wbyx7266q5nslh6n494wwrrsvp11s2qk8")
2414 ("luckystrike" "0wy2spvhx5k233fsl283250ym5bqvkk8i6i19sw3zvzyxp2p4yq9")
2415 ("maps" "1dmvp9mskval606z5srjd909jpm6qz4fdcpaszkkhfr5ajbj30vq")
2416 ("mayhem" "0hkzzx0rxda70ixw9lfh9v1dpsbn2dj86jrr3zxjgasbgaxw37ax")
2417 ("mikeplus64" "144fxhp4qjqjw3gvhf7ym6rnfxvxc0zvd3f54jg1jgnccc1hfyah")
2418 ("misc" "0bpvibyc6vjhbzsf67xxn85yq2h97xs96icbskwzs2wsd860kq8c")
2419 ("nieb" "0d72wsibk9sg9nhin3fwzz9zljiccyln0fn42y2q2xbd4my23b1k")
2420 ("nobiax" "19lr36ys98cmpp739svjar1j942fbxz6r062gi7ygh89zh9yrgfy")
2421 ("particles" "02pnq8ksl7f6kqxss3aza98jssdq2s41rhkhki71ynavp2a5akar")
2422 ("philipk" "1xkrb7wa1pyhbs4xxx7vnnzsxrqzswk7gjbdac7i7rj0lwnfaij2")
2423 ("projectiles" "1hra0f1ifiddh16fv4pqcr2amf046lf445v0653zkyri43zgrj5f")
2424 ("props" "0ff6a8pz62f4nsk4c9cr50kirw108a661y5j6fvlsjickw3xjmyv")
2425 ("skyboxes" "1lq58dhrdiivq7llkiyqwpi3bwa89r8hbi98p7zjhw7wdn34i6n2")
2426 ("snipergoth" "0d5qf01bxd4dlffgxf8i91zq6mbyjmfd00dpyligpfj6fdbz87gc")
2427 ("sounds" "0z6jmxsr3w735hrdnxypdb0gi399pwkaycv9grjpiqy43j3ic7gj")
2428 ("textures" "0k5a47g2z99xn17vw7bqbp0w726gxmk33g5gwmqvfhxxxzzwimvi")
2429 ("torley" "12x23l8xcv9ard5v76lb210lvp66whsns2p3k3xkd1sabp5ixbd5")
2430 ("trak" "03kmwj47yb3dqzb6k9kilna9ja8c6jcnblvbs72x15767fl496pb")
2431 ("ulukai" "0vvd016a7x981ixif6dnlg45s0ak7i89pgyrgwy2fpd94nl2am15")
2432 ("unnamed" "18sxvdha41njp6g8wn56mjy6w9x778c793gh8fr0h9cnysb5gfmi")
2433 ("vanities" "1p38mc2566bmb4vdyr9n9s6fkwmynp2xlpdq2a97gzgi4nmm0232")
2434 ("vegetation" "0pf3qvqzabdcri5za61z6m89b5hq7sd3q0idkazmx88a62mcclkb")
2435 ("weapons" "1jr05y9qhhx53plvir35srvv3cmn6wa065p3bskx6h1x6dcbx3c6")
2436 ("wicked" "14b9f92h8hccp7a015z6rqgbs8236sdyxnwsq991ylnap7cbwvam"))))
2438 (name "red-eclipse")
2439 (version (if (zero? revision)
2441 (string-append release "-"
2442 (number->string revision))))
2445 (uri (string-append "https://github.com/red-eclipse/base"
2446 "/archive/v" release ".tar.gz"))
2447 (file-name (string-append name "-" version ".tar.gz"))
2450 "1vs9k6f5fgsiy1n72imlqm8khjwm8cryc08zwd4gr7yxlxv45bs0"))))
2451 (build-system gnu-build-system)
2453 `(#:tests? #f ; no check target
2454 #:make-flags (list "CC=gcc" "-Csrc"
2455 (string-append "INSTDIR="
2456 (assoc-ref %outputs "out") "/bin")
2457 (string-append "prefix="
2458 (assoc-ref %outputs "out")))
2460 (modify-phases %standard-phases
2461 (add-after 'unpack 'unpack-data
2462 (lambda* (#:key inputs #:allow-other-keys)
2463 (delete-file-recursively "data")
2465 (for-each (lambda (name)
2466 (invoke "tar" "-xvf"
2467 (assoc-ref inputs name)
2471 name "-" ,release "/"
2473 (list ,@(map car data-sources)))
2475 (add-after 'unpack-data 'add-store-data-package-path-as-default
2476 (lambda* (#:key outputs #:allow-other-keys)
2477 (substitute* "src/engine/server.cpp"
2478 (("(else[[:space:]]*)((addpackagedir\\()\"data\"(\\);))"
2481 addpackagedir_original
2483 addpackagedir_close)
2484 (string-append else_part
2488 (assoc-ref outputs "out")
2489 "/share/redeclipse/data\""
2492 addpackagedir_original
2495 (delete 'configure) ; no configure script
2496 (add-after 'set-paths 'set-sdl-paths
2497 (lambda* (#:key inputs #:allow-other-keys)
2499 (string-append (assoc-ref inputs "sdl-union")
2502 (add-after 'install 'copy-data
2503 (lambda* (#:key outputs #:allow-other-keys)
2504 (let ((out (assoc-ref outputs "out")))
2505 (copy-recursively "config"
2506 (string-append out "/config"))
2507 (copy-file "doc/examples/servinit.cfg"
2508 (string-append out "/config/servinit.cfg"))
2509 (copy-recursively "data"
2510 (string-append out "/share/redeclipse/data"))
2511 (mkdir-p (string-append out "/lib/redeclipse"))
2512 (symlink (string-append out "/share/redeclipse/data")
2513 (string-append out "/lib/redeclipse/data")))
2515 (add-after 'copy-data 'wrap-program
2516 (lambda* (#:key inputs outputs #:allow-other-keys)
2517 (let* ((out (assoc-ref outputs "out"))
2518 (bin (string-append out "/bin")))
2519 (with-directory-excursion bin
2520 (rename-file "redeclipse_linux"
2521 ".redeclipse_linux-real")
2522 (rename-file "redeclipse_server_linux"
2523 ".redeclipse_server_linux-real")
2524 (call-with-output-file "redeclipse_linux"
2526 (format port "#!~a/bin/sh
2527 # Run the thing from its home, otherwise it just bails out.
2529 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2530 (assoc-ref inputs "bash") ;implicit input
2532 (string-append bin))))
2533 (call-with-output-file "redeclipse_server_linux"
2535 (format port "#!~a/bin/sh
2536 # Run the thing from its home, otherwise it just bails out.
2538 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2539 (assoc-ref inputs "bash") ;implicit input
2541 (string-append bin))))
2542 (chmod "redeclipse_linux" #o555)
2543 (chmod "redeclipse_server_linux" #o555)))
2545 (native-inputs `(("pkg-config" ,pkg-config)))
2549 ("sdl-union" ,(sdl-union (list sdl2
2552 ;; Create origin records for the many separate data packages.
2553 ,@(map (match-lambda
2559 "https://github.com/red-eclipse/"
2560 name "/archive/v" release ".tar.gz"))
2561 (sha256 (base32 hash))
2562 (file-name (string-append name "-" version
2565 (home-page "http://redeclipse.net/")
2566 (synopsis "Arena shooter derived from the Cube 2 engine")
2568 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2569 Offering an innovative parkour system and distinct but all potent weapons,
2570 Red Eclipse provides fast paced and accessible gameplay.")
2571 ;; The engine is under Zlib; data files are covered by the other
2572 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2573 (license (list license:expat
2579 (define-public grue-hunter
2581 (name "grue-hunter")
2585 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2588 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2589 (build-system trivial-build-system) ; no Makefile.PL
2590 (arguments `(#:modules ((guix build utils))
2593 (use-modules (guix build utils))
2594 (use-modules (srfi srfi-1))
2596 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2597 (perl (string-append (assoc-ref %build-inputs
2600 (gzip (string-append (assoc-ref %build-inputs
2603 (tar (string-append (assoc-ref %build-inputs
2606 (out (assoc-ref %outputs "out"))
2607 (bin (string-append out "/bin"))
2608 (doc (string-append out
2609 "/share/doc/grue-hunter")))
2611 (copy-file tarball "grue-hunter.tar.gz")
2612 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2613 (zero? (system* tar "xvf" "grue-hunter.tar"))
2616 (copy-file "grue-hunter/gh.pl"
2617 (string-append bin "/grue-hunter"))
2618 (patch-shebang (string-append bin "/grue-hunter")
2621 (install-file "grue-hunter/AGPLv3.txt" doc))))))
2622 (inputs `(("perl" ,perl)
2625 ("tarball" ,source)))
2626 (home-page "http://jxself.org/grue-hunter.shtml")
2627 (synopsis "Text adventure game")
2629 "Grue Hunter is a text adventure game written in Perl. You must make
2630 your way through an underground cave system in search of the Grue. Can you
2631 capture it and get out alive?")
2632 (license license:agpl3+)))
2634 (define-public lierolibre
2640 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
2641 version "/+download/lierolibre-"
2645 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
2647 (search-patches "lierolibre-check-unaligned-access.patch"
2648 "lierolibre-try-building-other-arch.patch"
2649 "lierolibre-remove-arch-warning.patch"
2650 "lierolibre-newer-libconfig.patch"
2651 "lierolibre-is-free-software.patch"))
2652 (modules '((guix build utils)))
2655 ;; Delete pre-compiled files.
2656 (delete-file "data/LIERO.CHR")
2657 (delete-file "data/LIERO.SND")
2659 (build-system gnu-build-system)
2661 `(("imagemagick" ,imagemagick)
2662 ("pkg-config" ,pkg-config)
2663 ("util-linux" ,util-linux)
2667 ("libconfig" ,libconfig)
2668 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
2670 (home-page "https://gitlab.com/lierolibre/lierolibre")
2671 (synopsis "Old-school earthworm action game")
2673 "lierolibre is an earthworm action game where you fight another player
2674 (or the computer) underground using a wide array of weapons.
2678 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
2679 and Game of Tag, plus AI-players without true intelligence!
2680 @item Dat nostalgia.
2681 @item Extensions via a hidden F1 menu:
2684 @item Game controller support
2685 @item Powerlevel palettes
2687 @item Ability to write game variables to plain text files.
2688 @item Ability to load game variables from both EXE and plain text files.
2689 @item Scripts to extract and repack graphics, sounds and levels.
2692 To switch between different window sizes, use F6, F7 and F8, to switch to
2693 fullscreen, use F5 or Alt+Enter.")
2694 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
2695 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
2697 (define-public warzone2100
2699 (name "warzone2100")
2703 (uri (string-append "mirror://sourceforge/" name
2704 "/releases/" version "/" name "-" version
2708 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2709 (build-system gnu-build-system)
2712 (modify-phases %standard-phases
2713 (add-after 'unpack 'link-tests-with-qt
2715 (substitute* "tests/Makefile.in"
2716 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2717 (string-append prefix "$(QT5_LIBS) ")))
2719 (add-after 'unpack 'remove-reference-to-missing-file
2721 (substitute* "icons/Makefile.in"
2722 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2724 (add-after 'unpack 'patch-for-qt5.8
2726 (substitute* "lib/widget/editbox.cpp"
2730 (native-inputs `(("pkg-config" ,pkg-config)
2733 (inputs `(("fontconfig" ,fontconfig)
2734 ("freetype" ,freetype)
2735 ("fribidi" ,fribidi)
2737 ("libtheora" ,libtheora)
2738 ("libvorbis" ,libvorbis)
2739 ("libxrandr" ,libxrandr)
2743 ("qtscript" ,qtscript)
2744 ("openssl" ,openssl)
2745 ("quesoglc" ,quesoglc)
2747 (home-page "http://wz2100.net")
2748 (synopsis "3D Real-time strategy and real-time tactics game")
2750 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2751 modes. An extensive tech tree with over 400 different technologies, combined
2752 with the unit design system, allows for a wide variety of possible units and
2754 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2755 (license (list license:bsd-3
2760 license:lgpl2.1+))))
2762 (define-public starfighter
2764 (name "starfighter")
2769 "mirror://savannah/starfighter/"
2770 (version-major+minor version) "/"
2771 name "-" version "-src.tar.gz"))
2774 "1646hpjq8bz2fkfkja1dah511hn7zd2r7da4w9c9blhad3p5732v"))))
2775 (build-system gnu-build-system)
2777 `(("pkg-config" ,pkg-config)))
2780 ("sdl2-image" ,sdl2-image)
2781 ("sdl2-mixer" ,sdl2-mixer)))
2782 (home-page "http://starfighter.nongnu.org/")
2783 (synopsis "2D scrolling shooter game")
2785 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2786 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2787 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2788 way, you will encounter new foes, make new allies, and assist local rebels
2789 in strikes against the evil corporation.")
2790 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2791 (license (list license:gpl3+
2795 license:public-domain))))
2797 (define-public chromium-bsu
2799 (name "chromium-bsu")
2800 (version "0.9.16.1")
2803 (uri (string-append "mirror://sourceforge/" name
2804 "/Chromium B.S.U. source code/"
2805 name "-" version ".tar.gz"))
2808 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
2809 (build-system gnu-build-system)
2810 (native-inputs `(("pkg-config" ,pkg-config)))
2811 (inputs `(("gettext" ,gettext-minimal)
2813 ("quesoglc" ,quesoglc)
2814 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2815 (home-page "http://chromium-bsu.sourceforge.net/")
2816 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2818 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2819 are responsible for delivering supplies to the troops on the front line. Your
2820 ship has a small fleet of robotic fighters which you control from the relative
2821 safety of the Chromium vessel.")
2822 ;; Clarified Artistic License for everything but sound, which is covered
2823 ;; by the Expat License.
2824 (license (list license:clarified-artistic license:expat))))
2826 (define-public tuxpaint
2829 (version "0.9.22") ;keep VER_DATE below in sync
2833 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2834 version "/tuxpaint-" version ".tar.gz"))
2837 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2838 (modules '((guix build utils)))
2841 ;; Remove win32 directory which contains binary dll's and the
2842 ;; deprecated visualc directory.
2843 (for-each delete-file-recursively '("win32" "visualc"))
2844 (substitute* "Makefile"
2845 ;; Do not rely on $(GPERF) being an absolute file name
2846 (("\\[ -x \\$\\(GPERF\\) \\]")
2847 "$(GPERF) --version >/dev/null 2>&1"))))
2848 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2849 (build-system gnu-build-system)
2852 ("pkg-config" ,pkg-config)))
2855 ("fribidi" ,fribidi)
2856 ("gettext" ,gettext-minimal)
2858 ("librsvg" ,librsvg)
2859 ("libpaper" ,libpaper)
2861 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2862 ;; TODO: Use system fonts rather than those in data/fonts
2864 `(#:make-flags `("VER_DATE=2014-08-23"
2865 "GPERF=gperf" "CC=gcc"
2866 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2867 ,(string-append "PREFIX=" %output)
2868 "GNOME_PREFIX=$(PREFIX)"
2869 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2870 #:parallel-build? #f ;fails on some systems
2871 #:tests? #f ;No tests
2872 #:phases (modify-phases %standard-phases
2873 (delete 'configure) ;no configure phase
2874 (add-after 'install 'fix-import
2875 (lambda* (#:key inputs outputs #:allow-other-keys)
2876 (let* ((out (assoc-ref outputs "out"))
2877 (net (assoc-ref inputs "netpbm"))
2878 (tpi (string-append out "/bin/tuxpaint-import")))
2880 ;; Point to installation prefix so that the default
2881 ;; configure file is found.
2882 (("/usr/local") out))
2883 ;; tuxpaint-import uses a bunch of programs from
2884 ;; netpbm, so make sure it knows where those are
2887 (,(string-append net "/bin"))))))))))
2888 (native-search-paths
2889 (list (search-path-specification
2890 (variable "TUXPAINT_STAMPS_PATH")
2891 (files '("share/tuxpaint/stamps")))))
2892 (home-page "http://www.tuxpaint.org")
2893 (synopsis "Drawing software for children")
2895 "Tux Paint is a free drawing program designed for young children (kids
2896 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2897 and an encouraging cartoon mascot who helps guide children as they use the
2898 program. It provides a blank canvas and a variety of drawing tools to help
2899 your child be creative.")
2900 (license license:gpl2+)))
2902 (define-public tuxpaint-stamps
2904 (name "tuxpaint-stamps")
2905 (version "2014.08.23")
2909 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2910 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2911 "/tuxpaint-stamps-" version ".tar.gz"))
2914 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2915 (build-system trivial-build-system)
2920 `(#:modules ((guix build utils))
2922 (use-modules (guix build utils))
2925 (assoc-ref %build-inputs "tar") "/bin" ":"
2926 (assoc-ref %build-inputs "gzip") "/bin"))
2927 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
2928 (chdir (string-append ,name "-" ,version))
2929 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2931 (copy-recursively "stamps" dir)))))
2932 (home-page (package-home-page tuxpaint))
2933 (synopsis "Stamp images for Tux Paint")
2935 "This package contains a set of \"Rubber Stamp\" images which can be used
2936 with the \"Stamp\" tool within Tux Paint.")
2937 (license license:gpl2+)))
2939 (define-public tuxpaint-config
2941 (name "tuxpaint-config")
2942 (version "0.0.13") ;keep VER_DATE below in sync
2946 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2947 version "/tuxpaint-config-" version ".tar.gz"))
2950 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2951 (build-system gnu-build-system)
2953 `(("gettext" ,gettext-minimal)))
2956 ("libpaper" ,libpaper)
2957 ;; TODO: Should the following be propagated by fltk?
2962 `(#:make-flags `("VER_DATE=2014-08-23"
2963 "CONFDIR=/etc/tuxpaint" ;don't write to store
2964 ,(string-append "PREFIX=" %output)
2965 "GNOME_PREFIX=$(PREFIX)")
2966 #:parallel-build? #f ;race conditions
2967 #:tests? #f ;no tests
2968 #:phases (modify-phases %standard-phases
2969 (delete 'configure) ;no configure phase
2970 (add-before 'install 'gzip-no-name
2972 (substitute* "Makefile"
2973 ;; tuxpaint-config compresses its own documentation;
2974 ;; make sure it uses flags for reproducibility.
2975 (("gzip") "gzip --no-name"))))
2976 (add-before 'install 'make-install-dirs
2977 (lambda* (#:key outputs #:allow-other-keys)
2978 (let ((out (assoc-ref outputs "out")))
2979 (mkdir-p (string-append out "/bin"))
2981 (home-page (package-home-page tuxpaint))
2982 (synopsis "Configure Tux Paint")
2984 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2985 (license license:gpl2))) ;no "or later" present
2987 (define-public supertux
2993 (uri (string-append "https://github.com/SuperTux/supertux/"
2994 "releases/download/v" version "/SuperTux-v"
2995 version "-Source.tar.gz"))
2998 "1i8avad7w7ikj870z519j383ldy29r6f956bs38cbr8wk513pp69"))))
3001 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
3002 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
3003 (build-system cmake-build-system)
3004 (inputs `(("sdl2" ,sdl2)
3005 ("sdl2-image" ,sdl2-image)
3006 ("sdl2-mixer" ,sdl2-mixer)
3010 ("libvorbis" ,libvorbis)
3015 (native-inputs `(("pkg-config" ,pkg-config)))
3016 (synopsis "2D platformer game")
3017 (description "SuperTux is a free classic 2D jump'n run sidescroller game
3018 in a style similar to the original Super Mario games covered under
3020 (home-page "https://supertuxproject.org/")
3021 (license license:gpl3+)))
3023 (define-public tintin++
3029 (uri (string-append "mirror://sourceforge/tintin"
3030 "/TinTin++ Source Code/" version
3031 "/tintin" "-" version ".tar.gz"))
3034 "1g7bh8xs1ml0iyraps3a3dzaycci922y7fk5j0wyr4ssyjzsy8nx"))))
3036 `(("gnutls" ,gnutls)
3038 ("readline" ,readline)
3041 '(#:tests? #f ; no test suite
3043 (modify-phases %standard-phases
3044 ;; The source is in tt/src.
3045 (add-before 'configure 'chdir
3049 (build-system gnu-build-system)
3050 (home-page "http://tintin.sourceforge.net/")
3051 (synopsis "MUD client")
3053 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
3054 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
3055 as well as those required to login via telnet on Linux / Mac OS X servers, and an
3056 auto mapper with a VT100 map display.")
3057 (license license:gpl2+)))
3064 (origin (method url-fetch)
3066 "https://github.com/sgimenez/laby/archive/"
3067 name "-" version ".tar.gz"))
3070 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
3071 (patches (search-patches "laby-make-install.patch"))))
3072 (build-system gnu-build-system)
3074 `(("lablgtk" ,lablgtk)
3076 ("ocaml-findlib" ,ocaml-findlib)))
3079 (modify-phases %standard-phases
3081 (add-before 'build 'setenv
3082 (lambda* (#:key inputs #:allow-other-keys)
3083 (let ((lablgtk (assoc-ref inputs "lablgtk")))
3084 (setenv "LD_LIBRARY_PATH"
3085 (string-append lablgtk "/lib/ocaml/stublibs"))))))
3086 #:tests? #f ; no 'check' target
3088 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
3089 (home-page "https://sgimenez.github.io/laby/")
3090 (synopsis "Programming game")
3091 (description "Learn programming, playing with ants and spider webs ;-)
3092 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
3093 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
3094 programmers may also add their own favorite language.")
3095 (license license:gpl3+)))
3097 (define-public bambam
3104 (uri (string-append "https://github.com/porridge/bambam/archive/"
3106 (file-name (string-append name "-" version ".tar.gz"))
3109 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
3110 (build-system python-build-system)
3112 `(#:python ,python-2
3113 #:tests? #f ; no tests
3115 (modify-phases %standard-phases
3117 (add-before 'install 'patch-data-dir-location
3119 (substitute* "bambam.py"
3120 (("'data'") "'../share/bambam/data'"))
3123 (lambda* (#:key outputs #:allow-other-keys)
3124 (let* ((out (assoc-ref outputs "out"))
3125 (bin (string-append out "/bin"))
3126 (share (string-append out "/share")))
3128 (copy-file "bambam.py" (string-append bin "/bambam"))
3129 (install-file "bambam.6" (string-append share "/man/man6"))
3130 (copy-recursively "data" (string-append share "/bambam/data")))
3133 `(("python-pygame" ,python-pygame)))
3134 (home-page "https://github.com/porridge/bambam")
3135 (synopsis "Keyboard mashing and doodling game for babies")
3136 (description "Bambam is a simple baby keyboard (and gamepad) masher
3137 application that locks the keyboard and mouse and instead displays bright
3138 colors, pictures, and sounds.")
3139 (license license:gpl3+)))
3141 (define-public mrrescue
3148 "https://github.com/SimonLarsen/mrrescue/releases/"
3149 "download/" version "/" name version ".love"))
3150 (file-name (string-append name "-" version ".love"))
3153 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
3154 (build-system trivial-build-system)
3156 '(#:modules ((guix build utils))
3159 (use-modules (guix build utils))
3160 (let* ((out (assoc-ref %outputs "out"))
3161 (bindir (string-append out "/bin"))
3162 (prog (string-append bindir "/mrrescue"))
3163 (source (assoc-ref %build-inputs "source"))
3164 (bash (string-append (assoc-ref %build-inputs "bash")
3166 (love (string-append (assoc-ref %build-inputs "love")
3169 (with-output-to-file prog
3171 (format #t "#!~a~%" bash)
3172 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
3178 (home-page "http://tangramgames.dk/games/mrrescue")
3179 (synopsis "Arcade-style fire fighting game")
3181 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
3182 civilians from burning buildings. The game features fast paced fire
3183 extinguishing action, intense boss battles, a catchy soundtrack and lots of
3184 throwing people around in pseudo-randomly generated buildings.")
3185 (license (list license:zlib ; for source code
3186 license:cc-by-sa3.0)))) ; for graphics and music assets
3188 (define-public hyperrogue
3192 ;; When updating this package, be sure to update the "hyperrogue-data"
3193 ;; origin in native-inputs.
3197 "http://www.roguetemple.com/z/hyper/"
3198 name (string-join (string-split version #\.) "")
3202 "0f68pcnsgl406dhm91ckn3f364bar9m9i5njp9vrmvhvv9p2icy0"))))
3203 (build-system gnu-build-system)
3205 `(#:tests? #f ; no check target
3206 #:make-flags '("CXXFLAGS=-std=c++11")
3208 (modify-phases %standard-phases
3209 (add-after 'set-paths 'set-sdl-paths
3210 (lambda* (#:key inputs #:allow-other-keys)
3212 (string-append (assoc-ref inputs "sdl-union")
3214 ;; Fix font and music paths.
3216 (lambda* (#:key inputs outputs #:allow-other-keys)
3217 (let* ((out (assoc-ref outputs "out"))
3218 (share-dir (string-append out "/share/hyperrogue"))
3219 (dejavu-dir (string-append
3220 (assoc-ref inputs "font-dejavu")
3221 "/share/fonts/truetype"))
3222 (dejavu-font "DejaVuSans-Bold.ttf")
3223 (music-file "hyperrogue-music.txt"))
3224 (substitute* "basegraph.cpp"
3226 (string-append dejavu-dir "/" dejavu-font)))
3227 (substitute* "sound.cpp"
3228 (((string-append "\\./" music-file))
3229 (string-append share-dir "/" music-file))
3231 (string-append share-dir "/sounds/")))
3232 (substitute* music-file
3234 (string-append share-dir "/sounds/"))))
3237 (lambda* (#:key inputs outputs #:allow-other-keys)
3238 (let* ((out (assoc-ref outputs "out"))
3239 (bin (string-append out "/bin"))
3240 (share-dir (string-append out "/share/hyperrogue")))
3242 (copy-file "hyper" (string-append bin "/hyperrogue"))
3243 (install-file "hyperrogue-music.txt" share-dir))
3245 (add-after 'install 'install-data
3246 (lambda* (#:key inputs outputs #:allow-other-keys)
3247 (let* ((data (assoc-ref inputs "hyperrogue-data"))
3248 (out (assoc-ref outputs "out"))
3249 (sounds (string-append out "/share/hyperrogue/sounds"))
3250 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
3252 ;; Extract media license information into sounds directory.
3254 (system* unzip "-j" data
3257 (string-join (string-split ,version #\.) "")
3258 "/sounds/credits.txt") "-d" sounds))
3259 ;; Extract sounds and music into sounds directory.
3261 (system* "unzip" "-j" data
3264 (string-join (string-split ,version #\.) "")
3265 "/*.ogg") "-d" sounds)))))))))
3267 `(("hyperrogue-data"
3272 "http://www.roguetemple.com/z/hyper/" name
3273 (string-join (string-split version #\.) "")
3277 "0bnp077qvlmxjlz1jjd6kpghlv9flxc19ac1xq3m3wyq1w9p3pab"))))
3280 `(("font-dejavu" ,font-dejavu)
3283 ("sdl-union" ,(sdl-union (list sdl
3287 (home-page "http://www.roguetemple.com/z/hyper/")
3288 (synopsis "Non-euclidean graphical rogue-like game")
3290 "HyperRogue is a game in which the player collects treasures and fights
3291 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3292 plane and not in euclidean space.
3294 In HyperRogue, the player can move through different parts of the world, which
3295 are home to particular creatures and may be subject to their own rules of
3298 While the game can use ASCII characters to display the the classical rogue
3299 symbols, it still needs graphics to render the non-euclidean world.")
3300 (license (list license:bsd-3 ; glew.c, mtrand.*
3301 license:cc-by-sa3.0 ; music
3302 license:cc-by-sa4.0 ; sounds
3304 license:public-domain ; direntx.*, some sounds
3305 license:zlib ; savepng.*
3306 license:gpl2+)))) ; remaining files
3308 (define-public kobodeluxe
3314 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3315 version ".tar.bz2"))
3318 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3319 (patches (search-patches
3320 "kobodeluxe-const-charp-conversion.patch"
3321 "kobodeluxe-enemies-pipe-decl.patch"
3322 "kobodeluxe-graphics-window-signed-char.patch"
3323 "kobodeluxe-manpage-minus-not-hyphen.patch"
3324 "kobodeluxe-midicon-segmentation-fault.patch"
3325 "kobodeluxe-paths.patch"))))
3326 (build-system gnu-build-system)
3329 (list (string-append "CPPFLAGS=-I"
3330 (assoc-ref %build-inputs "sdl-union")
3332 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3333 (synopsis "Shooter with space station destruction")
3335 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3336 for Un*x systems with X11.")
3337 (home-page "http://olofson.net/kobodl/")
3338 (license license:gpl2+)))
3340 (define-public freeciv
3347 (uri (list (string-append
3348 "http://files.freeciv.org/stable/freeciv-"
3351 "mirror://sourceforge/freeciv/Freeciv%20"
3352 (version-major+minor version) "/" version
3353 "/freeciv-" version ".tar.bz2")))
3356 "1lmydnnqraa947l7gdz6xgm0bgks1ywsivp9h4v8jr3avcv6gqzz"))))
3357 (build-system gnu-build-system)
3360 ("cyrus-sasl" ,cyrus-sasl)
3362 ("sdl-mixer" ,sdl-mixer)
3365 `(("pkg-config" ,pkg-config)))
3366 (home-page "http://www.freeciv.org/")
3367 (synopsis "Turn based empire building strategy game")
3368 (description "Freeciv is a turn based empire building strategy game
3369 inspired by the history of human civilization. The game commences in
3370 prehistory and your mission is to lead your tribe from the Stone Age
3372 (license license:gpl2+)))
3374 (define-public no-more-secrets
3376 (name "no-more-secrets")
3381 (uri (string-append "https://github.com/bartobri/no-more-secrets/"
3382 "archive/v" version ".tar.gz"))
3383 (file-name (string-append name "-" version ".tar.gz"))
3386 "1kpx1rirc3i7fb4lymp0hx5rqr0s2ay4za261rw3bcy6d23l1kyg"))))
3387 (build-system gnu-build-system)
3390 #:make-flags (list "CC=gcc" "all-ncurses"
3391 (string-append "prefix="
3392 (assoc-ref %outputs "out")))
3394 (modify-phases %standard-phases
3395 (delete 'configure))))
3397 `(("ncurses" ,ncurses)))
3398 (home-page "https://github.com/bartobri/no-more-secrets")
3399 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
3401 "@code{No More Secrets} provides a command line tool called \"nms\"
3402 that recreates the famous data decryption effect seen on screen in the 1992
3405 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
3406 it will apply the hollywood effect, initially showing encrypted data, then
3407 starting a decryption sequence to reveal the original plaintext characters.")
3408 (license license:expat)))
3410 (define-public megaglest-data
3412 (name "megaglest-data")
3418 "https://github.com/MegaGlest/megaglest-data"
3419 "/releases/download/" version "/megaglest-data-"
3423 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
3424 (build-system cmake-build-system)
3427 (home-page "https://megaglest.org/")
3428 (synopsis "Data files for MegaGlest")
3429 (description "This package contains the data files required for MegaGlest.")
3430 (license license:cc-by-sa3.0)))
3432 (define-public megaglest
3440 "https://github.com/MegaGlest/megaglest-source"
3441 "/releases/download/" version "/megaglest-source-"
3445 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
3446 (build-system cmake-build-system)
3449 ("fontconfig" ,fontconfig)
3452 ("libjpeg-turbo" ,libjpeg-turbo)
3453 ("megaglest-data" ,megaglest-data)
3455 ("miniupnpc" ,miniupnpc)
3457 ("libircclient" ,libircclient)
3459 ("libvorbis" ,libvorbis)
3462 ("wxwidgets" ,wxwidgets)))
3464 `(("cppunit" ,cppunit)
3465 ("pkg-config" ,pkg-config)))
3468 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
3469 (assoc-ref %build-inputs "megaglest-data")
3471 "-DBUILD_MEGAGLEST_TESTS=ON")
3473 (modify-phases %standard-phases
3474 (add-after 'unpack 'fix-ini-search-path
3475 (lambda* (#:key outputs #:allow-other-keys)
3476 (substitute* "source/glest_game/global/config.cpp"
3477 (("/usr/share/megaglest/")
3478 (string-append (assoc-ref outputs "out")
3479 "/share/megaglest/"))))))
3480 #:test-target "megaglest_tests"))
3481 (home-page "https://megaglest.org/")
3482 (synopsis "3D real-time strategy (RTS) game")
3483 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
3484 game, where you control the armies of one of seven different factions: Tech,
3485 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
3486 (license license:gpl2+)))
3488 (define-public freegish
3489 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
3493 (version (string-append "0-" revision "." (string-take commit 9)))
3497 (url "https://github.com/freegish/freegish.git")
3499 (file-name (git-file-name name version))
3502 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
3503 (modules '((guix build utils)))
3504 ;; The audio files in the "music" directory are licensed under
3505 ;; CC-BY-NC, so we delete them.
3508 (delete-file-recursively "music")
3510 (build-system cmake-build-system)
3512 `(#:tests? #f ; no tests included
3514 (list "-DCMAKE_INSTALL_FHS=ON")
3516 (modify-phases %standard-phases
3517 (add-after 'unpack 'set-DATAPATH
3518 (lambda* (#:key outputs #:allow-other-keys)
3519 (substitute* "CMakeLists.txt"
3520 (("^option\\(INSTALL_FHS" line)
3521 (string-append "add_definitions(-DDATAPATH=\""
3522 (assoc-ref outputs "out") "/share/freegish\")\n"
3526 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
3528 ("libvorbis" ,libvorbis)
3533 (home-page "https://github.com/freegish/freegish")
3534 (synopsis "Side-scrolling physics platformer with a ball of tar")
3535 (description "In FreeGish you control Gish, a ball of tar who lives
3536 happily with his girlfriend Brea, until one day a mysterious dark creature
3537 emerges from a sewer hole and pulls her below ground.")
3538 ;; The textures are available under the Expat license. All other assets
3539 ;; (including levels) are covered under CC-BY-SA or public domain. The
3540 ;; source code is under GPLv2+.
3541 (license (list license:gpl2+
3543 license:public-domain
3544 license:cc-by-sa3.0)))))
3546 (define-public cdogs-sdl
3547 ;; XXX: Use version 0.6.7 when it's available.
3548 (let ((commit "bab2031369b9ea2dbeb7eedbde10a43dd8ca83db")
3552 (version (git-version "0.6.6" revision commit))
3556 (url "https://github.com/cxong/cdogs-sdl.git")
3558 (file-name (git-file-name name version))
3561 "09sfqhrrffhvxbhigvrxfmai52w01w3f9kjmixjhqvqlkhn77c9n"))))
3562 (build-system cmake-build-system)
3565 (list (string-append "-DCDOGS_DATA_DIR="
3566 (assoc-ref %outputs "out")
3567 "/share/cdogs-sdl/"))))
3571 ("sdl2-image" ,sdl2-image)
3572 ("sdl2-mixer" ,sdl2-mixer)))
3573 (home-page "https://cxong.github.io/cdogs-sdl/")
3574 (synopsis "Classic overhead run-and-gun game")
3575 (description "C-Dogs SDL is a classic overhead run-and-gun game,
3576 supporting up to 4 players in co-op and deathmatch modes. Customize your
3577 player, choose from many weapons, and blast, slide and slash your way through
3578 over 100 user-created campaigns.")
3579 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
3580 ;; CC0/CC-BY/CC-BY-SA for assets.
3581 (license (list license:gpl2+
3586 license:cc-by-sa3.0)))))
3594 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
3595 version "/kiki-" version "-src.tgz"))
3598 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
3599 (modules '((guix build utils)))
3602 (for-each delete-file (find-files "." "\\.dll$"))
3605 (search-patches "kiki-level-selection-crash.patch"
3606 "kiki-makefile.patch"
3607 "kiki-missing-includes.patch"
3608 "kiki-portability-64bit.patch"))))
3609 (build-system gnu-build-system)
3611 `(#:tests? #f ; there are no tests
3612 #:make-flags '("CXX=g++")
3614 (modify-phases %standard-phases
3616 (lambda* (#:key inputs outputs #:allow-other-keys)
3617 (setenv "CPLUS_INCLUDE_PATH"
3618 (string-append (assoc-ref inputs "sdl-union")
3620 (assoc-ref inputs "python")
3621 "/include/python2.7:"
3622 (getenv "CPLUS_INCLUDE_PATH")))
3623 (substitute* "src/main/main.cpp"
3624 (("#include <SDL.h>" line)
3625 (string-append line "
3626 #define K_INCLUDE_GLUT
3627 #include \"KIncludeTools.h\""))
3628 (("// initialize SDL" line)
3629 (string-append "glutInit(&argc,argv);\n" line)))
3630 (substitute* "src/main/KikiController.cpp"
3631 (("getenv\\(\"KIKI_HOME\"\\)")
3632 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
3633 (substitute* "linux/Makefile"
3635 (string-append line " -fpermissive"))
3636 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
3638 (string-append "PYTHONHOME = "
3639 (assoc-ref inputs "python")
3641 (("\\$\\(GLLIBS\\)" line)
3642 (string-append line " -lm -lpython2.7")))
3643 (substitute* "src/main/KikiPythonWidget.h"
3644 (("#define __KikiPythonWidget" line)
3645 (string-append line "\n#include \"KikiPython.h\"")))
3647 (add-before 'build 'build-kodilib
3648 (lambda* (#:key make-flags #:allow-other-keys)
3649 (with-directory-excursion "kodilib/linux"
3650 (zero? (apply system* "make" make-flags)))))
3651 (add-after 'build-kodilib 'chdir
3652 (lambda _ (chdir "linux") #t))
3654 (lambda* (#:key outputs #:allow-other-keys)
3655 (let* ((out (assoc-ref outputs "out"))
3656 (bin (string-append out "/bin"))
3657 (share (string-append out "/share/kiki")))
3660 (install-file "kiki" bin)
3661 (copy-recursively "../py" (string-append share "/py"))
3662 (copy-recursively "../sound" (string-append share "/sound"))
3666 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
3667 ("freeglut" ,freeglut-2.8)
3668 ("sdl-union" ,(sdl-union (list sdl
3671 ("python" ,python-2)))
3674 (home-page "http://kiki.sourceforge.net/")
3675 (synopsis "3D puzzle game")
3676 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
3677 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
3678 small robot living in the nano world, repair its maker.")
3679 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
3680 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
3681 ;; for a statement from the author.
3682 (license license:public-domain)))
3684 (define-public teeworlds
3690 (uri (string-append "https://github.com/teeworlds/teeworlds/"
3691 "archive/" version "-release.tar.gz"))
3692 (file-name (string-append name "-" version ".tar.gz"))
3695 "1mqhp6xjl75l49050cid36wxyjn1qr0vjx1c709dfg1lkvmgs6l3"))
3696 (modules '((guix build utils)))
3699 (for-each delete-file-recursively
3700 '("src/engine/external/wavpack/"
3701 "src/engine/external/zlib/"))
3704 (search-patches "teeworlds-use-latest-wavpack.patch"))))
3705 (build-system gnu-build-system)
3707 `(#:tests? #f ; no tests included
3709 (modify-phases %standard-phases
3711 (lambda* (#:key outputs #:allow-other-keys)
3712 ;; Embed path to assets.
3713 (substitute* "src/engine/shared/storage.cpp"
3714 (("#define DATA_DIR.*")
3715 (string-append "#define DATA_DIR \""
3716 (assoc-ref outputs "out")
3717 "/share/teeworlds/data"
3720 ;; Bam expects all files to have a recent time stamp.
3721 (for-each (lambda (file)
3725 ;; Do not use bundled libraries.
3726 (substitute* "bam.lua"
3727 (("if config.zlib.value == 1 then")
3731 settings.link.libs:Add(\"wavpack\")\n"))
3732 (substitute* "src/engine/client/sound.cpp"
3733 (("#include <engine/external/wavpack/wavpack.h>")
3734 "#include <wavpack/wavpack.h>"))
3738 (zero? (system* "bam" "-a" "-v" "release"))))
3740 (lambda* (#:key outputs #:allow-other-keys)
3741 (let* ((out (assoc-ref outputs "out"))
3742 (bin (string-append out "/bin"))
3743 (data (string-append out "/share/teeworlds/data")))
3746 (for-each (lambda (file)
3747 (install-file file bin))
3748 '("teeworlds" "teeworlds_srv"))
3749 (copy-recursively "data" data)
3751 ;; FIXME: teeworlds bundles the sources of "pnglite", a two-file PNG
3752 ;; library without a build system.
3754 `(("freetype" ,freetype)
3757 ("sdl-union" ,(sdl-union (list sdl
3760 ("wavpack" ,wavpack)
3764 ("python" ,python-2)))
3765 (home-page "https://www.teeworlds.com")
3766 (synopsis "2D retro multiplayer shooter game")
3767 (description "Teeworlds is an online multiplayer game. Battle with up to
3768 16 players in a variety of game modes, including Team Deathmatch and Capture
3769 The Flag. You can even design your own maps!")
3770 (license license:bsd-3)))
3772 (define-public enigma
3778 (uri (string-append "mirror://sourceforge/enigma-game/"
3779 "Release%20" version "/enigma-"
3783 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
3784 (build-system gnu-build-system)
3787 (list "--with-system-enet")
3789 (modify-phases %standard-phases
3790 (add-after 'unpack 'find-sdl
3792 (substitute* "configure"
3793 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
3794 (substitute* '("tools/ttf2bmf.cc"
3795 "lib-src/enigma-core/ecl_font.cc"
3796 "lib-src/enigma-core/ecl_video.cc"
3797 "lib-src/enigma-core/ecl_buffer.hh"
3798 "src/SoundEngine.cc"
3799 "src/SoundEngine.hh"
3800 "src/MusicManager.cc"
3801 "src/MusicManager.hh"
3805 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
3806 (string-append "#include \"SDL/SDL_" header ".h\"")))
3807 (substitute* "src/main.cc"
3808 (("#include <SDL_(image|ttf|mixer).h>" line header)
3809 (string-append "#include \"SDL/SDL_" header ".h\"")))
3812 `(("xerces-c" ,xerces-c)
3813 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
3817 `(("pkg-config" ,pkg-config)
3818 ("imagemagick" ,imagemagick)))
3819 (home-page "https://www.nongnu.org/enigma")
3820 (synopsis "Puzzle game with a dexterity component")
3821 (description "Enigma is a puzzle game with 550 unique levels. The object
3822 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
3823 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
3824 and most of all, countless hairy puzzles usually block your direct way to the
3825 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
3826 get bored) interact in many unexpected ways, and since many of them follow the
3827 laws of physics (Enigma’s special laws of physics, that is), controlling them
3828 with the mouse isn’t always trivial.")
3829 (license license:gpl2+)))
3831 (define-public fillets-ng
3837 (uri (string-append "mirror://sourceforge/fillets/"
3838 "Fish%20Fillets%20-%20Next%20Generation/"
3839 version "/fillets-ng-" version ".tar.gz"))
3842 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
3843 (build-system gnu-build-system)
3846 (list (string-append "--with-lua="
3847 (assoc-ref %build-inputs "lua")))
3849 (list (string-append "CFLAGS=-I"
3850 (assoc-ref %build-inputs "sdl-union")
3852 (string-append "CXXFLAGS=-I"
3853 (assoc-ref %build-inputs "sdl-union")
3856 (modify-phases %standard-phases
3857 ;; Lua 5.1 does not provide it.
3858 (add-after 'unpack 'do-not-link-with-lualib
3860 (substitute* "configure"
3863 (add-after 'install 'install-data
3864 (lambda* (#:key inputs outputs #:allow-other-keys)
3865 (let ((data (string-append (assoc-ref outputs "out")
3866 "/share/games/fillets-ng")))
3868 (zero? (system* "tar" "-xvf"
3869 (assoc-ref inputs "fillets-ng-data")
3870 "--strip-components=1"
3873 `(("sdl-union" ,(sdl-union (list sdl
3877 ("fribidi" ,fribidi)
3881 `(("pkg-config" ,pkg-config)
3885 (uri (string-append "mirror://sourceforge/fillets/"
3886 "Fish%20Fillets%20-%20Next%20Generation/"
3887 version "/fillets-ng-data-" version ".tar.gz"))
3890 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
3891 (home-page "http://fillets.sourceforge.net/")
3892 (synopsis "Puzzle game")
3893 (description "Fish Fillets NG is strictly a puzzle game. The goal in
3894 every of the seventy levels is always the same: find a safe way out. The fish
3895 utter witty remarks about their surroundings, the various inhabitants of their
3896 underwater realm quarrel among themselves or comment on the efforts of your
3897 fish. The whole game is accompanied by quiet, comforting music.")
3898 (license license:gpl2+)))
3900 (define-public crawl
3908 ;; Older releases get moved into a versioned directory
3909 (string-append "http://crawl.develz.org/release/"
3910 (version-major+minor version) "/stone_soup-"
3911 version "-nodeps.tar.xz")
3912 ;; Only the latest release is in this directory
3913 (string-append "http://crawl.develz.org/release/stone_soup-"
3914 version "-nodeps.tar.xz")))
3917 "0mmnkch8s9l7dh136yjvcyjr0vmyzv7z370rlcyir91qz6gg82n1"))
3918 (patches (search-patches "crawl-upgrade-saves.patch"))))
3919 (build-system gnu-build-system)
3921 `(("lua51" ,lua-5.1)
3922 ("ncurses" ,ncurses)
3929 ("pkg-config" ,pkg-config)))
3932 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
3933 (out (assoc-ref %outputs "out")))
3934 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
3935 (string-append "prefix=" out)
3937 ;; don't build any bundled dependencies
3943 (modify-phases %standard-phases
3946 ;; Test cases require the source to be rebuild with the -DDEBUG define.
3947 ;; Do 'check before 'build to avoid a 3rd build on make install.
3948 (add-before 'build 'check
3949 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
3950 (setenv "HOME" (getcwd))
3951 ;; Fake a terminal for the test cases.
3952 (setenv "TERM" "xterm-256color")
3953 (zero? (apply system* "make" "debug" "test"
3954 (format #f "-j~d" (parallel-job-count))
3955 ;; Force command line build for test cases.
3956 (append make-flags '("GAME=crawl" "TILES=")))))))))
3957 (synopsis "Roguelike dungeon crawler game")
3958 (description "Dungeon Crawl Stone Soup is a roguelike adventure through
3959 dungeons filled with dangerous monsters in a quest to find the mystifyingly
3960 fabulous Orb of Zot.")
3961 (home-page "https://crawl.develz.org")
3962 (license (list license:gpl2+
3970 ;; The linter here claims that patch file names should start with the package
3971 ;; name. But, in this case, the patches are inherited from crawl with the
3972 ;; "crawl-" prefix instead of "crawl-tiles-".
3973 (define-public crawl-tiles
3976 (name "crawl-tiles")
3978 (substitute-keyword-arguments
3979 (package-arguments crawl)
3980 ((#:make-flags flags)
3981 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
3983 (string-append "PROPORTIONAL_FONT=" dejavu
3984 "/share/fonts/truetype/DejaVuSans.ttf")
3985 (string-append "MONOSPACED_FONT=" dejavu
3986 "/share/fonts/truetype/DejaVuSansMono.ttf")
3988 ;; Rename the executable to allow parallel installation with crawl.
3992 `(,@(package-inputs crawl)
3993 ("font-dejavu" ,font-dejavu)
3994 ("freetype6" ,freetype)
3998 ("sdl2-image" ,sdl2-image)
3999 ("sdl2-mixer" ,sdl2-mixer)))
4001 `(,@(package-native-inputs crawl)
4002 ("pngcrush" ,pngcrush)
4004 (synopsis "Graphical roguelike dungeon crawler game")))
4006 (define-public lugaru
4012 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
4013 name "-" version ".tar.xz"))
4016 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
4017 (build-system cmake-build-system)
4020 (list "-DSYSTEM_INSTALL=ON")
4024 `(("pkg-config" ,pkg-config)))
4028 ("libjpeg" ,libjpeg-turbo)
4031 ("vorbis" ,libvorbis)
4033 (home-page "https://osslugaru.gitlab.io")
4034 (synopsis "Cross-platform third-person action game")
4035 (description "Lugaru is a third-person action game. The main character,
4036 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
4037 In his quest to find those responsible for slaughtering his village, he uncovers
4038 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
4039 and the starving wolves from a nearby den. Turner takes it upon himself to
4040 fight against their plot and save his fellow rabbits from slavery.")
4041 (license (list license:gpl2+ ; code
4044 license:cc-by-sa4.0))))
4046 (define-public 0ad-data
4049 (version "0.0.22-alpha")
4053 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4054 version "-unix-data.tar.xz"))
4055 (file-name (string-append name "-" version ".tar.xz"))
4058 "0vknk9ay9h2p34r7mym2g066f3s3c5d5vmap0ckcs5b86h5cscjc"))
4059 (modules '((guix build utils)))
4064 (let* ((dir (string-append "binaries/data/mods/" name))
4065 (file (string-append dir "/" name ".zip"))
4066 (unzip #$(file-append unzip "/bin/unzip")))
4067 (system* unzip "-d" dir file)
4068 (delete-file file)))
4071 (build-system trivial-build-system)
4072 (native-inputs `(("tar" ,tar)
4075 `(#:modules ((guix build utils))
4078 (use-modules (guix build utils))
4079 (let ((out (assoc-ref %outputs "out"))
4080 (source (assoc-ref %build-inputs "source"))
4081 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
4082 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
4083 (setenv "PATH" xz-path)
4085 (zero? (system* tar "xvf" source "-C" out "--strip=3"))))))
4086 (synopsis "Data files for 0ad")
4087 (description "0ad-data provides the data files required by the game 0ad.")
4088 (home-page "https://play0ad.com")
4089 (license (list (license:fsdg-compatible
4090 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
4091 (license:license-comment
4092 (package-license font-bitstream-vera)))
4093 (package-license font-bitstream-vera)
4103 (version "0.0.22-alpha")
4107 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4108 version "-unix-build.tar.xz"))
4109 (file-name (string-append name "-" version ".tar.xz"))
4112 "1cgmr4g5g9wv36v7ylbrvqhsjwgcsdgbqwc8zlqmnayk9zgkdpgx"))
4113 ;; A snippet here would cause a build failure because of timestamps
4114 ;; reset. See https://bugs.gnu.org/26734.
4117 `(("0ad-data" ,0ad-data)
4123 ("libvorbis" ,libvorbis)
4124 ("libxcursor" ,libxcursor)
4125 ("libxml2" ,libxml2)
4126 ("miniupnpc" ,miniupnpc)
4127 ("mozjs-38" ,mozjs-38)
4130 ("wxwidgets" ,wxwidgets)
4136 ("pkg-config" ,pkg-config)
4137 ("python-2" ,python-2)))
4138 (build-system gnu-build-system)
4140 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
4142 (modify-phases %standard-phases
4143 (add-after 'unpack 'delete-bundles
4145 (delete-file-recursively "libraries/source/spidermonkey")
4147 (add-after 'unpack 'fix-x11-includes
4149 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4150 (("<Xlib.h>") "<X11/Xlib.h>"))
4151 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4152 (("<Xatom.h>") "<X11/Xatom.h>"))
4153 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4154 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
4157 (lambda* (#:key inputs outputs #:allow-other-keys)
4158 (let* ((jobs (number->string (parallel-job-count)))
4159 (out (assoc-ref outputs "out"))
4160 (lib (string-append out "/lib"))
4161 (data (string-append out "/share/0ad")))
4162 (setenv "JOBS" (string-append "-j" jobs))
4164 (with-directory-excursion "build/workspaces"
4165 (zero? (system* "./update-workspaces.sh"
4166 (string-append "--libdir=" lib)
4167 (string-append "--datadir=" data)
4168 ;; TODO: "--with-system-nvtt"
4169 "--with-system-mozjs38"))))))
4172 (lambda* (#:key inputs outputs #:allow-other-keys)
4174 (let* ((out (assoc-ref outputs "out"))
4175 (bin (string-append out "/bin"))
4176 (lib (string-append out "/lib"))
4177 (data (string-append out "/share/0ad"))
4178 (applications (string-append out "/share/applications"))
4179 (pixmaps (string-append out "/share/pixmaps"))
4180 (0ad-data (assoc-ref inputs "0ad-data")))
4182 (copy-recursively "data" data)
4183 (for-each (lambda (file)
4184 (symlink (string-append 0ad-data "/" file)
4185 (string-append data "/" file)))
4186 '("config" "mods/mod" "mods/public" "tools"))
4188 (for-each (lambda (file)
4189 (install-file file lib))
4190 (find-files "system" "\\.so$"))
4192 (install-file "system/pyrogenesis" bin)
4193 (with-directory-excursion bin
4194 (symlink "pyrogenesis" "0ad"))
4196 (with-directory-excursion "../build/resources"
4197 (install-file "0ad.desktop" applications)
4198 (install-file "0ad.png" pixmaps))
4200 (add-after 'install 'check
4202 (with-directory-excursion "system"
4203 (zero? (system* "./test"))))))))
4204 (home-page "https://play0ad.com")
4205 (synopsis "3D real-time strategy game of ancient warfare")
4206 (description "0 A.D. is a real-time strategy (RTS) game of ancient
4207 warfare. It's a historically-based war/economy game that allows players to
4208 relive or rewrite the history of twelve ancient civilizations, each depicted
4209 at their peak of economic growth and military prowess.
4211 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
4212 (license (list license:bsd-2
4223 ;; There have been no official releases.
4224 (define-public open-adventure
4225 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
4228 (name "open-adventure")
4229 (version (string-append "2.5-" revision "." (string-take commit 7)))
4233 (url "https://gitlab.com/esr/open-adventure")
4235 (file-name (string-append name "-" version "-checkout"))
4238 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
4239 (build-system gnu-build-system)
4241 `(#:make-flags (list "CC=gcc")
4242 #:parallel-build? #f ; not supported
4244 (modify-phases %standard-phases
4246 (lambda* (#:key inputs outputs #:allow-other-keys)
4247 ;; Linenoise is meant to be included, so we have to
4248 ;; copy it into the working directory.
4249 (let* ((linenoise (assoc-ref inputs "linenoise"))
4250 (noisepath (string-append linenoise "/include/linenoise"))
4251 (out (assoc-ref outputs "out")))
4252 (copy-recursively noisepath "linenoise"))
4254 (add-before 'build 'use-echo
4256 (substitute* "tests/Makefile"
4257 (("/bin/echo") (which "echo")))
4259 (add-after 'build 'build-manpage
4261 ;; This target is missing a dependency
4262 (substitute* "Makefile"
4264 (string-append line " advent.adoc")))
4265 (zero? (system* "make" ".adoc.6"))))
4266 ;; There is no install target
4268 (lambda* (#:key outputs #:allow-other-keys)
4269 (let* ((out (assoc-ref outputs "out"))
4270 (bin (string-append out "/bin"))
4271 (man (string-append out "/share/man/man6")))
4272 (install-file "advent" bin)
4273 (install-file "advent.6" man))
4276 `(("asciidoc" ,asciidoc)
4277 ("linenoise" ,linenoise)
4279 ("python-pyyaml" ,python-pyyaml)))
4280 (home-page "https://gitlab.com/esr/open-adventure")
4281 (synopsis "Colossal Cave Adventure")
4282 (description "The original Colossal Cave Adventure from 1976 was the
4283 origin of all text adventures, dungeon-crawl (computer) games, and
4284 computer-hosted roleplaying games. This is the last version released by
4285 Crowther & Woods, its original authors, in 1995. It has been known as
4286 \"adventure 2.5\" and \"430-point adventure\".")
4287 (license license:bsd-2))))
4289 (define-public tome4
4293 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
4297 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
4298 version ".tar.bz2"))
4301 "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03"))
4302 (modules '((guix build utils)))
4304 '(substitute* '("src/music.h" "src/tSDL.h")
4305 (("#elif defined(__FreeBSD__)" line)
4307 line " || defined(__GNUC__)"))))))
4308 (build-system gnu-build-system)
4310 `(("unzip" ,unzip)))
4312 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4314 ("premake4" ,premake4)
4316 ("vorbis" ,libvorbis)
4317 ("luajit" ,luajit)))
4319 `(#:make-flags '("CC=gcc" "config=release")
4320 #:phases (modify-phases %standard-phases
4323 (zero? (system* "premake4" "gmake"))
4325 (add-after 'set-paths 'set-sdl-paths
4326 (lambda* (#:key inputs #:allow-other-keys)
4328 (string-append (assoc-ref inputs "sdl-union")
4332 ;; premake doesn't provide install target
4334 (lambda* (#:key inputs outputs #:allow-other-keys)
4335 (let* ((out (assoc-ref outputs "out"))
4336 (usr (string-append out "/usr"))
4337 (bin (string-append out "/bin"))
4338 (licenses (string-append out "/share/licenses"))
4339 (documents (string-append out "/share/doc"))
4340 (pixmaps (string-append out "/share/pixmaps"))
4341 (icon "te4-icon.png")
4342 (data (string-append out "/share/" ,name))
4343 (applications (string-append
4344 out "/share/applications"))
4345 (unzip (string-append
4346 (assoc-ref inputs "unzip") "/bin/unzip"))
4347 (wrapper (string-append bin "/" ,name)))
4352 "game/engines/te4-" ,version ".teae")
4354 "data/gfx/" icon) "-d" pixmaps)
4356 (install-file "t-engine" data)
4358 (with-output-to-file wrapper
4363 ;; No bootstrap code found,
4364 ;; defaulting to working directory
4367 "exec -a tome4 ./t-engine \"$@\"\n"))))
4368 (chmod wrapper #o555)
4370 (for-each (lambda (file)
4371 (install-file file licenses))
4372 '("COPYING" "COPYING-MEDIA"))
4374 (for-each (lambda (file)
4375 (install-file file documents))
4376 '("CONTRIBUTING" "CREDITS"))
4378 (copy-recursively "bootstrap" (string-append
4380 (copy-recursively "game" (string-append data "/game"))
4382 (mkdir-p applications)
4383 (with-output-to-file (string-append applications "/"
4390 Comment=" ,synopsis "\n"
4395 Categories=Game;RolePlaying;\n")))))
4397 (home-page "https://te4.org")
4398 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
4399 combat and advanced character building. Play as one of many unique races and
4400 classes in the lore-filled world of Eyal, exploring random dungeons, facing
4401 challenging battles, and developing characters with your own tailored mix of
4402 abilities and powers. With a modern graphical and customisable interface,
4403 intuitive mouse control, streamlined mechanics and deep, challenging combat,
4404 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
4405 (license license:gpl3+)))
4407 (define-public quakespasm
4414 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
4418 "0b2nz7w4za32pc34r62ql270z692qcjs2pm0i3svkxkvfammhdfq"))))
4421 #:make-flags '("CC=gcc"
4424 "USE_CODEC_MIKMOD=1"
4427 #:phases (modify-phases %standard-phases
4429 (add-after 'unpack 'fix-makefile-paths
4430 (lambda* (#:key outputs #:allow-other-keys)
4431 (let ((out (assoc-ref outputs "out")))
4432 (mkdir-p (string-append out "/bin"))
4433 (substitute* "Quake/Makefile"
4434 (("/usr/local/games")
4435 (string-append out "/bin")))
4437 (build-system gnu-build-system)
4438 (inputs `(("libmikmod" ,libmikmod)
4439 ("libvorbis" ,libvorbis)
4444 (synopsis "First person shooter engine for Quake 1")
4445 (description "Quakespasm is a modern engine for id software's Quake 1.
4446 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4447 some graphical niceities, and numerous bug-fixes and other improvements.")
4448 (home-page "http://quakespasm.sourceforge.net/")
4449 (license license:gpl2+)))
4451 (define-public vkquake
4453 (inherit quakespasm)
4459 (uri (string-append "https://github.com/Novum/vkQuake/archive/"
4461 (file-name (string-append name "-" version ".tar.gz"))
4464 "1p0nh2v2ilylw62fxc5qpfcmyhs0s64w8sgh036nc6kn21kbjc0d"))))
4467 (let ((vulkanlib (string-append (assoc-ref %build-inputs
4468 "vulkan-icd-loader") "/lib")))
4472 "USE_CODEC_MIKMOD=1"
4474 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
4476 #:phases (modify-phases %standard-phases
4478 (add-after 'unpack 'fix-makefile-paths
4479 (lambda* (#:key outputs #:allow-other-keys)
4480 (let ((vulkan (assoc-ref %build-inputs
4481 "vulkan-icd-loader"))
4482 (out (assoc-ref outputs "out")))
4483 (mkdir-p (string-append out "/bin"))
4484 (substitute* "Quake/Makefile" ((" /usr")
4485 (string-append " " out)))
4486 (substitute* "Quake/Makefile" (("/games")
4487 (string-append "/bin")))
4488 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
4490 ,@(strip-keyword-arguments '(#:make-flags #:phases)
4491 (package-arguments quakespasm))))
4492 (inputs `(("vulkan-icd-loader" ,vulkan-icd-loader)
4493 ,@(package-inputs quakespasm)))
4494 (description "vkquake is a modern engine for id software's Quake 1.
4495 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4496 some graphical niceities, and numerous bug-fixes and other improvements.")
4497 (home-page "https://github.com/Novum/vkQuake")))
4499 (define-public yamagi-quake2
4501 (name "yamagi-quake2")
4506 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
4510 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
4511 (build-system gnu-build-system)
4516 ;; link openAL instead of using dlopen at runtime
4517 "DLOPEN_OPENAL=\"no\""
4518 ;; an optional directory where it will look for quake2 data files
4519 ;; in addition to the current working directory
4520 "WITH_SYSTEMWIDE=yes"
4521 "WITH_SYSTEMDIR=\"/opt/quake2\"")
4523 (modify-phases %standard-phases
4526 (lambda* (#:key outputs #:allow-other-keys)
4527 (let ((out (assoc-ref outputs "out")))
4528 (mkdir-p (string-append out "/lib"))
4529 (mkdir-p (string-append out "/bin"))
4530 ;; The yamagi-quake2 binary must be in the same directory
4531 ;; as it's engine libraries, but symlinking it to /bin is okay
4532 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
4533 (copy-recursively "release"
4534 (string-append out "/lib/yamagi-quake2"))
4535 (symlink (string-append out "/lib/yamagi-quake2/quake2")
4536 (string-append out "/bin/yamagi-quake2"))
4537 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
4538 (string-append out "/bin/yamagi-q2ded"))))))))
4539 (inputs `(("sdl2" ,sdl2)
4541 ("libvorbis" ,libvorbis)
4543 ("openal" ,openal)))
4544 (native-inputs `(("pkg-config" ,pkg-config)))
4545 (synopsis "First person shooter engine based on quake2")
4546 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
4547 The main focus is an unchanged single player experience like back in 1997,
4548 thus the gameplay and the graphics are unaltered. However the user may use one
4549 of the unofficial retexturing packs. In comparison with the official client,
4550 over 1000 bugs were fixed and an extensive code audit done,
4551 making Yamagi Quake II one of the most solid Quake II implementations available.")
4552 (home-page "https://www.yamagi.org/quake2/")
4553 (license (list license:gpl2+ ; game and server
4554 (license:non-copyleft ; info-zip
4556 "See Info-Zip section.")
4557 license:public-domain)))) ; stb
4559 (define-public the-butterfly-effect
4561 (name "the-butterfly-effect")
4567 "https://github.com/the-butterfly-effect/tbe/archive/"
4568 "v" version ".tar.gz"))
4569 (file-name (string-append name "-" version ".tar.gz"))
4572 "18qkp7fgdvyl3haqqa693mgyic7afsznsxgz98z9wn4csaqxsnby"))))
4573 (build-system gnu-build-system)
4576 (modify-phases %standard-phases
4578 ;; There is no "install" phase. By default, tbe is installed
4579 ;; in the build directory. Provide our own installation.
4581 (lambda* (#:key outputs #:allow-other-keys)
4582 (let* ((out (assoc-ref outputs "out"))
4583 (bin (string-append out "/bin"))
4584 (share (string-append out "/share")))
4585 (install-file "usr/games/tbe" bin)
4587 (copy-recursively "usr/share" share)
4589 ;; Test suite requires a running Xorg server. Even when
4590 ;; provided, it fails with "D-Bus library appears to be
4591 ;; incorrectly set up; failed to read machine uuid: Failed to
4592 ;; open "/etc/machine-id": No such file or directory" along
4593 ;; with multiple "QPainter:: ... Painter not active" warnings.
4596 `(("qtbase" ,qtbase)
4600 ("gettext-minimal" ,gettext-minimal)
4601 ("qttools" ,qttools)))
4602 (synopsis "Realistic physics puzzle game")
4603 (description "The Butterfly Effect (tbe) is a game that uses
4604 realistic physics simulations to combine lots of simple mechanical
4605 elements to achieve a simple goal in the most complex way possible.")
4606 (home-page "http://the-butterfly-effect.org/")
4607 ;; Main license is GPL2-only. However, artwork is distributed
4608 ;; under various licenses, listed here.
4609 (license (list license:gpl2 license:public-domain license:expat
4610 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
4612 (define-public pioneer
4615 (version "20180203")
4619 (url "https://github.com/pioneerspacesim/pioneer.git")
4621 (file-name (git-file-name name version))
4624 "0hp2mf36kj2v93hka8m8lxw2qhmnjc62wjlpw7c7ix0r8xa01i6h"))))
4625 (build-system gnu-build-system)
4627 `(("autoconf" ,autoconf)
4628 ("automake" ,automake)
4629 ("pkg-config" ,pkg-config)))
4631 `(("assimp" ,assimp)
4633 ("freetype" ,freetype)
4636 ("libsigc++" ,libsigc++)
4637 ("libvorbis" ,libvorbis)
4638 ("lua" ,lua-5.2) ;not compatible with 5.3
4640 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
4642 `(#:tests? #f ;tests are broken
4643 #:configure-flags (list "--with-external-liblua"
4644 (string-append "PIONEER_DATA_DIR="
4645 %output "/share/games/pioneer"))
4646 #:phases (modify-phases %standard-phases
4647 (add-after 'unpack 'bootstrap
4648 (lambda _ (zero? (system* "sh" "bootstrap"))))
4649 (add-before 'bootstrap 'fix-lua-check
4651 (substitute* "configure.ac"
4653 (string-append "lua-" ,(version-major+minor
4654 (package-version lua-5.2))))))))))
4655 (home-page "http://pioneerspacesim.net")
4656 (synopsis "Game of lonely space adventure")
4658 "Pioneer is a space adventure game set in our galaxy at the turn of the
4659 31st century. The game is open-ended, and you are free to eke out whatever
4660 kind of space-faring existence you can think of. Look for fame or fortune by
4661 exploring the millions of star systems. Turn to a life of crime as a pirate,
4662 smuggler or bounty hunter. Forge and break alliances with the various
4663 factions fighting for power, freedom or self-determination. The universe is
4664 whatever you make of it.")
4665 (license license:gpl3)))
4667 (define-public badass
4668 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
4672 (version (git-version "0.0" revision commit))
4676 (url "https://github.com/umayr/badass.git")
4678 (file-name (git-file-name name version))
4681 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
4682 (build-system go-build-system)
4684 '(#:import-path "github.com/umayr/badass"))
4685 (synopsis "Hacking contribution graphs in git")
4687 "Badass generates false commits for a range of dates, essentially
4688 hacking the gamification of contribution graphs on platforms such as
4690 (home-page "https://github.com/umayr/badass")
4691 (license license:expat))))
4693 (define-public colobot
4696 (version "0.1.11-alpha")
4700 (uri (string-append "https://github.com/colobot/colobot/archive/"
4701 "colobot-gold-" version ".tar.gz"))
4704 "160rq9fp5vd0qaqr3jvzvzrcxk9cac532y8vx4cvq0a8hgylrbad"))))
4705 (build-system cmake-build-system)
4707 `(#:tests? #f ;no test
4709 (modify-phases %standard-phases
4710 (add-after 'unpack 'unpack-data
4711 (lambda* (#:key inputs #:allow-other-keys)
4712 (let ((data (assoc-ref inputs "colobot-data")))
4713 (invoke "tar" "-xvf" data "-Cdata" "--strip-components=1")
4715 (add-after 'unpack-data 'install-music
4716 (lambda* (#:key inputs #:allow-other-keys)
4717 ;; Installation process tries to download music files using
4718 ;; "wget" if not already present. Since we are going to install
4719 ;; them, skip "wget" command check.
4720 (substitute* "data/music/CMakeLists.txt"
4721 (("find_program\\(WGET wget\\)") ""))
4722 ;; Effectively install music.
4723 (let ((data (assoc-ref inputs "colobot-music")))
4724 (invoke "tar" "-xvf" data "-Cdata/music")
4726 (add-after 'install 'fix-install-directory
4727 ;; Move binary from "games/" to "bin/".
4728 (lambda* (#:key outputs #:allow-other-keys)
4729 (let ((out (assoc-ref outputs "out")))
4730 (rename-file (string-append out "/games")
4731 (string-append out "/bin"))
4738 "https://github.com/colobot/colobot-data/archive/"
4739 "colobot-gold-" version ".tar.gz"))
4742 "1pdpsyr41g7xmk03k2g76l214f53ahk04qnkzmsv1fdbbaq7p109"))))
4746 (uri (string-append "https://colobot.info/files/music/"
4747 "colobot-music_ogg_" version ".tar.gz"))
4750 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
4751 ("gettext" ,gettext-minimal)
4752 ("librsvg" ,librsvg)
4754 ("python" ,python-wrapper)))
4760 ("libsndfile" ,libsndfile)
4761 ("libvorbis" ,libvorbis)
4764 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
4765 (synopsis "Educational programming strategy game")
4766 (description "Colobot: Gold Edition is a real-time strategy game, where
4767 you can program your units (bots) in a language called CBOT, which is similar
4768 to C++ and Java. Your mission is to find a new planet to live and survive.
4769 You can save humanity and get programming skills!")
4770 (home-page "https://colobot.info")
4771 (license license:gpl3+)))
4773 (define-public gzdoom
4780 (string-append "https://zdoom.org/files/gzdoom/src/gzdoom-g"
4784 "09a4kx3ry8pc9r578m7yprwa7zsdqxjpn10lyc92r5g9sx4l1m1a"))
4785 (patches (search-patches "gzdoom-search-in-installed-share.patch"))
4786 (modules '((guix build utils)))
4789 (delete-file-recursively "bzip2")
4790 (delete-file-recursively "game-music-emu")
4791 (delete-file-recursively "jpeg-6b")
4792 (delete-file-recursively "zlib")))))
4796 (let ((out (assoc-ref %outputs "out")))
4799 "-DCMAKE_CXX_FLAGS:="
4800 "-DSHARE_DIR=\\\"" out "/share/\\\" "
4801 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
4802 ;; look for libraries at buildtime instead of
4803 ;; dynamically finding them at runtime
4805 "-DDYN_FLUIDSYNTH=OFF"
4808 "-DDYN_SNDFILE=OFF"))
4810 (modify-phases %standard-phases
4811 (add-before 'configure 'fix-referenced-paths
4812 (lambda* (#:key inputs outputs #:allow-other-keys)
4813 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
4814 (timidity++ (assoc-ref inputs "timidity++"))
4815 (out (assoc-ref outputs "out")))
4818 "src/CMakeLists.txt"
4819 (("COMMAND /bin/sh")
4820 (string-append "COMMAND " (which "sh"))))
4823 "src/sound/mididevices/music_fluidsynth_mididevice.cpp"
4824 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
4825 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
4828 "src/sound/mididevices/music_timiditypp_mididevice.cpp"
4829 (("exename = \"timidity\"")
4830 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
4832 (build-system cmake-build-system)
4833 (inputs `(("bzip2" ,bzip2)
4834 ("fluid-3" ,fluid-3)
4835 ("fluidsynth" ,fluidsynth)
4838 ("libjpeg" ,libjpeg)
4839 ("libsndfile" ,libsndfile)
4844 ("timidity++" ,timidity++)
4846 (native-inputs `(("pkg-config" ,pkg-config)
4848 (synopsis "Modern Doom 2 source port")
4849 (description "GZdoom is a port of the Doom 2 game engine, with a modern
4850 renderer. It improves modding support with ZDoom's advanced mapping features
4851 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
4852 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
4853 (home-page "https://zdoom.org/index")
4854 (license (list license:gpl3+ ; gzdoom game
4855 license:lgpl3+ ; gzdoom renderer
4856 license:expat ; gdtoa
4857 (license:non-copyleft ; modified dumb
4858 "file://dumb/licence.txt"
4859 "Dumb license, explicitly GPL compatible.")))))
4861 (define-public fortune-mod
4863 (name "fortune-mod")
4867 (uri (string-append "https://github.com/shlomif/fortune-mod/"
4868 "archive/" name "-" version ".tar.gz"))
4871 "1hnqpkassh7fwg2jgvybr8mw7vzfikbrhb5r22367ilfwxnl9yd2"))))
4872 (build-system cmake-build-system)
4874 `(#:test-target "check"
4876 (modify-phases %standard-phases
4877 (add-after 'unpack 'fix-build-env
4878 (lambda* (#:key inputs #:allow-other-keys)
4879 (use-modules (guix build utils))
4880 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
4881 (copy-file cmake-rules
4882 (string-append "fortune-mod/cmake/"
4883 (strip-store-file-name cmake-rules)))
4884 (chdir "fortune-mod"))))
4885 (add-after 'install 'fix-install-directory
4886 ;; Move binary from "games/" to "bin/".
4887 (lambda* (#:key outputs #:allow-other-keys)
4888 (let ((out (assoc-ref outputs "out")))
4889 (rename-file (string-append out "/games/fortune")
4890 (string-append out "/bin/fortune"))
4892 (inputs `(("recode" ,recode)))
4895 ;; The following is only needed for tests.
4896 ("perl-file-find-object" ,perl-file-find-object)
4897 ("perl-test-differences" ,perl-test-differences)
4898 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
4899 ("perl-io-all" ,perl-io-all)
4900 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
4904 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
4905 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
4906 "shlomif-cmake-modules/Shlomif_Common.cmake"))
4908 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))))
4909 (home-page "http://www.shlomifish.org/open-source/projects/fortune-mod/")
4910 (synopsis "The Fortune Cookie program from BSD games")
4911 (description "Fortune is a command-line utility which displays a random
4912 quotation from a collection of quotes.")
4913 (license license:bsd-4)))