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