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