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