Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nils Gillmann <ng0@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;;
36 ;;; This file is part of GNU Guix.
37 ;;;
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.
42 ;;;
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.
47 ;;;
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/>.
50
51 (define-module (gnu packages games)
52 #:use-module (ice-9 match)
53 #:use-module ((guix licenses) #:prefix license:)
54 #:use-module (guix utils)
55 #:use-module (guix packages)
56 #:use-module (guix download)
57 #:use-module (guix git-download)
58 #:use-module (guix svn-download)
59 #:use-module (guix gexp)
60 #:use-module (gnu packages)
61 #:use-module (gnu packages algebra)
62 #:use-module (gnu packages autotools)
63 #:use-module (gnu packages backup)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages build-tools)
66 #:use-module (gnu packages admin)
67 #:use-module (gnu packages audio)
68 #:use-module (gnu packages avahi)
69 #:use-module (gnu packages boost)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages docbook)
72 #:use-module (gnu packages fltk)
73 #:use-module (gnu packages freedesktop)
74 #:use-module (gnu packages fribidi)
75 #:use-module (gnu packages game-development)
76 #:use-module (gnu packages gettext)
77 #:use-module (gnu packages ghostscript)
78 #:use-module (gnu packages gimp)
79 #:use-module (gnu packages gl)
80 #:use-module (gnu packages glib)
81 #:use-module (gnu packages gnome)
82 #:use-module (gnu packages gperf)
83 #:use-module (gnu packages graphics)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages guile)
86 #:use-module (gnu packages imagemagick)
87 #:use-module (gnu packages libcanberra)
88 #:use-module (gnu packages libedit)
89 #:use-module (gnu packages libunwind)
90 #:use-module (gnu packages haskell)
91 #:use-module (gnu packages mp3)
92 #:use-module (gnu packages music)
93 #:use-module (gnu packages icu4c)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages ncurses)
96 #:use-module (gnu packages netpbm)
97 #:use-module (gnu packages networking)
98 #:use-module (gnu packages ocaml)
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages readline)
101 #:use-module (gnu packages textutils)
102 #:use-module (gnu packages xorg)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages databases)
105 #:use-module (gnu packages shells)
106 #:use-module (gnu packages sdl)
107 #:use-module (gnu packages swig)
108 #:use-module (gnu packages texinfo)
109 #:use-module (gnu packages check)
110 #:use-module (gnu packages fonts)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages gstreamer)
113 #:use-module (gnu packages bash)
114 #:use-module (gnu packages perl)
115 #:use-module (gnu packages qt)
116 #:use-module (gnu packages compression)
117 #:use-module (gnu packages pulseaudio)
118 #:use-module (gnu packages linux)
119 #:use-module (gnu packages xiph)
120 #:use-module (gnu packages curl)
121 #:use-module (gnu packages lua)
122 #:use-module (gnu packages video)
123 #:use-module (gnu packages xml)
124 #:use-module (gnu packages tcl)
125 #:use-module (gnu packages xdisorg)
126 #:use-module (gnu packages tls)
127 #:use-module (gnu packages pcre)
128 #:use-module (gnu packages cyrus-sasl)
129 #:use-module (gnu packages messaging)
130 #:use-module (gnu packages upnp)
131 #:use-module (gnu packages wxwidgets)
132 #:use-module (gnu packages bison)
133 #:use-module (gnu packages flex)
134 #:use-module (gnu packages cmake)
135 #:use-module (gnu packages gnuzilla)
136 #:use-module (gnu packages icu4c)
137 #:use-module (gnu packages networking)
138 #:use-module (gnu packages vulkan)
139 #:use-module (gnu packages web)
140 #:use-module (guix build-system gnu)
141 #:use-module (guix build-system go)
142 #:use-module (guix build-system haskell)
143 #:use-module (guix build-system python)
144 #:use-module (guix build-system cmake)
145 #:use-module (guix build-system trivial))
146
147 (define-public armagetronad
148 (package
149 (name "armagetronad")
150 (version "0.2.8.3.4")
151 (source (origin
152 (method url-fetch)
153 (uri (string-append "mirror://sourceforge/" name "/stable/"
154 version "/" name "-" version ".src.tar.gz"))
155 (sha256
156 (base32
157 "1pgy0r80z702qdv94aw3ywdn4ynnr4cdi86ml558pljfc5ygasj4"))))
158 (build-system gnu-build-system)
159 (inputs
160 `(("libxml2" ,libxml2)
161 ("sdl" ,sdl)
162 ("sdl-image" ,sdl-image)
163 ("freeglut" ,freeglut)
164 ("libpng" ,libpng)
165 ("libjpeg-turbo" ,libjpeg-turbo)))
166 (home-page "http://www.armagetronad.org")
167 (synopsis "Tron clone in 3D")
168 (description "Armagetron is a multiplayer game in 3d that attempts to
169 emulate and expand on the lightcycle sequence from the movie Tron. It's
170 an old school arcade game slung into the 21st century. Highlights include
171 a customizable playing arena, HUD, unique graphics, and AI bots. For the
172 more advanced player there are new game modes and a wide variety of physics
173 settings to tweak as well.")
174 (license license:gpl2+)))
175
176 (define-public cataclysm-dda
177 (package
178 (name "cataclysm-dda")
179 (version "0.C")
180 (source (origin
181 (method url-fetch)
182 (uri (string-append "https://github.com/CleverRaven/Cataclysm-DDA/"
183 "archive/" version ".tar.gz"))
184 (file-name (string-append name "-" version ".tar.gz"))
185 (sha256
186 (base32
187 "1xlajmgl9cviqyjpp5g5q4rbljy9gqc49v54bi8gpzr68s14gsb9"))
188 (modules '((guix build utils)))
189 (snippet
190 ;; Import cmath header for the std::pow function.
191 '(begin
192 (for-each (lambda (file)
193 (substitute* file
194 (("#include <math.h>")
195 "#include <cmath>")))
196 (find-files "src"))
197 #t))))
198 (build-system gnu-build-system)
199 (arguments
200 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
201 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1")
202 #:phases
203 (modify-phases %standard-phases
204 (replace 'configure
205 (lambda _
206 (substitute* "Makefile"
207 (("ncursesw5-config") "ncursesw6-config")
208 (("RELEASE_FLAGS = -Werror") "RELEASE_FLAGS ="))
209 #t))
210 (add-after 'build 'build-tiles
211 (lambda* (#:key make-flags outputs #:allow-other-keys)
212 ;; Change prefix directory and enable tile graphics and sound.
213 (zero?
214 (apply system* "make" "TILES=1" "SOUND=1"
215 (string-append "PREFIX="
216 (assoc-ref outputs "tiles"))
217 (cdr make-flags)))))
218 (add-after 'install 'install-tiles
219 (lambda* (#:key make-flags outputs #:allow-other-keys)
220 (zero?
221 (apply system* "make" "install" "TILES=1" "SOUND=1"
222 (string-append "PREFIX="
223 (assoc-ref outputs "tiles"))
224 (cdr make-flags))))))
225 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
226 ;; input in order to support tests.
227 #:tests? #f))
228 (outputs '("out"
229 "tiles")) ; For tile graphics and sound support.
230 (native-inputs
231 `(("gettext" ,gettext-minimal)
232 ("pkg-config" ,pkg-config)))
233 (inputs
234 `(("freetype" ,freetype)
235 ("libogg" ,libogg)
236 ("libvorbis" ,libvorbis)
237 ("ncurses" ,ncurses)
238 ("sdl2" ,sdl2)
239 ("sdl2-image" ,sdl2-image)
240 ("sdl2-ttf" ,sdl2-ttf)
241 ("sdl2-mixer" ,sdl2-mixer)))
242 (home-page "http://en.cataclysmdda.com/")
243 (synopsis "Survival horror roguelike video game")
244 (description
245 "Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
246 Struggle to survive in a harsh, persistent, procedurally generated world.
247 Scavenge the remnants of a dead civilization for food, equipment, or, if you are
248 lucky, a vehicle with a full tank of gas to get you out of Dodge. Fight to
249 defeat or escape from a wide variety of powerful monstrosities, from zombies to
250 giant insects to killer robots and things far stranger and deadlier, and against
251 the others like yourself, that want what you have.")
252 (license license:cc-by-sa3.0)))
253
254 (define-public cowsay
255 (package
256 (name "cowsay")
257 (version "3.04")
258 (source (origin
259 (method url-fetch)
260 (uri (string-append "https://github.com/tnalpgge/"
261 "rank-amateur-cowsay/archive/"
262 name "-" version ".tar.gz"))
263 (sha256
264 (base32
265 "12w7apbf6a9qffk92r32b16w22na2fjcqbl32rn0n7zw5hrp3f6q"))))
266 (build-system gnu-build-system)
267 (arguments
268 `(#:phases
269 (modify-phases %standard-phases
270 (delete 'configure) ; no configure script
271 (delete 'build) ; nothing to be built
272 (replace 'install
273 (lambda* (#:key outputs #:allow-other-keys)
274 (zero? (system* "sh" "install.sh"
275 (assoc-ref outputs "out")))))
276 (delete 'check)
277 (add-after 'install 'check
278 (lambda* (#:key outputs #:allow-other-keys)
279 (zero? (system* (string-append (assoc-ref outputs "out")
280 "/bin/cowsay")
281 "We're done!")))))))
282 (inputs
283 `(("perl" ,perl)))
284 (home-page (string-append "https://web.archive.org/web/20071026043648/"
285 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
286 (synopsis "Speaking cow text filter")
287 (description "Cowsay is basically a text filter. Send some text into it,
288 and you get a cow saying your text. If you think a talking cow isn't enough,
289 cows can think too: all you have to do is run @command{cowthink}. If you're
290 tired of cows, a variety of other ASCII-art messengers are available.")
291 (license license:gpl3+)))
292
293 (define-public freedoom
294 (package
295 (name "freedoom")
296 (version "0.11.3")
297 (source (origin
298 (method url-fetch)
299 (uri (string-append "https://github.com/" name "/" name
300 "/archive/v" version ".tar.gz"))
301 (file-name (string-append name "-" version ".tar.gz"))
302 (sha256
303 (base32
304 "1bjijdfqhpazyifx1qda7scj7dry1azhjrnl8h8zn2vqfgdmlh0q"))))
305 (build-system gnu-build-system)
306 (arguments
307 '(#:make-flags `(,(string-append "prefix=" (assoc-ref %outputs "out")))
308 #:parallel-build? #f
309 #:tests? #f ; no check target
310 #:phases
311 (modify-phases %standard-phases
312 (replace 'configure
313 (lambda* (#:key inputs outputs #:allow-other-keys)
314 (let* ((dejavu (assoc-ref inputs "font-dejavu"))
315 (freedoom (assoc-ref outputs "out"))
316 (wad-dir (string-append freedoom "/share/games/doom")))
317 ;; Replace the font-searching function in a shell
318 ;; script with a direct path to the required font.
319 ;; This is necessary because ImageMagick can only find the
320 ;; most basic fonts while in the build environment.
321 (substitute* "graphics/titlepic/create_caption"
322 (("font=\\$\\(find_font.*$")
323 (string-append
324 "font=" dejavu
325 "/share/fonts/truetype/DejaVuSansCondensed-Bold.ttf\n")))
326 ;; Make icon creation reproducible.
327 (substitute* "dist/Makefile"
328 (("freedm.png")
329 "-define png:exclude-chunks=date freedm.png")
330 (("freedoom1.png")
331 "-define png:exclude-chunks=date freedoom1.png")
332 (("freedoom2.png")
333 "-define png:exclude-chunks=date freedoom2.png"))
334 ;; Make sure that the install scripts know where to find
335 ;; the appropriate WAD files.
336 (substitute* "dist/freedoom"
337 (("IWAD=freedm.wad")
338 (string-append "IWAD=" wad-dir "/freedm.wad"))
339 (("IWAD=freedoom1.wad")
340 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
341 (("IWAD=freedoom2.wad")
342 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
343 #t))))))
344 (native-inputs
345 `(("asciidoc" ,asciidoc)
346 ("deutex" ,deutex)
347 ("font-dejavu" ,font-dejavu)
348 ("imagemagick" ,imagemagick)
349 ("python" ,python-2)))
350 (inputs
351 `(("prboom-plus" ,prboom-plus)))
352 (home-page "https://freedoom.github.io/")
353 (synopsis "Free content game based on the Doom engine")
354 (native-search-paths
355 (list (search-path-specification
356 (variable "DOOMWADDIR")
357 (files '("share/games/doom")))
358 (search-path-specification
359 (variable "DOOMWADPATH")
360 (files '("share/games/doom")))))
361 (description
362 "The Freedoom project aims to create a complete free content first person
363 shooter game. Freedoom by itself is just the raw material for a game: it must
364 be paired with a compatible game engine (such as @code{prboom-plus}) to be
365 played. Freedoom complements the Doom engine with free levels, artwork, sound
366 effects and music to make a completely free game.")
367 (license license:bsd-3)))
368
369 (define-public golly
370 (package
371 (name "golly")
372 (version "3.1")
373 (source (origin
374 (method url-fetch)
375 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
376 version "/golly-" version
377 "-src.tar.gz"))
378 (sha256
379 (base32
380 "0dn74k3rylhx023n047lz4z6qrqijfcxi0b6jryqklhmm2n532f7"))))
381 (build-system gnu-build-system)
382 (arguments
383 '(#:make-flags (list "CC=gcc"
384 (string-append "GOLLYDIR="
385 (assoc-ref %outputs "out")
386 "/share/golly"))
387 #:tests? #f ; no check target
388 #:phases
389 (modify-phases %standard-phases
390 (replace 'configure
391 (lambda* (#:key inputs #:allow-other-keys)
392 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
393 ;; properly set the path to the Python shared library. This
394 ;; substitution acheives the same end by different means.
395 (substitute* "gui-wx/wxprefs.cpp"
396 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
397 (string-append "pythonlib = \""
398 (assoc-ref inputs "python")
399 "/lib/libpython-2.7.so\"")))
400 #t))
401 (replace 'build
402 (lambda* (#:key make-flags outputs #:allow-other-keys)
403 (with-directory-excursion "gui-wx"
404 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
405 (replace 'install
406 (lambda* (#:key outputs #:allow-other-keys)
407 (let* ((out (assoc-ref outputs "out"))
408 (bin (string-append out "/bin"))
409 (doc (string-append out "/share/doc/golly"))
410 (pixmaps (string-append out "/share/pixmaps"))
411 (share (string-append out "/share/golly")))
412 (for-each (lambda (binary)
413 (install-file binary bin))
414 '("bgolly" "golly"))
415 (for-each (lambda (document)
416 (install-file
417 (string-append "docs/" document ".html")
418 doc))
419 '("License" "ReadMe" "ToDo"))
420 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
421 (for-each (lambda (folder)
422 (copy-recursively
423 folder
424 (string-append share "/" folder)))
425 '("Help" "Patterns" "Rules" "Scripts")))
426 #t)))))
427 (native-inputs
428 `(("lua" ,lua)))
429 (inputs
430 `(("glu" ,glu)
431 ("mesa" ,mesa)
432 ("python" ,python-2)
433 ("wxwidgets" ,wxwidgets-gtk2)
434 ("zlib" ,zlib)))
435 (home-page "http://golly.sourceforge.net/")
436 (synopsis "Software for exploring cellular automata")
437 (description
438 "Golly simulates Conway's Game of Life and many other types of cellular
439 automata. The following features are available:
440 @enumerate
441 @item Support for bounded and unbounded universes, with cells of up to 256
442 states.
443 @item Support for multiple algorithms, including Bill Gosper's Hashlife
444 algorithm.
445 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
446 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
447 @item Scriptable via Lua or Python.
448 @item Extracting patterns, rules and scripts from zip files.
449 @item Downloading patterns, rules and scripts from online archives.
450 @item Pasting patterns from the clipboard.
451 @item Unlimited undo/redo.
452 @item Configurable keyboard shortcuts.
453 @item Auto fit option to keep patterns within the view.
454 @end enumerate")
455 (license license:gpl2+)))
456
457 (define-public meandmyshadow
458 (package
459 (name "meandmyshadow")
460 (version "0.4")
461 (source (origin
462 (method url-fetch)
463 (uri (string-append "mirror://sourceforge/meandmyshadow/"
464 version "/meandmyshadow-" version
465 "-src.tar.gz"))
466 (sha256
467 (base32
468 "1dpb7s32b2psj5w3nr5kqibib8nndi86mw8gxp4hmxwrfiisf86d"))))
469 (build-system cmake-build-system)
470 (arguments
471 '(#:tests? #f ; there are no tests
472 #:phases
473 (modify-phases %standard-phases
474 (add-after 'unpack 'set-sdl'paths
475 (lambda* (#:key inputs #:allow-other-keys)
476 (substitute* "cmake/Modules/FindSDL_gfx.cmake"
477 (("/usr/local/include/SDL")
478 (string-append (assoc-ref inputs "sdl")
479 "/include/SDL")))
480 ;; Because SDL provides lib/libX11.so.6 we need to explicitly
481 ;; link with libX11, even though we're using the GL backend.
482 (substitute* "CMakeLists.txt"
483 (("\\$\\{X11_LIBRARIES\\}") "-lX11"))
484 )))))
485 (native-inputs
486 `(("pkg-config" ,pkg-config)))
487 (inputs
488 `(("sdl" ,(sdl-union (list sdl
489 sdl-image
490 sdl-gfx
491 sdl-mixer
492 sdl-ttf)))
493 ("libx11" ,libx11) ; needed by sdl's libX11
494 ("libarchive" ,libarchive)
495 ("openssl" ,openssl)
496 ("mesa" ,mesa)
497 ("glu" ,glu)
498 ("curl" ,curl)))
499 (home-page "http://meandmyshadow.sourceforge.net/")
500 (synopsis "Puzzle/platform game")
501 (description "Me and My Shadow is a puzzle/platform game in which you try
502 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
503 and much more stand between you and the exit. Record your moves and let your
504 shadow mimic them to reach blocks you couldn't reach alone.")
505 (license license:gpl3+)))
506
507 (define-public knights
508 (package
509 (name "knights")
510 (version "025")
511 (source (origin
512 (method url-fetch)
513 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
514 version "_src.tar.gz"))
515 (sha256
516 (base32
517 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
518 (build-system gnu-build-system)
519 (arguments
520 '(#:make-flags
521 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
522 #:phases
523 (modify-phases %standard-phases
524 ;; No configure script.
525 (delete 'configure))
526 #:tests? #f)) ;; No check target.
527 (inputs
528 `(("boost" ,boost)
529 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
530 ("freetype" ,freetype)
531 ("fontconfig" ,fontconfig)
532 ("curl" ,curl)))
533 (native-inputs
534 `(("pkg-config" ,pkg-config)))
535 (home-page "http://www.knightsgame.org.uk/")
536 (synopsis "Multiplayer dungeon game involving knights and quests")
537 (description "Knights is a multiplayer game involving several knights who
538 must run around a dungeon and complete various quests. Each game revolves
539 around a quest – for example, you might have to find some items and carry them
540 back to your starting point. This may sound easy, but as there are only
541 enough items in the dungeon for one player to win, you may end up having to
542 kill your opponents to get their stuff! Other quests involve escaping from
543 the dungeon, fighting a duel to the death against the enemy knights, or
544 destroying an ancient book using a special wand.")
545 ;; This package includes modified sources of lua (X11), enet (Expat), and
546 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
547 ;; license. The whole package is released under GPLv3+.
548 (license license:gpl3+)))
549
550 (define-public gnubg
551 (package
552 (name "gnubg")
553 (version "1.02")
554 (source
555 (origin
556 (method url-fetch)
557 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
558 version ".000-sources." "tar.gz"))
559 (sha256
560 (base32
561 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
562 (build-system gnu-build-system)
563 (inputs `(("glib" ,glib)
564 ("readline" ,readline)
565 ("gtk+" ,gtk+-2)
566 ("mesa" ,mesa)
567 ("glu" ,glu)
568 ("gtkglext" ,gtkglext)
569 ("sqlite" ,sqlite)
570 ("libcanberra" ,libcanberra)))
571 (native-inputs `(("python-2" ,python-2)
572 ("pkg-config" ,pkg-config)))
573 (home-page "http://gnubg.org")
574 (synopsis "Backgammon game")
575 (description "The GNU backgammon application can be used for playing, analyzing and
576 teaching the game. It has an advanced evaluation engine based on artificial
577 neural networks suitable for both beginners and advanced players. In
578 addition to a command-line interface, it also features an attractive, 3D
579 representation of the playing board.")
580 (license license:gpl3+)))
581
582 (define-public gnubik
583 (package
584 (name "gnubik")
585 (version "2.4.3")
586 (source
587 (origin
588 (method url-fetch)
589 (uri (string-append "mirror://gnu/gnubik/gnubik-"
590 version ".tar.gz"))
591 (sha256
592 (base32
593 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
594 (build-system gnu-build-system)
595 (inputs `(("gtk+" ,gtk+-2)
596 ("mesa" ,mesa)
597 ("glu" ,glu)
598 ("libx11" ,libx11)
599 ("guile" ,guile-2.0)
600 ("gtkglext" ,gtkglext)))
601 (native-inputs `(("gettext" ,gettext-minimal)
602 ("pkg-config" ,pkg-config)))
603 (home-page "https://www.gnu.org/software/gnubik/")
604 (synopsis "3d Rubik's cube game")
605 (description
606 "GNUbik is a puzzle game in which you must manipulate a cube to make
607 each of its faces have a uniform color. The game is customizable, allowing
608 you to set the size of the cube (the default is 3x3) or to change the colors.
609 You may even apply photos to the faces instead of colors. The game is
610 scriptable with Guile.")
611 (license license:gpl3+)))
612
613 (define-public gnushogi
614 (package
615 (name "gnushogi")
616 (version "1.4.2")
617 (source
618 (origin
619 (method url-fetch)
620 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
621 version ".tar.gz"))
622 (sha256
623 (base32
624 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
625 (arguments `(#:tests? #f)) ;; No check target.
626 (build-system gnu-build-system)
627 (home-page "https://www.gnu.org/software/gnushogi/")
628 (synopsis "The game of Shogi (Japanese chess)")
629 (description "GNU Shogi is a program that plays the game Shogi (Japanese
630 Chess). It is similar to standard chess but this variant is far more complicated.")
631 (license license:gpl3+)))
632
633 (define-public ltris
634 (package
635 (name "ltris")
636 (version "1.0.19")
637 (source
638 (origin
639 (method url-fetch)
640 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
641 name "-" version ".tar.gz"))
642 (sha256
643 (base32
644 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
645 (build-system gnu-build-system)
646 (arguments
647 '(;; The code in LTris uses traditional GNU semantics for inline functions
648 #:configure-flags '("CFLAGS=-fgnu89-inline")
649 #:phases
650 (modify-phases %standard-phases
651 (add-after 'set-paths 'set-sdl-paths
652 (lambda* (#:key inputs #:allow-other-keys)
653 (setenv "CPATH"
654 (string-append (assoc-ref inputs "sdl-union")
655 "/include/SDL"))
656 #t)))))
657 (inputs
658 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
659 (home-page "http://lgames.sourceforge.net/LTris/")
660 (synopsis "Tetris clone based on the SDL library")
661 (description
662 "LTris is a tetris clone: differently shaped blocks are falling down the
663 rectangular playing field and can be moved sideways or rotated by 90 degree
664 units with the aim of building lines without gaps which then disappear (causing
665 any block above the deleted line to fall down). LTris has three game modes: In
666 Classic you play until the stack of blocks reaches the top of the playing field
667 and no new blocks can enter. In Figures the playing field is reset to a new
668 figure each level and later on tiles and lines suddenly appear. In Multiplayer
669 up to three players (either human or CPU) compete with each other sending
670 removed lines to all opponents. There is also a Demo mode in which you can
671 watch your CPU playing while enjoying a cup of tea!")
672 (license license:gpl2+)))
673
674 (define-public prboom-plus
675 (package
676 (name "prboom-plus")
677 (version "2.5.1.4")
678 (source (origin
679 (method url-fetch)
680 (uri (string-append "mirror://sourceforge/" name "/" name "/"
681 version "/" name "-" version ".tar.gz"))
682 (sha256
683 (base32
684 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
685 (modules '((guix build utils)))
686 (snippet
687 '(begin
688 (substitute* "src/version.c"
689 (("__DATE__") "")
690 (("__TIME__") ""))
691 #t))))
692 (build-system gnu-build-system)
693 (arguments
694 '(#:configure-flags '("--disable-cpu-opt")
695 #:make-flags `(,(string-append "gamesdir="
696 (assoc-ref %outputs "out") "/bin"))
697 #:phases
698 (modify-phases %standard-phases
699 (add-after 'set-paths 'set-sdl'paths
700 (lambda* (#:key inputs #:allow-other-keys)
701 (setenv "CPATH"
702 (string-append (assoc-ref inputs "sdl-union")
703 "/include/SDL"))
704 #t)))))
705 (inputs
706 `(("fluidsynth" ,fluidsynth)
707 ("glu" ,glu)
708 ("libmad" ,libmad)
709 ("libpng" ,libpng)
710 ("libvorbis" ,libvorbis)
711 ("pcre" ,pcre)
712 ("portmidi" ,portmidi)
713 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
714 (home-page "http://prboom-plus.sourceforge.net/")
715 (synopsis "Version of the classic 3D shoot'em'up game Doom")
716 (description
717 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
718 (license license:gpl2+)))
719
720 (define-public retux
721 (package
722 (name "retux")
723 (version "1.3.5")
724 (source (origin
725 (method url-fetch)
726 (uri (string-append "mirror://savannah/retux/"
727 (version-major+minor version) "/retux-"
728 version "-src.tar.gz"))
729 (sha256
730 (base32
731 "1pcrh3z16fl412r3k7xccrgika19ahb1xh90jihgl8yy7zza2i6p"))))
732 (build-system python-build-system)
733 (arguments
734 `(#:tests? #f ; no check target
735 #:phases
736 (modify-phases %standard-phases
737 ;; no setup.py script
738 (delete 'build)
739 (replace 'install
740 (lambda* (#:key outputs #:allow-other-keys)
741 (let* ((out (assoc-ref outputs "out"))
742 (bin (string-append out "/bin"))
743 (data (string-append out "/share/retux"))
744 (doc (string-append out "/share/doc/retux")))
745 (mkdir-p bin)
746
747 (substitute* "retux.py"
748 ;; Use the correct data directory.
749 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
750 (string-append "\"" data "\","))
751 ;; Use Python 3 so the patch-shebangs phase works properly.
752 ((".*python2.*") "#!/usr/bin/python3"))
753
754 (copy-file "retux.py" (string-append bin "/retux"))
755
756 (copy-recursively "data" data)
757
758 (install-file "COPYING" doc)))))))
759 (inputs
760 `(("python-sge-pygame" ,python-sge-pygame)
761 ("python-six" ,python-six)
762 ("python-xsge" ,python-xsge)))
763 (home-page "http://retux.nongnu.org")
764 (synopsis "Action platformer game")
765 (description
766 "ReTux is an action platformer loosely inspired by the Mario games,
767 utilizing the art assets from the @code{SuperTux} project.")
768 ;; GPL version 3 or later is the license for the code and some art.
769 ;; The rest of the licenses are for the art exclusively, as listed in
770 ;; data/LICENSES.
771 (license (list license:cc0
772 license:cc-by3.0
773 license:cc-by-sa3.0
774 license:cc-by-sa4.0
775 license:gpl2+
776 license:gpl3+))))
777
778 (define-public roguebox-adventures
779 (let ((commit "19a2c340b34d5b4e7cc89118c7aedc058babbd93")
780 (revision "1"))
781 (package
782 (name "roguebox-adventures")
783 (version (git-version "2.1.2" revision commit))
784 (source
785 (origin
786 (method git-fetch)
787 (uri
788 (git-reference
789 (url "https://git.postactiv.com/themightyglider/RogueBoxAdventures.git")
790 (commit commit)))
791 (file-name (git-file-name name version))
792 (sha256
793 (base32
794 "0afmg8fjdcs3sqdp5rc7irgr7riil8jwysfjn1imfxslf1wcx5ah"))))
795 (build-system python-build-system)
796 (arguments
797 '(#:tests? #f ; no check target
798 #:phases
799 (modify-phases %standard-phases
800 ;; no setup.py script
801 (replace 'build
802 (lambda* (#:key outputs #:allow-other-keys)
803 (let* ((out (assoc-ref outputs "out"))
804 (data (string-append
805 out "/share/games/roguebox-adventures")))
806 ;; Use the correct data directory.
807 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
808 (("basic_path + os\\.sep + 'DATA'")
809 (string-append "'" data "'"))
810 (("^basic_path.*$")
811 (string-append "basic_path ='" data "'\n")))
812 (substitute* "LIB/gra_files.py"
813 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
814 (string-append "basic_path ='" data "'\n")))
815
816 ;; The game must save in the user's home directory because
817 ;; the store is read-only.
818 (substitute* "main.py"
819 (("home_save = False") "home_save = True")
820 (("'icon_small.png'")
821 (string-append "'" data "/icon_small.png'"))))
822 #t))
823 (replace 'install
824 (lambda* (#:key outputs #:allow-other-keys)
825 (let* ((out (assoc-ref outputs "out"))
826 (bin (string-append out "/bin"))
827 (data (string-append
828 out "/share/games/roguebox-adventures"))
829 (doc (string-append
830 out "/share/doc/roguebox-adventures")))
831 (mkdir-p bin)
832 (mkdir-p doc)
833 (copy-file "main.py"
834 (string-append bin "/roguebox-adventures"))
835 (chmod (string-append bin "/roguebox-adventures") #o555)
836
837 (for-each (lambda (file)
838 (copy-recursively file
839 (string-append data "/" file)))
840 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
841 "icon_big.png" "icon_small.png"))
842
843 (copy-recursively "DOC" doc)
844
845 (wrap-program (string-append bin "/roguebox-adventures")
846 `("PYTHONPATH" ":" prefix (,(string-append data "/LIB")))))
847 #t)))))
848 (inputs
849 `(("python-pygame" ,python-pygame)
850 ("python-tmx" ,python-tmx)))
851 (home-page "https://rogueboxadventures.tuxfamily.org")
852 (synopsis "A classical roguelike/sandbox game")
853 (description
854 "RogueBox Adventures is a graphical roguelike with strong influences
855 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
856 Adventures is to offer the player a kind of roguelike toy-world. This world
857 can be explored and changed freely.")
858 ;; The GPL3+ is for code, the rest are for art.
859 (license (list license:cc0
860 license:cc-by3.0
861 license:gpl3+
862 license:silofl1.1)))))
863
864 (define-public xshogi
865 (package
866 (name "xshogi")
867 (version "1.4.2")
868 (source
869 (origin
870 (method url-fetch)
871 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
872 version ".tar.gz"))
873 (sha256
874 (base32
875 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
876 (build-system gnu-build-system)
877 (inputs
878 `(("libxaw" ,libxaw)
879 ("libxt" ,libxt)))
880 (home-page "https://www.gnu.org/software/gnushogi/")
881 (synopsis "User interface for gnushogi")
882 (description "A graphical user interface for the package @code{gnushogi}.")
883 ;; Contains a copy of GPLv3 but the licence notices simply
884 ;; state "GNU General Public Licence" without specifying a version.
885 (license license:gpl1+)))
886
887 (define-public abbaye
888 (package
889 (name "abbaye")
890 (version "2.0.1")
891 (source
892 (origin
893 (method url-fetch)
894 (uri (string-append "https://github.com/nevat/abbayedesmorts-gpl/"
895 "archive/v" version ".tar.gz"))
896 (file-name (string-append name "-" version ".tar.gz"))
897 (sha256
898 (base32
899 "1a67b0hq6271dd7pvwndjq29cwn2n8gawwz17xafa3k1hrhf8vw3"))
900 (modules '((guix build utils)))
901 (snippet
902 ;; Unbundle fonts.
903 '(begin
904 (delete-file-recursively "fonts")
905 #t))))
906 (build-system gnu-build-system)
907 (arguments
908 '(#:make-flags '("CC=gcc")
909 #:phases (modify-phases %standard-phases
910 (add-after 'set-paths 'set-sdl-paths
911 (lambda* (#:key inputs #:allow-other-keys)
912 (setenv "CPATH"
913 (string-append (assoc-ref inputs "sdl-union")
914 "/include/SDL"))))
915 (add-after 'patch-source-shebangs 'patch-makefile
916 (lambda* (#:key outputs #:allow-other-keys)
917 ;; Replace /usr with package output directory.
918 (substitute* "Makefile"
919 (("/usr") (assoc-ref outputs "out")))))
920 (add-before 'install 'make-install-dirs
921 (lambda* (#:key outputs #:allow-other-keys)
922 (let ((prefix (assoc-ref outputs "out")))
923 ;; Create directories that the makefile assumes exist.
924 (mkdir-p (string-append prefix "/bin"))
925 (mkdir-p (string-append prefix "/share/applications"))
926 (mkdir-p (string-append prefix "/share/pixmaps")))))
927 ;; No configure script.
928 (delete 'configure))
929 #:tests? #f)) ;; No check target.
930 (native-inputs `(("pkg-config" ,pkg-config)))
931 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
932 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
933 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
934 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
935 France. The Cathars, who preach about good Christian beliefs, were being
936 expelled by the Catholic Church out of the Languedoc region in France. One of
937 them, called Jean Raymond, found an old church in which to hide, not knowing
938 that beneath its ruins lay buried an ancient evil.")
939 (license license:gpl3)))
940
941 (define-public angband
942 (package
943 (name "angband")
944 (version "4.0.5")
945 (source
946 (origin
947 (method url-fetch)
948 (uri (string-append "http://rephial.org/downloads/4.0/"
949 "angband-" version ".tar.gz"))
950 (sha256
951 (base32
952 "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd"))
953 (modules '((guix build utils)))
954 (snippet
955 ;; So, some of the sounds/graphics/tilesets are under different
956 ;; licenses... some of them even nonfree! This is a console-only
957 ;; version of this package so we just remove them.
958 ;; In the future, if someone tries to make a graphical variant of
959 ;; this package, they can deal with that mess themselves. :)
960 '(begin
961 (for-each (lambda (subdir)
962 (let ((lib-subdir (string-append "lib/" subdir)))
963 (delete-file-recursively lib-subdir)))
964 '("fonts" "icons" "sounds" "tiles"))
965 (substitute* "lib/Makefile"
966 ;; And don't try to invoke makefiles in the directories we removed
967 (("gamedata customize help screens fonts tiles sounds icons user")
968 "gamedata customize help screens user"))
969 #t))))
970 (build-system gnu-build-system)
971 (arguments
972 `(#:tests? #f ;no check target
973 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
974 #:phases
975 (modify-phases %standard-phases
976 (add-after 'unpack 'autogen.sh
977 (lambda _
978 (substitute* "acinclude.m4"
979 (("ncursesw5-config") "ncursesw6-config"))
980 (zero? (system* "sh" "autogen.sh")))))))
981 (native-inputs
982 `(("autoconf" ,autoconf)
983 ("automake" ,automake)))
984 (inputs `(("ncurses" ,ncurses)))
985 (home-page "http://rephial.org/")
986 (synopsis "Dungeon exploration roguelike")
987 (description "Angband is a Classic dungeon exploration roguelike. Explore
988 the depths below Angband, seeking riches, fighting monsters, and preparing to
989 fight Morgoth, the Lord of Darkness.")
990 (license license:gpl2)))
991
992 (define-public pingus
993 (package
994 (name "pingus")
995 (version "0.7.6")
996 (source
997 (origin
998 (method url-fetch)
999 (uri (string-append "https://github.com/Pingus/pingus/archive/v"
1000 version ".tar.gz"))
1001 (file-name (string-append name "-" version ".tar.gz"))
1002 (sha256
1003 (base32
1004 "0r9v6as5vi7skvvy7b0fcaimhdlzmik64pyy68plgljhsghqkkf4"))
1005 (patches (search-patches "pingus-sdl-libs-config.patch"))))
1006 (build-system gnu-build-system)
1007 (native-inputs `(("pkg-config" ,pkg-config)
1008 ("scons-python2" ,scons-python2)))
1009 (inputs `(("sdl" ,sdl)
1010 ("sdl-image" ,sdl-image)
1011 ("sdl-mixer" ,sdl-mixer)
1012 ("mesa" ,mesa)
1013 ("glu" ,glu)
1014 ("libpng" ,libpng)
1015 ("boost" ,boost)))
1016 (arguments
1017 '(#:make-flags (list (string-append "PREFIX=" %output))
1018 #:tests? #f ; no check target
1019 #:phases
1020 (modify-phases %standard-phases
1021 (delete 'configure)))) ; no configure script
1022 (home-page "http://pingus.seul.org/welcome.html")
1023 (synopsis "Lemmings clone")
1024 (description
1025 "Pingus is a free Lemmings-like puzzle game in which the player takes
1026 command of a bunch of small animals and has to guide them through levels.
1027 Since the animals walk on their own, the player can only influence them by
1028 giving them commands, like build a bridge, dig a hole, or redirect all animals
1029 in the other direction. Multiple such commands are necessary to reach the
1030 level's exit. The game is presented in a 2D side view.")
1031 ;; Some source files are under bsd-3 and gpl2+ licenses.
1032 (license license:gpl3+)))
1033
1034 (define-public talkfilters
1035 (package
1036 (name "talkfilters")
1037 (version "2.3.8")
1038 (source
1039 (origin
1040 (method url-fetch)
1041 (uri (string-append "http://www.hyperrealm.com/" name "/"
1042 name "-" version ".tar.gz"))
1043 (sha256
1044 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
1045 (build-system gnu-build-system)
1046 (home-page "https://www.gnu.org/software/talkfilters/")
1047 (synopsis "Convert English text to humorous dialects")
1048 (description "The GNU Talk Filters are programs that convert English text
1049 into stereotyped or otherwise humorous dialects. The filters are provided as
1050 a C library, so they can easily be integrated into other programs.")
1051 (license license:gpl2+)))
1052
1053 (define-public cmatrix
1054 (package
1055 (name "cmatrix")
1056 (version "1.2a")
1057 (source
1058 (origin
1059 (method url-fetch)
1060 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
1061 ".tar.gz"))
1062 (sha256
1063 (base32
1064 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
1065 (build-system gnu-build-system)
1066 (arguments
1067 '(#:phases
1068 (modify-phases %standard-phases
1069 (replace 'configure
1070 (lambda* (#:key outputs #:allow-other-keys)
1071 ;; This old ‘configure’ script doesn't support
1072 ;; variables passed as arguments.
1073 (let ((out (assoc-ref outputs "out")))
1074 (setenv "CONFIG_SHELL" (which "bash"))
1075 (zero?
1076 (system* "./configure"
1077 (string-append "--prefix=" out)))))))))
1078 (inputs `(("ncurses" ,ncurses)))
1079 (home-page "http://www.asty.org/cmatrix")
1080 (synopsis "Simulate the display from \"The Matrix\"")
1081 (description "CMatrix simulates the display from \"The Matrix\" and is
1082 based on the screensaver from the movie's website. It works with terminal
1083 settings up to 132x300 and can scroll lines all at the same rate or
1084 asynchronously and at a user-defined speed.")
1085 (license license:gpl2+)))
1086
1087 (define-public chess
1088 (package
1089 (name "chess")
1090 (version "6.2.5")
1091 (source
1092 (origin
1093 (method url-fetch)
1094 (uri (string-append "mirror://gnu/chess/gnuchess-" version
1095 ".tar.gz"))
1096 (sha256
1097 (base32
1098 "00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs"))))
1099 (build-system gnu-build-system)
1100 (home-page "https://www.gnu.org/software/chess/")
1101 (synopsis "Full chess implementation")
1102 (description "GNU Chess is a chess engine. It allows you to compete
1103 against the computer in a game of chess, either through the default terminal
1104 interface or via an external visual interface such as GNU XBoard.")
1105 (license license:gpl3+)))
1106
1107 (define freedink-engine
1108 (package
1109 (name "freedink-engine")
1110 (version "108.4")
1111 (source (origin
1112 (method url-fetch)
1113 (uri (string-append "mirror://gnu/freedink/freedink-" version
1114 ".tar.gz"))
1115 (sha256
1116 (base32
1117 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
1118 (build-system gnu-build-system)
1119 (arguments `(#:configure-flags '("--disable-embedded-resources")))
1120 (native-inputs `(("gettext" ,gettext-minimal)
1121 ("pkg-config" ,pkg-config)))
1122 (inputs `(("sdl" ,sdl)
1123 ("sdl-image" ,sdl-image)
1124 ("sdl-mixer" ,sdl-mixer)
1125 ("sdl-ttf" ,sdl-ttf)
1126 ("sdl-gfx" ,sdl-gfx)
1127 ("fontconfig" ,fontconfig)
1128 ("check" ,check)))
1129 (home-page "https://www.gnu.org/software/freedink/")
1130 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
1131 (description
1132 "GNU FreeDink is a free and portable re-implementation of the engine
1133 for the role-playing game Dink Smallwood. It supports not only the original
1134 game data files but it also supports user-produced game mods or \"D-Mods\".
1135 To that extent, it also includes a front-end for managing all of your D-Mods.")
1136 (license license:gpl3+)))
1137
1138 (define freedink-data
1139 (package
1140 (name "freedink-data")
1141 (version "1.08.20170401")
1142 (source (origin
1143 (method url-fetch)
1144 (uri (string-append "mirror://gnu/freedink/freedink-data-"
1145 version ".tar.xz"))
1146 (sha256
1147 (base32
1148 "1zx7qywibhznj7bnz217404scr8dfh0xj24xjihnda5iapzz7lz8"))))
1149 (build-system gnu-build-system)
1150 (arguments
1151 `(#:phases
1152 (modify-phases %standard-phases
1153 (delete 'configure) ; no configure script
1154 (delete 'check)) ; no tests
1155 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1156 (home-page "https://www.gnu.org/software/freedink/")
1157 (synopsis "Game data for GNU Freedink")
1158 (description
1159 "This package contains the game data of GNU Freedink.")
1160 (license license:gpl3+)))
1161
1162 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
1163
1164 (define-public freedink
1165 ;; This is a wrapper that tells the engine where to find the data.
1166 (package (inherit freedink-engine)
1167 (name "freedink")
1168 (build-system trivial-build-system)
1169 (arguments
1170 '(#:builder (begin
1171 (use-modules (guix build utils))
1172
1173 (let* ((output (assoc-ref %outputs "out"))
1174 (bin (string-append output "/bin"))
1175 (executable (string-append bin "/freedink")))
1176 (mkdir-p bin)
1177 (call-with-output-file executable
1178 (lambda (port)
1179 (format port "#!~a/bin/sh
1180 exec ~a/bin/freedink -refdir ~a/share/dink\n"
1181 (assoc-ref %build-inputs "bash")
1182 (assoc-ref %build-inputs "engine")
1183 (assoc-ref %build-inputs "data"))
1184 (chmod port #o777)))
1185 #t))
1186 #:modules ((guix build utils))))
1187 (inputs `(("engine" ,freedink-engine)
1188 ("data" ,freedink-data)
1189 ("bash" ,bash)))
1190 (native-inputs '())))
1191
1192 (define-public xboard
1193 (package
1194 (name "xboard")
1195 (version "4.9.1")
1196 (source
1197 (origin
1198 (method url-fetch)
1199 (uri (string-append "mirror://gnu/xboard/xboard-" version
1200 ".tar.gz"))
1201 (sha256
1202 (base32
1203 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
1204 (build-system gnu-build-system)
1205 (inputs
1206 `(("gtk+" ,gtk+-2)
1207 ("librsvg" ,librsvg)))
1208 (native-inputs
1209 `(("texinfo" ,texinfo)
1210 ("pkg-config" ,pkg-config)))
1211 (home-page "https://www.gnu.org/software/xboard/")
1212 (synopsis "Graphical user interface for chess programs")
1213 (description "GNU XBoard is a graphical board for all varieties of chess,
1214 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
1215 and Makruk. Several lesser-known variants are also supported. It presents a
1216 fully interactive graphical interface and it can load and save games in the
1217 Portable Game Notation.")
1218 (license license:gpl3+)))
1219
1220
1221 (define-public xboing
1222 (package
1223 (name "xboing")
1224 (version "2.4")
1225 (source
1226 (origin
1227 (method url-fetch)
1228 (uri (string-append "http://www.techrescue.org/xboing/xboing"
1229 version ".tar.gz"))
1230 (sha256
1231 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))
1232 (patches (search-patches "xboing-CVE-2004-0149.patch"))))
1233 (arguments
1234 `(#:tests? #f
1235 #:phases
1236 (modify-phases %standard-phases
1237 (replace 'configure
1238 (lambda* (#:key outputs #:allow-other-keys)
1239
1240 (substitute* "Imakefile"
1241 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
1242 (string-append "XPMINCLUDE = -I"
1243 (assoc-ref %build-inputs "libxpm")
1244 "/include/X11")))
1245
1246 (substitute* "Imakefile"
1247 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
1248
1249 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
1250
1251 (zero? (system* "xmkmf" "-a"
1252 (string-append "-DProjectRoot="
1253 (assoc-ref outputs "out"))))))
1254 (replace 'install
1255 (lambda* (#:key outputs #:allow-other-keys)
1256 (and
1257 (zero? (system* "make" "install.man"))
1258 (zero? (system* "make" "install"))))))))
1259 (inputs `(("libx11" ,libx11)
1260 ("libxext" ,libxext)
1261 ("libxpm" ,libxpm)))
1262 (native-inputs `(("imake" ,imake)
1263 ("inetutils" ,inetutils)
1264 ("makedepend" ,makedepend)))
1265 (build-system gnu-build-system)
1266 (home-page "http://www.techrescue.org/xboing")
1267 (synopsis "Ball and paddle game")
1268 (description "XBoing is a blockout type game where you have a paddle which
1269 you control to bounce a ball around the game zone destroying blocks with a
1270 proton ball. Each block carries a different point value. The more blocks you
1271 destroy, the better your score. The person with the highest score wins.")
1272 (license (license:x11-style "file://COPYING"
1273 "Very similar to the X11 licence."))))
1274
1275 (define-public gtypist
1276 (package
1277 (name "gtypist")
1278 (version "2.9.5")
1279 (source (origin
1280 (method url-fetch)
1281 (uri (string-append "mirror://gnu/gtypist/gtypist-"
1282 version ".tar.xz"))
1283 (sha256
1284 (base32
1285 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
1286 (modules '((guix build utils)))
1287 (snippet
1288 ;; We do not provide `ncurses.h' within an `ncursesw'
1289 ;; sub-directory, so patch the source accordingly. See
1290 ;; <http://bugs.gnu.org/19018>.
1291 '(begin
1292 (for-each (lambda (file)
1293 (substitute* file
1294 (("ncursesw/ncurses.h")
1295 "ncurses.h")))
1296 (find-files "." "configure$|\\.c$"))
1297 #t))))
1298 (build-system gnu-build-system)
1299 (inputs `(("ncurses" ,ncurses)
1300 ("perl" ,perl)))
1301 (home-page "https://www.gnu.org/software/gtypist/")
1302 (synopsis "Typing tutor")
1303 (description
1304 "GNU Typist is a universal typing tutor. It can be used to learn and
1305 practice touch-typing. Several tutorials are included; in addition to
1306 tutorials for the standard QWERTY layout, there are also tutorials for the
1307 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
1308 are primarily in English, however some in other languages are provided.")
1309 (license license:gpl3+)))
1310
1311 (define-public irrlicht
1312 (package
1313 (name "irrlicht")
1314 (version "1.8.4")
1315 (source (origin
1316 (method url-fetch)
1317 (uri (string-append
1318 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
1319 (version-major+minor version)
1320 "/" version "/irrlicht-" version ".zip"))
1321 (sha256
1322 (base32
1323 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
1324 (build-system gnu-build-system)
1325 (arguments
1326 `(#:phases
1327 (modify-phases %standard-phases
1328 (add-after 'unpack 'fix-build-env
1329 (lambda* (#:key outputs #:allow-other-keys)
1330 (let ((out (assoc-ref outputs "out")))
1331 (substitute* "Makefile"
1332 (("INSTALL_DIR = /usr/local/lib")
1333 (string-append "INSTALL_DIR = " out "/lib")))
1334 ;; The Makefile assumes these directories exist.
1335 (mkdir-p (string-append out "/lib"))
1336 (mkdir-p (string-append out "/include")))))
1337 (replace 'unpack
1338 (lambda* (#:key source #:allow-other-keys)
1339 (and (zero? (system* "unzip" source))
1340 ;; The actual source is buried a few directories deep.
1341 (chdir (string-append "irrlicht-" ,version
1342 "/source/Irrlicht/")))))
1343 (delete 'configure)) ; no configure script
1344 #:tests? #f ; no check target
1345 #:make-flags '("CC=gcc" "sharedlib")))
1346 (native-inputs
1347 `(("unzip" ,unzip)))
1348 (inputs
1349 `(("mesa" ,mesa)
1350 ("glu" ,glu)))
1351 (synopsis "3D game engine written in C++")
1352 (description
1353 "The Irrlicht Engine is a high performance realtime 3D engine written in
1354 C++. Features include an OpenGL renderer, extensible materials, scene graph
1355 management, character animation, particle and other special effects, support
1356 for common mesh file formats, and collision detection.")
1357 (home-page "http://irrlicht.sourceforge.net/")
1358 (license license:zlib)))
1359
1360 (define-public mars
1361 ;; The latest release on SourceForge relies on an unreleased version of SFML
1362 ;; with a different API, so we take the latest version from the official
1363 ;; repository on Github.
1364 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
1365 (revision "1"))
1366 (package
1367 (name "mars")
1368 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
1369 (source (origin
1370 (method git-fetch)
1371 (uri (git-reference
1372 (url "https://github.com/thelaui/M.A.R.S..git")
1373 (commit commit)))
1374 (file-name (string-append name "-" version))
1375 (sha256
1376 (base32
1377 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
1378 (patches (search-patches "mars-sfml-2.3.patch"
1379 "mars-install.patch"))))
1380 (build-system cmake-build-system)
1381 (arguments
1382 `(#:tests? #f ; There are no tests
1383 #:phases
1384 (modify-phases %standard-phases
1385 (add-after 'unpack 'fix-install-path
1386 (lambda _
1387 (substitute* "src/CMakeLists.txt"
1388 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
1389 "${CMAKE_INSTALL_PREFIX}/bin"))
1390 #t))
1391 (add-after 'unpack 'fix-data-path
1392 (lambda* (#:key outputs #:allow-other-keys)
1393 (substitute* "src/System/settings.cpp"
1394 (("C_dataPath = \"./data/\";")
1395 (string-append "C_dataPath = \""
1396 (assoc-ref outputs "out")
1397 "/share/games/marsshooter/\";")))
1398 #t)))))
1399 (inputs
1400 `(("mesa" ,mesa)
1401 ("fribidi" ,fribidi)
1402 ("taglib" ,taglib)
1403 ("sfml" ,sfml)))
1404 (home-page "http://marsshooter.org")
1405 (synopsis "2D space shooter")
1406 (description
1407 "M.A.R.S. is a 2D space shooter with pretty visual effects and
1408 attractive physics. Players can battle each other or computer controlled
1409 enemies in different game modes such as space ball, death match, team death
1410 match, cannon keep, and grave-itation pit.")
1411 (license license:gpl3+))))
1412
1413 (define minetest-data
1414 (package
1415 (name "minetest-data")
1416 (version "0.4.16")
1417 (source (origin
1418 (method url-fetch)
1419 (uri (string-append
1420 "https://github.com/minetest/minetest_game/archive/"
1421 version ".tar.gz"))
1422 (file-name (string-append name "-" version ".tar.gz"))
1423 (sha256
1424 (base32
1425 "0nibpm600rbv9dg1zgcsl5grlbqx0b5l6cg1lp6sqkwvjialb4ga"))))
1426 (build-system trivial-build-system)
1427 (native-inputs
1428 `(("source" ,source)
1429 ("tar" ,tar)
1430 ("gzip" ,(@ (gnu packages compression) gzip))))
1431 (arguments
1432 `(#:modules ((guix build utils))
1433 #:builder (begin
1434 (use-modules (guix build utils))
1435 (let ((tar (string-append (assoc-ref %build-inputs "tar")
1436 "/bin/tar"))
1437 (install-dir (string-append
1438 %output
1439 "/share/minetest/games/minetest_game"))
1440 (path (string-append (assoc-ref %build-inputs
1441 "gzip")
1442 "/bin")))
1443 (setenv "PATH" path)
1444 (invoke tar "xvf" (assoc-ref %build-inputs "source"))
1445 (chdir (string-append "minetest_game-" ,version))
1446 (mkdir-p install-dir)
1447 (copy-recursively "." install-dir)
1448 #t))))
1449 (synopsis "Main game data for the Minetest game engine")
1450 (description
1451 "Game data for the Minetest infinite-world block sandox game.")
1452 (home-page "http://minetest.net")
1453 (license license:lgpl2.1+)))
1454
1455 (define-public minetest
1456 (package
1457 (name "minetest")
1458 (version "0.4.16")
1459 (source (origin
1460 (method url-fetch)
1461 (uri (string-append
1462 "https://github.com/minetest/minetest/archive/"
1463 version ".tar.gz"))
1464 (file-name (string-append name "-" version ".tar.gz"))
1465 (sha256
1466 (base32
1467 "0mbnf1ma4gsw9ah68ply04059xkfx5psdxwalxp78sgmx4ypkwqf"))))
1468 (build-system cmake-build-system)
1469 (arguments
1470 '(#:configure-flags
1471 (list "-DRUN_IN_PLACE=0"
1472 "-DENABLE_FREETYPE=1"
1473 "-DENABLE_GETTEXT=1"
1474 (string-append "-DIRRLICHT_INCLUDE_DIR="
1475 (assoc-ref %build-inputs "irrlicht")
1476 "/include/irrlicht")
1477 (string-append "-DCURL_INCLUDE_DIR="
1478 (assoc-ref %build-inputs "curl")
1479 "/include/curl"))
1480 #:tests? #f)) ; no check target
1481 (native-search-paths
1482 (list (search-path-specification
1483 (variable "MINETEST_SUBGAME_PATH")
1484 (files '("share/minetest/games")))))
1485 (native-inputs
1486 `(("pkg-config" ,pkg-config)))
1487 (inputs
1488 `(("irrlicht" ,irrlicht)
1489 ("libpng" ,libpng)
1490 ("libjpeg" ,libjpeg)
1491 ("libxxf86vm" ,libxxf86vm)
1492 ("mesa" ,mesa)
1493 ("libogg" ,libogg)
1494 ("libvorbis" ,libvorbis)
1495 ("openal" ,openal)
1496 ("freetype" ,(@ (gnu packages fontutils) freetype))
1497 ("curl" ,curl)
1498 ("luajit" ,luajit)
1499 ("gettext" ,gettext-minimal)
1500 ("sqlite" ,sqlite)))
1501 (propagated-inputs
1502 `(("minetest-data" ,minetest-data)))
1503 (synopsis "Infinite-world block sandbox game")
1504 (description
1505 "Minetest is a sandbox construction game. Players can create and destroy
1506 various types of blocks in a three-dimensional open world. This allows
1507 forming structures in every possible creation, on multiplayer servers or as a
1508 single player. Mods and texture packs allow players to personalize the game
1509 in different ways.")
1510 (home-page "http://minetest.net")
1511 (license license:lgpl2.1+)))
1512
1513 (define glkterm
1514 (package
1515 (name "glkterm")
1516 (version "1.0.4")
1517 (source
1518 (origin
1519 (method url-fetch)
1520 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1521 "glk/implementations/glkterm-104.tar.gz"))
1522 (sha256
1523 (base32
1524 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
1525 (build-system gnu-build-system)
1526 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
1527 (arguments
1528 '(#:tests? #f ; no check target
1529 #:phases
1530 (modify-phases %standard-phases
1531 (replace 'install
1532 (lambda* (#:key outputs #:allow-other-keys)
1533 (let* ((out (assoc-ref outputs "out"))
1534 (inc (string-append out "/include"))
1535 (lib (string-append out "/lib")))
1536 (for-each
1537 (lambda (file)
1538 (install-file file inc))
1539 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
1540 (install-file "libglkterm.a" lib))
1541 #t))
1542 (delete 'configure)))) ; no configure script
1543 (home-page "http://www.eblong.com/zarf/glk/")
1544 (synopsis "Curses Implementation of the Glk API")
1545 (description
1546 "Glk defines a portable API for applications with text UIs. It was
1547 primarily designed for interactive fiction, but it should be suitable for many
1548 interactive text utilities, particularly those based on a command line.
1549 This is an implementation of the Glk library which runs in a terminal window,
1550 using the @code{curses.h} library for screen control.")
1551 (license (license:fsf-free "file://README"))))
1552
1553 (define-public glulxe
1554 (package
1555 (name "glulxe")
1556 (version "0.5.4")
1557 (source
1558 (origin
1559 (method url-fetch)
1560 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
1561 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
1562 (sha256
1563 (base32
1564 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
1565 (build-system gnu-build-system)
1566 (inputs `(("glk" ,glkterm)))
1567 (arguments
1568 '(#:tests? #f ; no check target
1569 #:make-flags
1570 (let* ((glk (assoc-ref %build-inputs "glk")))
1571 (list (string-append "GLKINCLUDEDIR=" glk "/include")
1572 (string-append "GLKLIBDIR=" glk "/lib")
1573 (string-append "GLKMAKEFILE=" "Make.glkterm")))
1574 #:phases
1575 (modify-phases %standard-phases
1576 (replace 'install
1577 (lambda* (#:key outputs #:allow-other-keys)
1578 (let* ((out (assoc-ref outputs "out"))
1579 (bin (string-append out "/bin")))
1580 (install-file "glulxe" bin))
1581 #t))
1582 (delete 'configure)))) ; no configure script
1583 (home-page "http://www.eblong.com/zarf/glulx/")
1584 (synopsis "Interpreter for Glulx VM")
1585 (description
1586 "Glulx is a 32-bit portable virtual machine intended for writing and
1587 playing interactive fiction. It was designed by Andrew Plotkin to relieve
1588 some of the restrictions in the venerable Z-machine format. This is the
1589 reference interpreter, using the Glk API.")
1590 (license license:expat)))
1591
1592 (define-public fizmo
1593 (package
1594 (name "fizmo")
1595 (version "0.8.4")
1596 (source (origin
1597 (method url-fetch)
1598 (uri (string-append "https://christoph-ender.de/fizmo/source/"
1599 name "-" version ".tar.gz"))
1600 (sha256
1601 (base32
1602 "1sd988db2302r7cbfcfghbmg8ck43c6hvnlnlpb0rqxb7pm9cwyy"))))
1603 (build-system gnu-build-system)
1604 (arguments
1605 '(#:configure-flags
1606 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
1607 (ncurses (assoc-ref %build-inputs "ncurses")))
1608 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
1609 (string-append "jpeg_LIBS=-ljpeg")
1610 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
1611 (string-append "ncursesw_LIBS=-lncursesw")))))
1612 (native-inputs
1613 `(("pkg-config" ,pkg-config)))
1614 (inputs
1615 `(("freetype" ,freetype)
1616 ("libjpeg" ,libjpeg)
1617 ("libpng" ,libpng)
1618 ("libsndfile" ,libsndfile)
1619 ("libxml2" ,libxml2)
1620 ("ncurses" ,ncurses)
1621 ("sdl2" ,sdl2)))
1622 (home-page "https://christoph-ender.de/fizmo/")
1623 (synopsis "Z-machine interpreter")
1624 (description
1625 "Fizmo is a console-based Z-machine interpreter. It is used to play
1626 interactive fiction, also known as text adventures, which were implemented
1627 either by Infocom or created using the Inform compiler.")
1628 (license license:bsd-3)))
1629
1630 (define-public gnugo
1631 (package
1632 (name "gnugo")
1633 (version "3.8")
1634 (source (origin
1635 (method url-fetch)
1636 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
1637 ".tar.gz"))
1638 (sha256
1639 (base32
1640 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
1641 (build-system gnu-build-system)
1642 (inputs `(("readline" ,readline)))
1643 (synopsis "Play the game of Go")
1644 (description
1645 "GNU Go is a program that plays the game of Go, in which players
1646 place stones on a grid to form territory or capture other stones. While
1647 it can be played directly from the terminal, rendered in ASCII characters,
1648 it is also possible to play GNU Go with 3rd party graphical interfaces or
1649 even in Emacs. It supports the standard game storage format (SGF, Smart
1650 Game Format) and inter-process communication format (GMP, Go Modem
1651 Protocol).")
1652 (home-page "https://www.gnu.org/software/gnugo/")
1653 (license license:gpl3+)))
1654
1655 (define-public extremetuxracer
1656 (package
1657 (name "extremetuxracer")
1658 (version "0.7.4")
1659 (source (origin
1660 (method url-fetch)
1661 (uri (string-append
1662 "mirror://sourceforge/extremetuxracer/releases/"
1663 version "/etr-" version ".tar.xz"))
1664 (sha256
1665 (base32
1666 "0d2j4ybdjmimg67v2fndgahgq4fvgz3fpfb3a4l1ar75n6hy776s"))))
1667 (build-system gnu-build-system)
1668 (native-inputs
1669 `(("pkg-config" ,pkg-config)))
1670 (inputs
1671 `(("glu" ,glu)
1672 ("sfml" ,sfml)))
1673 (synopsis "High speed arctic racing game based on Tux Racer")
1674 ;; Snarfed straight from Debian
1675 (description "Extreme Tux Racer, or etracer as it is called for short, is
1676 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
1677 game is to slide down a snow- and ice-covered mountain as quickly as possible,
1678 avoiding the trees and rocks that will slow you down.
1679
1680 Collect herrings and other goodies while sliding down the hill, but avoid fish
1681 bones.
1682
1683 This game is based on the GPL version of the famous game TuxRacer.")
1684 (home-page "https://sourceforge.net/projects/extremetuxracer/")
1685 (license license:gpl2+)))
1686
1687 (define-public supertuxkart
1688 (package
1689 (name "supertuxkart")
1690 (version "0.9.3")
1691 (source
1692 (origin
1693 (method url-fetch)
1694 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
1695 version "/supertuxkart-" version "-src.tar.xz"))
1696 (sha256
1697 (base32
1698 "1c4w47ibj87lgwiqygq8qi7jiz6gklj4dwf5bs5zk15s0rqlw0fq"))
1699 (modules '((guix build utils)))
1700 (snippet
1701 ;; Delete bundled library sources
1702 '(begin
1703 ;; FIXME: try to unbundle enet, and angelscript
1704 (for-each delete-file-recursively
1705 '("lib/zlib"
1706 "lib/libpng"
1707 "lib/jpeglib"
1708 "lib/glew"
1709 "lib/wiiuse"))
1710 (substitute* "CMakeLists.txt"
1711 ;; Supertuxkart uses modified versions of the Irrlicht engine
1712 ;; and the bullet library. The developers gave an explanation here:
1713 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1714 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1715 #t))))
1716 (build-system cmake-build-system)
1717 (arguments
1718 `(#:tests? #f ; no check target
1719 #:configure-flags
1720 (list "-DUSE_WIIUSE=0"
1721 ;; Do not use the bundled zlib
1722 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1723 ;; FIXME: needs libopenglrecorder
1724 "-DBUILD_RECORDER=0"
1725 ;; Irrlicht returns an integer instead of a boolean
1726 "-DCMAKE_C_FLAGS=-fpermissive")
1727 #:phases
1728 (modify-phases %standard-phases
1729 (add-after 'unpack 'unbundle
1730 (lambda* (#:key inputs #:allow-other-keys)
1731 (substitute* "CMakeLists.txt"
1732 (("glew")
1733 (string-append (assoc-ref inputs "glew")
1734 "/lib/libGLEW.a"))
1735 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1736 (string-append "include_directories(\""
1737 (assoc-ref inputs "glew")
1738 "/include\")")))
1739 #t)))))
1740 (inputs
1741 `(("glew" ,glew)
1742 ("zlib" ,zlib)
1743 ("openal" ,openal)
1744 ("libvorbis" ,libvorbis)
1745 ("freetype" ,freetype)
1746 ("fribidi" ,fribidi)
1747 ("mesa" ,mesa)
1748 ("libx11" ,libx11)
1749 ("libxrandr" ,libxrandr)
1750 ("curl" ,curl)
1751 ;; The following input is needed to build the bundled and modified
1752 ;; version of irrlicht.
1753 ("libjpeg" ,libjpeg)))
1754 (native-inputs
1755 `(("pkg-config" ,pkg-config)))
1756 (home-page "https://supertuxkart.net/")
1757 (synopsis "3D kart racing game")
1758 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1759 having fun over realism. You can play with up to 4 friends on one PC, racing
1760 against each other or just trying to beat the computer; single-player mode is
1761 also available.")
1762 (license license:gpl3+)))
1763
1764 (define-public gnujump
1765 (package
1766 (name "gnujump")
1767 (version "1.0.8")
1768 (source (origin
1769 (method url-fetch)
1770 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1771 version ".tar.gz"))
1772 (sha256
1773 (base32
1774 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1775 (build-system gnu-build-system)
1776 (arguments
1777 '(#:phases
1778 (modify-phases %standard-phases
1779 (add-before
1780 'configure 'link-libm
1781 (lambda _ (setenv "LIBS" "-lm"))))))
1782 (inputs
1783 `(("glu" ,glu)
1784 ("mesa" ,mesa)
1785 ("sdl" ,sdl)
1786 ("sdl-image" ,sdl-image)
1787 ("sdl-mixer" ,sdl-mixer)))
1788 (home-page "http://gnujump.es.gnu.org/")
1789 (synopsis
1790 "Game of jumping to the next floor, trying not to fall")
1791 (description
1792 "GNUjump is a simple, yet addictive game in which you must jump from
1793 platform to platform to avoid falling, while the platforms drop at faster rates
1794 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1795 falling, themeable graphics and sounds, and replays.")
1796 (license license:gpl3+)))
1797
1798 (define-public wesnoth
1799 (package
1800 (name "wesnoth")
1801 (version "1.12.6")
1802 (source (origin
1803 (method url-fetch)
1804 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1805 (version-major+minor version) "/wesnoth-"
1806 version "/"
1807 name "-" version ".tar.bz2"))
1808 (sha256
1809 (base32
1810 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1811 (build-system cmake-build-system)
1812 (arguments
1813 '(#:tests? #f ; no check target
1814 #:configure-flags
1815 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1816 ;; boost/mpl/assert.hpp:313:58: error:
1817 ;; use of old-style cast [-Werror=old-style-cast]
1818 ;; [...]
1819 ;; cc1plus: all warnings being treated as errors
1820 '("-DENABLE_STRICT_COMPILATION=OFF")))
1821 (native-inputs
1822 `(("gettext" ,gettext-minimal)
1823 ("pkg-config" ,pkg-config)))
1824 (inputs
1825 `(("boost" ,boost)
1826 ("dbus" ,dbus)
1827 ("fribidi" ,fribidi)
1828 ("libvorbis" ,libvorbis)
1829 ("pango" ,pango)
1830 ("sdl-image" ,sdl-image)
1831 ("sdl-mixer" ,sdl-mixer)
1832 ("sdl-net" ,sdl-net)
1833 ("sdl-ttf" ,sdl-ttf)))
1834 (home-page "http://www.wesnoth.org/")
1835 (synopsis "Turn-based strategy game")
1836 (description
1837 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1838 with several single player campaigns, and multiplayer games (both networked and
1839 local).
1840
1841 Battle for control on a range of maps, using variety of units which have
1842 advantages and disadvantages against different types of attacks. Units gain
1843 experience and advance levels, and are carried over from one scenario to the
1844 next campaign.")
1845 (license license:gpl2+)))
1846
1847 (define-public wesnoth-server
1848 (package
1849 (inherit wesnoth)
1850 (name "wesnoth-server")
1851 (inputs
1852 `(("boost" ,boost)
1853 ("sdl-net" ,sdl-net)))
1854 (arguments
1855 (append
1856 (substitute-keyword-arguments (package-arguments wesnoth)
1857 ((#:configure-flags configure-flags)
1858 `(append ,configure-flags (list "-DENABLE_GAME=OFF"))))
1859 `(#:phases
1860 (modify-phases %standard-phases
1861 ;; Delete game assets not required by the server.
1862 (add-after 'install 'delete-data
1863 (lambda* (#:key outputs #:allow-other-keys)
1864 (delete-file-recursively (string-append (assoc-ref outputs "out")
1865 "/share/wesnoth"))))))))
1866 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
1867 (description "This package contains a dedicated server for @emph{The
1868 Battle for Wesnoth}.")))
1869
1870 (define-public gamine
1871 (package
1872 (name "gamine")
1873 (version "1.5")
1874 (source (origin
1875 (method url-fetch)
1876 (uri (string-append "mirror://sourceforge/gamine-game/"
1877 "gamine-" version ".tar.gz"))
1878 (sha256
1879 (base32
1880 "08wnk7w84c2413hwny89j2cn89cvfdf67bfc6wl0bf475if0mf4h"))))
1881 (build-system gnu-build-system)
1882 (native-inputs
1883 `(("pkg-config" ,pkg-config)
1884 ("intltool" ,intltool)))
1885 (inputs
1886 `(("gstreamer" ,gstreamer)
1887 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1888 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1889 ("gtk+" ,gtk+)))
1890 (arguments
1891 `(#:tests? #f
1892 #:make-flags
1893 (let ((out (assoc-ref %outputs "out")))
1894 (list (string-append "PREFIX=" out)
1895 (string-append "SYSCONFDIR=" out "/etc")))
1896 #:phases
1897 (modify-phases %standard-phases
1898 (delete 'configure)
1899 (add-after
1900 'install 'wrap-gamine
1901 (lambda* (#:key outputs #:allow-other-keys)
1902 (let ((out (assoc-ref outputs "out"))
1903 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1904 (wrap-program (string-append out "/bin/gamine")
1905 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1906 #t)))))
1907 (home-page "http://gamine-game.sourceforge.net/")
1908 (synopsis "Mouse and keyboard discovery for children")
1909 (description
1910 "Gamine is a game designed for young children who are learning to use the
1911 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1912 on the screen and keyboard to display letters.")
1913 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1914 (license license:gpl3)))
1915
1916 (define-public raincat
1917 (package
1918 (name "raincat")
1919 (version "1.1.1.3")
1920 (source
1921 (origin
1922 (method url-fetch)
1923 (uri (string-append
1924 "http://hackage.haskell.org/package/Raincat/Raincat-"
1925 version
1926 ".tar.gz"))
1927 (sha256
1928 (base32
1929 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1930 (build-system haskell-build-system)
1931 (inputs
1932 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1933 ("ghc-mtl" ,ghc-mtl)
1934 ("ghc-random" ,ghc-random)
1935 ("ghc-glut" ,ghc-glut)
1936 ("freeglut" ,freeglut)
1937 ("ghc-opengl" ,ghc-opengl)
1938 ("ghc-sdl" ,ghc-sdl)
1939 ("ghc-sdl-image" ,ghc-sdl-image)
1940 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1941 (home-page "http://www.bysusanlin.com/raincat/")
1942 (synopsis "Puzzle game with a cat in lead role")
1943 (description "Project Raincat is a game developed by Carnegie Mellon
1944 students through GCS during the Fall 2008 semester. Raincat features game
1945 play inspired from classics Lemmings and The Incredible Machine. The project
1946 proved to be an excellent learning experience for the programmers. Everything
1947 is programmed in Haskell.")
1948 (license license:bsd-3)))
1949
1950 (define-public manaplus
1951 (package
1952 (name "manaplus")
1953 (version "1.7.6.10")
1954 (source (origin
1955 (method url-fetch)
1956 (uri (string-append
1957 "http://repo.manaplus.org/manaplus/download/"
1958 version "/manaplus-" version ".tar.xz"))
1959 (sha256
1960 (base32
1961 "0l7swvpzq20am4w2rsjpp6fsvbjv07il6wbfy45a7h9zsdihmqhl"))))
1962 (build-system gnu-build-system)
1963 (arguments
1964 '(#:configure-flags
1965 (list (string-append "CPPFLAGS=-I"
1966 (assoc-ref %build-inputs "sdl-union")
1967 "/include/SDL"))))
1968 (native-inputs
1969 `(("pkg-config" ,pkg-config)))
1970 (inputs
1971 `(("glu" ,glu)
1972 ("curl" ,curl)
1973 ("libxml2" ,libxml2)
1974 ("mesa" ,mesa)
1975 ("sdl-union" ,(sdl-union))))
1976 (home-page "http://manaplus.org")
1977 (synopsis "Client for 'The Mana World' and similar games")
1978 (description
1979 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1980 fully supported client for @uref{http://www.themanaworld.org, The mana
1981 world}, @uref{http://evolonline.org, Evol Online} and
1982 @uref{http://landoffire.org, Land of fire}.")
1983 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1984 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1985 ;; The rest is under GPL2+.
1986 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1987
1988 (define openttd-engine
1989 (package
1990 (name "openttd-engine")
1991 (version "1.7.1")
1992 (source
1993 (origin (method url-fetch)
1994 (uri (string-append "http://binaries.openttd.org/releases/"
1995 version "/openttd-" version "-source.tar.xz"))
1996 (sha256
1997 (base32
1998 "0dhv5bbbg1dmmq7fi3xss0a9jq2rqgb5sf9fsqzlsjcdm590j6b1"))
1999 (modules '((guix build utils)))
2000 (snippet
2001 ;; The DOS port contains proprietary software.
2002 '(begin
2003 (delete-file-recursively "os/dos")
2004 #t))))
2005 (build-system gnu-build-system)
2006 (arguments
2007 `(#:tests? #f ; no "check" target
2008 #:phases
2009 (modify-phases %standard-phases
2010 ;; The build process fails if the configure script is passed the
2011 ;; option "--enable-fast-install".
2012 (replace 'configure
2013 (lambda* (#:key inputs outputs (configure-flags '())
2014 #:allow-other-keys)
2015 (let ((out (assoc-ref outputs "out"))
2016 (lzo (assoc-ref inputs "lzo")))
2017 (zero?
2018 (apply system* "./configure"
2019 (string-append "--prefix=" out)
2020 ;; Provide the "lzo" path.
2021 (string-append "--with-liblzo2="
2022 lzo "/lib/liblzo2.a")
2023 ;; Put the binary in 'bin' instead of 'games'.
2024 "--binary-dir=bin"
2025 configure-flags))))))))
2026 (native-inputs `(("pkg-config" ,pkg-config)))
2027 (inputs
2028 `(("allegro" ,allegro-4)
2029 ("fontconfig" ,fontconfig)
2030 ("freetype" ,freetype)
2031 ("icu4c" ,icu4c)
2032 ("libpng" ,libpng)
2033 ("lzo" ,lzo)
2034 ("sdl" ,sdl)
2035 ("xz" ,xz)
2036 ("zlib" ,zlib)))
2037 (synopsis "Transportation economics simulator")
2038 (description "OpenTTD is a game in which you transport goods and
2039 passengers by land, water and air. It is a re-implementation of Transport
2040 Tycoon Deluxe with many enhancements including multiplayer mode,
2041 internationalization support, conditional orders and the ability to clone,
2042 autoreplace and autoupdate vehicles. This package only includes the game
2043 engine. When you start it you will be prompted to download a graphics set.")
2044 (home-page "http://openttd.org/")
2045 ;; This package is GPLv2, except for a few files located in
2046 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
2047 ;; licenses. In addition, this software contains an in-game downloader
2048 ;; from which the user may find non-functional data licensed under
2049 ;; different terms.
2050 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
2051
2052 (define openttd-opengfx
2053 (package
2054 (name "openttd-opengfx")
2055 (version "0.5.2")
2056 (source
2057 (origin
2058 (method url-fetch)
2059 (uri (string-append "http://binaries.openttd.org/extra/opengfx/"
2060 version "/opengfx-" version "-source.tar.xz"))
2061 (sha256
2062 (base32
2063 "0iz66q7p1mf00njfjbc4vibh3jaybki7armkl18iz7p6x4chp9zv"))))
2064 (build-system gnu-build-system)
2065 (arguments
2066 '(#:make-flags (list "CC=gcc"
2067 (string-append "INSTALL_DIR="
2068 (assoc-ref %outputs "out")
2069 "/share/games/openttd/baseset/opengfx"))
2070 #:phases
2071 (modify-phases %standard-phases
2072 (replace 'configure
2073 (lambda _
2074 ;; Make sure HOME is writable for GIMP.
2075 (setenv "HOME" (getcwd))
2076
2077 ;; Redirect stdout, not stderr, to /dev/null. This prevents
2078 ;; dos2unix from receiving its version information as a flag.
2079 (substitute* "Makefile"
2080 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
2081 "$(UNIX2DOS) -q --version 1>/dev/null")))))
2082 ;; The check phase for this package only checks the md5sums of the built
2083 ;; GRF files against the md5sums of the release versions. Because we use
2084 ;; different software versions than upstream does, some of the md5sums
2085 ;; are different. However, the package is still reproducible, it's safe
2086 ;; to disable this test.
2087 #:tests? #f
2088 #:parallel-build? #f))
2089 (native-inputs `(("dos2unix" ,dos2unix)
2090 ("gimp" ,gimp)
2091 ("grfcodec" ,grfcodec)
2092 ("nml" ,nml)
2093 ("python" ,python-2)))
2094 (home-page "http://dev.openttdcoop.org/projects/opengfx")
2095 (synopsis "Base graphics set for OpenTTD")
2096 (description
2097 "The OpenGFX projects is an implementation of the OpenTTD base grahics
2098 set that aims to ensure the best possible out-of-the-box experience.
2099
2100 OpenGFX provides you with...
2101 @enumerate
2102 @item All graphics you need to enjoy OpenTTD.
2103 @item Uniquely drawn rail vehicles for every climate.
2104 @item Completely snow-aware rivers.
2105 @item Different river and sea water.
2106 @item Snow-aware buoys.
2107 @end enumerate")
2108 (license license:gpl2)))
2109
2110 (define openttd-opensfx
2111 (package
2112 (name "openttd-opensfx")
2113 (version "0.2.3")
2114 (source
2115 (origin
2116 (method url-fetch)
2117 (uri (string-append
2118 "https://binaries.openttd.org/extra/opensfx/"
2119 version "/opensfx-" version "-source.tar.gz"))
2120 (sha256
2121 (base32
2122 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
2123 (build-system gnu-build-system)
2124 (native-inputs
2125 `(("catcodec" ,catcodec)
2126 ("python" ,python2-minimal)))
2127 (arguments
2128 `(#:make-flags
2129 (list (string-append "INSTALL_DIR=" %output
2130 "/share/games/openttd/baseset/opensfx"))
2131 #:phases
2132 (modify-phases %standard-phases
2133 (add-after 'unpack 'make-reproducible
2134 (lambda _
2135 ;; Remove the time dependency of the installed tarball by setting
2136 ;; the modification times if its members to 0.
2137 (substitute* "scripts/Makefile.def"
2138 (("-cf") " --mtime=@0 -cf"))
2139 #t))
2140 (delete 'configure))))
2141 (home-page "http://dev.openttdcoop.org/projects/opensfx")
2142 (synopsis "Base sounds for OpenTTD")
2143 (description "OpenSFX is a set of free base sounds for OpenTTD which make
2144 it possible to play OpenTTD without requiring the proprietary sound files from
2145 the original Transport Tycoon Deluxe.")
2146 (license license:cc-sampling-plus-1.0)))
2147
2148 (define openttd-openmsx
2149 (package
2150 (name "openttd-openmsx")
2151 (version "0.3.1")
2152 (source
2153 (origin
2154 (method url-fetch)
2155 (uri (string-append
2156 "https://binaries.openttd.org/extra/openmsx/"
2157 version "/openmsx-" version "-source.tar.gz"))
2158 (sha256
2159 (base32
2160 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
2161 (build-system gnu-build-system)
2162 (native-inputs
2163 `(("python" ,python2-minimal)))
2164 (arguments
2165 `(#:make-flags
2166 (list (string-append "INSTALL_DIR=" %output
2167 "/share/games/openttd/baseset"))
2168 #:phases
2169 (modify-phases %standard-phases
2170 (delete 'configure)
2171 (add-after 'install 'post-install
2172 ;; Rename openmsx-version to openmsx
2173 (lambda* (#:key outputs #:allow-other-keys)
2174 (let ((install-directory (string-append (assoc-ref outputs "out")
2175 "/share/games/openttd/baseset")))
2176 (rename-file (string-append install-directory "/openmsx-" ,version)
2177 (string-append install-directory "/openmsx"))
2178 #t))))))
2179 (home-page "http://dev.openttdcoop.org/projects/openmsx")
2180 (synopsis "Music set for OpenTTD")
2181 (description "OpenMSX is a music set for OpenTTD which makes it possible
2182 to play OpenTTD without requiring the proprietary music from the original
2183 Transport Tycoon Deluxe.")
2184 (license license:gpl2)))
2185
2186 (define-public openttd
2187 (package
2188 (inherit openttd-engine)
2189 (name "openttd")
2190 (arguments
2191 `(#:configure-flags
2192 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
2193 "/bin/timidity"))
2194 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
2195 ((#:phases phases)
2196 `(modify-phases ,phases
2197 (add-after 'install 'install-data
2198 (lambda* (#:key inputs outputs #:allow-other-keys)
2199 (for-each
2200 (lambda (input)
2201 (copy-recursively (assoc-ref inputs input)
2202 (assoc-ref outputs "out")))
2203 (list "opengfx" "openmsx" "opensfx"))
2204 #t)))))))
2205 (inputs
2206 `(("timidity++" ,timidity++)
2207 ,@(package-inputs openttd-engine)))
2208 (native-inputs
2209 `(("opengfx" ,openttd-opengfx)
2210 ("openmsx" ,openttd-openmsx)
2211 ("opensfx" ,openttd-opensfx)
2212 ,@(package-native-inputs openttd-engine)))))
2213
2214 (define-public openrct2
2215 (package
2216 (name "openrct2")
2217 (version "0.1.1")
2218 (source
2219 (origin
2220 (method url-fetch)
2221 (uri (string-append "https://github.com/OpenRCT2/OpenRCT2/archive/v"
2222 version ".tar.gz"))
2223 (sha256
2224 (base32
2225 "1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx"))
2226 (file-name (string-append name "-" version ".tar.gz"))))
2227 (build-system cmake-build-system)
2228 (arguments
2229 `(#:tests? #f ;; no tests available
2230 #:phases
2231 (modify-phases %standard-phases
2232 (add-after 'unpack 'fix-usr-share-paths
2233 (lambda* (#:key make-flags outputs #:allow-other-keys)
2234 ;; Fix some references to /usr/share.
2235 (substitute* "src/openrct2/platform/linux.c"
2236 (("/usr/share")
2237 (string-append (assoc-ref %outputs "out") "/share")))))
2238 (add-after 'build 'fix-cmake-install-file
2239 (lambda _
2240 ;; The build system tries to download a file and compare hashes.
2241 ;; Since we have no network, remove this so the install doesn't fail.
2242 (substitute* "cmake_install.cmake"
2243 (("EXPECTED_HASH SHA1=b587d83de508d0b104d14c599b76f8565900fce0")
2244 "")))))))
2245 (inputs `(("curl" ,curl)
2246 ("fontconfig" ,fontconfig)
2247 ("freetype" ,freetype)
2248 ("jansson" ,jansson)
2249 ("libpng" ,libpng)
2250 ("libzip" ,libzip)
2251 ("mesa" ,mesa)
2252 ("openssl" ,openssl)
2253 ("sdl2" ,sdl2)
2254 ("speexdsp" ,speexdsp)
2255 ("zlib" ,zlib)))
2256 (native-inputs
2257 `(("pkg-config" ,pkg-config)))
2258 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2259 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
2260 (description "OpenRCT2 is a free software re-implementation of
2261 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
2262 maintaining an amusement park containing attractions, shops and facilities.
2263
2264 Note that this package does @emph{not} provide the game assets (sounds,
2265 images, etc.)")
2266 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
2267 ;; regarding assets.
2268 (license license:gpl3+)))
2269
2270 (define-public pinball
2271 (package
2272 (name "pinball")
2273 (version "0.3.1")
2274 (source
2275 (origin (method url-fetch)
2276 (uri (string-append "mirror://sourceforge/pinball/pinball/"
2277 "pinball-" version "/"
2278 "pinball-" version ".tar.gz"))
2279 (sha256
2280 (base32
2281 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2282 (patches (search-patches "pinball-const-fix.patch"
2283 "pinball-cstddef.patch"
2284 "pinball-missing-separators.patch"
2285 "pinball-src-deps.patch"
2286 "pinball-system-ltdl.patch"))))
2287 (build-system gnu-build-system)
2288 (inputs
2289 `(("glu" ,glu)
2290 ("mesa" ,mesa)
2291 ("sdl" ,sdl)
2292 ("sdl-image" ,sdl-image)
2293 ("sdl-mixer" ,sdl-mixer)))
2294 (arguments
2295 '(#:configure-flags
2296 (list (string-append "CPPFLAGS=-I"
2297 (assoc-ref %build-inputs "sdl-image")
2298 "/include/SDL -I"
2299 (assoc-ref %build-inputs "sdl-mixer")
2300 "/include/SDL"))))
2301 (home-page "http://pinball.sourceforge.net")
2302 (synopsis "Pinball simulator")
2303 (description "The Emilia Pinball Project is a pinball simulator. There
2304 are only two levels to play with, but they are very addictive.")
2305 (license license:gpl2)))
2306
2307 (define-public pioneers
2308 (package
2309 (name "pioneers")
2310 (version "15.4")
2311 (source (origin
2312 (method url-fetch)
2313 (uri (string-append "http://downloads.sourceforge.net/pio/"
2314 "pioneers-" version ".tar.gz"))
2315 (sha256
2316 (base32
2317 "1p1d18hrfmqcnghip3shkzcs5qkz6j99jvkdkqfi7pqdvjc323cs"))))
2318 (build-system gnu-build-system)
2319 (inputs `(("gtk+" ,gtk+)
2320 ("librsvg" ,librsvg)
2321 ("avahi" ,avahi)))
2322 (native-inputs `(("intltool" ,intltool)
2323 ("pkg-config" ,pkg-config)))
2324 (synopsis "Board game inspired by The Settlers of Catan")
2325 (description "Pioneers is an emulation of the board game The Settlers of
2326 Catan. It can be played on a local network, on the internet, and with AI
2327 players.")
2328 (home-page "http://pio.sourceforge.net/")
2329 (license license:gpl2+)))
2330
2331 (define-public einstein
2332 (package
2333 (name "einstein")
2334 (version "2.0")
2335 (source (origin
2336 (method url-fetch)
2337 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2338 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2339 (sha256
2340 (base32
2341 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2342 (patches (search-patches "einstein-build.patch"))))
2343 (build-system gnu-build-system)
2344 (inputs
2345 `(("freetype" ,freetype)
2346 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2347 ("zlib" ,zlib)))
2348 (native-inputs
2349 `(("font-dejavu" ,font-dejavu)))
2350 (arguments
2351 `(#:tests? #f ; no check target
2352 #:phases
2353 (modify-phases %standard-phases
2354 (replace 'configure
2355 (lambda* (#:key outputs inputs #:allow-other-keys)
2356 (let ((out (assoc-ref outputs "out"))
2357 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2358 "/share/fonts/truetype/DejaVuSans.ttf")))
2359 (substitute* "Makefile"
2360 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2361 ;; The patch above registers a free font for use by the binary,
2362 ;; but the font is copied during the compile phase into a
2363 ;; resources file, so we need to make the ttf file available.
2364 (symlink dejavu "res/DejaVuSans.ttf")
2365 #t))))))
2366 (synopsis "Logic puzzle game")
2367 (description "The goal of this logic game is to open all cards in a 6x6
2368 grid, using a number of hints as to their relative position. The game idea
2369 is attributed to Albert Einstein.")
2370 ;; The original home page has disappeared.
2371 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2372 "http://games.flowix.com/en/index.html"))
2373 ;; License according to
2374 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2375 ;; The source code is a DFSG-sanitized tarball and does not contain any
2376 ;; license information.
2377 (license license:gpl3+)))
2378
2379 (define-public powwow
2380 (package
2381 (name "powwow")
2382 (version "1.2.17")
2383 (source (origin
2384 (method url-fetch)
2385 (uri (string-append
2386 "https://www.hoopajoo.net/static/projects/powwow-"
2387 version ".tar.gz"))
2388 (file-name (string-append name "-" version ".tar.gz"))
2389 (sha256
2390 (base32
2391 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2392 (inputs
2393 `(("ncurses" ,ncurses)))
2394 (build-system gnu-build-system)
2395 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2396 (synopsis "MUD and telnet client")
2397 (description
2398 "POWWOW is a client software which can be used for telnet as well as for
2399 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2400 the chat server psyced with the specific config located at
2401 http://lavachat.symlynx.com/unix/")
2402 (license license:gpl2+)))
2403
2404 (define-public red-eclipse
2405 (let ((release "1.6.0")
2406 (revision 0)
2407 (data-sources
2408 '(("acerspyro" "07mzgdahnr3w3w7kf8nmy20r199rimfx9ryqxjdr793sw0vawqd3")
2409 ("actors" "1hkgscfhg0kmwgym0mw56fhcckzbb2hh3nsvd45v4mdfyk0xnrm7")
2410 ("appleflap" "1q4xs3x904mrrbxzv6lpr3lywm8p6i8339ijzy9j091s2wdl51ka")
2411 ("blendbrush" "004md2haysr9w8fj6l7bj9wcfjqrq9wx1rrjf9dv16k5sbrkqza9")
2412 ("caustics" "1qmmv8ds70j1ixy4rvli309vbcyjq1l5j1wri6nbnjay10f9fcgq")
2413 ("crosshairs" "0q1vadg5cai9i6igl6y08774fd05gav0kinbgb2757n47ig50bns")
2414 ("dziq" "1s9248ky2qqy24z9c2vgpisz500dvsaj249pv1fkrxgsypjm1z6v")
2415 ("elyvisions" "15synpms05996v4c4kdl0h899spl4z7si9kl8c4m7rvc2yvin1ga")
2416 ("fonts" "1l4727ai8mphi7n3wcjp2lh3p47nh6w82s5dpqbbjpqr9gilb69j")
2417 ("freezurbern" "0hcdbzs02mvpsfhmahhqjv6pd8lbsag1bm6rpy61ns5qwmhg96ys")
2418 ("john" "1whyvlx87mb83kfb7jhhnwz9s7lry4li8l3xar61vmlqgmsnz33d")
2419 ("jojo" "02wxa93f5al4rlnsdjpd0hlnca0ympnj8481lgdxx70hny8zi3qi")
2420 ("jwin" "1gb4l7lbhr150hml1y0wbyx7266q5nslh6n494wwrrsvp11s2qk8")
2421 ("luckystrike" "0wy2spvhx5k233fsl283250ym5bqvkk8i6i19sw3zvzyxp2p4yq9")
2422 ("maps" "1dmvp9mskval606z5srjd909jpm6qz4fdcpaszkkhfr5ajbj30vq")
2423 ("mayhem" "0hkzzx0rxda70ixw9lfh9v1dpsbn2dj86jrr3zxjgasbgaxw37ax")
2424 ("mikeplus64" "144fxhp4qjqjw3gvhf7ym6rnfxvxc0zvd3f54jg1jgnccc1hfyah")
2425 ("misc" "0bpvibyc6vjhbzsf67xxn85yq2h97xs96icbskwzs2wsd860kq8c")
2426 ("nieb" "0d72wsibk9sg9nhin3fwzz9zljiccyln0fn42y2q2xbd4my23b1k")
2427 ("nobiax" "19lr36ys98cmpp739svjar1j942fbxz6r062gi7ygh89zh9yrgfy")
2428 ("particles" "02pnq8ksl7f6kqxss3aza98jssdq2s41rhkhki71ynavp2a5akar")
2429 ("philipk" "1xkrb7wa1pyhbs4xxx7vnnzsxrqzswk7gjbdac7i7rj0lwnfaij2")
2430 ("projectiles" "1hra0f1ifiddh16fv4pqcr2amf046lf445v0653zkyri43zgrj5f")
2431 ("props" "0ff6a8pz62f4nsk4c9cr50kirw108a661y5j6fvlsjickw3xjmyv")
2432 ("skyboxes" "1lq58dhrdiivq7llkiyqwpi3bwa89r8hbi98p7zjhw7wdn34i6n2")
2433 ("snipergoth" "0d5qf01bxd4dlffgxf8i91zq6mbyjmfd00dpyligpfj6fdbz87gc")
2434 ("sounds" "0z6jmxsr3w735hrdnxypdb0gi399pwkaycv9grjpiqy43j3ic7gj")
2435 ("textures" "0k5a47g2z99xn17vw7bqbp0w726gxmk33g5gwmqvfhxxxzzwimvi")
2436 ("torley" "12x23l8xcv9ard5v76lb210lvp66whsns2p3k3xkd1sabp5ixbd5")
2437 ("trak" "03kmwj47yb3dqzb6k9kilna9ja8c6jcnblvbs72x15767fl496pb")
2438 ("ulukai" "0vvd016a7x981ixif6dnlg45s0ak7i89pgyrgwy2fpd94nl2am15")
2439 ("unnamed" "18sxvdha41njp6g8wn56mjy6w9x778c793gh8fr0h9cnysb5gfmi")
2440 ("vanities" "1p38mc2566bmb4vdyr9n9s6fkwmynp2xlpdq2a97gzgi4nmm0232")
2441 ("vegetation" "0pf3qvqzabdcri5za61z6m89b5hq7sd3q0idkazmx88a62mcclkb")
2442 ("weapons" "1jr05y9qhhx53plvir35srvv3cmn6wa065p3bskx6h1x6dcbx3c6")
2443 ("wicked" "14b9f92h8hccp7a015z6rqgbs8236sdyxnwsq991ylnap7cbwvam"))))
2444 (package
2445 (name "red-eclipse")
2446 (version (if (zero? revision)
2447 release
2448 (string-append release "-"
2449 (number->string revision))))
2450 (source (origin
2451 (method url-fetch)
2452 (uri (string-append "https://github.com/red-eclipse/base"
2453 "/archive/v" release ".tar.gz"))
2454 (file-name (string-append name "-" version ".tar.gz"))
2455 (sha256
2456 (base32
2457 "1vs9k6f5fgsiy1n72imlqm8khjwm8cryc08zwd4gr7yxlxv45bs0"))))
2458 (build-system gnu-build-system)
2459 (arguments
2460 `(#:tests? #f ; no check target
2461 #:make-flags (list "CC=gcc" "-Csrc"
2462 (string-append "INSTDIR="
2463 (assoc-ref %outputs "out") "/bin")
2464 (string-append "prefix="
2465 (assoc-ref %outputs "out")))
2466 #:phases
2467 (modify-phases %standard-phases
2468 (add-after 'unpack 'unpack-data
2469 (lambda* (#:key inputs #:allow-other-keys)
2470 (delete-file-recursively "data")
2471 (mkdir "data")
2472 (for-each (lambda (name)
2473 (invoke "tar" "-xvf"
2474 (assoc-ref inputs name)
2475 "-Cdata"
2476 "--transform"
2477 (string-append "s/"
2478 name "-" ,release "/"
2479 name "/")))
2480 (list ,@(map car data-sources)))
2481 #t))
2482 (add-after 'unpack-data 'add-store-data-package-path-as-default
2483 (lambda* (#:key outputs #:allow-other-keys)
2484 (substitute* "src/engine/server.cpp"
2485 (("(else[[:space:]]*)((addpackagedir\\()\"data\"(\\);))"
2486 _
2487 else_part
2488 addpackagedir_original
2489 addpackagedir_open
2490 addpackagedir_close)
2491 (string-append else_part
2492 "{ "
2493 addpackagedir_open
2494 "\""
2495 (assoc-ref outputs "out")
2496 "/share/redeclipse/data\""
2497 addpackagedir_close
2498 " "
2499 addpackagedir_original
2500 " }")))
2501 #t))
2502 (delete 'configure) ; no configure script
2503 (add-after 'set-paths 'set-sdl-paths
2504 (lambda* (#:key inputs #:allow-other-keys)
2505 (setenv "CPATH"
2506 (string-append (assoc-ref inputs "sdl-union")
2507 "/include/SDL2"))
2508 #t))
2509 (add-after 'install 'copy-data
2510 (lambda* (#:key outputs #:allow-other-keys)
2511 (let ((out (assoc-ref outputs "out")))
2512 (copy-recursively "config"
2513 (string-append out "/config"))
2514 (copy-file "doc/examples/servinit.cfg"
2515 (string-append out "/config/servinit.cfg"))
2516 (copy-recursively "data"
2517 (string-append out "/share/redeclipse/data"))
2518 (mkdir-p (string-append out "/lib/redeclipse"))
2519 (symlink (string-append out "/share/redeclipse/data")
2520 (string-append out "/lib/redeclipse/data")))
2521 #t))
2522 (add-after 'copy-data 'wrap-program
2523 (lambda* (#:key inputs outputs #:allow-other-keys)
2524 (let* ((out (assoc-ref outputs "out"))
2525 (bin (string-append out "/bin")))
2526 (with-directory-excursion bin
2527 (rename-file "redeclipse_linux"
2528 ".redeclipse_linux-real")
2529 (rename-file "redeclipse_server_linux"
2530 ".redeclipse_server_linux-real")
2531 (call-with-output-file "redeclipse_linux"
2532 (lambda (port)
2533 (format port "#!~a/bin/sh
2534 # Run the thing from its home, otherwise it just bails out.
2535 cd \"~a\"
2536 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2537 (assoc-ref inputs "bash") ;implicit input
2538 (string-append out)
2539 (string-append bin))))
2540 (call-with-output-file "redeclipse_server_linux"
2541 (lambda (port)
2542 (format port "#!~a/bin/sh
2543 # Run the thing from its home, otherwise it just bails out.
2544 cd \"~a\"
2545 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2546 (assoc-ref inputs "bash") ;implicit input
2547 (string-append out)
2548 (string-append bin))))
2549 (chmod "redeclipse_linux" #o555)
2550 (chmod "redeclipse_server_linux" #o555)))
2551 #t)))))
2552 (native-inputs `(("pkg-config" ,pkg-config)))
2553 (inputs
2554 `(("curl" ,curl)
2555 ("glu" ,glu)
2556 ("sdl-union" ,(sdl-union (list sdl2
2557 sdl2-image
2558 sdl2-mixer)))
2559 ;; Create origin records for the many separate data packages.
2560 ,@(map (match-lambda
2561 ((name hash)
2562 (list name
2563 (origin
2564 (method url-fetch)
2565 (uri (string-append
2566 "https://github.com/red-eclipse/"
2567 name "/archive/v" release ".tar.gz"))
2568 (sha256 (base32 hash))
2569 (file-name (string-append name "-" version
2570 ".tar.gz"))))))
2571 data-sources)))
2572 (home-page "http://redeclipse.net/")
2573 (synopsis "Arena shooter derived from the Cube 2 engine")
2574 (description
2575 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2576 Offering an innovative parkour system and distinct but all potent weapons,
2577 Red Eclipse provides fast paced and accessible gameplay.")
2578 ;; The engine is under Zlib; data files are covered by the other
2579 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2580 (license (list license:expat
2581 license:zlib
2582 license:cc-by-sa3.0
2583 license:cc-by3.0
2584 license:cc0)))))
2585
2586 (define-public grue-hunter
2587 (package
2588 (name "grue-hunter")
2589 (version "1.0")
2590 (source (origin
2591 (method url-fetch)
2592 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2593 (sha256
2594 (base32
2595 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2596 (build-system trivial-build-system) ; no Makefile.PL
2597 (arguments `(#:modules ((guix build utils))
2598 #:builder
2599 (begin
2600 (use-modules (guix build utils))
2601 (use-modules (srfi srfi-1))
2602
2603 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2604 (perl (string-append (assoc-ref %build-inputs
2605 "perl")
2606 "/bin"))
2607 (gzip (string-append (assoc-ref %build-inputs
2608 "gzip")
2609 "/bin/gzip"))
2610 (tar (string-append (assoc-ref %build-inputs
2611 "tar")
2612 "/bin/tar"))
2613 (out (assoc-ref %outputs "out"))
2614 (bin (string-append out "/bin"))
2615 (doc (string-append out
2616 "/share/doc/grue-hunter")))
2617 (copy-file tarball "grue-hunter.tar.gz")
2618 (invoke gzip "-d" "grue-hunter.tar.gz")
2619 (invoke tar "xvf" "grue-hunter.tar")
2620
2621 (mkdir-p bin)
2622 (copy-file "grue-hunter/gh.pl"
2623 (string-append bin "/grue-hunter"))
2624 (patch-shebang (string-append bin "/grue-hunter")
2625 (list perl))
2626
2627 (install-file "grue-hunter/AGPLv3.txt" doc)
2628
2629 #t))))
2630 (inputs `(("perl" ,perl)
2631 ("tar" ,tar)
2632 ("gzip" ,gzip)
2633 ("tarball" ,source)))
2634 (home-page "http://jxself.org/grue-hunter.shtml")
2635 (synopsis "Text adventure game")
2636 (description
2637 "Grue Hunter is a text adventure game written in Perl. You must make
2638 your way through an underground cave system in search of the Grue. Can you
2639 capture it and get out alive?")
2640 (license license:agpl3+)))
2641
2642 (define-public lierolibre
2643 (package
2644 (name "lierolibre")
2645 (version "0.5")
2646 (source (origin
2647 (method url-fetch)
2648 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
2649 version "/+download/lierolibre-"
2650 version ".tar.xz"))
2651 (sha256
2652 (base32
2653 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
2654 (patches
2655 (search-patches "lierolibre-check-unaligned-access.patch"
2656 "lierolibre-try-building-other-arch.patch"
2657 "lierolibre-remove-arch-warning.patch"
2658 "lierolibre-newer-libconfig.patch"
2659 "lierolibre-is-free-software.patch"))
2660 (modules '((guix build utils)))
2661 (snippet
2662 '(begin
2663 ;; Delete pre-compiled files.
2664 (delete-file "data/LIERO.CHR")
2665 (delete-file "data/LIERO.SND")
2666 #t))))
2667 (build-system gnu-build-system)
2668 (native-inputs
2669 `(("imagemagick" ,imagemagick)
2670 ("pkg-config" ,pkg-config)
2671 ("util-linux" ,util-linux)
2672 ("sox" ,sox)))
2673 (inputs
2674 `(("boost" ,boost)
2675 ("libconfig" ,libconfig)
2676 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
2677 ("zlib" ,zlib)))
2678 (home-page "https://gitlab.com/lierolibre/lierolibre")
2679 (synopsis "Old-school earthworm action game")
2680 (description
2681 "lierolibre is an earthworm action game where you fight another player
2682 (or the computer) underground using a wide array of weapons.
2683
2684 Features:
2685 @itemize
2686 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
2687 and Game of Tag, plus AI-players without true intelligence!
2688 @item Dat nostalgia.
2689 @item Extensions via a hidden F1 menu:
2690 @itemize
2691 @item Replays
2692 @item Game controller support
2693 @item Powerlevel palettes
2694 @end itemize
2695 @item Ability to write game variables to plain text files.
2696 @item Ability to load game variables from both EXE and plain text files.
2697 @item Scripts to extract and repack graphics, sounds and levels.
2698 @end itemize
2699
2700 To switch between different window sizes, use F6, F7 and F8, to switch to
2701 fullscreen, use F5 or Alt+Enter.")
2702 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
2703 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
2704
2705 (define-public warzone2100
2706 (package
2707 (name "warzone2100")
2708 (version "3.2.1")
2709 (source (origin
2710 (method url-fetch)
2711 (uri (string-append "mirror://sourceforge/" name
2712 "/releases/" version "/" name "-" version
2713 ".tar.xz"))
2714 (sha256
2715 (base32
2716 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2717 (build-system gnu-build-system)
2718 (arguments
2719 `(#:phases
2720 (modify-phases %standard-phases
2721 (add-after 'unpack 'link-tests-with-qt
2722 (lambda _
2723 (substitute* "tests/Makefile.in"
2724 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2725 (string-append prefix "$(QT5_LIBS) ")))
2726 #t))
2727 (add-after 'unpack 'remove-reference-to-missing-file
2728 (lambda _
2729 (substitute* "icons/Makefile.in"
2730 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2731 #t))
2732 (add-after 'unpack 'patch-for-qt5.8
2733 (lambda _
2734 (substitute* "lib/widget/editbox.cpp"
2735 (("== '\\\\0'")
2736 "== QChar('\\0')"))
2737 #t)))))
2738 (native-inputs `(("pkg-config" ,pkg-config)
2739 ("unzip" ,unzip)
2740 ("zip" ,zip)))
2741 (inputs `(("fontconfig" ,fontconfig)
2742 ("freetype" ,freetype)
2743 ("fribidi" ,fribidi)
2744 ("glew" ,glew)
2745 ("libtheora" ,libtheora)
2746 ("libvorbis" ,libvorbis)
2747 ("libxrandr" ,libxrandr)
2748 ("openal" ,openal)
2749 ("physfs" ,physfs)
2750 ("qtbase" ,qtbase)
2751 ("qtscript" ,qtscript)
2752 ("openssl" ,openssl)
2753 ("quesoglc" ,quesoglc)
2754 ("sdl2" ,sdl2)))
2755 (home-page "http://wz2100.net")
2756 (synopsis "3D Real-time strategy and real-time tactics game")
2757 (description
2758 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2759 modes. An extensive tech tree with over 400 different technologies, combined
2760 with the unit design system, allows for a wide variety of possible units and
2761 tactics.")
2762 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2763 (license (list license:bsd-3
2764 license:cc0
2765 license:cc-by-sa3.0
2766 license:expat
2767 license:gpl2+
2768 license:lgpl2.1+))))
2769
2770 (define-public starfighter
2771 (package
2772 (name "starfighter")
2773 (version "1.7")
2774 (source (origin
2775 (method url-fetch)
2776 (uri (string-append
2777 "mirror://savannah/starfighter/"
2778 (version-major+minor version) "/"
2779 name "-" version "-src.tar.gz"))
2780 (sha256
2781 (base32
2782 "1646hpjq8bz2fkfkja1dah511hn7zd2r7da4w9c9blhad3p5732v"))))
2783 (build-system gnu-build-system)
2784 (native-inputs
2785 `(("pkg-config" ,pkg-config)))
2786 (inputs
2787 `(("sdl2" ,sdl2)
2788 ("sdl2-image" ,sdl2-image)
2789 ("sdl2-mixer" ,sdl2-mixer)))
2790 (home-page "http://starfighter.nongnu.org/")
2791 (synopsis "2D scrolling shooter game")
2792 (description
2793 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2794 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2795 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2796 way, you will encounter new foes, make new allies, and assist local rebels
2797 in strikes against the evil corporation.")
2798 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2799 (license (list license:gpl3+
2800 license:cc-by3.0
2801 license:cc-by-sa3.0
2802 license:cc0
2803 license:public-domain))))
2804
2805 (define-public chromium-bsu
2806 (package
2807 (name "chromium-bsu")
2808 (version "0.9.16.1")
2809 (source (origin
2810 (method url-fetch)
2811 (uri (string-append "mirror://sourceforge/" name
2812 "/Chromium B.S.U. source code/"
2813 name "-" version ".tar.gz"))
2814 (sha256
2815 (base32
2816 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
2817 (build-system gnu-build-system)
2818 (native-inputs `(("pkg-config" ,pkg-config)))
2819 (inputs `(("gettext" ,gettext-minimal)
2820 ("glu" ,glu)
2821 ("quesoglc" ,quesoglc)
2822 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2823 (home-page "http://chromium-bsu.sourceforge.net/")
2824 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2825 (description
2826 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2827 are responsible for delivering supplies to the troops on the front line. Your
2828 ship has a small fleet of robotic fighters which you control from the relative
2829 safety of the Chromium vessel.")
2830 ;; Clarified Artistic License for everything but sound, which is covered
2831 ;; by the Expat License.
2832 (license (list license:clarified-artistic license:expat))))
2833
2834 (define-public tuxpaint
2835 (package
2836 (name "tuxpaint")
2837 (version "0.9.22") ;keep VER_DATE below in sync
2838 (source
2839 (origin
2840 (method url-fetch)
2841 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2842 version "/tuxpaint-" version ".tar.gz"))
2843 (sha256
2844 (base32
2845 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2846 (modules '((guix build utils)))
2847 (snippet
2848 '(begin
2849 ;; Remove win32 directory which contains binary dll's and the
2850 ;; deprecated visualc directory.
2851 (for-each delete-file-recursively '("win32" "visualc"))
2852 (substitute* "Makefile"
2853 ;; Do not rely on $(GPERF) being an absolute file name
2854 (("\\[ -x \\$\\(GPERF\\) \\]")
2855 "$(GPERF) --version >/dev/null 2>&1"))
2856 #t))
2857 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2858 (build-system gnu-build-system)
2859 (native-inputs
2860 `(("gperf" ,gperf)
2861 ("pkg-config" ,pkg-config)))
2862 (inputs
2863 `(("cairo" ,cairo)
2864 ("fribidi" ,fribidi)
2865 ("gettext" ,gettext-minimal)
2866 ("libpng" ,libpng)
2867 ("librsvg" ,librsvg)
2868 ("libpaper" ,libpaper)
2869 ("netpbm" ,netpbm)
2870 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2871 ;; TODO: Use system fonts rather than those in data/fonts
2872 (arguments
2873 `(#:make-flags `("VER_DATE=2014-08-23"
2874 "GPERF=gperf" "CC=gcc"
2875 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2876 ,(string-append "PREFIX=" %output)
2877 "GNOME_PREFIX=$(PREFIX)"
2878 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2879 #:parallel-build? #f ;fails on some systems
2880 #:tests? #f ;No tests
2881 #:phases (modify-phases %standard-phases
2882 (delete 'configure) ;no configure phase
2883 (add-after 'install 'fix-import
2884 (lambda* (#:key inputs outputs #:allow-other-keys)
2885 (let* ((out (assoc-ref outputs "out"))
2886 (net (assoc-ref inputs "netpbm"))
2887 (tpi (string-append out "/bin/tuxpaint-import")))
2888 (substitute* tpi
2889 ;; Point to installation prefix so that the default
2890 ;; configure file is found.
2891 (("/usr/local") out))
2892 ;; tuxpaint-import uses a bunch of programs from
2893 ;; netpbm, so make sure it knows where those are
2894 (wrap-program tpi
2895 `("PATH" ":" prefix
2896 (,(string-append net "/bin"))))))))))
2897 (native-search-paths
2898 (list (search-path-specification
2899 (variable "TUXPAINT_STAMPS_PATH")
2900 (files '("share/tuxpaint/stamps")))))
2901 (home-page "http://www.tuxpaint.org")
2902 (synopsis "Drawing software for children")
2903 (description
2904 "Tux Paint is a free drawing program designed for young children (kids
2905 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2906 and an encouraging cartoon mascot who helps guide children as they use the
2907 program. It provides a blank canvas and a variety of drawing tools to help
2908 your child be creative.")
2909 (license license:gpl2+)))
2910
2911 (define-public tuxpaint-stamps
2912 (package
2913 (name "tuxpaint-stamps")
2914 (version "2014.08.23")
2915 (source
2916 (origin
2917 (method url-fetch)
2918 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2919 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2920 "/tuxpaint-stamps-" version ".tar.gz"))
2921 (sha256
2922 (base32
2923 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2924 (build-system trivial-build-system)
2925 (native-inputs
2926 `(("tar" ,tar)
2927 ("gzip" ,gzip)))
2928 (arguments
2929 `(#:modules ((guix build utils))
2930 #:builder (begin
2931 (use-modules (guix build utils))
2932 (setenv "PATH"
2933 (string-append
2934 (assoc-ref %build-inputs "tar") "/bin" ":"
2935 (assoc-ref %build-inputs "gzip") "/bin"))
2936 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
2937 (chdir (string-append ,name "-" ,version))
2938 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2939 (mkdir-p dir)
2940 (copy-recursively "stamps" dir))
2941 #t)))
2942 (home-page (package-home-page tuxpaint))
2943 (synopsis "Stamp images for Tux Paint")
2944 (description
2945 "This package contains a set of \"Rubber Stamp\" images which can be used
2946 with the \"Stamp\" tool within Tux Paint.")
2947 (license license:gpl2+)))
2948
2949 (define-public tuxpaint-config
2950 (package
2951 (name "tuxpaint-config")
2952 (version "0.0.13") ;keep VER_DATE below in sync
2953 (source
2954 (origin
2955 (method url-fetch)
2956 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2957 version "/tuxpaint-config-" version ".tar.gz"))
2958 (sha256
2959 (base32
2960 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2961 (build-system gnu-build-system)
2962 (native-inputs
2963 `(("gettext" ,gettext-minimal)))
2964 (inputs
2965 `(("fltk" ,fltk)
2966 ("libpaper" ,libpaper)
2967 ;; TODO: Should the following be propagated by fltk?
2968 ("libx11" ,libx11)
2969 ("libxft" ,libxft)
2970 ("mesa" ,mesa)))
2971 (arguments
2972 `(#:make-flags `("VER_DATE=2014-08-23"
2973 "CONFDIR=/etc/tuxpaint" ;don't write to store
2974 ,(string-append "PREFIX=" %output)
2975 "GNOME_PREFIX=$(PREFIX)")
2976 #:parallel-build? #f ;race conditions
2977 #:tests? #f ;no tests
2978 #:phases (modify-phases %standard-phases
2979 (delete 'configure) ;no configure phase
2980 (add-before 'install 'gzip-no-name
2981 (lambda* _
2982 (substitute* "Makefile"
2983 ;; tuxpaint-config compresses its own documentation;
2984 ;; make sure it uses flags for reproducibility.
2985 (("gzip") "gzip --no-name"))))
2986 (add-before 'install 'make-install-dirs
2987 (lambda* (#:key outputs #:allow-other-keys)
2988 (let ((out (assoc-ref outputs "out")))
2989 (mkdir-p (string-append out "/bin"))
2990 #t))))))
2991 (home-page (package-home-page tuxpaint))
2992 (synopsis "Configure Tux Paint")
2993 (description
2994 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2995 (license license:gpl2))) ;no "or later" present
2996
2997 (define-public supertux
2998 (package
2999 (name "supertux")
3000 (version "0.5.1")
3001 (source (origin
3002 (method url-fetch)
3003 (uri (string-append "https://github.com/SuperTux/supertux/"
3004 "releases/download/v" version "/SuperTux-v"
3005 version "-Source.tar.gz"))
3006 (sha256
3007 (base32
3008 "1i8avad7w7ikj870z519j383ldy29r6f956bs38cbr8wk513pp69"))))
3009 (arguments
3010 '(#:tests? #f
3011 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
3012 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
3013 (build-system cmake-build-system)
3014 (inputs `(("sdl2" ,sdl2)
3015 ("sdl2-image" ,sdl2-image)
3016 ("sdl2-mixer" ,sdl2-mixer)
3017 ("openal" ,openal)
3018 ("mesa" ,mesa)
3019 ("glew" ,glew)
3020 ("libvorbis" ,libvorbis)
3021 ("libogg" ,libogg)
3022 ("physfs" ,physfs)
3023 ("curl" ,curl)
3024 ("boost" ,boost)))
3025 (native-inputs `(("pkg-config" ,pkg-config)))
3026 (synopsis "2D platformer game")
3027 (description "SuperTux is a free classic 2D jump'n run sidescroller game
3028 in a style similar to the original Super Mario games covered under
3029 the GNU GPL.")
3030 (home-page "https://supertuxproject.org/")
3031 (license license:gpl3+)))
3032
3033 (define-public tintin++
3034 (package
3035 (name "tintin++")
3036 (version "2.01.4")
3037 (source (origin
3038 (method url-fetch)
3039 (uri (string-append "mirror://sourceforge/tintin"
3040 "/TinTin++ Source Code/" version
3041 "/tintin" "-" version ".tar.gz"))
3042 (sha256
3043 (base32
3044 "1g7bh8xs1ml0iyraps3a3dzaycci922y7fk5j0wyr4ssyjzsy8nx"))))
3045 (inputs
3046 `(("gnutls" ,gnutls)
3047 ("pcre" ,pcre)
3048 ("readline" ,readline)
3049 ("zlib" ,zlib)))
3050 (arguments
3051 '(#:tests? #f ; no test suite
3052 #:phases
3053 (modify-phases %standard-phases
3054 ;; The source is in tt/src.
3055 (add-before 'configure 'chdir
3056 (lambda _
3057 (chdir "src")
3058 #t)))))
3059 (build-system gnu-build-system)
3060 (home-page "http://tintin.sourceforge.net/")
3061 (synopsis "MUD client")
3062 (description
3063 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
3064 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
3065 as well as those required to login via telnet on Linux / Mac OS X servers, and an
3066 auto mapper with a VT100 map display.")
3067 (license license:gpl2+)))
3068
3069 (define-public laby
3070 (package
3071 (name "laby")
3072 (version "0.6.4")
3073 (source
3074 (origin (method url-fetch)
3075 (uri (string-append
3076 "https://github.com/sgimenez/laby/archive/"
3077 name "-" version ".tar.gz"))
3078 (sha256
3079 (base32
3080 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
3081 (patches (search-patches "laby-make-install.patch"))))
3082 (build-system gnu-build-system)
3083 (inputs
3084 `(("lablgtk" ,lablgtk)
3085 ("ocaml" ,ocaml)
3086 ("ocaml-findlib" ,ocaml-findlib)))
3087 (arguments
3088 '(#:phases
3089 (modify-phases %standard-phases
3090 (delete 'configure)
3091 (add-before 'build 'setenv
3092 (lambda* (#:key inputs #:allow-other-keys)
3093 (let ((lablgtk (assoc-ref inputs "lablgtk")))
3094 (setenv "LD_LIBRARY_PATH"
3095 (string-append lablgtk "/lib/ocaml/stublibs"))))))
3096 #:tests? #f ; no 'check' target
3097 #:make-flags
3098 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
3099 (home-page "https://sgimenez.github.io/laby/")
3100 (synopsis "Programming game")
3101 (description "Learn programming, playing with ants and spider webs ;-)
3102 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
3103 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
3104 programmers may also add their own favorite language.")
3105 (license license:gpl3+)))
3106
3107 (define-public bambam
3108 (package
3109 (name "bambam")
3110 (version "0.5")
3111 (source
3112 (origin
3113 (method url-fetch)
3114 (uri (string-append "https://github.com/porridge/bambam/archive/"
3115 version ".tar.gz"))
3116 (file-name (string-append name "-" version ".tar.gz"))
3117 (sha256
3118 (base32
3119 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
3120 (build-system python-build-system)
3121 (arguments
3122 `(#:python ,python-2
3123 #:tests? #f ; no tests
3124 #:phases
3125 (modify-phases %standard-phases
3126 (delete 'build)
3127 (add-before 'install 'patch-data-dir-location
3128 (lambda _
3129 (substitute* "bambam.py"
3130 (("'data'") "'../share/bambam/data'"))
3131 #t))
3132 (replace 'install
3133 (lambda* (#:key outputs #:allow-other-keys)
3134 (let* ((out (assoc-ref outputs "out"))
3135 (bin (string-append out "/bin"))
3136 (share (string-append out "/share")))
3137 (mkdir-p bin)
3138 (copy-file "bambam.py" (string-append bin "/bambam"))
3139 (install-file "bambam.6" (string-append share "/man/man6"))
3140 (copy-recursively "data" (string-append share "/bambam/data")))
3141 #t)))))
3142 (inputs
3143 `(("python-pygame" ,python-pygame)))
3144 (home-page "https://github.com/porridge/bambam")
3145 (synopsis "Keyboard mashing and doodling game for babies")
3146 (description "Bambam is a simple baby keyboard (and gamepad) masher
3147 application that locks the keyboard and mouse and instead displays bright
3148 colors, pictures, and sounds.")
3149 (license license:gpl3+)))
3150
3151 (define-public mrrescue
3152 (package
3153 (name "mrrescue")
3154 (version "1.02e")
3155 (source (origin
3156 (method url-fetch)
3157 (uri (string-append
3158 "https://github.com/SimonLarsen/mrrescue/releases/"
3159 "download/" version "/" name version ".love"))
3160 (file-name (string-append name "-" version ".love"))
3161 (sha256
3162 (base32
3163 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
3164 (build-system trivial-build-system)
3165 (arguments
3166 '(#:modules ((guix build utils))
3167 #:builder
3168 (begin
3169 (use-modules (guix build utils))
3170 (let* ((out (assoc-ref %outputs "out"))
3171 (bindir (string-append out "/bin"))
3172 (prog (string-append bindir "/mrrescue"))
3173 (source (assoc-ref %build-inputs "source"))
3174 (bash (string-append (assoc-ref %build-inputs "bash")
3175 "/bin/bash"))
3176 (love (string-append (assoc-ref %build-inputs "love")
3177 "/bin/love")))
3178 (mkdir-p bindir)
3179 (with-output-to-file prog
3180 (lambda ()
3181 (format #t "#!~a~%" bash)
3182 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
3183 (chmod prog #o755)
3184 #t))))
3185 (inputs
3186 `(("bash" ,bash)
3187 ("love" ,love)))
3188 (home-page "http://tangramgames.dk/games/mrrescue")
3189 (synopsis "Arcade-style fire fighting game")
3190 (description
3191 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
3192 civilians from burning buildings. The game features fast paced fire
3193 extinguishing action, intense boss battles, a catchy soundtrack and lots of
3194 throwing people around in pseudo-randomly generated buildings.")
3195 (license (list license:zlib ; for source code
3196 license:cc-by-sa3.0)))) ; for graphics and music assets
3197
3198 (define-public hyperrogue
3199 (package
3200 (name "hyperrogue")
3201 (version "10.0g")
3202 ;; When updating this package, be sure to update the "hyperrogue-data"
3203 ;; origin in native-inputs.
3204 (source (origin
3205 (method url-fetch)
3206 (uri (string-append
3207 "http://www.roguetemple.com/z/hyper/"
3208 name (string-join (string-split version #\.) "")
3209 "-src.tgz"))
3210 (sha256
3211 (base32
3212 "0f68pcnsgl406dhm91ckn3f364bar9m9i5njp9vrmvhvv9p2icy0"))))
3213 (build-system gnu-build-system)
3214 (arguments
3215 `(#:tests? #f ; no check target
3216 #:make-flags '("CXXFLAGS=-std=c++11")
3217 #:phases
3218 (modify-phases %standard-phases
3219 (add-after 'set-paths 'set-sdl-paths
3220 (lambda* (#:key inputs #:allow-other-keys)
3221 (setenv "CPATH"
3222 (string-append (assoc-ref inputs "sdl-union")
3223 "/include/SDL"))))
3224 ;; Fix font and music paths.
3225 (replace 'configure
3226 (lambda* (#:key inputs outputs #:allow-other-keys)
3227 (let* ((out (assoc-ref outputs "out"))
3228 (share-dir (string-append out "/share/hyperrogue"))
3229 (dejavu-dir (string-append
3230 (assoc-ref inputs "font-dejavu")
3231 "/share/fonts/truetype"))
3232 (dejavu-font "DejaVuSans-Bold.ttf")
3233 (music-file "hyperrogue-music.txt"))
3234 (substitute* "basegraph.cpp"
3235 ((dejavu-font)
3236 (string-append dejavu-dir "/" dejavu-font)))
3237 (substitute* "sound.cpp"
3238 (((string-append "\\./" music-file))
3239 (string-append share-dir "/" music-file))
3240 (("sounds/")
3241 (string-append share-dir "/sounds/")))
3242 (substitute* music-file
3243 (("\\*/")
3244 (string-append share-dir "/sounds/"))))
3245 #t))
3246 (replace 'install
3247 (lambda* (#:key inputs outputs #:allow-other-keys)
3248 (let* ((out (assoc-ref outputs "out"))
3249 (bin (string-append out "/bin"))
3250 (share-dir (string-append out "/share/hyperrogue")))
3251 (mkdir-p bin)
3252 (copy-file "hyper" (string-append bin "/hyperrogue"))
3253 (install-file "hyperrogue-music.txt" share-dir))
3254 #t))
3255 (add-after 'install 'install-data
3256 (lambda* (#:key inputs outputs #:allow-other-keys)
3257 (let* ((data (assoc-ref inputs "hyperrogue-data"))
3258 (out (assoc-ref outputs "out"))
3259 (sounds (string-append out "/share/hyperrogue/sounds"))
3260 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
3261 (and
3262 ;; Extract media license information into sounds directory.
3263 (zero?
3264 (system* unzip "-j" data
3265 (string-append
3266 "hyperrogue"
3267 (string-join (string-split ,version #\.) "")
3268 "/sounds/credits.txt") "-d" sounds))
3269 ;; Extract sounds and music into sounds directory.
3270 (zero?
3271 (system* "unzip" "-j" data
3272 (string-append
3273 "hyperrogue"
3274 (string-join (string-split ,version #\.) "")
3275 "/*.ogg") "-d" sounds)))))))))
3276 (native-inputs
3277 `(("hyperrogue-data"
3278 ,(origin
3279 (method url-fetch)
3280 (uri
3281 (string-append
3282 "http://www.roguetemple.com/z/hyper/" name
3283 (string-join (string-split version #\.) "")
3284 "-win.zip"))
3285 (sha256
3286 (base32
3287 "0bnp077qvlmxjlz1jjd6kpghlv9flxc19ac1xq3m3wyq1w9p3pab"))))
3288 ("unzip" ,unzip)))
3289 (inputs
3290 `(("font-dejavu" ,font-dejavu)
3291 ("glew" ,glew)
3292 ("libpng" ,libpng)
3293 ("sdl-union" ,(sdl-union (list sdl
3294 sdl-gfx
3295 sdl-mixer
3296 sdl-ttf)))))
3297 (home-page "http://www.roguetemple.com/z/hyper/")
3298 (synopsis "Non-euclidean graphical rogue-like game")
3299 (description
3300 "HyperRogue is a game in which the player collects treasures and fights
3301 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3302 plane and not in euclidean space.
3303
3304 In HyperRogue, the player can move through different parts of the world, which
3305 are home to particular creatures and may be subject to their own rules of
3306 \"physics\".
3307
3308 While the game can use ASCII characters to display the the classical rogue
3309 symbols, it still needs graphics to render the non-euclidean world.")
3310 (license (list license:bsd-3 ; glew.c, mtrand.*
3311 license:cc-by-sa3.0 ; music
3312 license:cc-by-sa4.0 ; sounds
3313 license:cc0
3314 license:public-domain ; direntx.*, some sounds
3315 license:zlib ; savepng.*
3316 license:gpl2+)))) ; remaining files
3317
3318 (define-public kobodeluxe
3319 (package
3320 (name "kobodeluxe")
3321 (version "0.5.1")
3322 (source (origin
3323 (method url-fetch)
3324 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3325 version ".tar.bz2"))
3326 (sha256
3327 (base32
3328 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3329 (patches (search-patches
3330 "kobodeluxe-const-charp-conversion.patch"
3331 "kobodeluxe-enemies-pipe-decl.patch"
3332 "kobodeluxe-graphics-window-signed-char.patch"
3333 "kobodeluxe-manpage-minus-not-hyphen.patch"
3334 "kobodeluxe-midicon-segmentation-fault.patch"
3335 "kobodeluxe-paths.patch"))))
3336 (build-system gnu-build-system)
3337 (arguments
3338 '(#:configure-flags
3339 (list (string-append "CPPFLAGS=-I"
3340 (assoc-ref %build-inputs "sdl-union")
3341 "/include/SDL"))))
3342 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3343 (synopsis "Shooter with space station destruction")
3344 (description
3345 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3346 for Un*x systems with X11.")
3347 (home-page "http://olofson.net/kobodl/")
3348 (license license:gpl2+)))
3349
3350 (define-public freeciv
3351 (package
3352 (name "freeciv")
3353 (version "2.5.7")
3354 (source
3355 (origin
3356 (method url-fetch)
3357 (uri (list (string-append
3358 "http://files.freeciv.org/stable/freeciv-"
3359 version ".tar.bz2")
3360 (string-append
3361 "mirror://sourceforge/freeciv/Freeciv%20"
3362 (version-major+minor version) "/" version
3363 "/freeciv-" version ".tar.bz2")))
3364 (sha256
3365 (base32
3366 "1lmydnnqraa947l7gdz6xgm0bgks1ywsivp9h4v8jr3avcv6gqzz"))))
3367 (build-system gnu-build-system)
3368 (inputs
3369 `(("curl" ,curl)
3370 ("cyrus-sasl" ,cyrus-sasl)
3371 ("gtk+" ,gtk+)
3372 ("sdl-mixer" ,sdl-mixer)
3373 ("zlib" ,zlib)))
3374 (native-inputs
3375 `(("pkg-config" ,pkg-config)))
3376 (home-page "http://www.freeciv.org/")
3377 (synopsis "Turn based empire building strategy game")
3378 (description "Freeciv is a turn based empire building strategy game
3379 inspired by the history of human civilization. The game commences in
3380 prehistory and your mission is to lead your tribe from the Stone Age
3381 to the Space Age.")
3382 (license license:gpl2+)))
3383
3384 (define-public no-more-secrets
3385 (package
3386 (name "no-more-secrets")
3387 (version "0.3.3")
3388 (source
3389 (origin
3390 (method url-fetch)
3391 (uri (string-append "https://github.com/bartobri/no-more-secrets/"
3392 "archive/v" version ".tar.gz"))
3393 (file-name (string-append name "-" version ".tar.gz"))
3394 (sha256
3395 (base32
3396 "1kpx1rirc3i7fb4lymp0hx5rqr0s2ay4za261rw3bcy6d23l1kyg"))))
3397 (build-system gnu-build-system)
3398 (arguments
3399 `(#:tests? #f
3400 #:make-flags (list "CC=gcc" "all-ncurses"
3401 (string-append "prefix="
3402 (assoc-ref %outputs "out")))
3403 #:phases
3404 (modify-phases %standard-phases
3405 (delete 'configure))))
3406 (inputs
3407 `(("ncurses" ,ncurses)))
3408 (home-page "https://github.com/bartobri/no-more-secrets")
3409 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
3410 (description
3411 "@code{No More Secrets} provides a command line tool called \"nms\"
3412 that recreates the famous data decryption effect seen on screen in the 1992
3413 movie \"Sneakers\".
3414
3415 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
3416 it will apply the hollywood effect, initially showing encrypted data, then
3417 starting a decryption sequence to reveal the original plaintext characters.")
3418 (license license:expat)))
3419
3420 (define-public megaglest-data
3421 (package
3422 (name "megaglest-data")
3423 (version "3.13.0")
3424 (source
3425 (origin
3426 (method url-fetch)
3427 (uri (string-append
3428 "https://github.com/MegaGlest/megaglest-data"
3429 "/releases/download/" version "/megaglest-data-"
3430 version ".tar.xz"))
3431 (sha256
3432 (base32
3433 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
3434 (build-system cmake-build-system)
3435 (arguments
3436 `(#:tests? #f))
3437 (home-page "https://megaglest.org/")
3438 (synopsis "Data files for MegaGlest")
3439 (description "This package contains the data files required for MegaGlest.")
3440 (license license:cc-by-sa3.0)))
3441
3442 (define-public megaglest
3443 (package
3444 (name "megaglest")
3445 (version "3.13.0")
3446 (source
3447 (origin
3448 (method url-fetch)
3449 (uri (string-append
3450 "https://github.com/MegaGlest/megaglest-source"
3451 "/releases/download/" version "/megaglest-source-"
3452 version ".tar.xz"))
3453 (sha256
3454 (base32
3455 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
3456 (build-system cmake-build-system)
3457 (inputs
3458 `(("curl" ,curl)
3459 ("fontconfig" ,fontconfig)
3460 ("ftgl" ,ftgl)
3461 ("glew" ,glew)
3462 ("libjpeg-turbo" ,libjpeg-turbo)
3463 ("megaglest-data" ,megaglest-data)
3464 ("mesa" ,mesa)
3465 ("miniupnpc" ,miniupnpc)
3466 ("openal" ,openal)
3467 ("libircclient" ,libircclient)
3468 ("libpng" ,libpng)
3469 ("libvorbis" ,libvorbis)
3470 ("lua" ,lua)
3471 ("sdl2" ,sdl2)
3472 ("wxwidgets" ,wxwidgets)))
3473 (native-inputs
3474 `(("cppunit" ,cppunit)
3475 ("pkg-config" ,pkg-config)))
3476 (arguments
3477 `(#:configure-flags
3478 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
3479 (assoc-ref %build-inputs "megaglest-data")
3480 "/share/megaglest")
3481 "-DBUILD_MEGAGLEST_TESTS=ON")
3482 #:phases
3483 (modify-phases %standard-phases
3484 (add-after 'unpack 'fix-ini-search-path
3485 (lambda* (#:key outputs #:allow-other-keys)
3486 (substitute* "source/glest_game/global/config.cpp"
3487 (("/usr/share/megaglest/")
3488 (string-append (assoc-ref outputs "out")
3489 "/share/megaglest/"))))))
3490 #:test-target "megaglest_tests"))
3491 (home-page "https://megaglest.org/")
3492 (synopsis "3D real-time strategy (RTS) game")
3493 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
3494 game, where you control the armies of one of seven different factions: Tech,
3495 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
3496 (license license:gpl2+)))
3497
3498 (define-public freegish
3499 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
3500 (revision "1"))
3501 (package
3502 (name "freegish")
3503 (version (string-append "0-" revision "." (string-take commit 9)))
3504 (source (origin
3505 (method git-fetch)
3506 (uri (git-reference
3507 (url "https://github.com/freegish/freegish.git")
3508 (commit commit)))
3509 (file-name (git-file-name name version))
3510 (sha256
3511 (base32
3512 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
3513 (modules '((guix build utils)))
3514 ;; The audio files in the "music" directory are licensed under
3515 ;; CC-BY-NC, so we delete them.
3516 (snippet
3517 '(begin
3518 (delete-file-recursively "music")
3519 #t))))
3520 (build-system cmake-build-system)
3521 (arguments
3522 `(#:tests? #f ; no tests included
3523 #:configure-flags
3524 (list "-DCMAKE_INSTALL_FHS=ON")
3525 #:phases
3526 (modify-phases %standard-phases
3527 (add-after 'unpack 'set-DATAPATH
3528 (lambda* (#:key outputs #:allow-other-keys)
3529 (substitute* "CMakeLists.txt"
3530 (("^option\\(INSTALL_FHS" line)
3531 (string-append "add_definitions(-DDATAPATH=\""
3532 (assoc-ref outputs "out") "/share/freegish\")\n"
3533 line)))
3534 #t)))))
3535 (inputs
3536 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
3537 ("openal" ,openal)
3538 ("libvorbis" ,libvorbis)
3539 ("libogg" ,libogg)
3540 ("mesa" ,mesa)
3541 ("libpng" ,libpng)
3542 ("zlib" ,zlib)))
3543 (home-page "https://github.com/freegish/freegish")
3544 (synopsis "Side-scrolling physics platformer with a ball of tar")
3545 (description "In FreeGish you control Gish, a ball of tar who lives
3546 happily with his girlfriend Brea, until one day a mysterious dark creature
3547 emerges from a sewer hole and pulls her below ground.")
3548 ;; The textures are available under the Expat license. All other assets
3549 ;; (including levels) are covered under CC-BY-SA or public domain. The
3550 ;; source code is under GPLv2+.
3551 (license (list license:gpl2+
3552 license:expat
3553 license:public-domain
3554 license:cc-by-sa3.0)))))
3555
3556 (define-public cdogs-sdl
3557 ;; XXX: Use version 0.6.7 when it's available.
3558 (let ((commit "bab2031369b9ea2dbeb7eedbde10a43dd8ca83db")
3559 (revision "1"))
3560 (package
3561 (name "cdogs-sdl")
3562 (version (git-version "0.6.6" revision commit))
3563 (source (origin
3564 (method git-fetch)
3565 (uri (git-reference
3566 (url "https://github.com/cxong/cdogs-sdl.git")
3567 (commit commit)))
3568 (file-name (git-file-name name version))
3569 (sha256
3570 (base32
3571 "09sfqhrrffhvxbhigvrxfmai52w01w3f9kjmixjhqvqlkhn77c9n"))))
3572 (build-system cmake-build-system)
3573 (arguments
3574 `(#:configure-flags
3575 (list (string-append "-DCDOGS_DATA_DIR="
3576 (assoc-ref %outputs "out")
3577 "/share/cdogs-sdl/"))))
3578 (inputs
3579 `(("mesa" ,mesa)
3580 ("sdl2" ,sdl2)
3581 ("sdl2-image" ,sdl2-image)
3582 ("sdl2-mixer" ,sdl2-mixer)))
3583 (home-page "https://cxong.github.io/cdogs-sdl/")
3584 (synopsis "Classic overhead run-and-gun game")
3585 (description "C-Dogs SDL is a classic overhead run-and-gun game,
3586 supporting up to 4 players in co-op and deathmatch modes. Customize your
3587 player, choose from many weapons, and blast, slide and slash your way through
3588 over 100 user-created campaigns.")
3589 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
3590 ;; CC0/CC-BY/CC-BY-SA for assets.
3591 (license (list license:gpl2+
3592 license:bsd-2
3593 license:bsd-3
3594 license:cc0
3595 license:cc-by3.0
3596 license:cc-by-sa3.0)))))
3597
3598 (define-public kiki
3599 (package
3600 (name "kiki")
3601 (version "1.0.2")
3602 (source (origin
3603 (method url-fetch)
3604 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
3605 version "/kiki-" version "-src.tgz"))
3606 (sha256
3607 (base32
3608 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
3609 (modules '((guix build utils)))
3610 (snippet
3611 '(begin
3612 (for-each delete-file (find-files "." "\\.dll$"))
3613 #t))
3614 (patches
3615 (search-patches "kiki-level-selection-crash.patch"
3616 "kiki-makefile.patch"
3617 "kiki-missing-includes.patch"
3618 "kiki-portability-64bit.patch"))))
3619 (build-system gnu-build-system)
3620 (arguments
3621 `(#:tests? #f ; there are no tests
3622 #:make-flags '("CXX=g++")
3623 #:phases
3624 (modify-phases %standard-phases
3625 (replace 'configure
3626 (lambda* (#:key inputs outputs #:allow-other-keys)
3627 (setenv "CPLUS_INCLUDE_PATH"
3628 (string-append (assoc-ref inputs "sdl-union")
3629 "/include/SDL:"
3630 (assoc-ref inputs "python")
3631 "/include/python2.7:"
3632 (getenv "CPLUS_INCLUDE_PATH")))
3633 (substitute* "src/main/main.cpp"
3634 (("#include <SDL.h>" line)
3635 (string-append line "
3636 #define K_INCLUDE_GLUT
3637 #include \"KIncludeTools.h\""))
3638 (("// initialize SDL" line)
3639 (string-append "glutInit(&argc,argv);\n" line)))
3640 (substitute* "src/main/KikiController.cpp"
3641 (("getenv\\(\"KIKI_HOME\"\\)")
3642 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
3643 (substitute* "linux/Makefile"
3644 (("CXXOPTS =" line)
3645 (string-append line " -fpermissive"))
3646 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
3647 (("PYTHONHOME =.*")
3648 (string-append "PYTHONHOME = "
3649 (assoc-ref inputs "python")
3650 "/lib/python2.7/"))
3651 (("\\$\\(GLLIBS\\)" line)
3652 (string-append line " -lm -lpython2.7")))
3653 (substitute* "src/main/KikiPythonWidget.h"
3654 (("#define __KikiPythonWidget" line)
3655 (string-append line "\n#include \"KikiPython.h\"")))
3656 #t))
3657 (add-before 'build 'build-kodilib
3658 (lambda* (#:key make-flags #:allow-other-keys)
3659 (with-directory-excursion "kodilib/linux"
3660 (zero? (apply system* "make" make-flags)))))
3661 (add-after 'build-kodilib 'chdir
3662 (lambda _ (chdir "linux") #t))
3663 (replace 'install
3664 (lambda* (#:key outputs #:allow-other-keys)
3665 (let* ((out (assoc-ref outputs "out"))
3666 (bin (string-append out "/bin"))
3667 (share (string-append out "/share/kiki")))
3668 (mkdir-p bin)
3669 (mkdir-p share)
3670 (install-file "kiki" bin)
3671 (copy-recursively "../py" (string-append share "/py"))
3672 (copy-recursively "../sound" (string-append share "/sound"))
3673 #t))))))
3674 (inputs
3675 `(("glu" ,glu)
3676 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
3677 ("freeglut" ,freeglut-2.8)
3678 ("sdl-union" ,(sdl-union (list sdl
3679 sdl-mixer
3680 sdl-image)))
3681 ("python" ,python-2)))
3682 (native-inputs
3683 `(("swig" ,swig)))
3684 (home-page "http://kiki.sourceforge.net/")
3685 (synopsis "3D puzzle game")
3686 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
3687 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
3688 small robot living in the nano world, repair its maker.")
3689 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
3690 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
3691 ;; for a statement from the author.
3692 (license license:public-domain)))
3693
3694 (define-public teeworlds
3695 (package
3696 (name "teeworlds")
3697 (version "0.6.4")
3698 (source (origin
3699 (method url-fetch)
3700 (uri (string-append "https://github.com/teeworlds/teeworlds/"
3701 "archive/" version "-release.tar.gz"))
3702 (file-name (string-append name "-" version ".tar.gz"))
3703 (sha256
3704 (base32
3705 "1mqhp6xjl75l49050cid36wxyjn1qr0vjx1c709dfg1lkvmgs6l3"))
3706 (modules '((guix build utils)))
3707 (snippet
3708 '(begin
3709 (for-each delete-file-recursively
3710 '("src/engine/external/wavpack/"
3711 "src/engine/external/zlib/"))
3712 #t))
3713 (patches
3714 (search-patches "teeworlds-use-latest-wavpack.patch"))))
3715 (build-system gnu-build-system)
3716 (arguments
3717 `(#:tests? #f ; no tests included
3718 #:phases
3719 (modify-phases %standard-phases
3720 (replace 'configure
3721 (lambda* (#:key outputs #:allow-other-keys)
3722 ;; Embed path to assets.
3723 (substitute* "src/engine/shared/storage.cpp"
3724 (("#define DATA_DIR.*")
3725 (string-append "#define DATA_DIR \""
3726 (assoc-ref outputs "out")
3727 "/share/teeworlds/data"
3728 "\"")))
3729
3730 ;; Bam expects all files to have a recent time stamp.
3731 (for-each (lambda (file)
3732 (utime file 1 1))
3733 (find-files "."))
3734
3735 ;; Do not use bundled libraries.
3736 (substitute* "bam.lua"
3737 (("if config.zlib.value == 1 then")
3738 "if true then")
3739 (("wavpack = .*")
3740 "wavpack = {}
3741 settings.link.libs:Add(\"wavpack\")\n"))
3742 (substitute* "src/engine/client/sound.cpp"
3743 (("#include <engine/external/wavpack/wavpack.h>")
3744 "#include <wavpack/wavpack.h>"))
3745 #t))
3746 (replace 'build
3747 (lambda _
3748 (zero? (system* "bam" "-a" "-v" "release"))))
3749 (replace 'install
3750 (lambda* (#:key outputs #:allow-other-keys)
3751 (let* ((out (assoc-ref outputs "out"))
3752 (bin (string-append out "/bin"))
3753 (data (string-append out "/share/teeworlds/data")))
3754 (mkdir-p bin)
3755 (mkdir-p data)
3756 (for-each (lambda (file)
3757 (install-file file bin))
3758 '("teeworlds" "teeworlds_srv"))
3759 (copy-recursively "data" data)
3760 #t))))))
3761 ;; FIXME: teeworlds bundles the sources of "pnglite", a two-file PNG
3762 ;; library without a build system.
3763 (inputs
3764 `(("freetype" ,freetype)
3765 ("glu" ,glu)
3766 ("mesa" ,mesa)
3767 ("sdl-union" ,(sdl-union (list sdl
3768 sdl-mixer
3769 sdl-image)))
3770 ("wavpack" ,wavpack)
3771 ("zlib" ,zlib)))
3772 (native-inputs
3773 `(("bam" ,bam)
3774 ("python" ,python-2)))
3775 (home-page "https://www.teeworlds.com")
3776 (synopsis "2D retro multiplayer shooter game")
3777 (description "Teeworlds is an online multiplayer game. Battle with up to
3778 16 players in a variety of game modes, including Team Deathmatch and Capture
3779 The Flag. You can even design your own maps!")
3780 (license license:bsd-3)))
3781
3782 (define-public enigma
3783 (package
3784 (name "enigma")
3785 (version "1.21")
3786 (source (origin
3787 (method url-fetch)
3788 (uri (string-append "mirror://sourceforge/enigma-game/"
3789 "Release%20" version "/enigma-"
3790 version ".tar.gz"))
3791 (sha256
3792 (base32
3793 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
3794 (build-system gnu-build-system)
3795 (arguments
3796 `(#:configure-flags
3797 (list "--with-system-enet")
3798 #:phases
3799 (modify-phases %standard-phases
3800 (add-after 'unpack 'find-sdl
3801 (lambda _
3802 (substitute* "configure"
3803 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
3804 (substitute* '("tools/ttf2bmf.cc"
3805 "lib-src/enigma-core/ecl_font.cc"
3806 "lib-src/enigma-core/ecl_video.cc"
3807 "lib-src/enigma-core/ecl_buffer.hh"
3808 "src/SoundEngine.cc"
3809 "src/SoundEngine.hh"
3810 "src/MusicManager.cc"
3811 "src/MusicManager.hh"
3812 "src/d_models.cc"
3813 "src/main.cc"
3814 "src/network.cc")
3815 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
3816 (string-append "#include \"SDL/SDL_" header ".h\"")))
3817 (substitute* "src/main.cc"
3818 (("#include <SDL_(image|ttf|mixer).h>" line header)
3819 (string-append "#include \"SDL/SDL_" header ".h\"")))
3820 #t)))))
3821 (inputs
3822 `(("xerces-c" ,xerces-c)
3823 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
3824 ("curl" ,curl)
3825 ("enet" ,enet)))
3826 (native-inputs
3827 `(("pkg-config" ,pkg-config)
3828 ("imagemagick" ,imagemagick)))
3829 (home-page "https://www.nongnu.org/enigma")
3830 (synopsis "Puzzle game with a dexterity component")
3831 (description "Enigma is a puzzle game with 550 unique levels. The object
3832 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
3833 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
3834 and most of all, countless hairy puzzles usually block your direct way to the
3835 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
3836 get bored) interact in many unexpected ways, and since many of them follow the
3837 laws of physics (Enigma’s special laws of physics, that is), controlling them
3838 with the mouse isn’t always trivial.")
3839 (license license:gpl2+)))
3840
3841 (define-public fillets-ng
3842 (package
3843 (name "fillets-ng")
3844 (version "1.0.1")
3845 (source (origin
3846 (method url-fetch)
3847 (uri (string-append "mirror://sourceforge/fillets/"
3848 "Fish%20Fillets%20-%20Next%20Generation/"
3849 version "/fillets-ng-" version ".tar.gz"))
3850 (sha256
3851 (base32
3852 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
3853 (build-system gnu-build-system)
3854 (arguments
3855 `(#:configure-flags
3856 (list (string-append "--with-lua="
3857 (assoc-ref %build-inputs "lua")))
3858 #:make-flags
3859 (list (string-append "CFLAGS=-I"
3860 (assoc-ref %build-inputs "sdl-union")
3861 "/include/SDL")
3862 (string-append "CXXFLAGS=-I"
3863 (assoc-ref %build-inputs "sdl-union")
3864 "/include/SDL"))
3865 #:phases
3866 (modify-phases %standard-phases
3867 ;; Lua 5.1 does not provide it.
3868 (add-after 'unpack 'do-not-link-with-lualib
3869 (lambda _
3870 (substitute* "configure"
3871 (("-llualib") ""))
3872 #t))
3873 (add-after 'install 'install-data
3874 (lambda* (#:key inputs outputs #:allow-other-keys)
3875 (let ((data (string-append (assoc-ref outputs "out")
3876 "/share/games/fillets-ng")))
3877 (mkdir-p data)
3878 (zero? (system* "tar" "-xvf"
3879 (assoc-ref inputs "fillets-ng-data")
3880 "--strip-components=1"
3881 "-C" data))))))))
3882 (inputs
3883 `(("sdl-union" ,(sdl-union (list sdl
3884 sdl-mixer
3885 sdl-image
3886 sdl-ttf)))
3887 ("fribidi" ,fribidi)
3888 ("libx11" ,libx11)
3889 ("lua" ,lua-5.1)))
3890 (native-inputs
3891 `(("pkg-config" ,pkg-config)
3892 ("fillets-ng-data"
3893 ,(origin
3894 (method url-fetch)
3895 (uri (string-append "mirror://sourceforge/fillets/"
3896 "Fish%20Fillets%20-%20Next%20Generation/"
3897 version "/fillets-ng-data-" version ".tar.gz"))
3898 (sha256
3899 (base32
3900 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
3901 (home-page "http://fillets.sourceforge.net/")
3902 (synopsis "Puzzle game")
3903 (description "Fish Fillets NG is strictly a puzzle game. The goal in
3904 every of the seventy levels is always the same: find a safe way out. The fish
3905 utter witty remarks about their surroundings, the various inhabitants of their
3906 underwater realm quarrel among themselves or comment on the efforts of your
3907 fish. The whole game is accompanied by quiet, comforting music.")
3908 (license license:gpl2+)))
3909
3910 (define-public crawl
3911 (package
3912 (name "crawl")
3913 (version "0.21.0")
3914 (source
3915 (origin
3916 (method url-fetch)
3917 (uri (list
3918 ;; Older releases get moved into a versioned directory
3919 (string-append "http://crawl.develz.org/release/"
3920 (version-major+minor version) "/stone_soup-"
3921 version "-nodeps.tar.xz")
3922 ;; Only the latest release is in this directory
3923 (string-append "http://crawl.develz.org/release/stone_soup-"
3924 version "-nodeps.tar.xz")))
3925 (sha256
3926 (base32
3927 "0mmnkch8s9l7dh136yjvcyjr0vmyzv7z370rlcyir91qz6gg82n1"))
3928 (patches (search-patches "crawl-upgrade-saves.patch"))))
3929 (build-system gnu-build-system)
3930 (inputs
3931 `(("lua51" ,lua-5.1)
3932 ("ncurses" ,ncurses)
3933 ("sqlite" ,sqlite)
3934 ("zlib" ,zlib)))
3935 (native-inputs
3936 `(("bison" ,bison)
3937 ("flex" ,flex)
3938 ("perl" ,perl)
3939 ("pkg-config" ,pkg-config)))
3940 (arguments
3941 '(#:make-flags
3942 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
3943 (out (assoc-ref %outputs "out")))
3944 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
3945 (string-append "prefix=" out)
3946 "SAVEDIR=~/.crawl"
3947 ;; don't build any bundled dependencies
3948 "BUILD_LUA="
3949 "BUILD_SQLITE="
3950 "BUILD_ZLIB="
3951 "-Csource"))
3952 #:phases
3953 (modify-phases %standard-phases
3954 (delete 'configure)
3955 (delete 'check)
3956 ;; Test cases require the source to be rebuild with the -DDEBUG define.
3957 ;; Do 'check before 'build to avoid a 3rd build on make install.
3958 (add-before 'build 'check
3959 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
3960 (setenv "HOME" (getcwd))
3961 ;; Fake a terminal for the test cases.
3962 (setenv "TERM" "xterm-256color")
3963 (zero? (apply system* "make" "debug" "test"
3964 (format #f "-j~d" (parallel-job-count))
3965 ;; Force command line build for test cases.
3966 (append make-flags '("GAME=crawl" "TILES=")))))))))
3967 (synopsis "Roguelike dungeon crawler game")
3968 (description "Dungeon Crawl Stone Soup is a roguelike adventure through
3969 dungeons filled with dangerous monsters in a quest to find the mystifyingly
3970 fabulous Orb of Zot.")
3971 (home-page "https://crawl.develz.org")
3972 (license (list license:gpl2+
3973 license:bsd-2
3974 license:bsd-3
3975 license:cc0
3976 license:expat
3977 license:zlib
3978 license:asl2.0))))
3979
3980 ;; The linter here claims that patch file names should start with the package
3981 ;; name. But, in this case, the patches are inherited from crawl with the
3982 ;; "crawl-" prefix instead of "crawl-tiles-".
3983 (define-public crawl-tiles
3984 (package
3985 (inherit crawl)
3986 (name "crawl-tiles")
3987 (arguments
3988 (substitute-keyword-arguments
3989 (package-arguments crawl)
3990 ((#:make-flags flags)
3991 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
3992 (cons*
3993 (string-append "PROPORTIONAL_FONT=" dejavu
3994 "/share/fonts/truetype/DejaVuSans.ttf")
3995 (string-append "MONOSPACED_FONT=" dejavu
3996 "/share/fonts/truetype/DejaVuSansMono.ttf")
3997 "TILES=y"
3998 ;; Rename the executable to allow parallel installation with crawl.
3999 "GAME=crawl-tiles"
4000 ,flags)))))
4001 (inputs
4002 `(,@(package-inputs crawl)
4003 ("font-dejavu" ,font-dejavu)
4004 ("freetype6" ,freetype)
4005 ("glu" ,glu)
4006 ("libpng" ,libpng)
4007 ("sdl2" ,sdl2)
4008 ("sdl2-image" ,sdl2-image)
4009 ("sdl2-mixer" ,sdl2-mixer)))
4010 (native-inputs
4011 `(,@(package-native-inputs crawl)
4012 ("pngcrush" ,pngcrush)
4013 ("which" ,which)))
4014 (synopsis "Graphical roguelike dungeon crawler game")))
4015
4016 (define-public lugaru
4017 (package
4018 (name "lugaru")
4019 (version "1.2")
4020 (source (origin
4021 (method url-fetch)
4022 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
4023 name "-" version ".tar.xz"))
4024 (sha256
4025 (base32
4026 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
4027 (build-system cmake-build-system)
4028 (arguments
4029 `(#:configure-flags
4030 (list "-DSYSTEM_INSTALL=ON")
4031 ;; no test target
4032 #:tests? #f))
4033 (native-inputs
4034 `(("pkg-config" ,pkg-config)))
4035 (inputs
4036 `(("sdl2" ,sdl2)
4037 ("glu" ,glu)
4038 ("libjpeg" ,libjpeg-turbo)
4039 ("libpng" ,libpng)
4040 ("openal" ,openal)
4041 ("vorbis" ,libvorbis)
4042 ("zlib" ,zlib)))
4043 (home-page "https://osslugaru.gitlab.io")
4044 (synopsis "Cross-platform third-person action game")
4045 (description "Lugaru is a third-person action game. The main character,
4046 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
4047 In his quest to find those responsible for slaughtering his village, he uncovers
4048 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
4049 and the starving wolves from a nearby den. Turner takes it upon himself to
4050 fight against their plot and save his fellow rabbits from slavery.")
4051 (license (list license:gpl2+ ; code
4052 ;; assets:
4053 license:cc-by-sa3.0
4054 license:cc-by-sa4.0))))
4055
4056 (define-public 0ad-data
4057 (package
4058 (name "0ad-data")
4059 (version "0.0.22-alpha")
4060 (source
4061 (origin
4062 (method url-fetch)
4063 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4064 version "-unix-data.tar.xz"))
4065 (file-name (string-append name "-" version ".tar.xz"))
4066 (sha256
4067 (base32
4068 "0vknk9ay9h2p34r7mym2g066f3s3c5d5vmap0ckcs5b86h5cscjc"))
4069 (modules '((guix build utils)))
4070 (snippet
4071 #~(begin
4072 (for-each (lambda (name)
4073 (let* ((dir (string-append "binaries/data/mods/" name))
4074 (file (string-append dir "/" name ".zip"))
4075 (unzip #$(file-append unzip "/bin/unzip")))
4076 (invoke unzip "-d" dir file)
4077 (delete-file file)))
4078 '("mod" "public"))
4079 #t))))
4080 (build-system trivial-build-system)
4081 (native-inputs `(("tar" ,tar)
4082 ("xz" ,xz)))
4083 (arguments
4084 `(#:modules ((guix build utils))
4085 #:builder
4086 (begin
4087 (use-modules (guix build utils))
4088 (let ((out (assoc-ref %outputs "out"))
4089 (source (assoc-ref %build-inputs "source"))
4090 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
4091 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
4092 (setenv "PATH" xz-path)
4093 (mkdir out)
4094 (invoke tar "xvf" source "-C" out "--strip=3")))))
4095 (synopsis "Data files for 0ad")
4096 (description "0ad-data provides the data files required by the game 0ad.")
4097 (home-page "https://play0ad.com")
4098 (license (list (license:fsdg-compatible
4099 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
4100 (license:license-comment
4101 (package-license font-bitstream-vera)))
4102 (package-license font-bitstream-vera)
4103 license:cc-by-sa3.0
4104 license:expat
4105 license:gfl1.0
4106 license:gpl2+
4107 license:gpl3+))))
4108
4109 (define-public 0ad
4110 (package
4111 (name "0ad")
4112 (version "0.0.22-alpha")
4113 (source
4114 (origin
4115 (method url-fetch)
4116 (uri (string-append "http://releases.wildfiregames.com/0ad-"
4117 version "-unix-build.tar.xz"))
4118 (file-name (string-append name "-" version ".tar.xz"))
4119 (sha256
4120 (base32
4121 "1cgmr4g5g9wv36v7ylbrvqhsjwgcsdgbqwc8zlqmnayk9zgkdpgx"))
4122 ;; A snippet here would cause a build failure because of timestamps
4123 ;; reset. See https://bugs.gnu.org/26734.
4124 ))
4125 (inputs
4126 `(("0ad-data" ,0ad-data)
4127 ("curl" ,curl)
4128 ("enet" ,enet)
4129 ("gloox" ,gloox)
4130 ("icu4c" ,icu4c)
4131 ("libpng" ,libpng)
4132 ("libvorbis" ,libvorbis)
4133 ("libxcursor" ,libxcursor)
4134 ("libxml2" ,libxml2)
4135 ("miniupnpc" ,miniupnpc)
4136 ("mozjs-38" ,mozjs-38)
4137 ("openal" ,openal)
4138 ("sdl2" ,sdl2)
4139 ("wxwidgets" ,wxwidgets)
4140 ("zlib" ,zlib)))
4141 (native-inputs
4142 `(("boost" ,boost)
4143 ("cmake" ,cmake)
4144 ("mesa" ,mesa)
4145 ("pkg-config" ,pkg-config)
4146 ("python-2" ,python-2)))
4147 (build-system gnu-build-system)
4148 (arguments
4149 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
4150 #:phases
4151 (modify-phases %standard-phases
4152 (add-after 'unpack 'delete-bundles
4153 (lambda _
4154 (delete-file-recursively "libraries/source/spidermonkey")
4155 #t))
4156 (add-after 'unpack 'fix-x11-includes
4157 (lambda _
4158 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4159 (("<Xlib.h>") "<X11/Xlib.h>"))
4160 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4161 (("<Xatom.h>") "<X11/Xatom.h>"))
4162 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
4163 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
4164 #t))
4165 (replace 'configure
4166 (lambda* (#:key inputs outputs #:allow-other-keys)
4167 (let* ((jobs (number->string (parallel-job-count)))
4168 (out (assoc-ref outputs "out"))
4169 (lib (string-append out "/lib"))
4170 (data (string-append out "/share/0ad")))
4171 (setenv "JOBS" (string-append "-j" jobs))
4172 (setenv "CC" "gcc")
4173 (with-directory-excursion "build/workspaces"
4174 (zero? (system* "./update-workspaces.sh"
4175 (string-append "--libdir=" lib)
4176 (string-append "--datadir=" data)
4177 ;; TODO: "--with-system-nvtt"
4178 "--with-system-mozjs38"))))))
4179 (delete 'check)
4180 (replace 'install
4181 (lambda* (#:key inputs outputs #:allow-other-keys)
4182 (chdir "binaries")
4183 (let* ((out (assoc-ref outputs "out"))
4184 (bin (string-append out "/bin"))
4185 (lib (string-append out "/lib"))
4186 (data (string-append out "/share/0ad"))
4187 (applications (string-append out "/share/applications"))
4188 (pixmaps (string-append out "/share/pixmaps"))
4189 (0ad-data (assoc-ref inputs "0ad-data")))
4190 ;; data
4191 (copy-recursively "data" data)
4192 (for-each (lambda (file)
4193 (symlink (string-append 0ad-data "/" file)
4194 (string-append data "/" file)))
4195 '("config" "mods/mod" "mods/public" "tools"))
4196 ;; libraries
4197 (for-each (lambda (file)
4198 (install-file file lib))
4199 (find-files "system" "\\.so$"))
4200 ;; binaries
4201 (install-file "system/pyrogenesis" bin)
4202 (with-directory-excursion bin
4203 (symlink "pyrogenesis" "0ad"))
4204 ;; resources
4205 (with-directory-excursion "../build/resources"
4206 (install-file "0ad.desktop" applications)
4207 (install-file "0ad.png" pixmaps))
4208 #t)))
4209 (add-after 'install 'check
4210 (lambda _
4211 (with-directory-excursion "system"
4212 (zero? (system* "./test"))))))))
4213 (home-page "https://play0ad.com")
4214 (synopsis "3D real-time strategy game of ancient warfare")
4215 (description "0 A.D. is a real-time strategy (RTS) game of ancient
4216 warfare. It's a historically-based war/economy game that allows players to
4217 relive or rewrite the history of twelve ancient civilizations, each depicted
4218 at their peak of economic growth and military prowess.
4219
4220 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
4221 (license (list license:bsd-2
4222 license:bsd-3
4223 license:expat
4224 license:gpl2+
4225 license:ibmpl1.0
4226 license:isc
4227 license:lgpl2.1
4228 license:lgpl3
4229 license:mpl2.0
4230 license:zlib))))
4231
4232 ;; There have been no official releases.
4233 (define-public open-adventure
4234 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
4235 (revision "2"))
4236 (package
4237 (name "open-adventure")
4238 (version (string-append "2.5-" revision "." (string-take commit 7)))
4239 (source (origin
4240 (method git-fetch)
4241 (uri (git-reference
4242 (url "https://gitlab.com/esr/open-adventure")
4243 (commit commit)))
4244 (file-name (string-append name "-" version "-checkout"))
4245 (sha256
4246 (base32
4247 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
4248 (build-system gnu-build-system)
4249 (arguments
4250 `(#:make-flags (list "CC=gcc")
4251 #:parallel-build? #f ; not supported
4252 #:phases
4253 (modify-phases %standard-phases
4254 (replace 'configure
4255 (lambda* (#:key inputs outputs #:allow-other-keys)
4256 ;; Linenoise is meant to be included, so we have to
4257 ;; copy it into the working directory.
4258 (let* ((linenoise (assoc-ref inputs "linenoise"))
4259 (noisepath (string-append linenoise "/include/linenoise"))
4260 (out (assoc-ref outputs "out")))
4261 (copy-recursively noisepath "linenoise"))
4262 #t))
4263 (add-before 'build 'use-echo
4264 (lambda _
4265 (substitute* "tests/Makefile"
4266 (("/bin/echo") (which "echo")))
4267 #t))
4268 (add-after 'build 'build-manpage
4269 (lambda _
4270 ;; This target is missing a dependency
4271 (substitute* "Makefile"
4272 ((".adoc.6:" line)
4273 (string-append line " advent.adoc")))
4274 (zero? (system* "make" ".adoc.6"))))
4275 ;; There is no install target
4276 (replace 'install
4277 (lambda* (#:key outputs #:allow-other-keys)
4278 (let* ((out (assoc-ref outputs "out"))
4279 (bin (string-append out "/bin"))
4280 (man (string-append out "/share/man/man6")))
4281 (install-file "advent" bin)
4282 (install-file "advent.6" man))
4283 #t)))))
4284 (native-inputs
4285 `(("asciidoc" ,asciidoc)
4286 ("linenoise" ,linenoise)
4287 ("python" ,python)
4288 ("python-pyyaml" ,python-pyyaml)))
4289 (home-page "https://gitlab.com/esr/open-adventure")
4290 (synopsis "Colossal Cave Adventure")
4291 (description "The original Colossal Cave Adventure from 1976 was the
4292 origin of all text adventures, dungeon-crawl (computer) games, and
4293 computer-hosted roleplaying games. This is the last version released by
4294 Crowther & Woods, its original authors, in 1995. It has been known as
4295 \"adventure 2.5\" and \"430-point adventure\".")
4296 (license license:bsd-2))))
4297
4298 (define-public tome4
4299 (package
4300 (name "tome4")
4301 (version "1.5.5")
4302 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
4303 (source
4304 (origin
4305 (method url-fetch)
4306 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
4307 version ".tar.bz2"))
4308 (sha256
4309 (base32
4310 "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03"))
4311 (modules '((guix build utils)))
4312 (snippet
4313 '(begin
4314 (substitute* '("src/music.h" "src/tSDL.h")
4315 (("#elif defined(__FreeBSD__)" line)
4316 (string-append
4317 line " || defined(__GNUC__)")))
4318 #t))))
4319 (build-system gnu-build-system)
4320 (native-inputs
4321 `(("unzip" ,unzip)))
4322 (inputs
4323 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4324 ("glu" ,glu)
4325 ("premake4" ,premake4)
4326 ("openal" ,openal)
4327 ("vorbis" ,libvorbis)
4328 ("luajit" ,luajit)))
4329 (arguments
4330 `(#:make-flags '("CC=gcc" "config=release")
4331 #:phases (modify-phases %standard-phases
4332 (replace 'configure
4333 (lambda _
4334 (zero? (system* "premake4" "gmake"))
4335 #t))
4336 (add-after 'set-paths 'set-sdl-paths
4337 (lambda* (#:key inputs #:allow-other-keys)
4338 (setenv "CPATH"
4339 (string-append (assoc-ref inputs "sdl-union")
4340 "/include/SDL2"))
4341 #t))
4342 (delete 'check)
4343 ;; premake doesn't provide install target
4344 (replace 'install
4345 (lambda* (#:key inputs outputs #:allow-other-keys)
4346 (let* ((out (assoc-ref outputs "out"))
4347 (usr (string-append out "/usr"))
4348 (bin (string-append out "/bin"))
4349 (licenses (string-append out "/share/licenses"))
4350 (documents (string-append out "/share/doc"))
4351 (pixmaps (string-append out "/share/pixmaps"))
4352 (icon "te4-icon.png")
4353 (data (string-append out "/share/" ,name))
4354 (applications (string-append
4355 out "/share/applications"))
4356 (unzip (string-append
4357 (assoc-ref inputs "unzip") "/bin/unzip"))
4358 (wrapper (string-append bin "/" ,name)))
4359 ;; icon
4360 (mkdir-p pixmaps)
4361 (system* unzip "-j"
4362 (string-append
4363 "game/engines/te4-" ,version ".teae")
4364 (string-append
4365 "data/gfx/" icon) "-d" pixmaps)
4366 ;; game executable
4367 (install-file "t-engine" data)
4368 (mkdir-p bin)
4369 (with-output-to-file wrapper
4370 (lambda ()
4371 (display
4372 (string-append
4373 "#!/bin/sh\n"
4374 ;; No bootstrap code found,
4375 ;; defaulting to working directory
4376 ;; for engine code!
4377 "cd " data "\n"
4378 "exec -a tome4 ./t-engine \"$@\"\n"))))
4379 (chmod wrapper #o555)
4380 ;; licenses
4381 (for-each (lambda (file)
4382 (install-file file licenses))
4383 '("COPYING" "COPYING-MEDIA"))
4384 ;; documents
4385 (for-each (lambda (file)
4386 (install-file file documents))
4387 '("CONTRIBUTING" "CREDITS"))
4388 ;; data
4389 (copy-recursively "bootstrap" (string-append
4390 data "/bootstrap"))
4391 (copy-recursively "game" (string-append data "/game"))
4392 ;; launcher
4393 (mkdir-p applications)
4394 (with-output-to-file (string-append applications "/"
4395 ,name ".desktop")
4396 (lambda ()
4397 (display
4398 (string-append
4399 "[Desktop Entry]
4400 Name=ToME4
4401 Comment=" ,synopsis "\n"
4402 "Exec=" ,name "\n"
4403 "Icon=" icon "\n"
4404 "Terminal=false
4405 Type=Application
4406 Categories=Game;RolePlaying;\n")))))
4407 #t)))))
4408 (home-page "https://te4.org")
4409 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
4410 combat and advanced character building. Play as one of many unique races and
4411 classes in the lore-filled world of Eyal, exploring random dungeons, facing
4412 challenging battles, and developing characters with your own tailored mix of
4413 abilities and powers. With a modern graphical and customisable interface,
4414 intuitive mouse control, streamlined mechanics and deep, challenging combat,
4415 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
4416 (license license:gpl3+)))
4417
4418 (define-public quakespasm
4419 (package
4420 (name "quakespasm")
4421 (version "0.93.0")
4422 (source
4423 (origin
4424 (method url-fetch)
4425 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
4426 version ".tgz"))
4427 (sha256
4428 (base32
4429 "0b2nz7w4za32pc34r62ql270z692qcjs2pm0i3svkxkvfammhdfq"))))
4430 (arguments
4431 `(#:tests? #f
4432 #:make-flags '("CC=gcc"
4433 "MP3LIB=mpg123"
4434 "USE_CODEC_FLAC=1"
4435 "USE_CODEC_MIKMOD=1"
4436 "USE_SDL2=1"
4437 "-CQuake")
4438 #:phases (modify-phases %standard-phases
4439 (delete 'configure)
4440 (add-after 'unpack 'fix-makefile-paths
4441 (lambda* (#:key outputs #:allow-other-keys)
4442 (let ((out (assoc-ref outputs "out")))
4443 (mkdir-p (string-append out "/bin"))
4444 (substitute* "Quake/Makefile"
4445 (("/usr/local/games")
4446 (string-append out "/bin")))
4447 #t))))))
4448 (build-system gnu-build-system)
4449 (inputs `(("libmikmod" ,libmikmod)
4450 ("libvorbis" ,libvorbis)
4451 ("flac" ,flac)
4452 ("mesa" ,mesa)
4453 ("mpg123" ,mpg123)
4454 ("sdl2" ,sdl2)))
4455 (synopsis "First person shooter engine for Quake 1")
4456 (description "Quakespasm is a modern engine for id software's Quake 1.
4457 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4458 some graphical niceities, and numerous bug-fixes and other improvements.")
4459 (home-page "http://quakespasm.sourceforge.net/")
4460 (license license:gpl2+)))
4461
4462 (define-public vkquake
4463 (package
4464 (inherit quakespasm)
4465 (name "vkquake")
4466 (version "0.97.3")
4467 (source
4468 (origin
4469 (method url-fetch)
4470 (uri (string-append "https://github.com/Novum/vkQuake/archive/"
4471 version ".tar.gz"))
4472 (file-name (string-append name "-" version ".tar.gz"))
4473 (sha256
4474 (base32
4475 "1p0nh2v2ilylw62fxc5qpfcmyhs0s64w8sgh036nc6kn21kbjc0d"))))
4476 (arguments
4477 `(#:make-flags
4478 (let ((vulkanlib (string-append (assoc-ref %build-inputs
4479 "vulkan-icd-loader") "/lib")))
4480 (list "CC=gcc"
4481 "MP3LIB=mpg123"
4482 "USE_CODEC_FLAC=1"
4483 "USE_CODEC_MIKMOD=1"
4484 "USE_SDL2=1"
4485 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
4486 "-CQuake"))
4487 #:phases (modify-phases %standard-phases
4488 (delete 'configure)
4489 (add-after 'unpack 'fix-makefile-paths
4490 (lambda* (#:key outputs #:allow-other-keys)
4491 (let ((vulkan (assoc-ref %build-inputs
4492 "vulkan-icd-loader"))
4493 (out (assoc-ref outputs "out")))
4494 (mkdir-p (string-append out "/bin"))
4495 (substitute* "Quake/Makefile" ((" /usr")
4496 (string-append " " out)))
4497 (substitute* "Quake/Makefile" (("/games")
4498 (string-append "/bin")))
4499 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
4500 #t))))
4501 ,@(strip-keyword-arguments '(#:make-flags #:phases)
4502 (package-arguments quakespasm))))
4503 (inputs `(("vulkan-icd-loader" ,vulkan-icd-loader)
4504 ,@(package-inputs quakespasm)))
4505 (description "vkquake is a modern engine for id software's Quake 1.
4506 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
4507 some graphical niceities, and numerous bug-fixes and other improvements.")
4508 (home-page "https://github.com/Novum/vkQuake")))
4509
4510 (define-public yamagi-quake2
4511 (package
4512 (name "yamagi-quake2")
4513 (version "7.10")
4514 (source
4515 (origin
4516 (method url-fetch)
4517 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
4518 version ".tar.xz"))
4519 (sha256
4520 (base32
4521 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
4522 (build-system gnu-build-system)
4523 (arguments
4524 `(#:tests? #f
4525 #:make-flags
4526 (list "CC=gcc"
4527 ;; link openAL instead of using dlopen at runtime
4528 "DLOPEN_OPENAL=\"no\""
4529 ;; an optional directory where it will look for quake2 data files
4530 ;; in addition to the current working directory
4531 "WITH_SYSTEMWIDE=yes"
4532 "WITH_SYSTEMDIR=\"/opt/quake2\"")
4533 #:phases
4534 (modify-phases %standard-phases
4535 (delete 'configure)
4536 (replace 'install
4537 (lambda* (#:key outputs #:allow-other-keys)
4538 (let ((out (assoc-ref outputs "out")))
4539 (mkdir-p (string-append out "/lib"))
4540 (mkdir-p (string-append out "/bin"))
4541 ;; The yamagi-quake2 binary must be in the same directory
4542 ;; as it's engine libraries, but symlinking it to /bin is okay
4543 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
4544 (copy-recursively "release"
4545 (string-append out "/lib/yamagi-quake2"))
4546 (symlink (string-append out "/lib/yamagi-quake2/quake2")
4547 (string-append out "/bin/yamagi-quake2"))
4548 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
4549 (string-append out "/bin/yamagi-q2ded"))))))))
4550 (inputs `(("sdl2" ,sdl2)
4551 ("mesa" ,mesa)
4552 ("libvorbis" ,libvorbis)
4553 ("zlib" ,zlib)
4554 ("openal" ,openal)))
4555 (native-inputs `(("pkg-config" ,pkg-config)))
4556 (synopsis "First person shooter engine based on quake2")
4557 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
4558 The main focus is an unchanged single player experience like back in 1997,
4559 thus the gameplay and the graphics are unaltered. However the user may use one
4560 of the unofficial retexturing packs. In comparison with the official client,
4561 over 1000 bugs were fixed and an extensive code audit done,
4562 making Yamagi Quake II one of the most solid Quake II implementations available.")
4563 (home-page "https://www.yamagi.org/quake2/")
4564 (license (list license:gpl2+ ; game and server
4565 (license:non-copyleft ; info-zip
4566 "file://LICENSE"
4567 "See Info-Zip section.")
4568 license:public-domain)))) ; stb
4569
4570 (define-public the-butterfly-effect
4571 (package
4572 (name "the-butterfly-effect")
4573 (version "0.9.3.1")
4574 (source
4575 (origin
4576 (method url-fetch)
4577 (uri (string-append
4578 "https://github.com/the-butterfly-effect/tbe/archive/"
4579 "v" version ".tar.gz"))
4580 (file-name (string-append name "-" version ".tar.gz"))
4581 (sha256
4582 (base32
4583 "18qkp7fgdvyl3haqqa693mgyic7afsznsxgz98z9wn4csaqxsnby"))))
4584 (build-system gnu-build-system)
4585 (arguments
4586 `(#:phases
4587 (modify-phases %standard-phases
4588 (delete 'configure)
4589 ;; There is no "install" phase. By default, tbe is installed
4590 ;; in the build directory. Provide our own installation.
4591 (replace 'install
4592 (lambda* (#:key outputs #:allow-other-keys)
4593 (let* ((out (assoc-ref outputs "out"))
4594 (bin (string-append out "/bin"))
4595 (share (string-append out "/share")))
4596 (install-file "usr/games/tbe" bin)
4597 (mkdir-p share)
4598 (copy-recursively "usr/share" share)
4599 #t))))
4600 ;; Test suite requires a running Xorg server. Even when
4601 ;; provided, it fails with "D-Bus library appears to be
4602 ;; incorrectly set up; failed to read machine uuid: Failed to
4603 ;; open "/etc/machine-id": No such file or directory" along
4604 ;; with multiple "QPainter:: ... Painter not active" warnings.
4605 #:tests? #f))
4606 (inputs
4607 `(("qtbase" ,qtbase)
4608 ("qtsvg" ,qtsvg)))
4609 (native-inputs
4610 `(("cmake" ,cmake)
4611 ("gettext-minimal" ,gettext-minimal)
4612 ("qttools" ,qttools)))
4613 (synopsis "Realistic physics puzzle game")
4614 (description "The Butterfly Effect (tbe) is a game that uses
4615 realistic physics simulations to combine lots of simple mechanical
4616 elements to achieve a simple goal in the most complex way possible.")
4617 (home-page "http://the-butterfly-effect.org/")
4618 ;; Main license is GPL2-only. However, artwork is distributed
4619 ;; under various licenses, listed here.
4620 (license (list license:gpl2 license:public-domain license:expat
4621 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
4622
4623 (define-public pioneer
4624 (package
4625 (name "pioneer")
4626 (version "20171001")
4627 (source (origin
4628 (method url-fetch)
4629 (uri (string-append "https://github.com/pioneerspacesim/pioneer/"
4630 "archive/" version ".tar.gz"))
4631 (file-name (string-append name "-" version ".tar.gz"))
4632 (sha256
4633 (base32
4634 "1nxhx22swfqq6lfvcnpfm31wig3sjv5pp0rslj79nbxc7nyihh8m"))))
4635 (build-system gnu-build-system)
4636 (native-inputs
4637 `(("autoconf" ,autoconf)
4638 ("automake" ,automake)
4639 ("pkg-config" ,pkg-config)))
4640 (inputs
4641 `(("assimp" ,assimp)
4642 ("curl" ,curl)
4643 ("freetype" ,freetype)
4644 ("glu" ,glu)
4645 ("libpng" ,libpng)
4646 ("libsigc++" ,libsigc++)
4647 ("libvorbis" ,libvorbis)
4648 ("lua" ,lua-5.2) ;not compatible with 5.3
4649 ("mesa" ,mesa)
4650 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
4651 (arguments
4652 `(#:tests? #f ;tests are broken
4653 #:configure-flags (list "--with-external-liblua"
4654 (string-append "PIONEER_DATA_DIR="
4655 %output "/share/games/pioneer"))
4656 #:phases (modify-phases %standard-phases
4657 (add-before 'bootstrap 'fix-lua-check
4658 (lambda _
4659 (substitute* "configure.ac"
4660 (("lua5.2")
4661 (string-append "lua-" ,(version-major+minor
4662 (package-version lua-5.2))))))))))
4663 (home-page "http://pioneerspacesim.net")
4664 (synopsis "Game of lonely space adventure")
4665 (description
4666 "Pioneer is a space adventure game set in our galaxy at the turn of the
4667 31st century. The game is open-ended, and you are free to eke out whatever
4668 kind of space-faring existence you can think of. Look for fame or fortune by
4669 exploring the millions of star systems. Turn to a life of crime as a pirate,
4670 smuggler or bounty hunter. Forge and break alliances with the various
4671 factions fighting for power, freedom or self-determination. The universe is
4672 whatever you make of it.")
4673 (license license:gpl3)))
4674
4675 (define-public badass
4676 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
4677 (revision "0"))
4678 (package
4679 (name "badass")
4680 (version (git-version "0.0" revision commit))
4681 (source (origin
4682 (method git-fetch)
4683 (uri (git-reference
4684 (url "https://github.com/umayr/badass.git")
4685 (commit commit)))
4686 (file-name (git-file-name name version))
4687 (sha256
4688 (base32
4689 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
4690 (build-system go-build-system)
4691 (arguments
4692 '(#:import-path "github.com/umayr/badass"))
4693 (synopsis "Hacking contribution graphs in git")
4694 (description
4695 "Badass generates false commits for a range of dates, essentially
4696 hacking the gamification of contribution graphs on platforms such as
4697 Github or Gitlab.")
4698 (home-page "https://github.com/umayr/badass")
4699 (license license:expat))))
4700
4701 (define-public colobot
4702 (package
4703 (name "colobot")
4704 (version "0.1.11-alpha")
4705 (source
4706 (origin
4707 (method url-fetch)
4708 (uri (string-append "https://github.com/colobot/colobot/archive/"
4709 "colobot-gold-" version ".tar.gz"))
4710 (sha256
4711 (base32
4712 "160rq9fp5vd0qaqr3jvzvzrcxk9cac532y8vx4cvq0a8hgylrbad"))))
4713 (build-system cmake-build-system)
4714 (arguments
4715 `(#:tests? #f ;no test
4716 #:phases
4717 (modify-phases %standard-phases
4718 (add-after 'unpack 'unpack-data
4719 (lambda* (#:key inputs #:allow-other-keys)
4720 (let ((data (assoc-ref inputs "colobot-data")))
4721 (invoke "tar" "-xvf" data "-Cdata" "--strip-components=1")
4722 #t)))
4723 (add-after 'unpack-data 'install-music
4724 (lambda* (#:key inputs #:allow-other-keys)
4725 ;; Installation process tries to download music files using
4726 ;; "wget" if not already present. Since we are going to install
4727 ;; them, skip "wget" command check.
4728 (substitute* "data/music/CMakeLists.txt"
4729 (("find_program\\(WGET wget\\)") ""))
4730 ;; Effectively install music.
4731 (let ((data (assoc-ref inputs "colobot-music")))
4732 (invoke "tar" "-xvf" data "-Cdata/music")
4733 #t)))
4734 (add-after 'install 'fix-install-directory
4735 ;; Move binary from "games/" to "bin/".
4736 (lambda* (#:key outputs #:allow-other-keys)
4737 (let ((out (assoc-ref outputs "out")))
4738 (rename-file (string-append out "/games")
4739 (string-append out "/bin"))
4740 #t))))))
4741 (native-inputs
4742 `(("colobot-data"
4743 ,(origin
4744 (method url-fetch)
4745 (uri (string-append
4746 "https://github.com/colobot/colobot-data/archive/"
4747 "colobot-gold-" version ".tar.gz"))
4748 (sha256
4749 (base32
4750 "1pdpsyr41g7xmk03k2g76l214f53ahk04qnkzmsv1fdbbaq7p109"))))
4751 ("colobot-music"
4752 ,(origin
4753 (method url-fetch)
4754 (uri (string-append "https://colobot.info/files/music/"
4755 "colobot-music_ogg_" version ".tar.gz"))
4756 (sha256
4757 (base32
4758 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
4759 ("gettext" ,gettext-minimal)
4760 ("librsvg" ,librsvg)
4761 ("po4a" ,po4a)
4762 ("python" ,python-wrapper)))
4763 (inputs
4764 `(("boost" ,boost)
4765 ("glew" ,glew)
4766 ("libogg" ,libogg)
4767 ("libpng" ,libpng)
4768 ("libsndfile" ,libsndfile)
4769 ("libvorbis" ,libvorbis)
4770 ("openal" ,openal)
4771 ("physfs" ,physfs)
4772 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
4773 (synopsis "Educational programming strategy game")
4774 (description "Colobot: Gold Edition is a real-time strategy game, where
4775 you can program your units (bots) in a language called CBOT, which is similar
4776 to C++ and Java. Your mission is to find a new planet to live and survive.
4777 You can save humanity and get programming skills!")
4778 (home-page "https://colobot.info")
4779 (license license:gpl3+)))
4780
4781 (define-public gzdoom
4782 (package
4783 (name "gzdoom")
4784 (version "3.3.0")
4785 (source (origin
4786 (method url-fetch)
4787 (uri
4788 (string-append "https://zdoom.org/files/gzdoom/src/gzdoom-g"
4789 version ".zip"))
4790 (sha256
4791 (base32
4792 "09a4kx3ry8pc9r578m7yprwa7zsdqxjpn10lyc92r5g9sx4l1m1a"))
4793 (patches (search-patches "gzdoom-search-in-installed-share.patch"))
4794 (modules '((guix build utils)))
4795 (snippet
4796 '(begin
4797 (delete-file-recursively "bzip2")
4798 (delete-file-recursively "game-music-emu")
4799 (delete-file-recursively "jpeg-6b")
4800 (delete-file-recursively "zlib")
4801 #t))))
4802 (arguments
4803 '(#:tests? #f
4804 #:configure-flags
4805 (let ((out (assoc-ref %outputs "out")))
4806 (list
4807 (string-append
4808 "-DCMAKE_CXX_FLAGS:="
4809 "-DSHARE_DIR=\\\"" out "/share/\\\" "
4810 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
4811 ;; look for libraries at buildtime instead of
4812 ;; dynamically finding them at runtime
4813 "-DDYN_OPENAL=OFF"
4814 "-DDYN_FLUIDSYNTH=OFF"
4815 "-DDYN_GTK=OFF"
4816 "-DDYN_MPG123=OFF"
4817 "-DDYN_SNDFILE=OFF"))
4818 #:phases
4819 (modify-phases %standard-phases
4820 (add-before 'configure 'fix-referenced-paths
4821 (lambda* (#:key inputs outputs #:allow-other-keys)
4822 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
4823 (timidity++ (assoc-ref inputs "timidity++"))
4824 (out (assoc-ref outputs "out")))
4825
4826 (substitute*
4827 "src/CMakeLists.txt"
4828 (("COMMAND /bin/sh")
4829 (string-append "COMMAND " (which "sh"))))
4830
4831 (substitute*
4832 "src/sound/mididevices/music_fluidsynth_mididevice.cpp"
4833 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
4834 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
4835
4836 (substitute*
4837 "src/sound/mididevices/music_timiditypp_mididevice.cpp"
4838 (("exename = \"timidity\"")
4839 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
4840 #t))))))
4841 (build-system cmake-build-system)
4842 (inputs `(("bzip2" ,bzip2)
4843 ("fluid-3" ,fluid-3)
4844 ("fluidsynth" ,fluidsynth)
4845 ("gtk+3" ,gtk+)
4846 ("libgme" ,libgme)
4847 ("libjpeg" ,libjpeg)
4848 ("libsndfile" ,libsndfile)
4849 ("mesa" ,mesa)
4850 ("mpg123" ,mpg123)
4851 ("openal" ,openal)
4852 ("sdl2" ,sdl2)
4853 ("timidity++" ,timidity++)
4854 ("zlib" ,zlib)))
4855 (native-inputs `(("pkg-config" ,pkg-config)
4856 ("unzip" ,unzip)))
4857 (synopsis "Modern Doom 2 source port")
4858 (description "GZdoom is a port of the Doom 2 game engine, with a modern
4859 renderer. It improves modding support with ZDoom's advanced mapping features
4860 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
4861 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
4862 (home-page "https://zdoom.org/index")
4863 (license (list license:gpl3+ ; gzdoom game
4864 license:lgpl3+ ; gzdoom renderer
4865 license:expat ; gdtoa
4866 (license:non-copyleft ; modified dumb
4867 "file://dumb/licence.txt"
4868 "Dumb license, explicitly GPL compatible.")))))