gnu: Add kobodeluxe.
[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 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016 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 Rodger Fox <thylakoid@openmailbox.org>
19 ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
20 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
21 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
22 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
23 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
24 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
25 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
26 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
27 ;;;
28 ;;; This file is part of GNU Guix.
29 ;;;
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
34 ;;;
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
39 ;;;
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42
43 (define-module (gnu packages games)
44 #:use-module (ice-9 match)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix svn-download)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages algebra)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages backup)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages audio)
58 #:use-module (gnu packages avahi)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages fltk)
61 #:use-module (gnu packages fribidi)
62 #:use-module (gnu packages game-development)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages ghostscript)
65 #:use-module (gnu packages gl)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages gnome)
68 #:use-module (gnu packages gperf)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages guile)
71 #:use-module (gnu packages libcanberra)
72 #:use-module (gnu packages libunwind)
73 #:use-module (gnu packages haskell)
74 #:use-module (gnu packages mp3)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages netpbm)
79 #:use-module (gnu packages ocaml)
80 #:use-module (gnu packages python)
81 #:use-module (gnu packages readline)
82 #:use-module (gnu packages xorg)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages databases)
85 #:use-module (gnu packages sdl)
86 #:use-module (gnu packages texinfo)
87 #:use-module (gnu packages check)
88 #:use-module (gnu packages fonts)
89 #:use-module (gnu packages fontutils)
90 #:use-module (gnu packages gstreamer)
91 #:use-module (gnu packages bash)
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages pulseaudio)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages zip)
98 #:use-module (gnu packages xiph)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages lua)
101 #:use-module (gnu packages video)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages tcl)
104 #:use-module (gnu packages xdisorg)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages pcre)
107 #:use-module (guix build-system gnu)
108 #:use-module (guix build-system haskell)
109 #:use-module (guix build-system python)
110 #:use-module (guix build-system cmake)
111 #:use-module (guix build-system trivial))
112
113 (define-public gnubg
114 (package
115 (name "gnubg")
116 (version "1.02")
117 (source
118 (origin
119 (method url-fetch)
120 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
121 version ".000-sources." "tar.gz"))
122 (sha256
123 (base32
124 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
125 (build-system gnu-build-system)
126 (inputs `(("glib" ,glib)
127 ("readline" ,readline)
128 ("gtk+" ,gtk+-2)
129 ("mesa" ,mesa)
130 ("glu" ,glu)
131 ("gtkglext" ,gtkglext)
132 ("sqlite" ,sqlite)
133 ("libcanberra" ,libcanberra)))
134 (native-inputs `(("python-2" ,python-2)
135 ("pkg-config" ,pkg-config)))
136 (home-page "http://gnubg.org")
137 (synopsis "Backgammon game")
138 (description "The GNU backgammon application can be used for playing, analyzing and
139 teaching the game. It has an advanced evaluation engine based on artificial
140 neural networks suitable for both beginners and advanced players. In
141 addition to a command-line interface, it also features an attractive, 3D
142 representation of the playing board.")
143 (license license:gpl3+)))
144
145 (define-public gnubik
146 (package
147 (name "gnubik")
148 (version "2.4.2")
149 (source
150 (origin
151 (method url-fetch)
152 (uri (string-append "mirror://gnu/gnubik/gnubik-"
153 version ".tar.gz"))
154 (sha256
155 (base32
156 "0mhpfnxzbns0wfrsjv5vafqr34770rbvkmdzxk0x0aq67hb3zyl5"))))
157 (build-system gnu-build-system)
158 (inputs `(("gtk+" ,gtk+-2)
159 ("mesa" ,mesa)
160 ("glu" ,glu)
161 ("libx11" ,libx11)
162 ("guile" ,guile-2.0)
163 ("gtkglext" ,gtkglext)))
164 (native-inputs `(("gettext" ,gnu-gettext)
165 ("pkg-config" ,pkg-config)))
166 (home-page "https://www.gnu.org/software/gnubik/")
167 (synopsis "3d Rubik's cube game")
168 (description
169 "GNUbik is a puzzle game in which you must manipulate a cube to make
170 each of its faces have a uniform color. The game is customizable, allowing
171 you to set the size of the cube (the default is 3x3) or to change the colors.
172 You may even apply photos to the faces instead of colors. The game is
173 scriptable with Guile.")
174 (license license:gpl3+)))
175
176 (define-public abbaye
177 (package
178 (name "abbaye")
179 (version "1.13")
180 (source
181 (origin
182 (method url-fetch)
183 (uri (string-append "https://storage.googleapis.com/"
184 "google-code-archive-downloads/v2/code.google.com/"
185 "abbaye-for-linux/abbaye-for-linux-src-"
186 version ".tar.gz"))
187 (sha256
188 (base32
189 "1wgvckgqa2084rbskxif58wbb83xbas8s1i8s7d57xbj08ryq8rk"))))
190 (build-system gnu-build-system)
191 (arguments
192 '(#:modules ((ice-9 match)
193 (guix build gnu-build-system)
194 (guix build utils))
195 #:phases (modify-phases %standard-phases
196 (add-after 'set-paths 'set-sdl-paths
197 (lambda* (#:key inputs #:allow-other-keys)
198 (setenv "CPATH"
199 (string-append (assoc-ref inputs "sdl-union")
200 "/include/SDL"))))
201 (add-after 'patch-source-shebangs 'patch-makefile
202 (lambda* (#:key outputs #:allow-other-keys)
203 ;; Replace /usr with package output directory.
204 (for-each (lambda (file)
205 (substitute* file
206 (("/usr") (assoc-ref outputs "out"))))
207 '("makefile" "src/pantallas.c" "src/comun.h"))))
208 (add-before 'install 'make-install-dirs
209 (lambda* (#:key outputs #:allow-other-keys)
210 (let ((prefix (assoc-ref outputs "out")))
211 ;; Create directories that the makefile assumes exist.
212 (mkdir-p (string-append prefix "/bin"))
213 (mkdir-p (string-append prefix "/share/applications"))
214 (mkdir-p (string-append prefix "/share/pixmaps")))))
215 ;; No configure script.
216 (delete 'configure))
217 #:tests? #f)) ;; No check target.
218 (native-inputs `(("pkg-config" ,pkg-config)))
219 (inputs `(("sdl-union" ,(sdl-union))))
220 (home-page "http://code.google.com/p/abbaye-for-linux/")
221 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
222 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
223 France. The Cathars, who preach about good Christian beliefs, were being
224 expelled by the Catholic Church out of the Languedoc region in France. One of
225 them, called Jean Raymond, found an old church in which to hide, not knowing
226 that beneath its ruins lay buried an ancient evil.")
227 (license license:gpl3+)))
228
229 (define-public pingus
230 (package
231 (name "pingus")
232 (version "0.7.6")
233 (source
234 (origin
235 (method url-fetch)
236 (uri (string-append "http://pingus.googlecode.com/files/pingus-"
237 version ".tar.bz2"))
238 (sha256
239 (base32
240 "0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"))
241 (patches (search-patches "pingus-sdl-libs-config.patch"))))
242 (build-system gnu-build-system)
243 (native-inputs `(("pkg-config" ,pkg-config)
244 ("scons" ,scons)))
245 (inputs `(("sdl" ,sdl)
246 ("sdl-image" ,sdl-image)
247 ("sdl-mixer" ,sdl-mixer)
248 ("mesa" ,mesa)
249 ("glu" ,glu)
250 ("libpng" ,libpng)
251 ("boost" ,boost)))
252 (arguments
253 '(#:tests? #f ;no check target
254 #:phases
255 (alist-delete
256 'configure
257 (alist-replace
258 'install
259 (lambda* (#:key outputs #:allow-other-keys)
260 (zero? (system* "make" "install"
261 (string-append "PREFIX="
262 (assoc-ref outputs "out")))))
263 %standard-phases))))
264 (home-page "http://pingus.seul.org/welcome.html")
265 (synopsis "Lemmings clone")
266 (description
267 "Pingus is a free Lemmings-like puzzle game in which the player takes
268 command of a bunch of small animals and has to guide them through levels.
269 Since the animals walk on their own, the player can only influence them by
270 giving them commands, like build a bridge, dig a hole, or redirect all animals
271 in the other direction. Multiple such commands are necessary to reach the
272 level's exit. The game is presented in a 2D side view.")
273 ;; Some source files are under bsd-3 and gpl2+ licenses.
274 (license license:gpl3+)))
275
276 (define-public talkfilters
277 (package
278 (name "talkfilters")
279 (version "2.3.8")
280 (source
281 (origin
282 (method url-fetch)
283 (uri (string-append "http://www.hyperrealm.com/" name "/"
284 name "-" version ".tar.gz"))
285 (sha256
286 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
287 (build-system gnu-build-system)
288 (home-page "http://www.gnu.org/software/talkfilters")
289 (synopsis "Convert English text to humorous dialects")
290 (description "The GNU Talk Filters are programs that convert English text
291 into stereotyped or otherwise humorous dialects. The filters are provided as
292 a C library, so they can easily be integrated into other programs.")
293 (license license:gpl2+)))
294
295 (define-public cmatrix
296 (package
297 (name "cmatrix")
298 (version "1.2a")
299 (source
300 (origin
301 (method url-fetch)
302 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
303 ".tar.gz"))
304 (sha256
305 (base32
306 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
307 (build-system gnu-build-system)
308 (arguments
309 '(#:phases
310 (alist-replace 'configure
311 (lambda* (#:key outputs #:allow-other-keys)
312 ;; This old `configure' script doesn't support
313 ;; variables passed as arguments.
314 (let ((out (assoc-ref outputs "out")))
315 (setenv "CONFIG_SHELL" (which "bash"))
316 (zero?
317 (system* "./configure"
318 (string-append "--prefix=" out)))))
319 %standard-phases)))
320 (inputs `(("ncurses" ,ncurses)))
321 (home-page "http://www.asty.org/cmatrix")
322 (synopsis "Simulate the display from \"The Matrix\"")
323 (description "CMatrix simulates the display from \"The Matrix\" and is
324 based on the screensaver from the movie's website. It works with terminal
325 settings up to 132x300 and can scroll lines all at the same rate or
326 asynchronously and at a user-defined speed.")
327 (license license:gpl2+)))
328
329 (define-public chess
330 (package
331 (name "chess")
332 (version "6.2.3")
333 (source
334 (origin
335 (method url-fetch)
336 (uri (string-append "mirror://gnu/chess/gnuchess-" version
337 ".tar.gz"))
338 (sha256
339 (base32
340 "10hvnfhj9bkpz80x20jgxyqvgvrcgfdp8sfcbcrf1dgjn9v936bq"))))
341 (build-system gnu-build-system)
342 (home-page "http://www.gnu.org/software/chess")
343 (synopsis "Full chess implementation")
344 (description "GNU Chess is a chess engine. It allows you to compete
345 against the computer in a game of chess, either through the default terminal
346 interface or via an external visual interface such as GNU XBoard.")
347 (license license:gpl3+)))
348
349 (define freedink-engine
350 (package
351 (name "freedink-engine")
352 (version "108.4")
353 (source (origin
354 (method url-fetch)
355 (uri (string-append "mirror://gnu/freedink/freedink-" version
356 ".tar.gz"))
357 (sha256
358 (base32
359 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
360 (build-system gnu-build-system)
361 (arguments `(#:configure-flags '("--disable-embedded-resources")))
362 (native-inputs `(("gettext" ,gnu-gettext)
363 ("pkg-config" ,pkg-config)))
364 (inputs `(("sdl" ,sdl)
365 ("sdl-image" ,sdl-image)
366 ("sdl-mixer" ,sdl-mixer)
367 ("sdl-ttf" ,sdl-ttf)
368 ("sdl-gfx" ,sdl-gfx)
369 ("fontconfig" ,fontconfig)
370 ("check" ,check)))
371 (home-page "http://www.gnu.org/software/freedink/")
372 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
373 (description
374 "GNU FreeDink is a free and portable re-implementation of the engine
375 for the role-playing game Dink Smallwood. It supports not only the original
376 game data files but it also supports user-produced game mods or \"D-Mods\".
377 To that extent, it also includes a front-end for managing all of your D-Mods.")
378 (license license:gpl3+)))
379
380 (define freedink-data
381 (package
382 (name "freedink-data")
383 (version "1.08.20140901")
384 (source (origin
385 (method url-fetch)
386 (uri (string-append "mirror://gnu/freedink/freedink-data-"
387 version ".tar.gz"))
388 (sha256
389 (base32
390 "04f1aa8gfz30qkgv7chjz5n1s8v5hbqs01h2113cq1ylm3isd5sp"))))
391 (build-system gnu-build-system)
392 (arguments
393 `(#:phases (alist-delete 'configure (alist-delete 'check %standard-phases))
394 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
395 (home-page "http://www.gnu.org/software/freedink/")
396 (synopsis "Game data for GNU Freedink")
397 (description
398 "This package contains the game data of GNU Freedink.")
399 (license license:gpl3+)))
400
401 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
402
403 (define-public freedink
404 ;; This is a wrapper that tells the engine where to find the data.
405 (package (inherit freedink-engine)
406 (name "freedink")
407 (build-system trivial-build-system)
408 (arguments
409 '(#:builder (begin
410 (use-modules (guix build utils))
411
412 (let* ((output (assoc-ref %outputs "out"))
413 (bin (string-append output "/bin"))
414 (executable (string-append bin "/freedink")))
415 (mkdir-p bin)
416 (call-with-output-file executable
417 (lambda (port)
418 (format port "#!~a/bin/sh
419 exec ~a/bin/freedink -refdir ~a/share/dink\n"
420 (assoc-ref %build-inputs "bash")
421 (assoc-ref %build-inputs "engine")
422 (assoc-ref %build-inputs "data"))
423 (chmod port #o777)))))
424 #:modules ((guix build utils))))
425 (inputs `(("engine" ,freedink-engine)
426 ("data" ,freedink-data)
427 ("bash" ,bash)))
428 (native-inputs '())))
429
430 (define-public xboard
431 (package
432 (name "xboard")
433 (version "4.9.1")
434 (source
435 (origin
436 (method url-fetch)
437 (uri (string-append "mirror://gnu/xboard/xboard-" version
438 ".tar.gz"))
439 (sha256
440 (base32
441 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
442 (build-system gnu-build-system)
443 (inputs
444 `(("gtk+" ,gtk+-2)
445 ("librsvg" ,librsvg)))
446 (native-inputs
447 `(("texinfo" ,texinfo)
448 ("pkg-config" ,pkg-config)))
449 (home-page "https://www.gnu.org/software/xboard")
450 (synopsis "Graphical user interface for chess programs")
451 (description "GNU XBoard is a graphical board for all varieties of chess,
452 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
453 and Makruk. Several lesser-known variants are also supported. It presents a
454 fully interactive graphical interface and it can load and save games in the
455 Portable Game Notation.")
456 (license license:gpl3+)))
457
458
459 (define-public xboing
460 (package
461 (name "xboing")
462 (version "2.4")
463 (source
464 (origin
465 (method url-fetch)
466 (uri (string-append "http://www.techrescue.org/xboing/xboing"
467 version ".tar.gz"))
468 (sha256
469 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
470 (arguments
471 `(#:tests? #f
472 #:phases
473 (alist-replace
474 'configure
475 (lambda* (#:key outputs #:allow-other-keys)
476
477 (substitute* "Imakefile"
478 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
479 (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
480 "/include/X11")))
481
482 (substitute* "Imakefile"
483 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
484
485 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
486
487 (zero? (system* "xmkmf" "-a"
488 (string-append "-DProjectRoot="
489 (assoc-ref outputs "out")))))
490 (alist-replace 'install
491 (lambda* (#:key outputs #:allow-other-keys)
492 (and
493 (zero? (system* "make" "install.man"))
494 (zero? (system* "make" "install"))))
495 %standard-phases))))
496 (inputs `(("libx11" ,libx11)
497 ("libxext" ,libxext)
498 ("libxpm" ,libxpm)))
499 (native-inputs `(("imake" ,imake)
500 ("inetutils" ,inetutils)
501 ("makedepend" ,makedepend)))
502 (build-system gnu-build-system)
503 (home-page "http://www.techrescue.org/xboing")
504 (synopsis "Ball and paddle game")
505 (description "XBoing is a blockout type game where you have a paddle which
506 you control to bounce a ball around the game zone destroying blocks with a
507 proton ball. Each block carries a different point value. The more blocks you
508 destroy, the better your score. The person with the highest score wins.")
509 (license (license:x11-style "file://COPYING"
510 "Very similar to the X11 licence."))))
511
512 (define-public gtypist
513 (package
514 (name "gtypist")
515 (version "2.9.5")
516 (source (origin
517 (method url-fetch)
518 (uri (string-append "mirror://gnu/gtypist/gtypist-"
519 version ".tar.xz"))
520 (sha256
521 (base32
522 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
523 (modules '((guix build utils)))
524 (snippet
525 ;; We do not provide `ncurses.h' within an `ncursesw'
526 ;; sub-directory, so patch the source accordingly. See
527 ;; <http://bugs.gnu.org/19018>.
528 '(for-each (lambda (file)
529 (substitute* file
530 (("ncursesw/ncurses.h")
531 "ncurses.h")))
532 (find-files "." "configure$|\\.c$")))))
533 (build-system gnu-build-system)
534 (inputs `(("ncurses" ,ncurses)
535 ("perl" ,perl)))
536 (home-page "http://www.gnu.org/software/gtypist/")
537 (synopsis "Typing tutor")
538 (description
539 "GNU Typist is a universal typing tutor. It can be used to learn and
540 practice touch-typing. Several tutorials are included; in addition to
541 tutorials for the standard QWERTY layout, there are also tutorials for the
542 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
543 are primarily in English, however some in other languages are provided.")
544 (license license:gpl3+)))
545
546 (define-public irrlicht
547 (package
548 (name "irrlicht")
549 (version "1.8.4")
550 (source (origin
551 (method url-fetch)
552 (uri (string-append
553 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
554 (version-major+minor version)
555 "/" version "/irrlicht-" version ".zip"))
556 (sha256
557 (base32
558 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
559 (build-system gnu-build-system)
560 (arguments
561 `(#:phases (alist-cons-after
562 'unpack 'fix-build-env
563 (lambda* (#:key outputs #:allow-other-keys)
564 (let ((out (assoc-ref outputs "out")))
565 (substitute* "Makefile"
566 (("INSTALL_DIR = /usr/local/lib")
567 (string-append "INSTALL_DIR = " out "/lib")))
568 ;; The Makefile assumes these directories exist.
569 (mkdir-p (string-append out "/lib"))
570 (mkdir-p (string-append out "/include"))))
571 (alist-replace
572 'unpack
573 (lambda* (#:key source #:allow-other-keys)
574 (and (zero? (system* "unzip" source))
575 ;; The actual source is buried a few directories deep.
576 (chdir (string-append "irrlicht-" ,version "/source/Irrlicht/"))))
577 ;; No configure script
578 (alist-delete 'configure %standard-phases)))
579 #:tests? #f ; no check target
580 #:make-flags '("CC=gcc" "sharedlib")))
581 (native-inputs
582 `(("unzip" ,unzip)))
583 (inputs
584 `(("mesa" ,mesa)
585 ("glu" ,glu)))
586 (synopsis "3D game engine written in C++")
587 (description
588 "The Irrlicht Engine is a high performance realtime 3D engine written in
589 C++. Features include an OpenGL renderer, extensible materials, scene graph
590 management, character animation, particle and other special effects, support
591 for common mesh file formats, and collision detection.")
592 (home-page "http://irrlicht.sourceforge.net/")
593 (license license:zlib)))
594
595 (define-public mars
596 ;; The latest release on SourceForge relies on an unreleased version of SFML
597 ;; with a different API, so we take the latest version from the official
598 ;; repository on Github.
599 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
600 (revision "1"))
601 (package
602 (name "mars")
603 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
604 (source (origin
605 (method git-fetch)
606 (uri (git-reference
607 (url "https://github.com/thelaui/M.A.R.S..git")
608 (commit commit)))
609 (file-name (string-append name "-" version))
610 (sha256
611 (base32
612 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
613 (patches (search-patches "mars-sfml-2.3.patch"
614 "mars-install.patch"))))
615 (build-system cmake-build-system)
616 (arguments
617 `(#:tests? #f ; There are no tests
618 #:phases
619 (modify-phases %standard-phases
620 (add-after 'unpack 'fix-install-path
621 (lambda _
622 (substitute* "src/CMakeLists.txt"
623 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
624 "${CMAKE_INSTALL_PREFIX}/bin"))
625 #t))
626 (add-after 'unpack 'fix-data-path
627 (lambda* (#:key outputs #:allow-other-keys)
628 (substitute* "src/System/settings.cpp"
629 (("C_dataPath = \"./data/\";")
630 (string-append "C_dataPath = \""
631 (assoc-ref outputs "out")
632 "/share/games/marsshooter/\";")))
633 #t)))))
634 (inputs
635 `(("mesa" ,mesa)
636 ("fribidi" ,fribidi)
637 ("taglib" ,taglib)
638 ("sfml" ,sfml)))
639 (home-page "http://marsshooter.org")
640 (synopsis "2D space shooter")
641 (description
642 "M.A.R.S. is a 2D space shooter with pretty visual effects and
643 attractive physics. Players can battle each other or computer controlled
644 enemies in different game modes such as space ball, death match, team death
645 match, cannon keep, and grave-itation pit.")
646 (license license:gpl3+))))
647
648 (define minetest-data
649 (package
650 (name "minetest-data")
651 (version "0.4.14")
652 (source (origin
653 (method url-fetch)
654 (uri (string-append
655 "https://github.com/minetest/minetest_game/archive/"
656 version ".tar.gz"))
657 (file-name (string-append name "-" version ".tar.gz"))
658 (sha256
659 (base32
660 "11fzdh4icx2yvjfz1skdql0d0wxpzdr006k993v33x72s0q2ig7f"))))
661 (build-system trivial-build-system)
662 (native-inputs
663 `(("source" ,source)
664 ("tar" ,tar)
665 ("gzip" ,(@ (gnu packages compression) gzip))))
666 (arguments
667 `(#:modules ((guix build utils))
668 #:builder (begin
669 (use-modules (guix build utils))
670 (let ((tar (string-append (assoc-ref %build-inputs "tar")
671 "/bin/tar"))
672 (install-dir (string-append
673 %output
674 "/share/minetest/games/minetest_game"))
675 (path (string-append (assoc-ref %build-inputs
676 "gzip")
677 "/bin")))
678 (setenv "PATH" path)
679 (system* tar "xvf" (assoc-ref %build-inputs "source"))
680 (chdir (string-append "minetest_game-" ,version))
681 (mkdir-p install-dir)
682 (copy-recursively "." install-dir)))))
683 (synopsis "Main game data for the Minetest game engine")
684 (description
685 "Game data for the Minetest infinite-world block sandox game.")
686 (home-page "http://minetest.net")
687 (license license:lgpl2.1+)))
688
689 (define-public minetest
690 (package
691 (name "minetest")
692 (version "0.4.14")
693 (source (origin
694 (method url-fetch)
695 (uri (string-append
696 "https://github.com/minetest/minetest/archive/"
697 version ".tar.gz"))
698 (file-name (string-append name "-" version ".tar.gz"))
699 (sha256
700 (base32
701 "0m3hhk5icx4y4gd970z7ya2013fq4vvqbjljmck62ik03baf8g90"))))
702 (build-system cmake-build-system)
703 (arguments
704 '(#:configure-flags
705 (list "-DRUN_IN_PLACE=0"
706 "-DENABLE_FREETYPE=1"
707 "-DENABLE_GETTEXT=1"
708 (string-append "-DIRRLICHT_INCLUDE_DIR="
709 (assoc-ref %build-inputs "irrlicht")
710 "/include/irrlicht")
711 (string-append "-DCURL_INCLUDE_DIR="
712 (assoc-ref %build-inputs "curl")
713 "/include/curl"))
714 #:tests? #f)) ; no check target
715 (native-search-paths
716 (list (search-path-specification
717 (variable "MINETEST_SUBGAME_PATH")
718 (files '("share/minetest/games")))))
719 (native-inputs
720 `(("pkg-config" ,pkg-config)))
721 (inputs
722 `(("irrlicht" ,irrlicht)
723 ("libpng" ,libpng)
724 ("libjpeg" ,libjpeg)
725 ("libxxf86vm" ,libxxf86vm)
726 ("mesa" ,mesa)
727 ("libogg" ,libogg)
728 ("libvorbis" ,libvorbis)
729 ("openal" ,openal)
730 ("freetype" ,(@ (gnu packages fontutils) freetype))
731 ("curl" ,curl)
732 ("luajit" ,luajit)
733 ("gettext" ,gnu-gettext)
734 ("sqlite" ,sqlite)))
735 (propagated-inputs
736 `(("minetest-data" ,minetest-data)))
737 (synopsis "Infinite-world block sandbox game")
738 (description
739 "Minetest is a sandbox construction game. Players can create and destroy
740 various types of blocks in a three-dimensional open world. This allows
741 forming structures in every possible creation, on multiplayer servers or as a
742 single player. Mods and texture packs allow players to personalize the game
743 in different ways.")
744 (home-page "http://minetest.net")
745 (license license:lgpl2.1+)))
746
747 (define glkterm
748 (package
749 (name "glkterm")
750 (version "1.0.4")
751 (source
752 (origin
753 (method url-fetch)
754 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
755 "glk/implementations/glkterm-104.tar.gz"))
756 (sha256
757 (base32
758 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
759 (build-system gnu-build-system)
760 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
761 (arguments
762 '(#:tests? #f ; no check target
763 #:phases
764 (alist-replace
765 'install
766 (lambda* (#:key outputs #:allow-other-keys)
767 (let* ((out (assoc-ref outputs "out"))
768 (inc (string-append out "/include")))
769 (mkdir-p inc)
770 (for-each
771 (lambda (file)
772 (copy-file file (string-append inc "/" file)))
773 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
774 (mkdir (string-append out "/lib"))
775 (copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
776 (alist-delete 'configure %standard-phases))))
777 (home-page "http://www.eblong.com/zarf/glk/")
778 (synopsis "Curses Implementation of the Glk API")
779 (description
780 "Glk defines a portable API for applications with text UIs. It was
781 primarily designed for interactive fiction, but it should be suitable for many
782 interactive text utilities, particularly those based on a command line.
783 This is an implementation of the Glk library which runs in a terminal window,
784 using the curses.h library for screen control.")
785 (license (license:fsf-free "file://README"))))
786
787 (define-public glulxe
788 (package
789 (name "glulxe")
790 (version "0.5.2")
791 (source
792 (origin
793 (method url-fetch)
794 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
795 "glulx/interpreters/glulxe/glulxe-052.tar.gz"))
796 (sha256
797 (base32
798 "19iw6kl8ncqcy9pv4gsqfh3xsa1n94zd234rqavvmxccnf3nj19g"))))
799 (build-system gnu-build-system)
800 (inputs `(("glk" ,glkterm)))
801 (arguments
802 '(#:tests? #f ; no check target
803 #:make-flags
804 (let* ((glk (assoc-ref %build-inputs "glk")))
805 (list (string-append "GLKINCLUDEDIR=" glk "/include")
806 (string-append "GLKLIBDIR=" glk "/lib")
807 (string-append "GLKMAKEFILE=" "Make.glkterm")))
808 #:phases
809 (alist-replace
810 'install
811 (lambda* (#:key outputs #:allow-other-keys)
812 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
813 (mkdir-p bin)
814 (copy-file "glulxe" (string-append bin "/glulxe"))))
815 (alist-delete 'configure %standard-phases))))
816 (home-page "http://www.eblong.com/zarf/glulx/")
817 (synopsis "Interpreter for Glulx VM")
818 (description
819 "Glulx is a 32-bit portable virtual machine intended for writing and
820 playing interactive fiction. It was designed by Andrew Plotkin to relieve
821 some of the restrictions in the venerable Z-machine format. This is the
822 reference interpreter, using Glk API.")
823 (license (license:fsf-free "file://README"))))
824
825 (define-public fizmo
826 (package
827 (name "fizmo")
828 (version "0.7.9")
829 (source (origin
830 (method url-fetch)
831 (uri (string-append "https://christoph-ender.de/fizmo/source/"
832 name "-" version ".tar.gz"))
833 (sha256
834 (base32
835 "1w7cgyjrhgkadjrazijzhq7zh0pl5bfc6wl7mdpgh020y4kp46d7"))))
836 (build-system gnu-build-system)
837 (arguments
838 '(#:configure-flags
839 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
840 (ncurses (assoc-ref %build-inputs "ncurses")))
841 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
842 (string-append "jpeg_LIBS=-ljpeg")
843 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
844 (string-append "ncursesw_LIBS=-lncursesw")))))
845 (native-inputs
846 `(("pkg-config" ,pkg-config)))
847 (inputs
848 `(("libjpeg" ,libjpeg)
849 ("libpng" ,libpng)
850 ("libsndfile" ,libsndfile)
851 ("libxml2" ,libxml2)
852 ("ncurses" ,ncurses)
853 ("sdl" ,sdl)))
854 (home-page "https://christoph-ender.de/fizmo/")
855 (synopsis "Z-machine interpreter")
856 (description
857 "Fizmo is a console-based Z-machine interpreter. It is used to play
858 interactive fiction, also known as text adventures, which were implemented
859 either by Infocom or created using the Inform compiler.")
860 (license license:bsd-3)))
861
862 (define-public retroarch
863 (package
864 (name "retroarch")
865 (version "1.3.6")
866 (source
867 (origin
868 (method url-fetch)
869 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
870 version ".tar.gz"))
871 (file-name (string-append name "-" version ".tar.gz"))
872 (sha256
873 (base32 "1xar0wagcz50clwwkvjg4zq9m1sjqw47vw3xx44pisdj94g21m5y"))))
874 (build-system gnu-build-system)
875 (arguments
876 '(#:tests? #f ; no tests
877 #:phases
878 (alist-replace
879 'configure
880 (lambda _
881 (substitute* "qb/qb.libs.sh"
882 (("/bin/true") (which "true")))
883 (zero? (system*
884 "./configure"
885 (string-append "--prefix=" %output)
886 (string-append "--global-config-dir=" %output "/etc"))))
887 %standard-phases)))
888 (inputs
889 `(("alsa-lib" ,alsa-lib)
890 ("ffmpeg" ,ffmpeg)
891 ("freetype" ,freetype)
892 ("libxinerama" ,libxinerama)
893 ("libxkbcommon" ,libxkbcommon)
894 ("libxml2" ,libxml2)
895 ("libxv" ,libxv)
896 ("mesa" ,mesa)
897 ("openal" ,openal)
898 ("pulseaudio" ,pulseaudio)
899 ("python" ,python)
900 ("sdl" ,sdl2)
901 ("udev" ,eudev)
902 ("zlib" ,zlib)))
903 (native-inputs
904 `(("pkg-config" ,pkg-config)
905 ("which" ,which)))
906 (home-page "http://www.libretro.com/")
907 (synopsis "Reference frontend for the libretro API")
908 (description
909 "Libretro is a simple but powerful development interface that allows for
910 the easy creation of emulators, games and multimedia applications that can plug
911 straight into any libretro-compatible frontend. RetroArch is the official
912 reference frontend for the libretro API, currently used by most as a modular
913 multi-system game/emulator system.")
914 (license license:gpl3+)))
915
916 (define-public gnugo
917 (package
918 (name "gnugo")
919 (version "3.8")
920 (source (origin
921 (method url-fetch)
922 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
923 ".tar.gz"))
924 (sha256
925 (base32
926 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
927 (build-system gnu-build-system)
928 (inputs `(("readline" ,readline)))
929 (synopsis "Play the game of Go")
930 (description
931 "GNU Go is a program that plays the game of Go, in which players
932 place stones on a grid to form territory or capture other stones. While
933 it can be played directly from the terminal, rendered in ASCII characters,
934 it is also possible to play GNU Go with 3rd party graphical interfaces or
935 even in Emacs. It supports the standard game storage format (SGF, Smart
936 Game Format) and inter-process communication format (GMP, Go Modem
937 Protocol).")
938 (home-page "http://www.gnu.org/software/gnugo/")
939 (license license:gpl3+)))
940
941 (define-public extremetuxracer
942 (package
943 (name "extremetuxracer")
944 (version "0.7.3")
945 (source (origin
946 (method url-fetch)
947 (uri (string-append
948 "http://downloads.sourceforge.net/project/extremetuxracer/releases/"
949 version "/etr-" version ".tar.xz"))
950 (sha256
951 (base32
952 "1lg3z7jhzmsjym53qss8mbydny8hafwjnfsc7x91hrr9zrkwblly"))))
953 (build-system gnu-build-system)
954 (native-inputs
955 `(("pkg-config" ,pkg-config)))
956 (inputs
957 `(("glu" ,glu)
958 ("sfml" ,sfml)))
959 (synopsis "High speed arctic racing game based on Tux Racer")
960 ;; Snarfed straight from Debian
961 (description "Extreme Tux Racer, or etracer as it is called for short, is
962 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
963 game is to slide down a snow- and ice-covered mountain as quickly as possible,
964 avoiding the trees and rocks that will slow you down.
965
966 Collect herrings and other goodies while sliding down the hill, but avoid fish
967 bones.
968
969 This game is based on the GPL version of the famous game TuxRacer.")
970 (home-page "http://sourceforge.net/projects/extremetuxracer/")
971 (license license:gpl2+)))
972
973 (define-public gnujump
974 (package
975 (name "gnujump")
976 (version "1.0.8")
977 (source (origin
978 (method url-fetch)
979 (uri (string-append "mirror://gnu/gnujump/gnujump-"
980 version ".tar.gz"))
981 (sha256
982 (base32
983 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
984 (build-system gnu-build-system)
985 (arguments
986 '(#:phases
987 (modify-phases %standard-phases
988 (add-before
989 'configure 'link-libm
990 (lambda _ (setenv "LIBS" "-lm"))))))
991 (inputs
992 `(("glu" ,glu)
993 ("mesa" ,mesa)
994 ("sdl" ,sdl)
995 ("sdl-image" ,sdl-image)
996 ("sdl-mixer" ,sdl-mixer)))
997 (home-page "http://gnujump.es.gnu.org/")
998 (synopsis
999 "Game of jumping to the next floor, trying not to fall")
1000 (description
1001 "GNUjump is a simple, yet addictive game in which you must jump from
1002 platform to platform to avoid falling, while the platforms drop at faster rates
1003 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1004 falling, themeable graphics and sounds, and replays.")
1005 (license license:gpl3+)))
1006
1007 (define-public wesnoth
1008 (package
1009 (name "wesnoth")
1010 (version "1.12.6")
1011 (source (origin
1012 (method url-fetch)
1013 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1014 (version-major+minor version) "/wesnoth-"
1015 version "/"
1016 name "-" version ".tar.bz2"))
1017 (sha256
1018 (base32
1019 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1020 (build-system cmake-build-system)
1021 (arguments
1022 '(#:tests? #f ; no check target
1023 #:configure-flags
1024 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1025 ;; boost/mpl/assert.hpp:313:58: error:
1026 ;; use of old-style cast [-Werror=old-style-cast]
1027 ;; [...]
1028 ;; cc1plus: all warnings being treated as errors
1029 '("-DENABLE_STRICT_COMPILATION=OFF")))
1030 (native-inputs
1031 `(("gettext" ,gnu-gettext)
1032 ("pkg-config" ,pkg-config)))
1033 (inputs
1034 `(("boost" ,boost)
1035 ("dbus" ,dbus)
1036 ("fribidi" ,fribidi)
1037 ("libvorbis" ,libvorbis)
1038 ("pango" ,pango)
1039 ("sdl-image" ,sdl-image)
1040 ("sdl-mixer" ,sdl-mixer)
1041 ("sdl-net" ,sdl-net)
1042 ("sdl-ttf" ,sdl-ttf)))
1043 (home-page "http://www.wesnoth.org/")
1044 (synopsis "Turn-based strategy game")
1045 (description
1046 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1047 with several single player campaigns, and multiplayer games (both networked and
1048 local).
1049
1050 Battle for control on a range of maps, using variety of units which have
1051 advantages and disadvantages against different types of attacks. Units gain
1052 experience and advance levels, and are carried over from one scenario to the
1053 next campaign.")
1054 (license license:gpl2+)))
1055
1056 (define-public dosbox
1057 (package
1058 (name "dosbox")
1059 (version "0.74.svn3947")
1060 (source (origin
1061 (method svn-fetch)
1062 (uri (svn-reference
1063 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1064 (revision 3947)))
1065 (file-name (string-append name "-" version "-checkout"))
1066 ;; Use SVN head, since the last release (2010) is incompatible
1067 ;; with GCC 4.8+ (see
1068 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1069 (sha256
1070 (base32
1071 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1072 (build-system gnu-build-system)
1073 (arguments
1074 `(#:phases (modify-phases %standard-phases
1075 (add-after
1076 'unpack 'autogen.sh
1077 (lambda _
1078 (zero? (system* "sh" "autogen.sh")))))))
1079 (native-inputs
1080 `(("autoconf" ,autoconf)
1081 ("automake" ,automake)))
1082 (inputs
1083 `(("sdl" ,sdl)
1084 ("libpng" ,libpng)
1085 ("zlib" ,zlib)
1086 ("alsa-lib" ,alsa-lib)
1087 ("glu" ,glu)
1088 ("mesa" ,mesa)))
1089 (home-page "http://www.dosbox.com")
1090 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1091 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1092 also emulates CPU:286/386 realmode/protected mode, Directory
1093 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1094 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1095 older games.")
1096 (license license:gpl2+)))
1097
1098 (define-public gamine
1099 (package
1100 (name "gamine")
1101 (version "1.4")
1102 (source (origin
1103 (method url-fetch)
1104 (uri (string-append "mirror://sourceforge/gamine-game/"
1105 "gamine-" version ".tar.gz"))
1106 (sha256
1107 (base32
1108 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1109 (build-system gnu-build-system)
1110 (native-inputs
1111 `(("pkg-config" ,pkg-config)
1112 ("intltool" ,intltool)))
1113 (inputs
1114 `(("gstreamer" ,gstreamer)
1115 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1116 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1117 ("gtk+" ,gtk+)))
1118 (arguments
1119 `(#:tests? #f
1120 #:make-flags
1121 (let ((out (assoc-ref %outputs "out")))
1122 (list (string-append "PREFIX=" out)
1123 (string-append "SYSCONFDIR=" out "/etc")))
1124 #:phases
1125 (modify-phases %standard-phases
1126 (delete 'configure)
1127 (add-after
1128 'install 'wrap-gamine
1129 (lambda* (#:key outputs #:allow-other-keys)
1130 (let ((out (assoc-ref outputs "out"))
1131 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1132 (wrap-program (string-append out "/bin/gamine")
1133 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1134 #t)))))
1135 (home-page "http://gamine-game.sourceforge.net/")
1136 (synopsis "Mouse and keyboard discovery for children")
1137 (description
1138 "Gamine is a game designed for young children who are learning to use the
1139 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1140 on the screen and keyboard to display letters.")
1141 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1142 (license license:gpl3)))
1143
1144 (define-public raincat
1145 (package
1146 (name "raincat")
1147 (version "1.1.1.3")
1148 (source
1149 (origin
1150 (method url-fetch)
1151 (uri (string-append
1152 "http://hackage.haskell.org/package/Raincat/Raincat-"
1153 version
1154 ".tar.gz"))
1155 (sha256
1156 (base32
1157 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1158 (build-system haskell-build-system)
1159 (inputs
1160 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1161 ("ghc-mtl" ,ghc-mtl)
1162 ("ghc-random" ,ghc-random)
1163 ("ghc-glut" ,ghc-glut)
1164 ("freeglut" ,freeglut)
1165 ("ghc-opengl" ,ghc-opengl)
1166 ("ghc-sdl" ,ghc-sdl)
1167 ("ghc-sdl-image" ,ghc-sdl-image)
1168 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1169 (home-page "http://raincat.bysusanlin.com/")
1170 (synopsis "Puzzle game with a cat in lead role")
1171 (description "Project Raincat is a game developed by Carnegie Mellon
1172 students through GCS during the Fall 2008 semester. Raincat features game
1173 play inspired from classics Lemmings and The Incredible Machine. The project
1174 proved to be an excellent learning experience for the programmers. Everything
1175 is programmed in Haskell.")
1176 (license license:bsd-3)))
1177
1178 (define-public manaplus
1179 (package
1180 (name "manaplus")
1181 (version "1.6.8.14")
1182 (source (origin
1183 (method url-fetch)
1184 (uri (string-append
1185 "http://repo.manaplus.org/manaplus/download/"
1186 version "/manaplus-" version ".tar.xz"))
1187 (sha256
1188 (base32
1189 "1mah4w6ng0j76cjzbw8y9m2ds5f1w5ka9b1k3gzgvxh4yaphqnff"))))
1190 (build-system gnu-build-system)
1191 (arguments
1192 '(#:configure-flags
1193 (list (string-append "CPPFLAGS=-I"
1194 (assoc-ref %build-inputs "sdl-union")
1195 "/include/SDL"))))
1196 (native-inputs
1197 `(("pkg-config" ,pkg-config)))
1198 (inputs
1199 `(("glu" ,glu)
1200 ("curl" ,curl)
1201 ("libxml2" ,libxml2)
1202 ("mesa" ,mesa)
1203 ("physfs" ,physfs)
1204 ("sdl-union" ,(sdl-union))))
1205 (home-page "http://manaplus.org")
1206 (synopsis "Client for 'The Mana World' and similar games")
1207 (description
1208 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1209 fully supported client for @uref{http://www.themanaworld.org, The mana
1210 world}, @uref{http://evolonline.org, Evol Online} and
1211 @uref{http://landoffire.org, Land of fire}.")
1212 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1213 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1214 ;; The rest is under GPL2+.
1215 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1216
1217 (define-public mupen64plus-core
1218 (package
1219 (name "mupen64plus-core")
1220 (version "2.5")
1221 (source
1222 (origin
1223 (method url-fetch)
1224 (uri (string-append
1225 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1226 version ".tar.gz"))
1227 (file-name (string-append name "-" version ".tar.gz"))
1228 (sha256
1229 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1230 (build-system gnu-build-system)
1231 (native-inputs
1232 `(("pkg-config" ,pkg-config)
1233 ("which" ,which)))
1234 (inputs
1235 `(("freetype" ,freetype)
1236 ("glu" ,glu)
1237 ("libpng" ,libpng)
1238 ("mesa" ,mesa)
1239 ("sdl2" ,sdl2)
1240 ("zlib" ,zlib)))
1241 (arguments
1242 '(#:phases
1243 (modify-phases %standard-phases
1244 ;; The mupen64plus build system has no configure phase.
1245 (delete 'configure)
1246 ;; Makefile is in a subdirectory.
1247 (add-before
1248 'build 'cd-to-project-dir
1249 (lambda _
1250 (chdir "projects/unix"))))
1251 #:make-flags (let ((out (assoc-ref %outputs "out")))
1252 (list "all" (string-append "PREFIX=" out)))
1253 ;; There are no tests.
1254 #:tests? #f))
1255 ;; As per the Makefile (in projects/unix/Makefile):
1256 (supported-systems '("i686-linux" "x86_64-linux"))
1257 (home-page "http://www.mupen64plus.org/")
1258 (synopsis "Nintendo 64 emulator core library")
1259 (description
1260 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1261 which is capable of accurately playing many games. This package contains the
1262 core library.")
1263 (license license:gpl2+)))
1264
1265 (define-public mupen64plus-audio-sdl
1266 (package
1267 (name "mupen64plus-audio-sdl")
1268 (version "2.5")
1269 (source
1270 (origin
1271 (method url-fetch)
1272 (uri (string-append
1273 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1274 version ".tar.gz"))
1275 (file-name (string-append name "-" version ".tar.gz"))
1276 (sha256
1277 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1278 (build-system gnu-build-system)
1279 (native-inputs
1280 `(("pkg-config" ,pkg-config)
1281 ("which" ,which)))
1282 (inputs
1283 `(("mupen64plus-core" ,mupen64plus-core)
1284 ("sdl2" ,sdl2)))
1285 (arguments
1286 '(#:phases
1287 (modify-phases %standard-phases
1288 ;; The mupen64plus build system has no configure phase.
1289 (delete 'configure)
1290 ;; Makefile is in a subdirectory.
1291 (add-before
1292 'build 'cd-to-project-dir
1293 (lambda _
1294 (chdir "projects/unix"))))
1295 #:make-flags
1296 (let ((out (assoc-ref %outputs "out"))
1297 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1298 (list "all"
1299 (string-append "PREFIX=" out)
1300 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1301 ;; There are no tests.
1302 #:tests? #f))
1303 (home-page "http://www.mupen64plus.org/")
1304 (synopsis "Mupen64Plus SDL input plugin")
1305 (description
1306 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1307 which is capable of accurately playing many games. This package contains the
1308 SDL audio plugin.")
1309 (license license:gpl2+)))
1310
1311 (define-public mupen64plus-input-sdl
1312 (package
1313 (name "mupen64plus-input-sdl")
1314 (version "2.5")
1315 (source
1316 (origin
1317 (method url-fetch)
1318 (uri (string-append
1319 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1320 version ".tar.gz"))
1321 (file-name (string-append name "-" version ".tar.gz"))
1322 (sha256
1323 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1324 (build-system gnu-build-system)
1325 (native-inputs
1326 `(("which" ,which)))
1327 (inputs
1328 `(("mupen64plus-core" ,mupen64plus-core)
1329 ("sdl2" ,sdl2)))
1330 (arguments
1331 '(#:phases
1332 (modify-phases %standard-phases
1333 ;; The mupen64plus build system has no configure phase.
1334 (delete 'configure)
1335 ;; Makefile is in a subdirectory.
1336 (add-before
1337 'build 'cd-to-project-dir
1338 (lambda _
1339 (chdir "projects/unix"))))
1340 #:make-flags
1341 (let ((out (assoc-ref %outputs "out"))
1342 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1343 (list "all"
1344 (string-append "PREFIX=" out)
1345 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1346 ;; There are no tests.
1347 #:tests? #f))
1348 (home-page "http://www.mupen64plus.org/")
1349 (synopsis "Mupen64Plus SDL input plugin")
1350 (description
1351 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1352 which is capable of accurately playing many games. This package contains the
1353 SDL input plugin.")
1354 (license license:gpl2+)))
1355
1356 (define-public mupen64plus-rsp-hle
1357 (package
1358 (name "mupen64plus-rsp-hle")
1359 (version "2.5")
1360 (source
1361 (origin
1362 (method url-fetch)
1363 (uri (string-append
1364 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1365 version ".tar.gz"))
1366 (file-name (string-append name "-" version ".tar.gz"))
1367 (sha256
1368 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1369 (build-system gnu-build-system)
1370 (inputs
1371 `(("mupen64plus-core" ,mupen64plus-core)))
1372 (arguments
1373 '(#:phases
1374 (modify-phases %standard-phases
1375 ;; The mupen64plus build system has no configure phase.
1376 (delete 'configure)
1377 ;; Makefile is in a subdirectory.
1378 (add-before
1379 'build 'cd-to-project-dir
1380 (lambda _
1381 (chdir "projects/unix"))))
1382 #:make-flags
1383 (let ((out (assoc-ref %outputs "out"))
1384 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1385 (list "all"
1386 (string-append "PREFIX=" out)
1387 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1388 ;; There are no tests.
1389 #:tests? #f))
1390 (home-page "http://www.mupen64plus.org/")
1391 (synopsis "Mupen64Plus SDL input plugin")
1392 (description
1393 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1394 which is capable of accurately playing many games. This package contains the
1395 high-level emulation (HLE) RSP processor plugin.")
1396 (license license:gpl2+)))
1397
1398 (define-public mupen64plus-rsp-z64
1399 (package
1400 (name "mupen64plus-rsp-z64")
1401 (version "2.0.0")
1402 (source
1403 (origin
1404 (method url-fetch)
1405 (uri (string-append
1406 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1407 version ".tar.gz"))
1408 (file-name (string-append name "-" version ".tar.gz"))
1409 (sha256
1410 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1411 (build-system gnu-build-system)
1412 (inputs
1413 `(("mupen64plus-core" ,mupen64plus-core)))
1414 (arguments
1415 '(#:phases
1416 (modify-phases %standard-phases
1417 ;; The mupen64plus build system has no configure phase.
1418 (delete 'configure)
1419 ;; Makefile is in a subdirectory.
1420 (add-before
1421 'build 'cd-to-project-dir
1422 (lambda _
1423 (chdir "projects/unix"))))
1424 #:make-flags
1425 (let ((out (assoc-ref %outputs "out"))
1426 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1427 (list "all"
1428 (string-append "PREFIX=" out)
1429 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1430 ;; There are no tests.
1431 #:tests? #f))
1432 (home-page "http://www.mupen64plus.org/")
1433 (synopsis "Mupen64Plus SDL input plugin")
1434 (description
1435 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1436 which is capable of accurately playing many games. This package contains the
1437 Z64 RSP processor plugin.")
1438 (license license:gpl2+)))
1439
1440 (define-public mupen64plus-video-arachnoid
1441 (package
1442 (name "mupen64plus-video-arachnoid")
1443 (version "2.0.0")
1444 (source
1445 (origin
1446 (method url-fetch)
1447 (uri (string-append
1448 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1449 version ".tar.gz"))
1450 (file-name (string-append name "-" version ".tar.gz"))
1451 (sha256
1452 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1453 (build-system gnu-build-system)
1454 (native-inputs
1455 `(("pkg-config" ,pkg-config)
1456 ("which" ,which)))
1457 (inputs
1458 `(("mesa" ,mesa)
1459 ("mupen64plus-core" ,mupen64plus-core)))
1460 (arguments
1461 '(#:phases
1462 (modify-phases %standard-phases
1463 ;; The mupen64plus build system has no configure phase.
1464 (delete 'configure)
1465 ;; Makefile is in a subdirectory.
1466 (add-before
1467 'build 'cd-to-project-dir
1468 (lambda _
1469 (chdir "projects/unix"))))
1470 #:make-flags
1471 (let ((out (assoc-ref %outputs "out"))
1472 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1473 (list "all"
1474 (string-append "PREFIX=" out)
1475 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1476 ;; There are no tests.
1477 #:tests? #f))
1478 (home-page "http://www.mupen64plus.org/")
1479 (synopsis "Mupen64Plus Rice Video plugin")
1480 (description
1481 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1482 which is capable of accurately playing many games. This package contains the
1483 Arachnoid video plugin.")
1484 (license license:gpl2+)))
1485
1486 (define-public mupen64plus-video-glide64
1487 (package
1488 (name "mupen64plus-video-glide64")
1489 (version "2.0.0")
1490 (source
1491 (origin
1492 (method url-fetch)
1493 (uri (string-append
1494 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1495 version ".tar.gz"))
1496 (file-name (string-append name "-" version ".tar.gz"))
1497 (sha256
1498 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1499 (build-system gnu-build-system)
1500 (native-inputs
1501 `(("pkg-config" ,pkg-config)
1502 ("which" ,which)))
1503 (inputs
1504 `(("mesa" ,mesa)
1505 ("mupen64plus-core" ,mupen64plus-core)
1506 ("sdl2" ,sdl2)))
1507 (arguments
1508 '(#:phases
1509 (modify-phases %standard-phases
1510 ;; The mupen64plus build system has no configure phase.
1511 (delete 'configure)
1512 ;; Makefile is in a subdirectory.
1513 (add-before
1514 'build 'cd-to-project-dir
1515 (lambda _
1516 (chdir "projects/unix")))
1517 ;; XXX Should be unnecessary with the next release.
1518 (add-before
1519 'build 'use-sdl2
1520 (lambda _
1521 (substitute* "Makefile"
1522 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1523 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1524 #:make-flags
1525 (let ((out (assoc-ref %outputs "out"))
1526 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1527 (list "all"
1528 (string-append "PREFIX=" out)
1529 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1530 ;; There are no tests.
1531 #:tests? #f))
1532 (home-page "http://www.mupen64plus.org/")
1533 (synopsis "Mupen64Plus Rice Video plugin")
1534 (description
1535 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1536 which is capable of accurately playing many games. This package contains the
1537 Glide64 video plugin.")
1538 (license license:gpl2+)))
1539
1540 (define-public mupen64plus-video-glide64mk2
1541 (package
1542 (name "mupen64plus-video-glide64mk2")
1543 (version "2.5")
1544 (source
1545 (origin
1546 (method url-fetch)
1547 (uri (string-append
1548 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1549 version ".tar.gz"))
1550 (file-name (string-append name "-" version ".tar.gz"))
1551 (sha256
1552 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1553 (build-system gnu-build-system)
1554 (native-inputs
1555 `(("pkg-config" ,pkg-config)
1556 ("which" ,which)))
1557 (inputs
1558 `(("boost" ,boost)
1559 ("libpng" ,libpng)
1560 ("mesa" ,mesa)
1561 ("mupen64plus-core" ,mupen64plus-core)
1562 ("sdl2" ,sdl2)
1563 ("zlib" ,zlib)))
1564 (arguments
1565 '(#:phases
1566 (modify-phases %standard-phases
1567 ;; The mupen64plus build system has no configure phase.
1568 (delete 'configure)
1569 ;; Makefile is in a subdirectory.
1570 (add-before
1571 'build 'cd-to-project-dir
1572 (lambda _
1573 (chdir "projects/unix"))))
1574 #:make-flags
1575 (let ((out (assoc-ref %outputs "out"))
1576 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1577 (list "all"
1578 (string-append "PREFIX=" out)
1579 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1580 ;; There are no tests.
1581 #:tests? #f))
1582 (home-page "http://www.mupen64plus.org/")
1583 (synopsis "Mupen64Plus Rice Video plugin")
1584 (description
1585 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1586 which is capable of accurately playing many games. This package contains the
1587 Glide64MK2 video plugin.")
1588 (license license:gpl2+)))
1589
1590 (define-public mupen64plus-video-rice
1591 (package
1592 (name "mupen64plus-video-rice")
1593 (version "2.5")
1594 (source
1595 (origin
1596 (method url-fetch)
1597 (uri (string-append
1598 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1599 version ".tar.gz"))
1600 (file-name (string-append name "-" version ".tar.gz"))
1601 (sha256
1602 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1603 (build-system gnu-build-system)
1604 (native-inputs
1605 `(("pkg-config" ,pkg-config)
1606 ("which" ,which)))
1607 (inputs
1608 `(("libpng" ,libpng)
1609 ("mesa" ,mesa)
1610 ("mupen64plus-core" ,mupen64plus-core)
1611 ("sdl2" ,sdl2)))
1612 (arguments
1613 '(#:phases
1614 (modify-phases %standard-phases
1615 ;; The mupen64plus build system has no configure phase.
1616 (delete 'configure)
1617 ;; Makefile is in a subdirectory.
1618 (add-before
1619 'build 'cd-to-project-dir
1620 (lambda _
1621 (chdir "projects/unix"))))
1622 #:make-flags
1623 (let ((out (assoc-ref %outputs "out"))
1624 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1625 (list "all"
1626 (string-append "PREFIX=" out)
1627 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1628 ;; There are no tests.
1629 #:tests? #f))
1630 (home-page "http://www.mupen64plus.org/")
1631 (synopsis "Mupen64Plus Rice Video plugin")
1632 (description
1633 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1634 which is capable of accurately playing many games. This package contains the
1635 Rice Video plugin.")
1636 (license license:gpl2+)))
1637
1638 (define-public mupen64plus-video-z64
1639 (package
1640 (name "mupen64plus-video-z64")
1641 (version "2.0.0")
1642 (source
1643 (origin
1644 (method url-fetch)
1645 (uri (string-append
1646 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1647 version ".tar.gz"))
1648 (file-name (string-append name "-" version ".tar.gz"))
1649 (sha256
1650 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1651 (build-system gnu-build-system)
1652 (native-inputs
1653 `(("pkg-config" ,pkg-config)
1654 ("which" ,which)))
1655 (inputs
1656 `(("glew" ,glew)
1657 ("mupen64plus-core" ,mupen64plus-core)
1658 ("sdl2" ,sdl2)))
1659 (arguments
1660 '(#:phases
1661 (modify-phases %standard-phases
1662 ;; The mupen64plus build system has no configure phase.
1663 (delete 'configure)
1664 ;; Makefile is in a subdirectory.
1665 (add-before
1666 'build 'cd-to-project-dir
1667 (lambda _
1668 (chdir "projects/unix")))
1669 ;; XXX Should be unnecessary with the next release.
1670 (add-before
1671 'build 'use-sdl2
1672 (lambda _
1673 (substitute* "Makefile"
1674 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1675 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1676 #:make-flags
1677 (let ((out (assoc-ref %outputs "out"))
1678 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1679 (list "all"
1680 (string-append "PREFIX=" out)
1681 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1682 ;; There are no tests.
1683 #:tests? #f))
1684 (home-page "http://www.mupen64plus.org/")
1685 (synopsis "Mupen64Plus Z64 video plugin")
1686 (description
1687 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1688 which is capable of accurately playing many games. This package contains the
1689 Z64 video plugin.")
1690 (license license:gpl2+)))
1691
1692 (define-public mupen64plus-ui-console
1693 (package
1694 (name "mupen64plus-ui-console")
1695 (version "2.5")
1696 (source
1697 (origin
1698 (method url-fetch)
1699 (uri (string-append
1700 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1701 version ".tar.gz"))
1702 (file-name (string-append name "-" version ".tar.gz"))
1703 (sha256
1704 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1705 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1706 (build-system gnu-build-system)
1707 (native-inputs
1708 `(("pkg-config" ,pkg-config)
1709 ("which" ,which)))
1710 (inputs
1711 `(("sdl2" ,sdl2)))
1712 ;; Mupen64Plus supports a single data directory and a single plugin
1713 ;; directory in its configuration, yet we need data and plugin files from
1714 ;; a variety of packages. The best way to deal with this is to install
1715 ;; all packages from which data and plugin files are needed into one's
1716 ;; profile, and point the configuration there. Hence, propagate the most
1717 ;; important packages here to save the user from the bother. The patch
1718 ;; mupen64plus-ui-console-notice also gives users instructions on what
1719 ;; they need to do in order to point the configuration to their profile.
1720 (propagated-inputs
1721 `(("mupen64plus-core" ,mupen64plus-core)
1722 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1723 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1724 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1725 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1726 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1727 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1728 (arguments
1729 '(#:phases
1730 (modify-phases %standard-phases
1731 ;; The mupen64plus build system has no configure phase.
1732 (delete 'configure)
1733 ;; Makefile is in a subdirectory.
1734 (add-before
1735 'build 'cd-to-project-dir
1736 (lambda _
1737 (chdir "projects/unix"))))
1738 #:make-flags
1739 (let ((out (assoc-ref %outputs "out"))
1740 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1741 (list "all"
1742 (string-append "PREFIX=" out)
1743 (string-append "APIDIR=" m64p "/include/mupen64plus")
1744 ;; Trailing slash matters here.
1745 (string-append "COREDIR=" m64p "/lib/")))
1746 ;; There are no tests.
1747 #:tests? #f))
1748 (home-page "http://www.mupen64plus.org/")
1749 (synopsis "Mupen64Plus SDL input plugin")
1750 (description
1751 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1752 which is capable of accurately playing many games. This package contains the
1753 command line user interface. Installing this package is the easiest way
1754 towards a working Mupen64Plus for casual users.")
1755 (license license:gpl2+)))
1756
1757 (define-public nestopia-ue
1758 (package
1759 (name "nestopia-ue")
1760 (version "1.47")
1761 (source (origin
1762 (method url-fetch)
1763 (uri (string-append
1764 "https://github.com/rdanbrook/nestopia/archive/"
1765 version ".tar.gz"))
1766 (file-name (string-append name "-" version ".tar.gz"))
1767 (sha256
1768 (base32
1769 "1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
1770 (modules '((guix build utils)))
1771 (snippet
1772 '(begin
1773 ;; We don't need libretro for the GNU/Linux build.
1774 (delete-file-recursively "libretro")
1775 ;; Use system zlib.
1776 (delete-file-recursively "source/zlib")
1777 (substitute* "source/core/NstZlib.cpp"
1778 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1779 (build-system gnu-build-system)
1780 (native-inputs
1781 `(("pkg-config" ,pkg-config)))
1782 (inputs
1783 `(("ao" ,ao)
1784 ("glu" ,glu)
1785 ("gtk+" ,gtk+)
1786 ("libarchive" ,libarchive)
1787 ("mesa" ,mesa)
1788 ("sdl2" ,sdl2)
1789 ("zlib" ,zlib)))
1790 (arguments
1791 '(#:phases
1792 (modify-phases %standard-phases
1793 ;; The Nestopia build system consists solely of a Makefile.
1794 (delete 'configure)
1795 (add-before 'build 'remove-xdg-desktop-menu-call
1796 (lambda _
1797 (substitute* "Makefile"
1798 (("xdg-desktop-menu install .*") ""))))
1799 (add-before 'build 'remove-gdkwayland-include
1800 (lambda _
1801 (substitute* "source/unix/gtkui/gtkui.h"
1802 (("#include <gdk/gdkwayland\\.h>") "")))))
1803 #:make-flags (let ((out (assoc-ref %outputs "out")))
1804 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1805 ;; There are no tests.
1806 #:tests? #f))
1807 (home-page "http://0ldsk00l.ca/nestopia/")
1808 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1809 (description
1810 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1811 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1812 emulation community. It provides highly accurate emulation.")
1813 (license license:gpl2+)))
1814
1815 (define-public emulation-station
1816 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1817 (package
1818 (name "emulation-station")
1819 (version "2.0.1")
1820 (source (origin
1821 (method git-fetch) ; no tarball available
1822 (uri (git-reference
1823 (url "https://github.com/Aloshi/EmulationStation.git")
1824 (commit commit))) ; no version tag
1825 (sha256
1826 (base32
1827 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1828 (build-system cmake-build-system)
1829 (arguments
1830 '(#:tests? #f)) ; no tests
1831 (inputs
1832 `(("alsa-lib" ,alsa-lib)
1833 ("boost" ,boost)
1834 ("curl" ,curl)
1835 ("eigin" ,eigen)
1836 ("freeimage" ,freeimage)
1837 ("freetype" ,freetype)
1838 ("mesa" ,mesa)
1839 ("sdl2" ,sdl2)))
1840 (synopsis "Video game console emulator front-end")
1841 (description "EmulationStation provides a graphical front-end to a large
1842 number of video game console emulators. It features an interface that is
1843 usable with any game controller that has at least 4 buttons, theming support,
1844 and a game metadata scraper.")
1845 (home-page "http://www.emulationstation.org")
1846 (license license:expat))))
1847
1848 (define openttd-engine
1849 (package
1850 (name "openttd-engine")
1851 (version "1.6.1")
1852 (source
1853 (origin (method url-fetch)
1854 (uri (string-append "http://binaries.openttd.org/releases/"
1855 version "/openttd-" version "-source.tar.xz"))
1856 (sha256
1857 (base32
1858 "1ak32fj5xkk2fvmm3g8i7wzmk4bh2ijsp8fzvvw5wj6365p9j24v"))
1859 (modules '((guix build utils)))
1860 (snippet
1861 ;; The DOS port contains proprietary software.
1862 '(delete-file-recursively "os/dos"))))
1863 (build-system gnu-build-system)
1864 (arguments
1865 `(#:tests? #f ; no "check" target
1866 #:phases
1867 (modify-phases %standard-phases
1868 ;; The build process fails if the configure script is passed the
1869 ;; option "--enable-fast-install".
1870 (replace 'configure
1871 (lambda* (#:key inputs outputs #:allow-other-keys)
1872 (let ((out (assoc-ref outputs "out"))
1873 (lzo (assoc-ref inputs "lzo")))
1874 (zero?
1875 (system* "./configure"
1876 (string-append "--prefix=" out)
1877 ;; Provide the "lzo" path.
1878 (string-append "--with-liblzo2="
1879 lzo "/lib/liblzo2.a")
1880 ;; Put the binary in 'bin' instead of 'games'.
1881 "--binary-dir=bin"))))))))
1882 (native-inputs `(("pkg-config" ,pkg-config)))
1883 (inputs
1884 `(("allegro" ,allegro-4)
1885 ("fontconfig" ,fontconfig)
1886 ("freetype" ,freetype)
1887 ("icu4c" ,icu4c)
1888 ("libpng" ,libpng)
1889 ("lzo" ,lzo)
1890 ("sdl" ,sdl)
1891 ("xz" ,xz)
1892 ("zlib" ,zlib)))
1893 (synopsis "Transportation economics simulator")
1894 (description "OpenTTD is a game in which you transport goods and
1895 passengers by land, water and air. It is a re-implementation of Transport
1896 Tycoon Deluxe with many enhancements including multiplayer mode,
1897 internationalization support, conditional orders and the ability to clone,
1898 autoreplace and autoupdate vehicles. This package only includes the game engine. When you start
1899 it you will be prompted to download a graphics set.")
1900 (home-page "http://openttd.org/")
1901 ;; This package is GPLv2, except for a few files located in
1902 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1903 ;; licenses. In addition, this software contains an in-game downloader
1904 ;; from which the user may find non-functional data licensed under
1905 ;; different terms.
1906 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1907
1908 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1909 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1910 ;; but it asks a user to download graphics if it's not found.
1911
1912 (define-public openttd
1913 (package
1914 (inherit openttd-engine)
1915 (name "openttd")))
1916
1917 (define-public pinball
1918 (package
1919 (name "pinball")
1920 (version "0.3.1")
1921 (source
1922 (origin (method url-fetch)
1923 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1924 "pinball-" version "/"
1925 "pinball-" version ".tar.gz"))
1926 (sha256
1927 (base32
1928 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
1929 (patches (search-patches "pinball-const-fix.patch"
1930 "pinball-cstddef.patch"
1931 "pinball-missing-separators.patch"
1932 "pinball-src-deps.patch"
1933 "pinball-system-ltdl.patch"))))
1934 (build-system gnu-build-system)
1935 (inputs
1936 `(("glu" ,glu)
1937 ("mesa" ,mesa)
1938 ("sdl" ,sdl)
1939 ("sdl-image" ,sdl-image)
1940 ("sdl-mixer" ,sdl-mixer)))
1941 (arguments
1942 '(#:configure-flags
1943 (list (string-append "CPPFLAGS=-I"
1944 (assoc-ref %build-inputs "sdl-image")
1945 "/include/SDL -I"
1946 (assoc-ref %build-inputs "sdl-mixer")
1947 "/include/SDL"))))
1948 (home-page "http://pinball.sourceforge.net")
1949 (synopsis "Pinball simulator")
1950 (description "The Emilia Pinball Project is a pinball simulator. There
1951 are only two levels to play with, but they are very addictive.")
1952 (license license:gpl2)))
1953
1954 (define-public pioneers
1955 (package
1956 (name "pioneers")
1957 (version "15.3")
1958 (source (origin
1959 (method url-fetch)
1960 (uri (string-append "http://downloads.sourceforge.net/pio/"
1961 "pioneers-" version ".tar.gz"))
1962 (sha256
1963 (base32
1964 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
1965 (build-system gnu-build-system)
1966 (inputs `(("gtk+" ,gtk+)
1967 ("librsvg" ,librsvg)
1968 ("avahi" ,avahi)))
1969 (native-inputs `(("intltool" ,intltool)
1970 ("pkg-config" ,pkg-config)))
1971 (synopsis "Board game inspired by The Settlers of Catan")
1972 (description "Pioneers is an emulation of the board game The Settlers of
1973 Catan. It can be played on a local network, on the internet, and with AI
1974 players.")
1975 (home-page "http://pio.sourceforge.net/")
1976 (license license:gpl2+)))
1977
1978 (define-public desmume
1979 (package
1980 (name "desmume")
1981 (version "0.9.11")
1982 (source
1983 (origin
1984 (method url-fetch)
1985 (uri (string-append
1986 "mirror://sourceforge/desmume/desmume/"
1987 version "/desmume-" version ".tar.gz"))
1988 (sha256
1989 (base32
1990 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
1991 (build-system gnu-build-system)
1992 (arguments
1993 ;; Enable support for WiFi and microphone.
1994 `(#:configure-flags '("--enable-wifi"
1995 "--enable-openal")))
1996 (native-inputs
1997 `(("pkg-config" ,pkg-config)
1998 ("intltool" ,intltool)))
1999 (inputs
2000 `(("zlib" ,zlib)
2001 ("sdl" ,sdl)
2002 ("glib" ,glib)
2003 ("gtk+" ,gtk+-2)
2004 ("glu" ,glu)))
2005 (home-page "http://desmume.org/")
2006 (synopsis "Nintendo DS emulator")
2007 (description
2008 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2009 (license license:gpl2)))
2010
2011 (define-public einstein
2012 (package
2013 (name "einstein")
2014 (version "2.0")
2015 (source (origin
2016 (method url-fetch)
2017 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2018 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2019 (sha256
2020 (base32
2021 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2022 (patches (search-patches "einstein-build.patch"))))
2023 (build-system gnu-build-system)
2024 (inputs
2025 `(("freetype" ,freetype)
2026 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2027 ("zlib" ,zlib)))
2028 (native-inputs
2029 `(("font-dejavu" ,font-dejavu)))
2030 (arguments
2031 `(#:tests? #f ; no check target
2032 #:phases
2033 (modify-phases %standard-phases
2034 (replace 'configure
2035 (lambda* (#:key outputs inputs #:allow-other-keys)
2036 (let ((out (assoc-ref outputs "out"))
2037 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2038 "/share/fonts/truetype/DejaVuSans.ttf")))
2039 (substitute* "Makefile"
2040 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2041 ;; The patch above registers a free font for use by the binary,
2042 ;; but the font is copied during the compile phase into a
2043 ;; resources file, so we need to make the ttf file available.
2044 (symlink dejavu "res/DejaVuSans.ttf")
2045 #t))))))
2046 (synopsis "Logic puzzle game")
2047 (description "The goal of this logic game is to open all cards in a 6x6
2048 grid, using a number of hints as to their relative position. The game idea
2049 is attributed to Albert Einstein.")
2050 ;; The original home page has disappeared.
2051 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2052 "http://games.flowix.com/en/index.html"))
2053 ;; License according to
2054 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2055 ;; The source code is a DFSG-sanitized tarball and does not contain any
2056 ;; license information.
2057 (license license:gpl3+)))
2058
2059 (define-public powwow
2060 (package
2061 (name "powwow")
2062 (version "1.2.17")
2063 (source (origin
2064 (method url-fetch)
2065 (uri (string-append
2066 "https://www.hoopajoo.net/static/projects/powwow-"
2067 version ".tar.gz"))
2068 (file-name (string-append name "-" version ".tar.gz"))
2069 (sha256
2070 (base32
2071 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2072 (inputs
2073 `(("ncurses" ,ncurses)))
2074 (build-system gnu-build-system)
2075 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2076 (synopsis "MUD and telnet client")
2077 (description
2078 "POWWOW is a client software which can be used for telnet as well as for
2079 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2080 the chat server psyced with the specific config located at
2081 http://lavachat.symlynx.com/unix/")
2082 (license license:gpl2+)))
2083
2084 (define-public red-eclipse
2085 (let ((data-sources
2086 '(("acerspyro" "0s6q56i5marpm67lx70g5109lir5d6r45y45i8kbz6arc1spa7pp")
2087 ("actors" "0jclmciz64i81ngxwbag8x5m8wvxkhraa9c7plix566y6rh28fv1")
2088 ("appleflap" "1iz5igzdksamldhy0zh4vdjkxqhmg5c0n5g64pd3kan6h8vlbkq4")
2089 ("blendbrush" "1hz3x5npp25dixcadp020xyahmd1i3ihs4cdf77iy84i9njbp7bv")
2090 ("caustics" "05sbj46lrc6lkf7j6ls6jwc21n0qzxvfhfy9j7hdw482p9gvz54h")
2091 ("crosshairs" "05vfxc6vm91dyf1kzig550fglgydp9szl9135q677lk4g60w5dfh")
2092 ("elyvisions" "0fzdbxc40ggqmv4v1llx6sys2gjc6l1nxsbi5scpxqvm86dbddi9")
2093 ("fonts" "0sbvnd96aip49dy1ja01s36p8fwwczibpic7myfw1frs110m0zgr")
2094 ("freezurbern" "0k60dzzq42mfq360qf7bsf4alhy6k5gjfaidg2i1wsz5zssgmqwn")
2095 ("john" "1ln9v8vfm0ggavvdyl438cy4mizzm1i87r9msx1sbja30q8f57c1")
2096 ("jojo" "0cdgl82s4bm6qlv07fsq5l7anbywvvw13d0mng831yn6scf0hxb1")
2097 ("jwin" "0yg5vriffyckgfjmi4487sw07hsp44b3gfw90f0v4jsgbjjm2v20")
2098 ("luckystrike" "0f82caq09znsr9m08qnlbh3jl9j5w0ysga0b7d5ayqr5lpqxfk9k")
2099 ("maps" "14m23h3mip12anhx7i9k5xlapwkjbw4n0l7lj1b7dfcimf71gjll")
2100 ("mayhem" "0dxrr6craqi7ag724qfj9y0lb0pmwyrfpap02cndmjbbacdya0ra")
2101 ("mikeplus64" "040giyrk3hdd26sxhdx37q4mk923g5v3jbrinq1fw2yfvsl6n1cs")
2102 ("misc" "07xfs9hngshg27rl2vf65nyxilgnak3534h8msaan0fjgmzvlk0q")
2103 ("nobiax" "1n3nghi5426r2zav4rsfih8gn37sfa85absvhdwhir8wycsvbkh6")
2104 ("particles" "0yj0nykal3fgxx50278xl2zn2bfz09wbrjcvng56aa6hhfiwp8gd")
2105 ("philipk" "1m3krkxq9hsknbmxg1g5sgnpcv7c8c2q7zpbizw2wb3dir8snvcj")
2106 ("projectiles" "05swvalja7vzqc3dlk136n5b5kdzn3a8il6bg1h12alcaa0k9rba")
2107 ("props" "1cqi6gw5s4z5pj06x6kiiilh4if0hm1yrbqys5dln23mcvw8f0ny")
2108 ("skyboxes" "1mm6xl89b0l98l2h3qn99id7svmpwr940bydgjbcrvlx21yqdric")
2109 ("sounds" "03q7jazf0chszyiaa9cxirbwdnckcp5fl812sj42lv0z4sqz222l")
2110 ("textures" "1caqyxa9xkrwpyhac65akdv1l7nqychgz7zfivasnskk2yy6jani")
2111 ("torley" "1hp8lkzqmdqyq3jn9rains32diw11gg1w3dxxlln5pc041cd7vil")
2112 ("trak" "0wlczjax33q0hz75lgc4qnxlm592pcxgnbkin5qrglv59nrxzxyr")
2113 ("ulukai" "0dkn7qxf92sidhsy4sm4v5z54n449a2z2w9qax5cfgzs78kb5c34")
2114 ("unnamed" "0p9mmfp0vplmswyxh8qab33phcl8lzmzh3mms4f7i587hppdg6db")
2115 ("vanities" "1w23853lmvj4kx5cbxvb5dk598jiqz7ml2bm0qiy7idkf5mcd2lv")
2116 ("vegetation" "0jw1ljhmv62fzvklid6i8syiacmrs075cp7r3gc069bg4fg47cpn")
2117 ("weapons" "1p64ry1s4y7hkgm6i2rdk2x78368359wvx8v81gg179p3sjnjkww")
2118 ("wicked" "1kmpy2n15lyh50rqjspyfg3qrc72jf0n3dx2y3ian7pjfp6ldxd9"))))
2119 (package
2120 (name "red-eclipse")
2121 (version "1.5.5")
2122 (source (origin
2123 (method url-fetch)
2124 (uri (string-append "https://github.com/red-eclipse/base"
2125 "/archive/v" version ".tar.gz"))
2126 (file-name (string-append name "-" version ".tar.gz"))
2127 (sha256
2128 (base32
2129 "0xl3655876i8j5nixy0yp73s0yw9nwysj68fyhqs2agmvshryy96"))))
2130 (build-system gnu-build-system)
2131 (arguments
2132 `(#:tests? #f ; no check target
2133 #:make-flags (list "CC=gcc" "-Csrc"
2134 (string-append "INSTDIR="
2135 (assoc-ref %outputs "out") "/bin"))
2136 #:phases
2137 (modify-phases %standard-phases
2138 (add-after 'unpack 'unpack-data
2139 (lambda* (#:key inputs #:allow-other-keys)
2140 (delete-file-recursively "data")
2141 (mkdir "data")
2142 (for-each (lambda (name)
2143 (system* "tar" "-xvf"
2144 (assoc-ref inputs name)
2145 "-Cdata"
2146 "--transform"
2147 (string-append "s/"
2148 name "-" ,version "/"
2149 name "/")))
2150 (list ,@(map car data-sources)))
2151 #t))
2152 (delete 'configure) ; no configure script
2153 (add-after 'set-paths 'set-sdl-paths
2154 (lambda* (#:key inputs #:allow-other-keys)
2155 (setenv "CPATH"
2156 (string-append (assoc-ref inputs "sdl-union")
2157 "/include/SDL2"))
2158 #t))
2159 (add-after 'install 'copy-data
2160 (lambda* (#:key outputs #:allow-other-keys)
2161 (let ((out (assoc-ref outputs "out")))
2162 (copy-recursively "config"
2163 (string-append out "/config"))
2164 (copy-file "doc/examples/servinit.cfg"
2165 (string-append out "/config/servinit.cfg"))
2166 (copy-recursively "data"
2167 (string-append out "/data")))
2168 #t))
2169 (add-after 'copy-data 'wrap-program
2170 (lambda* (#:key inputs outputs #:allow-other-keys)
2171 (let* ((out (assoc-ref outputs "out"))
2172 (bin (string-append out "/bin")))
2173 (with-directory-excursion bin
2174 (rename-file "redeclipse_linux"
2175 ".redeclipse_linux-real")
2176 (rename-file "redeclipse_server_linux"
2177 ".redeclipse_server_linux-real")
2178 (call-with-output-file "redeclipse_linux"
2179 (lambda (port)
2180 (format port "#!~a/bin/sh
2181 # Run the thing from its home, otherwise it just bails out.
2182 cd \"~a\"
2183 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2184 (assoc-ref inputs "bash") ;implicit input
2185 (string-append out)
2186 (string-append bin))))
2187 (call-with-output-file "redeclipse_server_linux"
2188 (lambda (port)
2189 (format port "#!~a/bin/sh
2190 # Run the thing from its home, otherwise it just bails out.
2191 cd \"~a\"
2192 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2193 (assoc-ref inputs "bash") ;implicit input
2194 (string-append out)
2195 (string-append bin))))
2196 (chmod "redeclipse_linux" #o555)
2197 (chmod "redeclipse_server_linux" #o555)))
2198 #t)))))
2199 (native-inputs `(("pkg-config" ,pkg-config)))
2200 (inputs
2201 `(("curl" ,curl)
2202 ("glu" ,glu)
2203 ("sdl-union" ,(sdl-union (list sdl2
2204 sdl2-image
2205 sdl2-mixer)))
2206 ;; Create origin records for the many separate data packages.
2207 ,@(map (match-lambda
2208 ((name hash)
2209 (list name
2210 (origin
2211 (method url-fetch)
2212 (uri (string-append
2213 "https://github.com/red-eclipse/"
2214 name "/archive/v" version ".tar.gz"))
2215 (sha256 (base32 hash))
2216 (file-name (string-append name "-" version
2217 ".tar.gz"))))))
2218 data-sources)))
2219 (home-page "http://redeclipse.net/")
2220 (synopsis "Arena shooter derived from the Cube 2 engine")
2221 (description
2222 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2223 Offering an innovative parkour system and distinct but all potent weapons,
2224 Red Eclipse provides fast paced and accessible gameplay.")
2225 ;; The engine is under Zlib; data files are covered by the other
2226 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2227 (license (list license:expat
2228 license:zlib
2229 license:cc-by-sa3.0
2230 license:cc-by3.0
2231 license:cc0)))))
2232
2233 (define-public higan
2234 (package
2235 (name "higan")
2236 (version "101")
2237 (source
2238 (origin
2239 (method url-fetch)
2240 (uri (string-append
2241 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2242 version))
2243 (file-name (string-append name "-" version ".tar.gz"))
2244 (sha256
2245 (base32 "0qavwkmzc63p6qplmxii4gc541z5mcs8gjwh3m4y7i576r7rcbk9"))
2246 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2247 (build-system gnu-build-system)
2248 (native-inputs
2249 `(("pkg-config" ,pkg-config)))
2250 (inputs
2251 `(("alsa-lib" ,alsa-lib)
2252 ("ao" ,ao)
2253 ("eudev" ,eudev)
2254 ("gtk+" ,gtk+-2)
2255 ("gtksourceview-2" ,gtksourceview-2)
2256 ("libxv" ,libxv)
2257 ("mesa" ,mesa)
2258 ("openal" ,openal)
2259 ("pulseaudio" ,pulseaudio)
2260 ("sdl" ,sdl)))
2261 (arguments
2262 '(#:phases
2263 (let ((build-phase (assoc-ref %standard-phases 'build))
2264 (install-phase (assoc-ref %standard-phases 'install)))
2265 (modify-phases %standard-phases
2266 ;; The higan build system has no configure phase.
2267 (delete 'configure)
2268 (add-before 'build 'chdir-to-higan
2269 (lambda _
2270 (chdir "higan")))
2271 (add-before 'install 'create-/share/applications
2272 (lambda* (#:key outputs #:allow-other-keys)
2273 (let ((out (assoc-ref outputs "out")))
2274 ;; It seems the author forgot to do this in the Makefile.
2275 (mkdir-p (string-append out "/share/applications")))))
2276 (add-after 'install 'chdir-to-icarus
2277 (lambda _
2278 (chdir "../icarus")))
2279 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2280 (add-after 'build-icarus 'install-icarus install-phase)
2281 (add-after 'install-icarus 'wrap-higan-executable
2282 (lambda* (#:key inputs outputs #:allow-other-keys)
2283 (let* ((out (assoc-ref outputs "out"))
2284 (bin (string-append out "/bin"))
2285 (higan (string-append bin "/higan"))
2286 (higan-original (string-append higan "-original"))
2287 (bash (string-append (assoc-ref inputs "bash")
2288 "/bin/bash"))
2289 (coreutils (assoc-ref inputs "coreutils"))
2290 (mkdir (string-append coreutils "/bin/mkdir"))
2291 (cp (string-append coreutils "/bin/cp"))
2292 (cp-r (string-append cp " -r --no-preserve=mode")))
2293 ;; First, have the executable make sure ~/.local/share/higan
2294 ;; contains up to date files. Higan insists on looking there
2295 ;; for these data files.
2296 (rename-file higan higan-original)
2297 (with-output-to-file higan
2298 (lambda ()
2299 (display
2300 (string-append
2301 "#!" bash "\n"
2302 ;; higan doesn't respect $XDG_DATA_HOME
2303 mkdir " -p ~/.local/share\n"
2304 cp-r " " out "/share/higan ~/.local/share\n"
2305 "exec " higan-original))))
2306 (chmod higan #o555)
2307 ;; Second, make sure higan will find icarus in PATH.
2308 (wrap-program higan
2309 `("PATH" ":" prefix (,bin))))))))
2310 #:make-flags
2311 (list "compiler=g++"
2312 (string-append "prefix=" (assoc-ref %outputs "out")))
2313 ;; There is no test suite.
2314 #:tests? #f))
2315 (home-page "http://byuu.org/emulation/higan/")
2316 (synopsis "Nintendo multi-system emulator")
2317 (description
2318 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2319 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2320 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2321 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2322 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2323 ;; As noted in these files among more:
2324 ;; - icarus/icarus.cpp
2325 ;; - higan/emulator/emulator.hpp
2326 (license license:gpl3)))
2327
2328 (define-public grue-hunter
2329 (package
2330 (name "grue-hunter")
2331 (version "1.0")
2332 (source (origin
2333 (method url-fetch)
2334 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2335 (sha256
2336 (base32
2337 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2338 (build-system trivial-build-system) ; no Makefile.PL
2339 (arguments `(#:modules ((guix build utils))
2340 #:builder
2341 (begin
2342 (use-modules (guix build utils))
2343 (use-modules (srfi srfi-1))
2344
2345 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2346 (perl (string-append (assoc-ref %build-inputs
2347 "perl")
2348 "/bin"))
2349 (gzip (string-append (assoc-ref %build-inputs
2350 "gzip")
2351 "/bin/gzip"))
2352 (tar (string-append (assoc-ref %build-inputs
2353 "tar")
2354 "/bin/tar"))
2355 (out (assoc-ref %outputs "out"))
2356 (bin (string-append out "/bin"))
2357 (doc (string-append out "/share/doc")))
2358 (begin
2359 (mkdir out)
2360 (copy-file tarball "grue-hunter.tar.gz")
2361 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2362 (zero? (system* tar "xvf" "grue-hunter.tar"))
2363
2364 (mkdir-p bin)
2365 (copy-file "grue-hunter/gh.pl"
2366 (string-append bin "/grue-hunter"))
2367 (patch-shebang (string-append bin "/grue-hunter")
2368 (list perl))
2369
2370 (mkdir-p doc)
2371 (copy-file "grue-hunter/AGPLv3.txt"
2372 (string-append doc "/grue-hunter")))))))
2373 (inputs `(("perl" ,perl)
2374 ("tar" ,tar)
2375 ("gzip" ,gzip)
2376 ("tarball" ,source)))
2377 (home-page "http://jxself.org/grue-hunter.shtml")
2378 (synopsis "Text adventure game")
2379 (description
2380 "Grue Hunter is a text adventure game written in Perl. You must make
2381 your way through an underground cave system in search of the Grue. Can you
2382 capture it and get out alive?")
2383 (license license:agpl3+)))
2384
2385 (define-public warzone2100
2386 (package
2387 (name "warzone2100")
2388 (version "3.2.1")
2389 (source (origin
2390 (method url-fetch)
2391 (uri (string-append "mirror://sourceforge/" name
2392 "/releases/" version "/" name "-" version
2393 ".tar.xz"))
2394 (sha256
2395 (base32
2396 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2397 (build-system gnu-build-system)
2398 (arguments
2399 `(#:phases
2400 (modify-phases %standard-phases
2401 (add-after 'unpack 'link-tests-with-qt
2402 (lambda _
2403 (substitute* "tests/Makefile.in"
2404 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2405 (string-append prefix "$(QT5_LIBS) ")))
2406 #t))
2407 (add-after 'unpack 'remove-reference-to-missing-file
2408 (lambda _
2409 (substitute* "icons/Makefile.in"
2410 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2411 #t)))))
2412 (native-inputs `(("pkg-config" ,pkg-config)
2413 ("unzip" ,unzip)
2414 ("zip" ,zip)))
2415 (inputs `(("fontconfig" ,fontconfig)
2416 ("freetype" ,freetype)
2417 ("fribidi" ,fribidi)
2418 ("glew" ,glew)
2419 ("libtheora" ,libtheora)
2420 ("libvorbis" ,libvorbis)
2421 ("libxrandr" ,libxrandr)
2422 ("openal" ,openal)
2423 ("physfs" ,physfs)
2424 ("qt" ,qt)
2425 ("openssl" ,openssl)
2426 ("quesoglc" ,quesoglc)
2427 ("sdl2" ,sdl2)))
2428 (home-page "http://wz2100.net")
2429 (synopsis "3D Real-time strategy and real-time tactics game")
2430 (description
2431 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2432 modes. An extensive tech tree with over 400 different technologies, combined
2433 with the unit design system, allows for a wide variety of possible units and
2434 tactics.")
2435 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2436 (license (list license:bsd-3
2437 license:cc0
2438 license:cc-by-sa3.0
2439 license:expat
2440 license:gpl2+
2441 license:lgpl2.1+))))
2442
2443 (define-public starfighter
2444 (package
2445 (name "starfighter")
2446 (version "1.5.1.1")
2447 (source (origin
2448 (method url-fetch)
2449 (uri (string-append
2450 "mirror://savannah/starfighter/"
2451 (version-major+minor version) "/"
2452 name "-" version "-src.tar.gz"))
2453 (sha256
2454 (base32
2455 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2456 (build-system gnu-build-system)
2457 (arguments
2458 '(#:tests? #f ; no check target
2459 #:make-flags
2460 (let ((out (assoc-ref %outputs "out")))
2461 (list (string-append "PREFIX=" out)
2462 (string-append "BINDIR=" out "/bin/")))
2463 #:phases
2464 (modify-phases %standard-phases
2465 ;; no configure script
2466 (delete 'configure))))
2467 (native-inputs
2468 `(("pkg-config" ,pkg-config)))
2469 (inputs
2470 `(("sdl2" ,sdl2)
2471 ("sdl2-image" ,sdl2-image)
2472 ("sdl2-mixer" ,sdl2-mixer)))
2473 (home-page "http://starfighter.nongnu.org/")
2474 (synopsis "2D scrolling shooter game")
2475 (description
2476 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2477 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2478 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2479 way, you will encounter new foes, make new allies, and assist local rebels
2480 in strikes against the evil corporation.")
2481 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2482 (license (list license:gpl3+
2483 license:cc-by3.0
2484 license:cc-by-sa3.0
2485 license:cc0
2486 license:public-domain))))
2487
2488 (define-public chromium-bsu
2489 (package
2490 (name "chromium-bsu")
2491 (version "0.9.15.1")
2492 (source (origin
2493 (method url-fetch)
2494 (uri (string-append "mirror://sourceforge/" name
2495 "/Chromium B.S.U. source code/"
2496 name "-" version ".tar.gz"))
2497 (sha256
2498 (base32
2499 "01c4mki0rpz6wrqbf18fj4vd7axln5v0xqm80cyksbv63g04s6w6"))))
2500 (build-system gnu-build-system)
2501 (arguments
2502 `(#:phases (modify-phases %standard-phases
2503 (add-after 'set-paths 'set-sdl-paths
2504 (lambda* (#:key inputs #:allow-other-keys)
2505 (setenv "CPATH"
2506 (string-append (assoc-ref inputs "sdl-union")
2507 "/include/SDL"))
2508 #t)))))
2509 (native-inputs `(("pkg-config" ,pkg-config)))
2510 (inputs `(("glu" ,glu)
2511 ("quesoglc" ,quesoglc)
2512 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2513 (home-page "http://chromium-bsu.sourceforge.net/")
2514 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2515 (description
2516 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2517 are responsible for delivering supplies to the troops on the front line. Your
2518 ship has a small fleet of robotic fighters which you control from the relative
2519 safety of the Chromium vessel.")
2520 ;; Clarified Artistic License for everything but sound, which is covered
2521 ;; by the Expat License.
2522 (license (list license:clarified-artistic license:expat))))
2523
2524 (define-public tuxpaint
2525 (package
2526 (name "tuxpaint")
2527 (version "0.9.22") ;keep VER_DATE below in sync
2528 (source
2529 (origin
2530 (method url-fetch)
2531 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2532 version "/tuxpaint-" version ".tar.gz"))
2533 (sha256
2534 (base32
2535 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2536 (modules '((guix build utils)))
2537 (snippet
2538 '(begin
2539 ;; Remove win32 directory which contains binary dll's and the
2540 ;; deprecated visualc directory.
2541 (for-each delete-file-recursively '("win32" "visualc"))
2542 (substitute* "Makefile"
2543 ;; Do not rely on $(GPERF) being an absolute file name
2544 (("\\[ -x \\$\\(GPERF\\) \\]")
2545 "$(GPERF) --version >/dev/null 2>&1"))))
2546 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2547 (build-system gnu-build-system)
2548 (native-inputs
2549 `(("gperf" ,gperf)
2550 ("pkg-config" ,pkg-config)))
2551 (inputs
2552 `(("cairo" ,cairo)
2553 ("fribidi" ,fribidi)
2554 ("gettext" ,gnu-gettext)
2555 ("libpng" ,libpng)
2556 ("librsvg" ,librsvg)
2557 ("libpaper" ,libpaper)
2558 ("netpbm" ,netpbm)
2559 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2560 ;; TODO: Use system fonts rather than those in data/fonts
2561 (arguments
2562 `(#:make-flags `("VER_DATE=2014-08-23"
2563 "GPERF=gperf" "CC=gcc"
2564 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2565 ,(string-append "PREFIX=" %output)
2566 "GNOME_PREFIX=$(PREFIX)"
2567 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2568 #:tests? #f ;No tests
2569 #:phases (modify-phases %standard-phases
2570 (delete 'configure) ;no configure phase
2571 (add-after 'install 'fix-import
2572 (lambda* (#:key inputs outputs #:allow-other-keys)
2573 (let* ((out (assoc-ref outputs "out"))
2574 (net (assoc-ref inputs "netpbm"))
2575 (tpi (string-append out "/bin/tuxpaint-import")))
2576 (substitute* tpi
2577 ;; Point to installation prefix so that the default
2578 ;; configure file is found.
2579 (("/usr/local") out))
2580 ;; tuxpaint-import uses a bunch of programs from
2581 ;; netpbm, so make sure it knows where those are
2582 (wrap-program tpi
2583 `("PATH" ":" prefix
2584 (,(string-append net "/bin"))))))))))
2585 (native-search-paths
2586 (list (search-path-specification
2587 (variable "TUXPAINT_STAMPS_PATH")
2588 (files '("share/tuxpaint/stamps")))))
2589 (home-page "http://www.tuxpaint.org")
2590 (synopsis "Drawing software for children")
2591 (description
2592 "Tux Paint is a free drawing program designed for young children (kids
2593 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2594 and an encouraging cartoon mascot who helps guide children as they use the
2595 program. It provides a blank canvas and a variety of drawing tools to help
2596 your child be creative.")
2597 (license license:gpl2+)))
2598
2599 (define-public tuxpaint-stamps
2600 (package
2601 (name "tuxpaint-stamps")
2602 (version "2014.08.23")
2603 (source
2604 (origin
2605 (method url-fetch)
2606 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2607 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2608 "/tuxpaint-stamps-" version ".tar.gz"))
2609 (sha256
2610 (base32
2611 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2612 (build-system trivial-build-system)
2613 (native-inputs
2614 `(("tar" ,tar)
2615 ("gzip" ,gzip)))
2616 (arguments
2617 `(#:modules ((guix build utils))
2618 #:builder (begin
2619 (use-modules (guix build utils))
2620 (setenv "PATH"
2621 (string-append
2622 (assoc-ref %build-inputs "tar") "/bin" ":"
2623 (assoc-ref %build-inputs "gzip") "/bin"))
2624 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
2625 (chdir (string-append ,name "-" ,version))
2626 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2627 (mkdir-p dir)
2628 (copy-recursively "stamps" dir)))))
2629 (home-page (package-home-page tuxpaint))
2630 (synopsis "Stamp images for Tux Paint")
2631 (description
2632 "This package contains a set of \"Rubber Stamp\" images which can be used
2633 with the \"Stamp\" tool within Tux Paint.")
2634 (license license:gpl2+)))
2635
2636 (define-public tuxpaint-config
2637 (package
2638 (name "tuxpaint-config")
2639 (version "0.0.13") ;keep VER_DATE below in sync
2640 (source
2641 (origin
2642 (method url-fetch)
2643 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2644 version "/tuxpaint-config-" version ".tar.gz"))
2645 (sha256
2646 (base32
2647 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2648 (build-system gnu-build-system)
2649 (native-inputs
2650 `(("gettext" ,gnu-gettext)))
2651 (inputs
2652 `(("fltk" ,fltk)
2653 ("libpaper" ,libpaper)
2654 ;; TODO: Should the following be propagated by fltk?
2655 ("libx11" ,libx11)
2656 ("libxft" ,libxft)
2657 ("mesa" ,mesa)))
2658 (arguments
2659 `(#:make-flags `("VER_DATE=2014-08-23"
2660 "CONFDIR=/etc/tuxpaint" ;don't write to store
2661 ,(string-append "PREFIX=" %output)
2662 "GNOME_PREFIX=$(PREFIX)")
2663 #:parallel-build? #f ;race conditions
2664 #:tests? #f ;no tests
2665 #:phases (modify-phases %standard-phases
2666 (delete 'configure) ;no configure phase
2667 (add-before 'install 'gzip-no-name
2668 (lambda* _
2669 (substitute* "Makefile"
2670 ;; tuxpaint-config compresses its own documentation;
2671 ;; make sure it uses flags for reproducibility.
2672 (("gzip") "gzip --no-name"))))
2673 (add-before 'install 'make-install-dirs
2674 (lambda* (#:key outputs #:allow-other-keys)
2675 (let ((out (assoc-ref outputs "out")))
2676 (mkdir-p (string-append out "/bin"))
2677 #t))))))
2678 (home-page (package-home-page tuxpaint))
2679 (synopsis "Configure Tux Paint")
2680 (description
2681 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2682 (license license:gpl2))) ;no "or later" present
2683
2684 (define-public supertux
2685 (package
2686 (name "supertux")
2687 (version "0.5.0")
2688 (source (origin
2689 (method url-fetch)
2690 (uri (string-append "https://github.com/SuperTux/supertux/"
2691 "releases/download/v" version "/SuperTux-v"
2692 version "-Source.tar.gz"))
2693 (sha256
2694 (base32
2695 "0fx7c7m6mfanqy7kln7yf6abb5l3r68picf32js2yls11jj0vbng"))))
2696 (arguments
2697 '(#:tests? #f
2698 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
2699 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
2700 (build-system cmake-build-system)
2701 (inputs `(("sdl2" ,sdl2)
2702 ("sdl2-image" ,sdl2-image)
2703 ("sdl2-mixer" ,sdl2-mixer)
2704 ("openal" ,openal)
2705 ("mesa" ,mesa)
2706 ("glew" ,glew)
2707 ("libvorbis" ,libvorbis)
2708 ("libogg" ,libogg)
2709 ("physfs" ,physfs)
2710 ("curl" ,curl)
2711 ("boost" ,boost)))
2712 (native-inputs `(("pkg-config" ,pkg-config)))
2713 (synopsis "2D platformer game")
2714 (description "SuperTux is a free classic 2D jump'n run sidescroller game
2715 in a style similar to the original Super Mario games covered under
2716 the GNU GPL.")
2717 (home-page "https://supertuxproject.org/")
2718 (license license:gpl3+)))
2719
2720 (define-public tintin++
2721 (package
2722 (name "tintin++")
2723 (version "2.01.1")
2724 (source (origin
2725 (method url-fetch)
2726 (uri (string-append "https://sourceforge.net/projects/tintin"
2727 "/files/TinTin++ Source Code/" version
2728 "/tintin" "-" version ".tar.gz"))
2729 (sha256
2730 (base32
2731 "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
2732 (inputs
2733 `(("gnutls" ,gnutls)
2734 ("pcre" ,pcre)
2735 ("readline" ,readline)
2736 ("zlib" ,zlib)))
2737 (arguments
2738 '(#:tests? #f ; no test suite
2739 #:phases
2740 (modify-phases %standard-phases
2741 ;; The source is in tt/src.
2742 (add-before 'configure 'chdir
2743 (lambda _
2744 (chdir "src")
2745 #t)))))
2746 (build-system gnu-build-system)
2747 (home-page "http://tintin.sourceforge.net/")
2748 (synopsis "MUD client")
2749 (description
2750 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
2751 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
2752 as well as those required to login via telnet on Linux / Mac OS X servers, and an
2753 auto mapper with a VT100 map display.")
2754 (license license:gpl2+)))
2755
2756 (define-public laby
2757 (package
2758 (name "laby")
2759 (version "0.6.4")
2760 (source
2761 (origin (method url-fetch)
2762 (uri (string-append
2763 "https://github.com/sgimenez/laby/archive/"
2764 name "-" version ".tar.gz"))
2765 (sha256
2766 (base32
2767 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
2768 (patches (search-patches "laby-make-install.patch"))))
2769 (build-system gnu-build-system)
2770 (inputs
2771 `(("lablgtk" ,lablgtk)
2772 ("ocaml" ,ocaml)
2773 ("ocaml-findlib" ,ocaml-findlib)))
2774 (arguments
2775 '(#:phases
2776 (modify-phases %standard-phases
2777 (delete 'configure)
2778 (add-before 'build 'setenv
2779 (lambda* (#:key inputs #:allow-other-keys)
2780 (let ((lablgtk (assoc-ref inputs "lablgtk")))
2781 (setenv "LD_LIBRARY_PATH"
2782 (string-append lablgtk "/lib/ocaml/stublibs"))))))
2783 #:tests? #f ; no 'check' target
2784 #:make-flags
2785 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
2786 (home-page "https://sgimenez.github.io/laby/")
2787 (synopsis "Programming game")
2788 (description "Learn programming, playing with ants and spider webs ;-)
2789 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
2790 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
2791 programmers may also add their own favorite language.")
2792 (license license:gpl3+)))
2793
2794 (define-public bambam
2795 (package
2796 (name "bambam")
2797 (version "0.5")
2798 (source
2799 (origin
2800 (method url-fetch)
2801 (uri (string-append "https://github.com/porridge/bambam/archive/"
2802 version ".tar.gz"))
2803 (file-name (string-append name "-" version ".tar.gz"))
2804 (sha256
2805 (base32
2806 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
2807 (build-system python-build-system)
2808 (arguments
2809 `(#:python ,python-2
2810 #:tests? #f ; no tests
2811 #:phases
2812 (modify-phases %standard-phases
2813 (delete 'build)
2814 (add-before 'install 'patch-data-dir-location
2815 (lambda _
2816 (substitute* "bambam.py"
2817 (("'data'") "'../share/bambam/data'"))
2818 #t))
2819 (replace 'install
2820 (lambda* (#:key outputs #:allow-other-keys)
2821 (let* ((out (assoc-ref outputs "out"))
2822 (bin (string-append out "/bin"))
2823 (share (string-append out "/share")))
2824 (mkdir-p bin)
2825 (copy-file "bambam.py" (string-append bin "/bambam"))
2826 (install-file "bambam.6" (string-append share "/man/man6"))
2827 (copy-recursively "data" (string-append share "/bambam/data")))
2828 #t)))))
2829 (inputs
2830 `(("python-pygame" ,python-pygame)))
2831 (home-page "https://github.com/porridge/bambam")
2832 (synopsis "Keyboard mashing and doodling game for babies")
2833 (description "Bambam is a simple baby keyboard (and gamepad) masher
2834 application that locks the keyboard and mouse and instead displays bright
2835 colors, pictures, and sounds.")
2836 (license license:gpl3+)))
2837
2838 (define-public mrrescue
2839 (package
2840 (name "mrrescue")
2841 (version "1.02e")
2842 (source (origin
2843 (method url-fetch)
2844 (uri (string-append
2845 "https://github.com/SimonLarsen/mrrescue/releases/"
2846 "download/" version "/" name version ".love"))
2847 (file-name (string-append name "-" version ".love"))
2848 (sha256
2849 (base32
2850 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
2851 (build-system trivial-build-system)
2852 (arguments
2853 '(#:modules ((guix build utils))
2854 #:builder
2855 (begin
2856 (use-modules (guix build utils))
2857 (let* ((out (assoc-ref %outputs "out"))
2858 (bindir (string-append out "/bin"))
2859 (prog (string-append bindir "/mrrescue"))
2860 (source (assoc-ref %build-inputs "source"))
2861 (bash (string-append (assoc-ref %build-inputs "bash")
2862 "/bin/bash"))
2863 (love (string-append (assoc-ref %build-inputs "love")
2864 "/bin/love")))
2865 (mkdir-p bindir)
2866 (with-output-to-file prog
2867 (lambda ()
2868 (format #t "#!~a~%" bash)
2869 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
2870 (chmod prog #o755)
2871 #t))))
2872 (inputs
2873 `(("bash" ,bash)
2874 ("love" ,love)))
2875 (home-page "http://tangramgames.dk/games/mrrescue")
2876 (synopsis "Arcade-style fire fighting game")
2877 (description
2878 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
2879 civilians from burning buildings. The game features fast paced fire
2880 extinguishing action, intense boss battles, a catchy soundtrack and lots of
2881 throwing people around in pseudo-randomly generated buildings.")
2882 (license (list license:zlib ; for source code
2883 license:cc-by-sa3.0)))) ; for graphics and music assets
2884
2885 (define-public hyperrogue
2886 (package
2887 (name "hyperrogue")
2888 (version "8.3j")
2889 (source (origin
2890 (method url-fetch)
2891 (uri (string-append
2892 "http://www.roguetemple.com/z/hyper/"
2893 name "-83j.zip"))
2894 (sha256
2895 (base32
2896 "1ag95d84m4j0rqyn9hj7655znixw2j57bpf93nk14nfy02xz1g6p"))
2897 (modules '((guix build utils)))
2898 ;; Remove .exe and .dll files.
2899 (snippet
2900 '(for-each delete-file (find-files "." "\\.(exe|dll)$")))))
2901 (build-system gnu-build-system)
2902 (arguments
2903 '(#:tests? #f ; no check target
2904 #:make-flags '("-Csrc")
2905 #:phases
2906 (modify-phases %standard-phases
2907 (add-after 'set-paths 'set-sdl-paths
2908 (lambda* (#:key inputs #:allow-other-keys)
2909 (setenv "CPATH"
2910 (string-append (assoc-ref inputs "sdl-union")
2911 "/include/SDL"))))
2912 ;; Fix font and music paths.
2913 (replace 'configure
2914 (lambda* (#:key inputs outputs #:allow-other-keys)
2915 (let ((out (assoc-ref outputs "out"))
2916 (dejavu-dir (string-append
2917 (assoc-ref inputs "font-dejavu")
2918 "/share/fonts/truetype"))
2919 (dejavu-font "DejaVuSans-Bold.ttf")
2920 (music-file "hyperrogue-music.txt"))
2921 (with-directory-excursion "src"
2922 (substitute* "graph.cpp"
2923 ((dejavu-font)
2924 (string-append dejavu-dir "/" dejavu-font))
2925 (((string-append "\\./" music-file))
2926 (string-append out "/share/hyperrogue/" music-file)))
2927 (substitute* music-file
2928 (("\\*/")
2929 (string-append out "/share/hyperrogue/")))))
2930 #t))
2931 (replace 'install
2932 (lambda* (#:key inputs outputs #:allow-other-keys)
2933 (let* ((out (assoc-ref outputs "out"))
2934 (bin (string-append out "/bin"))
2935 (share-dir (string-append out "/share/hyperrogue")))
2936 (mkdir-p bin)
2937 (copy-file "src/hyper" (string-append bin "/hyperrogue"))
2938 (mkdir-p share-dir)
2939 (copy-file "src/hyperrogue-music.txt"
2940 (string-append share-dir "/hyperrogue-music.txt"))
2941 (for-each (lambda (file)
2942 (copy-file file (string-append share-dir "/" file)))
2943 (find-files "." "\\.ogg$")))
2944 #t)))))
2945 (inputs
2946 `(("font-dejavu" ,font-dejavu)
2947 ("glew" ,glew)
2948 ("libpng" ,libpng)
2949 ("sdl-union" ,(sdl-union (list sdl
2950 sdl-gfx
2951 sdl-mixer
2952 sdl-ttf)))))
2953 (home-page "http://www.roguetemple.com/z/hyper/")
2954 (synopsis "Non-euclidean graphical rogue-like game")
2955 (description
2956 "HyperRogue is a game in which the player collects treasures and fights
2957 monsters -- rogue-like but for the fact that it is played on the hyperbolic
2958 plane and not in euclidean space.
2959
2960 In HyperRogue, the player can move through different parts of the world, which
2961 are home to particular creatures and may be subject to own rules of \"physics\".
2962
2963 While it can use ASCII characters to display the world the classical rogue
2964 symbols, the game needs graphics to render the non-euclidean world.")
2965 (license (list license:bsd-3 ; src/glew.c, src/mtrand.*
2966 license:cc-by-sa3.0 ; *.ogg
2967 license:public-domain ; src/direntx.*
2968 license:zlib ; src/savepng.*
2969 license:gpl2+)))) ; remaining files
2970
2971 (define-public kobodeluxe
2972 (package
2973 (name "kobodeluxe")
2974 (version "0.5.1")
2975 (source (origin
2976 (method url-fetch)
2977 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
2978 version ".tar.bz2"))
2979 (sha256
2980 (base32
2981 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
2982 (patches (search-patches
2983 "kobodeluxe-const-charp-conversion.patch"
2984 "kobodeluxe-enemies-pipe-decl.patch"
2985 "kobodeluxe-graphics-window-signed-char.patch"
2986 "kobodeluxe-manpage-minus-not-hyphen.patch"
2987 "kobodeluxe-midicon-segmentation-fault.patch"
2988 "kobodeluxe-paths.patch"))))
2989 (build-system gnu-build-system)
2990 (arguments
2991 '(#:configure-flags
2992 (list (string-append "CPPFLAGS=-I"
2993 (assoc-ref %build-inputs "sdl-union")
2994 "/include/SDL"))))
2995 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
2996 (synopsis "Shooter with space station destruction")
2997 (description
2998 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
2999 for Un*x systems with X11.")
3000 (home-page "http://olofson.net/kobodl/")
3001 (license license:gpl2+)))