gnu: Add lci.
[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 supertuxkart
974 (package
975 (name "supertuxkart")
976 (version "0.9.2")
977 (source
978 (origin
979 (method url-fetch)
980 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
981 version "/supertuxkart-" version "-src.tar.xz"))
982 (sha256
983 (base32
984 "10l2ljmd7mv8f9ylarqmxxryicdnph2qkm3g5maxnsm2k2q0n20b"))
985 (modules '((guix build utils)))
986 (snippet
987 ;; Delete bundled library sources
988 '(begin
989 ;; FIXME: try to unbundle enet, and angelscript
990 (for-each delete-file-recursively
991 '("lib/zlib"
992 "lib/libpng"
993 "lib/jpeglib"
994 "lib/glew"
995 "lib/wiiuse"))
996 (substitute* "CMakeLists.txt"
997 ;; Supertuxkart uses modified versions of the Irrlicht engine
998 ;; and the bullet library. The developers gave an explanation here:
999 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1000 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1001 #t))))
1002 (build-system cmake-build-system)
1003 (arguments
1004 `(#:tests? #f ; no check target
1005 #:configure-flags
1006 (list "-DUSE_WIIUSE=0"
1007 ;; Do not use the bundled zlib
1008 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1009 ;; Irrlicht returns an integer instead of a boolean
1010 "-DCMAKE_C_FLAGS=-fpermissive")
1011 #:phases
1012 (modify-phases %standard-phases
1013 (add-after 'unpack 'unbundle
1014 (lambda* (#:key inputs #:allow-other-keys)
1015 (substitute* "CMakeLists.txt"
1016 (("glew")
1017 (string-append (assoc-ref inputs "glew")
1018 "/lib/libGLEW.a"))
1019 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1020 (string-append "include_directories(\""
1021 (assoc-ref inputs "glew")
1022 "/include\")")))
1023 #t)))))
1024 (inputs
1025 `(("glew" ,glew)
1026 ("zlib" ,zlib)
1027 ("openal" ,openal)
1028 ("libvorbis" ,libvorbis)
1029 ("freetype" ,freetype)
1030 ("fribidi" ,fribidi)
1031 ("mesa" ,mesa)
1032 ("libx11" ,libx11)
1033 ("libxrandr" ,libxrandr)
1034 ("curl" ,curl)
1035 ;; The following input is needed to build the bundled and modified
1036 ;; version of irrlicht.
1037 ("libjpeg" ,libjpeg)))
1038 (native-inputs
1039 `(("pkg-config" ,pkg-config)))
1040 (home-page "http://supertuxkart.net")
1041 (synopsis "3D kart racing game")
1042 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1043 having fun over realism. You can play with up to 4 friends on one PC, racing
1044 against each other or just trying to beat the computer; single-player mode is
1045 also available.")
1046 (license license:gpl3+)))
1047
1048 (define-public gnujump
1049 (package
1050 (name "gnujump")
1051 (version "1.0.8")
1052 (source (origin
1053 (method url-fetch)
1054 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1055 version ".tar.gz"))
1056 (sha256
1057 (base32
1058 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1059 (build-system gnu-build-system)
1060 (arguments
1061 '(#:phases
1062 (modify-phases %standard-phases
1063 (add-before
1064 'configure 'link-libm
1065 (lambda _ (setenv "LIBS" "-lm"))))))
1066 (inputs
1067 `(("glu" ,glu)
1068 ("mesa" ,mesa)
1069 ("sdl" ,sdl)
1070 ("sdl-image" ,sdl-image)
1071 ("sdl-mixer" ,sdl-mixer)))
1072 (home-page "http://gnujump.es.gnu.org/")
1073 (synopsis
1074 "Game of jumping to the next floor, trying not to fall")
1075 (description
1076 "GNUjump is a simple, yet addictive game in which you must jump from
1077 platform to platform to avoid falling, while the platforms drop at faster rates
1078 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1079 falling, themeable graphics and sounds, and replays.")
1080 (license license:gpl3+)))
1081
1082 (define-public wesnoth
1083 (package
1084 (name "wesnoth")
1085 (version "1.12.6")
1086 (source (origin
1087 (method url-fetch)
1088 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1089 (version-major+minor version) "/wesnoth-"
1090 version "/"
1091 name "-" version ".tar.bz2"))
1092 (sha256
1093 (base32
1094 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1095 (build-system cmake-build-system)
1096 (arguments
1097 '(#:tests? #f ; no check target
1098 #:configure-flags
1099 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1100 ;; boost/mpl/assert.hpp:313:58: error:
1101 ;; use of old-style cast [-Werror=old-style-cast]
1102 ;; [...]
1103 ;; cc1plus: all warnings being treated as errors
1104 '("-DENABLE_STRICT_COMPILATION=OFF")))
1105 (native-inputs
1106 `(("gettext" ,gnu-gettext)
1107 ("pkg-config" ,pkg-config)))
1108 (inputs
1109 `(("boost" ,boost)
1110 ("dbus" ,dbus)
1111 ("fribidi" ,fribidi)
1112 ("libvorbis" ,libvorbis)
1113 ("pango" ,pango)
1114 ("sdl-image" ,sdl-image)
1115 ("sdl-mixer" ,sdl-mixer)
1116 ("sdl-net" ,sdl-net)
1117 ("sdl-ttf" ,sdl-ttf)))
1118 (home-page "http://www.wesnoth.org/")
1119 (synopsis "Turn-based strategy game")
1120 (description
1121 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1122 with several single player campaigns, and multiplayer games (both networked and
1123 local).
1124
1125 Battle for control on a range of maps, using variety of units which have
1126 advantages and disadvantages against different types of attacks. Units gain
1127 experience and advance levels, and are carried over from one scenario to the
1128 next campaign.")
1129 (license license:gpl2+)))
1130
1131 (define-public dosbox
1132 (package
1133 (name "dosbox")
1134 (version "0.74.svn3947")
1135 (source (origin
1136 (method svn-fetch)
1137 (uri (svn-reference
1138 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1139 (revision 3947)))
1140 (file-name (string-append name "-" version "-checkout"))
1141 ;; Use SVN head, since the last release (2010) is incompatible
1142 ;; with GCC 4.8+ (see
1143 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1144 (sha256
1145 (base32
1146 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1147 (build-system gnu-build-system)
1148 (arguments
1149 `(#:phases (modify-phases %standard-phases
1150 (add-after
1151 'unpack 'autogen.sh
1152 (lambda _
1153 (zero? (system* "sh" "autogen.sh")))))))
1154 (native-inputs
1155 `(("autoconf" ,autoconf)
1156 ("automake" ,automake)))
1157 (inputs
1158 `(("sdl" ,sdl)
1159 ("libpng" ,libpng)
1160 ("zlib" ,zlib)
1161 ("alsa-lib" ,alsa-lib)
1162 ("glu" ,glu)
1163 ("mesa" ,mesa)))
1164 (home-page "http://www.dosbox.com")
1165 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1166 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1167 also emulates CPU:286/386 realmode/protected mode, Directory
1168 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1169 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1170 older games.")
1171 (license license:gpl2+)))
1172
1173 (define-public gamine
1174 (package
1175 (name "gamine")
1176 (version "1.4")
1177 (source (origin
1178 (method url-fetch)
1179 (uri (string-append "mirror://sourceforge/gamine-game/"
1180 "gamine-" version ".tar.gz"))
1181 (sha256
1182 (base32
1183 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1184 (build-system gnu-build-system)
1185 (native-inputs
1186 `(("pkg-config" ,pkg-config)
1187 ("intltool" ,intltool)))
1188 (inputs
1189 `(("gstreamer" ,gstreamer)
1190 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1191 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1192 ("gtk+" ,gtk+)))
1193 (arguments
1194 `(#:tests? #f
1195 #:make-flags
1196 (let ((out (assoc-ref %outputs "out")))
1197 (list (string-append "PREFIX=" out)
1198 (string-append "SYSCONFDIR=" out "/etc")))
1199 #:phases
1200 (modify-phases %standard-phases
1201 (delete 'configure)
1202 (add-after
1203 'install 'wrap-gamine
1204 (lambda* (#:key outputs #:allow-other-keys)
1205 (let ((out (assoc-ref outputs "out"))
1206 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1207 (wrap-program (string-append out "/bin/gamine")
1208 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1209 #t)))))
1210 (home-page "http://gamine-game.sourceforge.net/")
1211 (synopsis "Mouse and keyboard discovery for children")
1212 (description
1213 "Gamine is a game designed for young children who are learning to use the
1214 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1215 on the screen and keyboard to display letters.")
1216 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1217 (license license:gpl3)))
1218
1219 (define-public raincat
1220 (package
1221 (name "raincat")
1222 (version "1.1.1.3")
1223 (source
1224 (origin
1225 (method url-fetch)
1226 (uri (string-append
1227 "http://hackage.haskell.org/package/Raincat/Raincat-"
1228 version
1229 ".tar.gz"))
1230 (sha256
1231 (base32
1232 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1233 (build-system haskell-build-system)
1234 (inputs
1235 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1236 ("ghc-mtl" ,ghc-mtl)
1237 ("ghc-random" ,ghc-random)
1238 ("ghc-glut" ,ghc-glut)
1239 ("freeglut" ,freeglut)
1240 ("ghc-opengl" ,ghc-opengl)
1241 ("ghc-sdl" ,ghc-sdl)
1242 ("ghc-sdl-image" ,ghc-sdl-image)
1243 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1244 (home-page "http://raincat.bysusanlin.com/")
1245 (synopsis "Puzzle game with a cat in lead role")
1246 (description "Project Raincat is a game developed by Carnegie Mellon
1247 students through GCS during the Fall 2008 semester. Raincat features game
1248 play inspired from classics Lemmings and The Incredible Machine. The project
1249 proved to be an excellent learning experience for the programmers. Everything
1250 is programmed in Haskell.")
1251 (license license:bsd-3)))
1252
1253 (define-public manaplus
1254 (package
1255 (name "manaplus")
1256 (version "1.6.8.14")
1257 (source (origin
1258 (method url-fetch)
1259 (uri (string-append
1260 "http://repo.manaplus.org/manaplus/download/"
1261 version "/manaplus-" version ".tar.xz"))
1262 (sha256
1263 (base32
1264 "1mah4w6ng0j76cjzbw8y9m2ds5f1w5ka9b1k3gzgvxh4yaphqnff"))))
1265 (build-system gnu-build-system)
1266 (arguments
1267 '(#:configure-flags
1268 (list (string-append "CPPFLAGS=-I"
1269 (assoc-ref %build-inputs "sdl-union")
1270 "/include/SDL"))))
1271 (native-inputs
1272 `(("pkg-config" ,pkg-config)))
1273 (inputs
1274 `(("glu" ,glu)
1275 ("curl" ,curl)
1276 ("libxml2" ,libxml2)
1277 ("mesa" ,mesa)
1278 ("physfs" ,physfs)
1279 ("sdl-union" ,(sdl-union))))
1280 (home-page "http://manaplus.org")
1281 (synopsis "Client for 'The Mana World' and similar games")
1282 (description
1283 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1284 fully supported client for @uref{http://www.themanaworld.org, The mana
1285 world}, @uref{http://evolonline.org, Evol Online} and
1286 @uref{http://landoffire.org, Land of fire}.")
1287 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1288 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1289 ;; The rest is under GPL2+.
1290 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1291
1292 (define-public mupen64plus-core
1293 (package
1294 (name "mupen64plus-core")
1295 (version "2.5")
1296 (source
1297 (origin
1298 (method url-fetch)
1299 (uri (string-append
1300 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1301 version ".tar.gz"))
1302 (file-name (string-append name "-" version ".tar.gz"))
1303 (sha256
1304 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1305 (build-system gnu-build-system)
1306 (native-inputs
1307 `(("pkg-config" ,pkg-config)
1308 ("which" ,which)))
1309 (inputs
1310 `(("freetype" ,freetype)
1311 ("glu" ,glu)
1312 ("libpng" ,libpng)
1313 ("mesa" ,mesa)
1314 ("sdl2" ,sdl2)
1315 ("zlib" ,zlib)))
1316 (arguments
1317 '(#:phases
1318 (modify-phases %standard-phases
1319 ;; The mupen64plus build system has no configure phase.
1320 (delete 'configure)
1321 ;; Makefile is in a subdirectory.
1322 (add-before
1323 'build 'cd-to-project-dir
1324 (lambda _
1325 (chdir "projects/unix"))))
1326 #:make-flags (let ((out (assoc-ref %outputs "out")))
1327 (list "all" (string-append "PREFIX=" out)))
1328 ;; There are no tests.
1329 #:tests? #f))
1330 ;; As per the Makefile (in projects/unix/Makefile):
1331 (supported-systems '("i686-linux" "x86_64-linux"))
1332 (home-page "http://www.mupen64plus.org/")
1333 (synopsis "Nintendo 64 emulator core library")
1334 (description
1335 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1336 which is capable of accurately playing many games. This package contains the
1337 core library.")
1338 (license license:gpl2+)))
1339
1340 (define-public mupen64plus-audio-sdl
1341 (package
1342 (name "mupen64plus-audio-sdl")
1343 (version "2.5")
1344 (source
1345 (origin
1346 (method url-fetch)
1347 (uri (string-append
1348 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1349 version ".tar.gz"))
1350 (file-name (string-append name "-" version ".tar.gz"))
1351 (sha256
1352 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1353 (build-system gnu-build-system)
1354 (native-inputs
1355 `(("pkg-config" ,pkg-config)
1356 ("which" ,which)))
1357 (inputs
1358 `(("mupen64plus-core" ,mupen64plus-core)
1359 ("sdl2" ,sdl2)))
1360 (arguments
1361 '(#:phases
1362 (modify-phases %standard-phases
1363 ;; The mupen64plus build system has no configure phase.
1364 (delete 'configure)
1365 ;; Makefile is in a subdirectory.
1366 (add-before
1367 'build 'cd-to-project-dir
1368 (lambda _
1369 (chdir "projects/unix"))))
1370 #:make-flags
1371 (let ((out (assoc-ref %outputs "out"))
1372 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1373 (list "all"
1374 (string-append "PREFIX=" out)
1375 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1376 ;; There are no tests.
1377 #:tests? #f))
1378 (home-page "http://www.mupen64plus.org/")
1379 (synopsis "Mupen64Plus SDL input plugin")
1380 (description
1381 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1382 which is capable of accurately playing many games. This package contains the
1383 SDL audio plugin.")
1384 (license license:gpl2+)))
1385
1386 (define-public mupen64plus-input-sdl
1387 (package
1388 (name "mupen64plus-input-sdl")
1389 (version "2.5")
1390 (source
1391 (origin
1392 (method url-fetch)
1393 (uri (string-append
1394 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1395 version ".tar.gz"))
1396 (file-name (string-append name "-" version ".tar.gz"))
1397 (sha256
1398 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1399 (build-system gnu-build-system)
1400 (native-inputs
1401 `(("which" ,which)))
1402 (inputs
1403 `(("mupen64plus-core" ,mupen64plus-core)
1404 ("sdl2" ,sdl2)))
1405 (arguments
1406 '(#:phases
1407 (modify-phases %standard-phases
1408 ;; The mupen64plus build system has no configure phase.
1409 (delete 'configure)
1410 ;; Makefile is in a subdirectory.
1411 (add-before
1412 'build 'cd-to-project-dir
1413 (lambda _
1414 (chdir "projects/unix"))))
1415 #:make-flags
1416 (let ((out (assoc-ref %outputs "out"))
1417 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1418 (list "all"
1419 (string-append "PREFIX=" out)
1420 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1421 ;; There are no tests.
1422 #:tests? #f))
1423 (home-page "http://www.mupen64plus.org/")
1424 (synopsis "Mupen64Plus SDL input plugin")
1425 (description
1426 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1427 which is capable of accurately playing many games. This package contains the
1428 SDL input plugin.")
1429 (license license:gpl2+)))
1430
1431 (define-public mupen64plus-rsp-hle
1432 (package
1433 (name "mupen64plus-rsp-hle")
1434 (version "2.5")
1435 (source
1436 (origin
1437 (method url-fetch)
1438 (uri (string-append
1439 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1440 version ".tar.gz"))
1441 (file-name (string-append name "-" version ".tar.gz"))
1442 (sha256
1443 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1444 (build-system gnu-build-system)
1445 (inputs
1446 `(("mupen64plus-core" ,mupen64plus-core)))
1447 (arguments
1448 '(#:phases
1449 (modify-phases %standard-phases
1450 ;; The mupen64plus build system has no configure phase.
1451 (delete 'configure)
1452 ;; Makefile is in a subdirectory.
1453 (add-before
1454 'build 'cd-to-project-dir
1455 (lambda _
1456 (chdir "projects/unix"))))
1457 #:make-flags
1458 (let ((out (assoc-ref %outputs "out"))
1459 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1460 (list "all"
1461 (string-append "PREFIX=" out)
1462 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1463 ;; There are no tests.
1464 #:tests? #f))
1465 (home-page "http://www.mupen64plus.org/")
1466 (synopsis "Mupen64Plus SDL input plugin")
1467 (description
1468 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1469 which is capable of accurately playing many games. This package contains the
1470 high-level emulation (HLE) RSP processor plugin.")
1471 (license license:gpl2+)))
1472
1473 (define-public mupen64plus-rsp-z64
1474 (package
1475 (name "mupen64plus-rsp-z64")
1476 (version "2.0.0")
1477 (source
1478 (origin
1479 (method url-fetch)
1480 (uri (string-append
1481 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1482 version ".tar.gz"))
1483 (file-name (string-append name "-" version ".tar.gz"))
1484 (sha256
1485 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1486 (build-system gnu-build-system)
1487 (inputs
1488 `(("mupen64plus-core" ,mupen64plus-core)))
1489 (arguments
1490 '(#:phases
1491 (modify-phases %standard-phases
1492 ;; The mupen64plus build system has no configure phase.
1493 (delete 'configure)
1494 ;; Makefile is in a subdirectory.
1495 (add-before
1496 'build 'cd-to-project-dir
1497 (lambda _
1498 (chdir "projects/unix"))))
1499 #:make-flags
1500 (let ((out (assoc-ref %outputs "out"))
1501 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1502 (list "all"
1503 (string-append "PREFIX=" out)
1504 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1505 ;; There are no tests.
1506 #:tests? #f))
1507 (home-page "http://www.mupen64plus.org/")
1508 (synopsis "Mupen64Plus SDL input plugin")
1509 (description
1510 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1511 which is capable of accurately playing many games. This package contains the
1512 Z64 RSP processor plugin.")
1513 (license license:gpl2+)))
1514
1515 (define-public mupen64plus-video-arachnoid
1516 (package
1517 (name "mupen64plus-video-arachnoid")
1518 (version "2.0.0")
1519 (source
1520 (origin
1521 (method url-fetch)
1522 (uri (string-append
1523 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1524 version ".tar.gz"))
1525 (file-name (string-append name "-" version ".tar.gz"))
1526 (sha256
1527 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1528 (build-system gnu-build-system)
1529 (native-inputs
1530 `(("pkg-config" ,pkg-config)
1531 ("which" ,which)))
1532 (inputs
1533 `(("mesa" ,mesa)
1534 ("mupen64plus-core" ,mupen64plus-core)))
1535 (arguments
1536 '(#:phases
1537 (modify-phases %standard-phases
1538 ;; The mupen64plus build system has no configure phase.
1539 (delete 'configure)
1540 ;; Makefile is in a subdirectory.
1541 (add-before
1542 'build 'cd-to-project-dir
1543 (lambda _
1544 (chdir "projects/unix"))))
1545 #:make-flags
1546 (let ((out (assoc-ref %outputs "out"))
1547 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1548 (list "all"
1549 (string-append "PREFIX=" out)
1550 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1551 ;; There are no tests.
1552 #:tests? #f))
1553 (home-page "http://www.mupen64plus.org/")
1554 (synopsis "Mupen64Plus Rice Video plugin")
1555 (description
1556 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1557 which is capable of accurately playing many games. This package contains the
1558 Arachnoid video plugin.")
1559 (license license:gpl2+)))
1560
1561 (define-public mupen64plus-video-glide64
1562 (package
1563 (name "mupen64plus-video-glide64")
1564 (version "2.0.0")
1565 (source
1566 (origin
1567 (method url-fetch)
1568 (uri (string-append
1569 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1570 version ".tar.gz"))
1571 (file-name (string-append name "-" version ".tar.gz"))
1572 (sha256
1573 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1574 (build-system gnu-build-system)
1575 (native-inputs
1576 `(("pkg-config" ,pkg-config)
1577 ("which" ,which)))
1578 (inputs
1579 `(("mesa" ,mesa)
1580 ("mupen64plus-core" ,mupen64plus-core)
1581 ("sdl2" ,sdl2)))
1582 (arguments
1583 '(#:phases
1584 (modify-phases %standard-phases
1585 ;; The mupen64plus build system has no configure phase.
1586 (delete 'configure)
1587 ;; Makefile is in a subdirectory.
1588 (add-before
1589 'build 'cd-to-project-dir
1590 (lambda _
1591 (chdir "projects/unix")))
1592 ;; XXX Should be unnecessary with the next release.
1593 (add-before
1594 'build 'use-sdl2
1595 (lambda _
1596 (substitute* "Makefile"
1597 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1598 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1599 #:make-flags
1600 (let ((out (assoc-ref %outputs "out"))
1601 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1602 (list "all"
1603 (string-append "PREFIX=" out)
1604 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1605 ;; There are no tests.
1606 #:tests? #f))
1607 (home-page "http://www.mupen64plus.org/")
1608 (synopsis "Mupen64Plus Rice Video plugin")
1609 (description
1610 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1611 which is capable of accurately playing many games. This package contains the
1612 Glide64 video plugin.")
1613 (license license:gpl2+)))
1614
1615 (define-public mupen64plus-video-glide64mk2
1616 (package
1617 (name "mupen64plus-video-glide64mk2")
1618 (version "2.5")
1619 (source
1620 (origin
1621 (method url-fetch)
1622 (uri (string-append
1623 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1624 version ".tar.gz"))
1625 (file-name (string-append name "-" version ".tar.gz"))
1626 (sha256
1627 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1628 (build-system gnu-build-system)
1629 (native-inputs
1630 `(("pkg-config" ,pkg-config)
1631 ("which" ,which)))
1632 (inputs
1633 `(("boost" ,boost)
1634 ("libpng" ,libpng)
1635 ("mesa" ,mesa)
1636 ("mupen64plus-core" ,mupen64plus-core)
1637 ("sdl2" ,sdl2)
1638 ("zlib" ,zlib)))
1639 (arguments
1640 '(#:phases
1641 (modify-phases %standard-phases
1642 ;; The mupen64plus build system has no configure phase.
1643 (delete 'configure)
1644 ;; Makefile is in a subdirectory.
1645 (add-before
1646 'build 'cd-to-project-dir
1647 (lambda _
1648 (chdir "projects/unix"))))
1649 #:make-flags
1650 (let ((out (assoc-ref %outputs "out"))
1651 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1652 (list "all"
1653 (string-append "PREFIX=" out)
1654 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1655 ;; There are no tests.
1656 #:tests? #f))
1657 (home-page "http://www.mupen64plus.org/")
1658 (synopsis "Mupen64Plus Rice Video plugin")
1659 (description
1660 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1661 which is capable of accurately playing many games. This package contains the
1662 Glide64MK2 video plugin.")
1663 (license license:gpl2+)))
1664
1665 (define-public mupen64plus-video-rice
1666 (package
1667 (name "mupen64plus-video-rice")
1668 (version "2.5")
1669 (source
1670 (origin
1671 (method url-fetch)
1672 (uri (string-append
1673 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1674 version ".tar.gz"))
1675 (file-name (string-append name "-" version ".tar.gz"))
1676 (sha256
1677 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1678 (build-system gnu-build-system)
1679 (native-inputs
1680 `(("pkg-config" ,pkg-config)
1681 ("which" ,which)))
1682 (inputs
1683 `(("libpng" ,libpng)
1684 ("mesa" ,mesa)
1685 ("mupen64plus-core" ,mupen64plus-core)
1686 ("sdl2" ,sdl2)))
1687 (arguments
1688 '(#:phases
1689 (modify-phases %standard-phases
1690 ;; The mupen64plus build system has no configure phase.
1691 (delete 'configure)
1692 ;; Makefile is in a subdirectory.
1693 (add-before
1694 'build 'cd-to-project-dir
1695 (lambda _
1696 (chdir "projects/unix"))))
1697 #:make-flags
1698 (let ((out (assoc-ref %outputs "out"))
1699 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1700 (list "all"
1701 (string-append "PREFIX=" out)
1702 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1703 ;; There are no tests.
1704 #:tests? #f))
1705 (home-page "http://www.mupen64plus.org/")
1706 (synopsis "Mupen64Plus Rice Video plugin")
1707 (description
1708 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1709 which is capable of accurately playing many games. This package contains the
1710 Rice Video plugin.")
1711 (license license:gpl2+)))
1712
1713 (define-public mupen64plus-video-z64
1714 (package
1715 (name "mupen64plus-video-z64")
1716 (version "2.0.0")
1717 (source
1718 (origin
1719 (method url-fetch)
1720 (uri (string-append
1721 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1722 version ".tar.gz"))
1723 (file-name (string-append name "-" version ".tar.gz"))
1724 (sha256
1725 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1726 (build-system gnu-build-system)
1727 (native-inputs
1728 `(("pkg-config" ,pkg-config)
1729 ("which" ,which)))
1730 (inputs
1731 `(("glew" ,glew)
1732 ("mupen64plus-core" ,mupen64plus-core)
1733 ("sdl2" ,sdl2)))
1734 (arguments
1735 '(#:phases
1736 (modify-phases %standard-phases
1737 ;; The mupen64plus build system has no configure phase.
1738 (delete 'configure)
1739 ;; Makefile is in a subdirectory.
1740 (add-before
1741 'build 'cd-to-project-dir
1742 (lambda _
1743 (chdir "projects/unix")))
1744 ;; XXX Should be unnecessary with the next release.
1745 (add-before
1746 'build 'use-sdl2
1747 (lambda _
1748 (substitute* "Makefile"
1749 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1750 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1751 #:make-flags
1752 (let ((out (assoc-ref %outputs "out"))
1753 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1754 (list "all"
1755 (string-append "PREFIX=" out)
1756 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1757 ;; There are no tests.
1758 #:tests? #f))
1759 (home-page "http://www.mupen64plus.org/")
1760 (synopsis "Mupen64Plus Z64 video plugin")
1761 (description
1762 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1763 which is capable of accurately playing many games. This package contains the
1764 Z64 video plugin.")
1765 (license license:gpl2+)))
1766
1767 (define-public mupen64plus-ui-console
1768 (package
1769 (name "mupen64plus-ui-console")
1770 (version "2.5")
1771 (source
1772 (origin
1773 (method url-fetch)
1774 (uri (string-append
1775 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1776 version ".tar.gz"))
1777 (file-name (string-append name "-" version ".tar.gz"))
1778 (sha256
1779 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1780 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1781 (build-system gnu-build-system)
1782 (native-inputs
1783 `(("pkg-config" ,pkg-config)
1784 ("which" ,which)))
1785 (inputs
1786 `(("sdl2" ,sdl2)))
1787 ;; Mupen64Plus supports a single data directory and a single plugin
1788 ;; directory in its configuration, yet we need data and plugin files from
1789 ;; a variety of packages. The best way to deal with this is to install
1790 ;; all packages from which data and plugin files are needed into one's
1791 ;; profile, and point the configuration there. Hence, propagate the most
1792 ;; important packages here to save the user from the bother. The patch
1793 ;; mupen64plus-ui-console-notice also gives users instructions on what
1794 ;; they need to do in order to point the configuration to their profile.
1795 (propagated-inputs
1796 `(("mupen64plus-core" ,mupen64plus-core)
1797 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1798 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1799 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1800 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1801 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1802 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1803 (arguments
1804 '(#:phases
1805 (modify-phases %standard-phases
1806 ;; The mupen64plus build system has no configure phase.
1807 (delete 'configure)
1808 ;; Makefile is in a subdirectory.
1809 (add-before
1810 'build 'cd-to-project-dir
1811 (lambda _
1812 (chdir "projects/unix"))))
1813 #:make-flags
1814 (let ((out (assoc-ref %outputs "out"))
1815 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1816 (list "all"
1817 (string-append "PREFIX=" out)
1818 (string-append "APIDIR=" m64p "/include/mupen64plus")
1819 ;; Trailing slash matters here.
1820 (string-append "COREDIR=" m64p "/lib/")))
1821 ;; There are no tests.
1822 #:tests? #f))
1823 (home-page "http://www.mupen64plus.org/")
1824 (synopsis "Mupen64Plus SDL input plugin")
1825 (description
1826 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1827 which is capable of accurately playing many games. This package contains the
1828 command line user interface. Installing this package is the easiest way
1829 towards a working Mupen64Plus for casual users.")
1830 (license license:gpl2+)))
1831
1832 (define-public nestopia-ue
1833 (package
1834 (name "nestopia-ue")
1835 (version "1.47")
1836 (source (origin
1837 (method url-fetch)
1838 (uri (string-append
1839 "https://github.com/rdanbrook/nestopia/archive/"
1840 version ".tar.gz"))
1841 (file-name (string-append name "-" version ".tar.gz"))
1842 (sha256
1843 (base32
1844 "1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
1845 (modules '((guix build utils)))
1846 (snippet
1847 '(begin
1848 ;; We don't need libretro for the GNU/Linux build.
1849 (delete-file-recursively "libretro")
1850 ;; Use system zlib.
1851 (delete-file-recursively "source/zlib")
1852 (substitute* "source/core/NstZlib.cpp"
1853 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1854 (build-system gnu-build-system)
1855 (native-inputs
1856 `(("pkg-config" ,pkg-config)))
1857 (inputs
1858 `(("ao" ,ao)
1859 ("glu" ,glu)
1860 ("gtk+" ,gtk+)
1861 ("libarchive" ,libarchive)
1862 ("mesa" ,mesa)
1863 ("sdl2" ,sdl2)
1864 ("zlib" ,zlib)))
1865 (arguments
1866 '(#:phases
1867 (modify-phases %standard-phases
1868 ;; The Nestopia build system consists solely of a Makefile.
1869 (delete 'configure)
1870 (add-before 'build 'remove-xdg-desktop-menu-call
1871 (lambda _
1872 (substitute* "Makefile"
1873 (("xdg-desktop-menu install .*") ""))))
1874 (add-before 'build 'remove-gdkwayland-include
1875 (lambda _
1876 (substitute* "source/unix/gtkui/gtkui.h"
1877 (("#include <gdk/gdkwayland\\.h>") "")))))
1878 #:make-flags (let ((out (assoc-ref %outputs "out")))
1879 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1880 ;; There are no tests.
1881 #:tests? #f))
1882 (home-page "http://0ldsk00l.ca/nestopia/")
1883 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1884 (description
1885 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1886 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1887 emulation community. It provides highly accurate emulation.")
1888 (license license:gpl2+)))
1889
1890 (define-public emulation-station
1891 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1892 (package
1893 (name "emulation-station")
1894 (version "2.0.1")
1895 (source (origin
1896 (method git-fetch) ; no tarball available
1897 (uri (git-reference
1898 (url "https://github.com/Aloshi/EmulationStation.git")
1899 (commit commit))) ; no version tag
1900 (sha256
1901 (base32
1902 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1903 (build-system cmake-build-system)
1904 (arguments
1905 '(#:tests? #f)) ; no tests
1906 (inputs
1907 `(("alsa-lib" ,alsa-lib)
1908 ("boost" ,boost)
1909 ("curl" ,curl)
1910 ("eigin" ,eigen)
1911 ("freeimage" ,freeimage)
1912 ("freetype" ,freetype)
1913 ("mesa" ,mesa)
1914 ("sdl2" ,sdl2)))
1915 (synopsis "Video game console emulator front-end")
1916 (description "EmulationStation provides a graphical front-end to a large
1917 number of video game console emulators. It features an interface that is
1918 usable with any game controller that has at least 4 buttons, theming support,
1919 and a game metadata scraper.")
1920 (home-page "http://www.emulationstation.org")
1921 (license license:expat))))
1922
1923 (define openttd-engine
1924 (package
1925 (name "openttd-engine")
1926 (version "1.6.1")
1927 (source
1928 (origin (method url-fetch)
1929 (uri (string-append "http://binaries.openttd.org/releases/"
1930 version "/openttd-" version "-source.tar.xz"))
1931 (sha256
1932 (base32
1933 "1ak32fj5xkk2fvmm3g8i7wzmk4bh2ijsp8fzvvw5wj6365p9j24v"))
1934 (modules '((guix build utils)))
1935 (snippet
1936 ;; The DOS port contains proprietary software.
1937 '(delete-file-recursively "os/dos"))))
1938 (build-system gnu-build-system)
1939 (arguments
1940 `(#:tests? #f ; no "check" target
1941 #:phases
1942 (modify-phases %standard-phases
1943 ;; The build process fails if the configure script is passed the
1944 ;; option "--enable-fast-install".
1945 (replace 'configure
1946 (lambda* (#:key inputs outputs #:allow-other-keys)
1947 (let ((out (assoc-ref outputs "out"))
1948 (lzo (assoc-ref inputs "lzo")))
1949 (zero?
1950 (system* "./configure"
1951 (string-append "--prefix=" out)
1952 ;; Provide the "lzo" path.
1953 (string-append "--with-liblzo2="
1954 lzo "/lib/liblzo2.a")
1955 ;; Put the binary in 'bin' instead of 'games'.
1956 "--binary-dir=bin"))))))))
1957 (native-inputs `(("pkg-config" ,pkg-config)))
1958 (inputs
1959 `(("allegro" ,allegro-4)
1960 ("fontconfig" ,fontconfig)
1961 ("freetype" ,freetype)
1962 ("icu4c" ,icu4c)
1963 ("libpng" ,libpng)
1964 ("lzo" ,lzo)
1965 ("sdl" ,sdl)
1966 ("xz" ,xz)
1967 ("zlib" ,zlib)))
1968 (synopsis "Transportation economics simulator")
1969 (description "OpenTTD is a game in which you transport goods and
1970 passengers by land, water and air. It is a re-implementation of Transport
1971 Tycoon Deluxe with many enhancements including multiplayer mode,
1972 internationalization support, conditional orders and the ability to clone,
1973 autoreplace and autoupdate vehicles. This package only includes the game engine. When you start
1974 it you will be prompted to download a graphics set.")
1975 (home-page "http://openttd.org/")
1976 ;; This package is GPLv2, except for a few files located in
1977 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1978 ;; licenses. In addition, this software contains an in-game downloader
1979 ;; from which the user may find non-functional data licensed under
1980 ;; different terms.
1981 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1982
1983 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1984 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1985 ;; but it asks a user to download graphics if it's not found.
1986
1987 (define-public openttd
1988 (package
1989 (inherit openttd-engine)
1990 (name "openttd")))
1991
1992 (define-public pinball
1993 (package
1994 (name "pinball")
1995 (version "0.3.1")
1996 (source
1997 (origin (method url-fetch)
1998 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1999 "pinball-" version "/"
2000 "pinball-" version ".tar.gz"))
2001 (sha256
2002 (base32
2003 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2004 (patches (search-patches "pinball-const-fix.patch"
2005 "pinball-cstddef.patch"
2006 "pinball-missing-separators.patch"
2007 "pinball-src-deps.patch"
2008 "pinball-system-ltdl.patch"))))
2009 (build-system gnu-build-system)
2010 (inputs
2011 `(("glu" ,glu)
2012 ("mesa" ,mesa)
2013 ("sdl" ,sdl)
2014 ("sdl-image" ,sdl-image)
2015 ("sdl-mixer" ,sdl-mixer)))
2016 (arguments
2017 '(#:configure-flags
2018 (list (string-append "CPPFLAGS=-I"
2019 (assoc-ref %build-inputs "sdl-image")
2020 "/include/SDL -I"
2021 (assoc-ref %build-inputs "sdl-mixer")
2022 "/include/SDL"))))
2023 (home-page "http://pinball.sourceforge.net")
2024 (synopsis "Pinball simulator")
2025 (description "The Emilia Pinball Project is a pinball simulator. There
2026 are only two levels to play with, but they are very addictive.")
2027 (license license:gpl2)))
2028
2029 (define-public pioneers
2030 (package
2031 (name "pioneers")
2032 (version "15.3")
2033 (source (origin
2034 (method url-fetch)
2035 (uri (string-append "http://downloads.sourceforge.net/pio/"
2036 "pioneers-" version ".tar.gz"))
2037 (sha256
2038 (base32
2039 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
2040 (build-system gnu-build-system)
2041 (inputs `(("gtk+" ,gtk+)
2042 ("librsvg" ,librsvg)
2043 ("avahi" ,avahi)))
2044 (native-inputs `(("intltool" ,intltool)
2045 ("pkg-config" ,pkg-config)))
2046 (synopsis "Board game inspired by The Settlers of Catan")
2047 (description "Pioneers is an emulation of the board game The Settlers of
2048 Catan. It can be played on a local network, on the internet, and with AI
2049 players.")
2050 (home-page "http://pio.sourceforge.net/")
2051 (license license:gpl2+)))
2052
2053 (define-public desmume
2054 (package
2055 (name "desmume")
2056 (version "0.9.11")
2057 (source
2058 (origin
2059 (method url-fetch)
2060 (uri (string-append
2061 "mirror://sourceforge/desmume/desmume/"
2062 version "/desmume-" version ".tar.gz"))
2063 (sha256
2064 (base32
2065 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2066 (build-system gnu-build-system)
2067 (arguments
2068 ;; Enable support for WiFi and microphone.
2069 `(#:configure-flags '("--enable-wifi"
2070 "--enable-openal")))
2071 (native-inputs
2072 `(("pkg-config" ,pkg-config)
2073 ("intltool" ,intltool)))
2074 (inputs
2075 `(("zlib" ,zlib)
2076 ("sdl" ,sdl)
2077 ("glib" ,glib)
2078 ("gtk+" ,gtk+-2)
2079 ("glu" ,glu)))
2080 (home-page "http://desmume.org/")
2081 (synopsis "Nintendo DS emulator")
2082 (description
2083 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2084 (license license:gpl2)))
2085
2086 (define-public einstein
2087 (package
2088 (name "einstein")
2089 (version "2.0")
2090 (source (origin
2091 (method url-fetch)
2092 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2093 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2094 (sha256
2095 (base32
2096 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2097 (patches (search-patches "einstein-build.patch"))))
2098 (build-system gnu-build-system)
2099 (inputs
2100 `(("freetype" ,freetype)
2101 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2102 ("zlib" ,zlib)))
2103 (native-inputs
2104 `(("font-dejavu" ,font-dejavu)))
2105 (arguments
2106 `(#:tests? #f ; no check target
2107 #:phases
2108 (modify-phases %standard-phases
2109 (replace 'configure
2110 (lambda* (#:key outputs inputs #:allow-other-keys)
2111 (let ((out (assoc-ref outputs "out"))
2112 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2113 "/share/fonts/truetype/DejaVuSans.ttf")))
2114 (substitute* "Makefile"
2115 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2116 ;; The patch above registers a free font for use by the binary,
2117 ;; but the font is copied during the compile phase into a
2118 ;; resources file, so we need to make the ttf file available.
2119 (symlink dejavu "res/DejaVuSans.ttf")
2120 #t))))))
2121 (synopsis "Logic puzzle game")
2122 (description "The goal of this logic game is to open all cards in a 6x6
2123 grid, using a number of hints as to their relative position. The game idea
2124 is attributed to Albert Einstein.")
2125 ;; The original home page has disappeared.
2126 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2127 "http://games.flowix.com/en/index.html"))
2128 ;; License according to
2129 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2130 ;; The source code is a DFSG-sanitized tarball and does not contain any
2131 ;; license information.
2132 (license license:gpl3+)))
2133
2134 (define-public powwow
2135 (package
2136 (name "powwow")
2137 (version "1.2.17")
2138 (source (origin
2139 (method url-fetch)
2140 (uri (string-append
2141 "https://www.hoopajoo.net/static/projects/powwow-"
2142 version ".tar.gz"))
2143 (file-name (string-append name "-" version ".tar.gz"))
2144 (sha256
2145 (base32
2146 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2147 (inputs
2148 `(("ncurses" ,ncurses)))
2149 (build-system gnu-build-system)
2150 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2151 (synopsis "MUD and telnet client")
2152 (description
2153 "POWWOW is a client software which can be used for telnet as well as for
2154 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2155 the chat server psyced with the specific config located at
2156 http://lavachat.symlynx.com/unix/")
2157 (license license:gpl2+)))
2158
2159 (define-public red-eclipse
2160 (let ((data-sources
2161 '(("acerspyro" "0hqwa3b65l8mz73mcdsvrwbc14mrx1qn52073p5zh69pqd0mlfi0")
2162 ("actors" "0v87wifqwam5j6vsiidmcvw22i51h9h4skgwhi511mxkwryrp26h")
2163 ("appleflap" "0bkh1v125dwd5jhb4rrc1sl0jdlbb2ib53ihbxa66x1p8l27aklw")
2164 ("blendbrush" "1wh88fshsy492kjvadql2ik1q5pqgcj84jz0hc93ngag8xibxhfi")
2165 ("caustics" "0pc5bnd4fmxh06cm3h8045wgiy894f9x5a943n28gymdyql7q4f6")
2166 ("crosshairs" "1w9acqhxw5nm690862msl5jjbk8qlizxm1vv7p95lgm7q7pg0yxx")
2167 ("elyvisions" "04q31lp5jm8b9crf81s6k1jvrn90i1ay3s6vk103iv8g4amsfhdx")
2168 ("fonts" "1rsfk2d9xk0aaazvrcxk4z5n2cnys7pixadh521mv7zrxbx2d95x")
2169 ("freezurbern" "0b2xg5x79yxanr30dhw3zr6dsc6x9w7v7aghbh9kp292j31l280m")
2170 ("john" "07pgjg1rxl3bmwriy2yl3g63nnryjws8jl0ry1cza3p9wd59f8rz")
2171 ("jojo" "0lkzd5pwfqan1gaaz22r5iz4z2nq8dkzycddwa0cxavmq8qmj281")
2172 ("jwin" "0mnyp1inhabw56mw5wkhfd4k6z0lvyhr6cjj6hnj3bz2dip2y2zm")
2173 ("luckystrike" "1d89xnvahmzlgm0bjh3zhf02vxx1q16b70x2cihbl05dic1v75pr")
2174 ("maps" "19gy8kl7w2llsklym32hnlnd05z2dhq5dhdxhq5ss5na67skv5by")
2175 ("mayhem" "1si2gnsf732ml8ygkhg27ckvic9wafqmkgq0ab1ifpfpy606sa8d")
2176 ("mikeplus64" "0l48czyglbc0d4ack8xz9imarb6r4l29krq0mf3ld7yrxbc296vr")
2177 ("misc" "0fri1l3i1s1pzvr7aah4a7d9h2i877c21x184z80v4jpqv4228f3")
2178 ("nobiax" "1jv2yv2qj9qbxhaj1nd70v5142dpg074gkkh3bw2anchi8pzyhs8")
2179 ("particles" "0gwj6m5197gpwddqb3pwlkaiafgfszqysaz2h1bx60qzh5crgsf9")
2180 ("philipk" "0ngccscmvlgc2z96vira7phr87f65l4v7immbl697zmc5fda6k68")
2181 ("projectiles" "1ig6dag5989rgwrhvmz7xz5q8gf5slgnda8h8zmiyhvrnal09hbp")
2182 ("props" "0g3sgrlgmk9zrl67d9pa93hzb4xx3wwznfxa1h3wwilld0m7gzhx")
2183 ("skyboxes" "0lvpzc741vkmy2rnra41ij91wq3pdl28xamy6vapq61mf44xmmvj")
2184 ("sounds" "0jmvvixcx7kv34sxjs4x7vqsyhir6l5av6b3lm8m8rsfi0sdvqml")
2185 ("textures" "1yx01k9yn2v1k79sa68wa51qw1zk03b8irkvxyd14ygibkicvgnb")
2186 ("torley" "1286srp05nfjban6ca124njyil70gr7bm6aqn5p0vz0xr00l4dw5")
2187 ("trak" "1079fg2cbm95psxic3r63i94z3cnbf04wlid2hqnw308s9l9q36c")
2188 ("ulukai" "0yd80ivn51ya60m4cg4bw13wxgijkjagfgskdphy9adgsaqq9n7b")
2189 ("unnamed" "0l21dhw7kbav59p7ysn6dr2sqzjivwxafml4023yznlhxx5fic4m")
2190 ("vanities" "1aqi32lf7y64fv1y00mpixckjr9wj8p1prgyxjiv7s3hf5q7n2b3")
2191 ("vegetation" "0253fdn5sxywrjb79krhvq2884almxpysn6dn0hi6ylpjzl78zrn")
2192 ("weapons" "0y2zsx6g6k9izshgix9id3y01hsisd88mp5zrlm5x9v8y0sf6kf8")
2193 ("wicked" "0ib0325dn6vzpx3p4cr6bhg9qhj8c5s20xyzy88xjc3y2pazbdvx"))))
2194 (package
2195 (name "red-eclipse")
2196 (version "1.5.6")
2197 (source (origin
2198 (method url-fetch)
2199 (uri (string-append "https://github.com/red-eclipse/base"
2200 "/archive/v" version ".tar.gz"))
2201 (file-name (string-append name "-" version ".tar.gz"))
2202 (sha256
2203 (base32
2204 "1sv3xhng18sl655sd46lpmqbqz32h32s7nwz68bdr9z9w3iwkf66"))))
2205 (build-system gnu-build-system)
2206 (arguments
2207 `(#:tests? #f ; no check target
2208 #:make-flags (list "CC=gcc" "-Csrc"
2209 (string-append "INSTDIR="
2210 (assoc-ref %outputs "out") "/bin"))
2211 #:phases
2212 (modify-phases %standard-phases
2213 (add-after 'unpack 'unpack-data
2214 (lambda* (#:key inputs #:allow-other-keys)
2215 (delete-file-recursively "data")
2216 (mkdir "data")
2217 (for-each (lambda (name)
2218 (system* "tar" "-xvf"
2219 (assoc-ref inputs name)
2220 "-Cdata"
2221 "--transform"
2222 (string-append "s/"
2223 name "-" ,version "/"
2224 name "/")))
2225 (list ,@(map car data-sources)))
2226 #t))
2227 (delete 'configure) ; no configure script
2228 (add-after 'set-paths 'set-sdl-paths
2229 (lambda* (#:key inputs #:allow-other-keys)
2230 (setenv "CPATH"
2231 (string-append (assoc-ref inputs "sdl-union")
2232 "/include/SDL2"))
2233 #t))
2234 (add-after 'install 'copy-data
2235 (lambda* (#:key outputs #:allow-other-keys)
2236 (let ((out (assoc-ref outputs "out")))
2237 (copy-recursively "config"
2238 (string-append out "/config"))
2239 (copy-file "doc/examples/servinit.cfg"
2240 (string-append out "/config/servinit.cfg"))
2241 (copy-recursively "data"
2242 (string-append out "/data")))
2243 #t))
2244 (add-after 'copy-data 'wrap-program
2245 (lambda* (#:key inputs outputs #:allow-other-keys)
2246 (let* ((out (assoc-ref outputs "out"))
2247 (bin (string-append out "/bin")))
2248 (with-directory-excursion bin
2249 (rename-file "redeclipse_linux"
2250 ".redeclipse_linux-real")
2251 (rename-file "redeclipse_server_linux"
2252 ".redeclipse_server_linux-real")
2253 (call-with-output-file "redeclipse_linux"
2254 (lambda (port)
2255 (format port "#!~a/bin/sh
2256 # Run the thing from its home, otherwise it just bails out.
2257 cd \"~a\"
2258 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2259 (assoc-ref inputs "bash") ;implicit input
2260 (string-append out)
2261 (string-append bin))))
2262 (call-with-output-file "redeclipse_server_linux"
2263 (lambda (port)
2264 (format port "#!~a/bin/sh
2265 # Run the thing from its home, otherwise it just bails out.
2266 cd \"~a\"
2267 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2268 (assoc-ref inputs "bash") ;implicit input
2269 (string-append out)
2270 (string-append bin))))
2271 (chmod "redeclipse_linux" #o555)
2272 (chmod "redeclipse_server_linux" #o555)))
2273 #t)))))
2274 (native-inputs `(("pkg-config" ,pkg-config)))
2275 (inputs
2276 `(("curl" ,curl)
2277 ("glu" ,glu)
2278 ("sdl-union" ,(sdl-union (list sdl2
2279 sdl2-image
2280 sdl2-mixer)))
2281 ;; Create origin records for the many separate data packages.
2282 ,@(map (match-lambda
2283 ((name hash)
2284 (list name
2285 (origin
2286 (method url-fetch)
2287 (uri (string-append
2288 "https://github.com/red-eclipse/"
2289 name "/archive/v" version ".tar.gz"))
2290 (sha256 (base32 hash))
2291 (file-name (string-append name "-" version
2292 ".tar.gz"))))))
2293 data-sources)))
2294 (home-page "http://redeclipse.net/")
2295 (synopsis "Arena shooter derived from the Cube 2 engine")
2296 (description
2297 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2298 Offering an innovative parkour system and distinct but all potent weapons,
2299 Red Eclipse provides fast paced and accessible gameplay.")
2300 ;; The engine is under Zlib; data files are covered by the other
2301 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2302 (license (list license:expat
2303 license:zlib
2304 license:cc-by-sa3.0
2305 license:cc-by3.0
2306 license:cc0)))))
2307
2308 (define-public higan
2309 (package
2310 (name "higan")
2311 (version "101")
2312 (source
2313 (origin
2314 (method url-fetch)
2315 (uri (string-append
2316 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2317 version))
2318 (file-name (string-append name "-" version ".tar.gz"))
2319 (sha256
2320 (base32 "0qavwkmzc63p6qplmxii4gc541z5mcs8gjwh3m4y7i576r7rcbk9"))
2321 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2322 (build-system gnu-build-system)
2323 (native-inputs
2324 `(("pkg-config" ,pkg-config)))
2325 (inputs
2326 `(("alsa-lib" ,alsa-lib)
2327 ("ao" ,ao)
2328 ("eudev" ,eudev)
2329 ("gtk+" ,gtk+-2)
2330 ("gtksourceview-2" ,gtksourceview-2)
2331 ("libxv" ,libxv)
2332 ("mesa" ,mesa)
2333 ("openal" ,openal)
2334 ("pulseaudio" ,pulseaudio)
2335 ("sdl" ,sdl)))
2336 (arguments
2337 '(#:phases
2338 (let ((build-phase (assoc-ref %standard-phases 'build))
2339 (install-phase (assoc-ref %standard-phases 'install)))
2340 (modify-phases %standard-phases
2341 ;; The higan build system has no configure phase.
2342 (delete 'configure)
2343 (add-before 'build 'chdir-to-higan
2344 (lambda _
2345 (chdir "higan")))
2346 (add-before 'install 'create-/share/applications
2347 (lambda* (#:key outputs #:allow-other-keys)
2348 (let ((out (assoc-ref outputs "out")))
2349 ;; It seems the author forgot to do this in the Makefile.
2350 (mkdir-p (string-append out "/share/applications")))))
2351 (add-after 'install 'chdir-to-icarus
2352 (lambda _
2353 (chdir "../icarus")))
2354 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2355 (add-after 'build-icarus 'install-icarus install-phase)
2356 (add-after 'install-icarus 'wrap-higan-executable
2357 (lambda* (#:key inputs outputs #:allow-other-keys)
2358 (let* ((out (assoc-ref outputs "out"))
2359 (bin (string-append out "/bin"))
2360 (higan (string-append bin "/higan"))
2361 (higan-original (string-append higan "-original"))
2362 (bash (string-append (assoc-ref inputs "bash")
2363 "/bin/bash"))
2364 (coreutils (assoc-ref inputs "coreutils"))
2365 (mkdir (string-append coreutils "/bin/mkdir"))
2366 (cp (string-append coreutils "/bin/cp"))
2367 (cp-r (string-append cp " -r --no-preserve=mode")))
2368 ;; First, have the executable make sure ~/.local/share/higan
2369 ;; contains up to date files. Higan insists on looking there
2370 ;; for these data files.
2371 (rename-file higan higan-original)
2372 (with-output-to-file higan
2373 (lambda ()
2374 (display
2375 (string-append
2376 "#!" bash "\n"
2377 ;; higan doesn't respect $XDG_DATA_HOME
2378 mkdir " -p ~/.local/share\n"
2379 cp-r " " out "/share/higan ~/.local/share\n"
2380 "exec " higan-original))))
2381 (chmod higan #o555)
2382 ;; Second, make sure higan will find icarus in PATH.
2383 (wrap-program higan
2384 `("PATH" ":" prefix (,bin))))))))
2385 #:make-flags
2386 (list "compiler=g++"
2387 (string-append "prefix=" (assoc-ref %outputs "out")))
2388 ;; There is no test suite.
2389 #:tests? #f))
2390 (home-page "http://byuu.org/emulation/higan/")
2391 (synopsis "Nintendo multi-system emulator")
2392 (description
2393 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2394 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2395 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2396 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2397 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2398 ;; As noted in these files among more:
2399 ;; - icarus/icarus.cpp
2400 ;; - higan/emulator/emulator.hpp
2401 (license license:gpl3)))
2402
2403 (define-public grue-hunter
2404 (package
2405 (name "grue-hunter")
2406 (version "1.0")
2407 (source (origin
2408 (method url-fetch)
2409 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2410 (sha256
2411 (base32
2412 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2413 (build-system trivial-build-system) ; no Makefile.PL
2414 (arguments `(#:modules ((guix build utils))
2415 #:builder
2416 (begin
2417 (use-modules (guix build utils))
2418 (use-modules (srfi srfi-1))
2419
2420 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2421 (perl (string-append (assoc-ref %build-inputs
2422 "perl")
2423 "/bin"))
2424 (gzip (string-append (assoc-ref %build-inputs
2425 "gzip")
2426 "/bin/gzip"))
2427 (tar (string-append (assoc-ref %build-inputs
2428 "tar")
2429 "/bin/tar"))
2430 (out (assoc-ref %outputs "out"))
2431 (bin (string-append out "/bin"))
2432 (doc (string-append out "/share/doc")))
2433 (begin
2434 (mkdir out)
2435 (copy-file tarball "grue-hunter.tar.gz")
2436 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2437 (zero? (system* tar "xvf" "grue-hunter.tar"))
2438
2439 (mkdir-p bin)
2440 (copy-file "grue-hunter/gh.pl"
2441 (string-append bin "/grue-hunter"))
2442 (patch-shebang (string-append bin "/grue-hunter")
2443 (list perl))
2444
2445 (mkdir-p doc)
2446 (copy-file "grue-hunter/AGPLv3.txt"
2447 (string-append doc "/grue-hunter")))))))
2448 (inputs `(("perl" ,perl)
2449 ("tar" ,tar)
2450 ("gzip" ,gzip)
2451 ("tarball" ,source)))
2452 (home-page "http://jxself.org/grue-hunter.shtml")
2453 (synopsis "Text adventure game")
2454 (description
2455 "Grue Hunter is a text adventure game written in Perl. You must make
2456 your way through an underground cave system in search of the Grue. Can you
2457 capture it and get out alive?")
2458 (license license:agpl3+)))
2459
2460 (define-public warzone2100
2461 (package
2462 (name "warzone2100")
2463 (version "3.2.1")
2464 (source (origin
2465 (method url-fetch)
2466 (uri (string-append "mirror://sourceforge/" name
2467 "/releases/" version "/" name "-" version
2468 ".tar.xz"))
2469 (sha256
2470 (base32
2471 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2472 (build-system gnu-build-system)
2473 (arguments
2474 `(#:phases
2475 (modify-phases %standard-phases
2476 (add-after 'unpack 'link-tests-with-qt
2477 (lambda _
2478 (substitute* "tests/Makefile.in"
2479 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2480 (string-append prefix "$(QT5_LIBS) ")))
2481 #t))
2482 (add-after 'unpack 'remove-reference-to-missing-file
2483 (lambda _
2484 (substitute* "icons/Makefile.in"
2485 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2486 #t)))))
2487 (native-inputs `(("pkg-config" ,pkg-config)
2488 ("unzip" ,unzip)
2489 ("zip" ,zip)))
2490 (inputs `(("fontconfig" ,fontconfig)
2491 ("freetype" ,freetype)
2492 ("fribidi" ,fribidi)
2493 ("glew" ,glew)
2494 ("libtheora" ,libtheora)
2495 ("libvorbis" ,libvorbis)
2496 ("libxrandr" ,libxrandr)
2497 ("openal" ,openal)
2498 ("physfs" ,physfs)
2499 ("qt" ,qt)
2500 ("openssl" ,openssl)
2501 ("quesoglc" ,quesoglc)
2502 ("sdl2" ,sdl2)))
2503 (home-page "http://wz2100.net")
2504 (synopsis "3D Real-time strategy and real-time tactics game")
2505 (description
2506 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2507 modes. An extensive tech tree with over 400 different technologies, combined
2508 with the unit design system, allows for a wide variety of possible units and
2509 tactics.")
2510 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2511 (license (list license:bsd-3
2512 license:cc0
2513 license:cc-by-sa3.0
2514 license:expat
2515 license:gpl2+
2516 license:lgpl2.1+))))
2517
2518 (define-public starfighter
2519 (package
2520 (name "starfighter")
2521 (version "1.5.1.1")
2522 (source (origin
2523 (method url-fetch)
2524 (uri (string-append
2525 "mirror://savannah/starfighter/"
2526 (version-major+minor version) "/"
2527 name "-" version "-src.tar.gz"))
2528 (sha256
2529 (base32
2530 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2531 (build-system gnu-build-system)
2532 (arguments
2533 '(#:tests? #f ; no check target
2534 #:make-flags
2535 (let ((out (assoc-ref %outputs "out")))
2536 (list (string-append "PREFIX=" out)
2537 (string-append "BINDIR=" out "/bin/")))
2538 #:phases
2539 (modify-phases %standard-phases
2540 ;; no configure script
2541 (delete 'configure))))
2542 (native-inputs
2543 `(("pkg-config" ,pkg-config)))
2544 (inputs
2545 `(("sdl2" ,sdl2)
2546 ("sdl2-image" ,sdl2-image)
2547 ("sdl2-mixer" ,sdl2-mixer)))
2548 (home-page "http://starfighter.nongnu.org/")
2549 (synopsis "2D scrolling shooter game")
2550 (description
2551 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2552 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2553 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2554 way, you will encounter new foes, make new allies, and assist local rebels
2555 in strikes against the evil corporation.")
2556 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2557 (license (list license:gpl3+
2558 license:cc-by3.0
2559 license:cc-by-sa3.0
2560 license:cc0
2561 license:public-domain))))
2562
2563 (define-public chromium-bsu
2564 (package
2565 (name "chromium-bsu")
2566 (version "0.9.15.1")
2567 (source (origin
2568 (method url-fetch)
2569 (uri (string-append "mirror://sourceforge/" name
2570 "/Chromium B.S.U. source code/"
2571 name "-" version ".tar.gz"))
2572 (sha256
2573 (base32
2574 "01c4mki0rpz6wrqbf18fj4vd7axln5v0xqm80cyksbv63g04s6w6"))))
2575 (build-system gnu-build-system)
2576 (arguments
2577 `(#:phases (modify-phases %standard-phases
2578 (add-after 'set-paths 'set-sdl-paths
2579 (lambda* (#:key inputs #:allow-other-keys)
2580 (setenv "CPATH"
2581 (string-append (assoc-ref inputs "sdl-union")
2582 "/include/SDL"))
2583 #t)))))
2584 (native-inputs `(("pkg-config" ,pkg-config)))
2585 (inputs `(("glu" ,glu)
2586 ("quesoglc" ,quesoglc)
2587 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2588 (home-page "http://chromium-bsu.sourceforge.net/")
2589 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2590 (description
2591 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2592 are responsible for delivering supplies to the troops on the front line. Your
2593 ship has a small fleet of robotic fighters which you control from the relative
2594 safety of the Chromium vessel.")
2595 ;; Clarified Artistic License for everything but sound, which is covered
2596 ;; by the Expat License.
2597 (license (list license:clarified-artistic license:expat))))
2598
2599 (define-public tuxpaint
2600 (package
2601 (name "tuxpaint")
2602 (version "0.9.22") ;keep VER_DATE below in sync
2603 (source
2604 (origin
2605 (method url-fetch)
2606 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2607 version "/tuxpaint-" version ".tar.gz"))
2608 (sha256
2609 (base32
2610 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2611 (modules '((guix build utils)))
2612 (snippet
2613 '(begin
2614 ;; Remove win32 directory which contains binary dll's and the
2615 ;; deprecated visualc directory.
2616 (for-each delete-file-recursively '("win32" "visualc"))
2617 (substitute* "Makefile"
2618 ;; Do not rely on $(GPERF) being an absolute file name
2619 (("\\[ -x \\$\\(GPERF\\) \\]")
2620 "$(GPERF) --version >/dev/null 2>&1"))))
2621 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2622 (build-system gnu-build-system)
2623 (native-inputs
2624 `(("gperf" ,gperf)
2625 ("pkg-config" ,pkg-config)))
2626 (inputs
2627 `(("cairo" ,cairo)
2628 ("fribidi" ,fribidi)
2629 ("gettext" ,gnu-gettext)
2630 ("libpng" ,libpng)
2631 ("librsvg" ,librsvg)
2632 ("libpaper" ,libpaper)
2633 ("netpbm" ,netpbm)
2634 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2635 ;; TODO: Use system fonts rather than those in data/fonts
2636 (arguments
2637 `(#:make-flags `("VER_DATE=2014-08-23"
2638 "GPERF=gperf" "CC=gcc"
2639 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2640 ,(string-append "PREFIX=" %output)
2641 "GNOME_PREFIX=$(PREFIX)"
2642 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2643 #:tests? #f ;No tests
2644 #:phases (modify-phases %standard-phases
2645 (delete 'configure) ;no configure phase
2646 (add-after 'install 'fix-import
2647 (lambda* (#:key inputs outputs #:allow-other-keys)
2648 (let* ((out (assoc-ref outputs "out"))
2649 (net (assoc-ref inputs "netpbm"))
2650 (tpi (string-append out "/bin/tuxpaint-import")))
2651 (substitute* tpi
2652 ;; Point to installation prefix so that the default
2653 ;; configure file is found.
2654 (("/usr/local") out))
2655 ;; tuxpaint-import uses a bunch of programs from
2656 ;; netpbm, so make sure it knows where those are
2657 (wrap-program tpi
2658 `("PATH" ":" prefix
2659 (,(string-append net "/bin"))))))))))
2660 (native-search-paths
2661 (list (search-path-specification
2662 (variable "TUXPAINT_STAMPS_PATH")
2663 (files '("share/tuxpaint/stamps")))))
2664 (home-page "http://www.tuxpaint.org")
2665 (synopsis "Drawing software for children")
2666 (description
2667 "Tux Paint is a free drawing program designed for young children (kids
2668 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2669 and an encouraging cartoon mascot who helps guide children as they use the
2670 program. It provides a blank canvas and a variety of drawing tools to help
2671 your child be creative.")
2672 (license license:gpl2+)))
2673
2674 (define-public tuxpaint-stamps
2675 (package
2676 (name "tuxpaint-stamps")
2677 (version "2014.08.23")
2678 (source
2679 (origin
2680 (method url-fetch)
2681 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2682 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2683 "/tuxpaint-stamps-" version ".tar.gz"))
2684 (sha256
2685 (base32
2686 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2687 (build-system trivial-build-system)
2688 (native-inputs
2689 `(("tar" ,tar)
2690 ("gzip" ,gzip)))
2691 (arguments
2692 `(#:modules ((guix build utils))
2693 #:builder (begin
2694 (use-modules (guix build utils))
2695 (setenv "PATH"
2696 (string-append
2697 (assoc-ref %build-inputs "tar") "/bin" ":"
2698 (assoc-ref %build-inputs "gzip") "/bin"))
2699 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
2700 (chdir (string-append ,name "-" ,version))
2701 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2702 (mkdir-p dir)
2703 (copy-recursively "stamps" dir)))))
2704 (home-page (package-home-page tuxpaint))
2705 (synopsis "Stamp images for Tux Paint")
2706 (description
2707 "This package contains a set of \"Rubber Stamp\" images which can be used
2708 with the \"Stamp\" tool within Tux Paint.")
2709 (license license:gpl2+)))
2710
2711 (define-public tuxpaint-config
2712 (package
2713 (name "tuxpaint-config")
2714 (version "0.0.13") ;keep VER_DATE below in sync
2715 (source
2716 (origin
2717 (method url-fetch)
2718 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2719 version "/tuxpaint-config-" version ".tar.gz"))
2720 (sha256
2721 (base32
2722 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2723 (build-system gnu-build-system)
2724 (native-inputs
2725 `(("gettext" ,gnu-gettext)))
2726 (inputs
2727 `(("fltk" ,fltk)
2728 ("libpaper" ,libpaper)
2729 ;; TODO: Should the following be propagated by fltk?
2730 ("libx11" ,libx11)
2731 ("libxft" ,libxft)
2732 ("mesa" ,mesa)))
2733 (arguments
2734 `(#:make-flags `("VER_DATE=2014-08-23"
2735 "CONFDIR=/etc/tuxpaint" ;don't write to store
2736 ,(string-append "PREFIX=" %output)
2737 "GNOME_PREFIX=$(PREFIX)")
2738 #:parallel-build? #f ;race conditions
2739 #:tests? #f ;no tests
2740 #:phases (modify-phases %standard-phases
2741 (delete 'configure) ;no configure phase
2742 (add-before 'install 'gzip-no-name
2743 (lambda* _
2744 (substitute* "Makefile"
2745 ;; tuxpaint-config compresses its own documentation;
2746 ;; make sure it uses flags for reproducibility.
2747 (("gzip") "gzip --no-name"))))
2748 (add-before 'install 'make-install-dirs
2749 (lambda* (#:key outputs #:allow-other-keys)
2750 (let ((out (assoc-ref outputs "out")))
2751 (mkdir-p (string-append out "/bin"))
2752 #t))))))
2753 (home-page (package-home-page tuxpaint))
2754 (synopsis "Configure Tux Paint")
2755 (description
2756 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2757 (license license:gpl2))) ;no "or later" present
2758
2759 (define-public supertux
2760 (package
2761 (name "supertux")
2762 (version "0.5.0")
2763 (source (origin
2764 (method url-fetch)
2765 (uri (string-append "https://github.com/SuperTux/supertux/"
2766 "releases/download/v" version "/SuperTux-v"
2767 version "-Source.tar.gz"))
2768 (sha256
2769 (base32
2770 "0fx7c7m6mfanqy7kln7yf6abb5l3r68picf32js2yls11jj0vbng"))))
2771 (arguments
2772 '(#:tests? #f
2773 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
2774 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
2775 (build-system cmake-build-system)
2776 (inputs `(("sdl2" ,sdl2)
2777 ("sdl2-image" ,sdl2-image)
2778 ("sdl2-mixer" ,sdl2-mixer)
2779 ("openal" ,openal)
2780 ("mesa" ,mesa)
2781 ("glew" ,glew)
2782 ("libvorbis" ,libvorbis)
2783 ("libogg" ,libogg)
2784 ("physfs" ,physfs)
2785 ("curl" ,curl)
2786 ("boost" ,boost)))
2787 (native-inputs `(("pkg-config" ,pkg-config)))
2788 (synopsis "2D platformer game")
2789 (description "SuperTux is a free classic 2D jump'n run sidescroller game
2790 in a style similar to the original Super Mario games covered under
2791 the GNU GPL.")
2792 (home-page "https://supertuxproject.org/")
2793 (license license:gpl3+)))
2794
2795 (define-public tintin++
2796 (package
2797 (name "tintin++")
2798 (version "2.01.1")
2799 (source (origin
2800 (method url-fetch)
2801 (uri (string-append "https://sourceforge.net/projects/tintin"
2802 "/files/TinTin++ Source Code/" version
2803 "/tintin" "-" version ".tar.gz"))
2804 (sha256
2805 (base32
2806 "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
2807 (inputs
2808 `(("gnutls" ,gnutls)
2809 ("pcre" ,pcre)
2810 ("readline" ,readline)
2811 ("zlib" ,zlib)))
2812 (arguments
2813 '(#:tests? #f ; no test suite
2814 #:phases
2815 (modify-phases %standard-phases
2816 ;; The source is in tt/src.
2817 (add-before 'configure 'chdir
2818 (lambda _
2819 (chdir "src")
2820 #t)))))
2821 (build-system gnu-build-system)
2822 (home-page "http://tintin.sourceforge.net/")
2823 (synopsis "MUD client")
2824 (description
2825 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
2826 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
2827 as well as those required to login via telnet on Linux / Mac OS X servers, and an
2828 auto mapper with a VT100 map display.")
2829 (license license:gpl2+)))
2830
2831 (define-public laby
2832 (package
2833 (name "laby")
2834 (version "0.6.4")
2835 (source
2836 (origin (method url-fetch)
2837 (uri (string-append
2838 "https://github.com/sgimenez/laby/archive/"
2839 name "-" version ".tar.gz"))
2840 (sha256
2841 (base32
2842 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
2843 (patches (search-patches "laby-make-install.patch"))))
2844 (build-system gnu-build-system)
2845 (inputs
2846 `(("lablgtk" ,lablgtk)
2847 ("ocaml" ,ocaml)
2848 ("ocaml-findlib" ,ocaml-findlib)))
2849 (arguments
2850 '(#:phases
2851 (modify-phases %standard-phases
2852 (delete 'configure)
2853 (add-before 'build 'setenv
2854 (lambda* (#:key inputs #:allow-other-keys)
2855 (let ((lablgtk (assoc-ref inputs "lablgtk")))
2856 (setenv "LD_LIBRARY_PATH"
2857 (string-append lablgtk "/lib/ocaml/stublibs"))))))
2858 #:tests? #f ; no 'check' target
2859 #:make-flags
2860 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
2861 (home-page "https://sgimenez.github.io/laby/")
2862 (synopsis "Programming game")
2863 (description "Learn programming, playing with ants and spider webs ;-)
2864 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
2865 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
2866 programmers may also add their own favorite language.")
2867 (license license:gpl3+)))
2868
2869 (define-public bambam
2870 (package
2871 (name "bambam")
2872 (version "0.5")
2873 (source
2874 (origin
2875 (method url-fetch)
2876 (uri (string-append "https://github.com/porridge/bambam/archive/"
2877 version ".tar.gz"))
2878 (file-name (string-append name "-" version ".tar.gz"))
2879 (sha256
2880 (base32
2881 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
2882 (build-system python-build-system)
2883 (arguments
2884 `(#:python ,python-2
2885 #:tests? #f ; no tests
2886 #:phases
2887 (modify-phases %standard-phases
2888 (delete 'build)
2889 (add-before 'install 'patch-data-dir-location
2890 (lambda _
2891 (substitute* "bambam.py"
2892 (("'data'") "'../share/bambam/data'"))
2893 #t))
2894 (replace 'install
2895 (lambda* (#:key outputs #:allow-other-keys)
2896 (let* ((out (assoc-ref outputs "out"))
2897 (bin (string-append out "/bin"))
2898 (share (string-append out "/share")))
2899 (mkdir-p bin)
2900 (copy-file "bambam.py" (string-append bin "/bambam"))
2901 (install-file "bambam.6" (string-append share "/man/man6"))
2902 (copy-recursively "data" (string-append share "/bambam/data")))
2903 #t)))))
2904 (inputs
2905 `(("python-pygame" ,python-pygame)))
2906 (home-page "https://github.com/porridge/bambam")
2907 (synopsis "Keyboard mashing and doodling game for babies")
2908 (description "Bambam is a simple baby keyboard (and gamepad) masher
2909 application that locks the keyboard and mouse and instead displays bright
2910 colors, pictures, and sounds.")
2911 (license license:gpl3+)))
2912
2913 (define-public mrrescue
2914 (package
2915 (name "mrrescue")
2916 (version "1.02e")
2917 (source (origin
2918 (method url-fetch)
2919 (uri (string-append
2920 "https://github.com/SimonLarsen/mrrescue/releases/"
2921 "download/" version "/" name version ".love"))
2922 (file-name (string-append name "-" version ".love"))
2923 (sha256
2924 (base32
2925 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
2926 (build-system trivial-build-system)
2927 (arguments
2928 '(#:modules ((guix build utils))
2929 #:builder
2930 (begin
2931 (use-modules (guix build utils))
2932 (let* ((out (assoc-ref %outputs "out"))
2933 (bindir (string-append out "/bin"))
2934 (prog (string-append bindir "/mrrescue"))
2935 (source (assoc-ref %build-inputs "source"))
2936 (bash (string-append (assoc-ref %build-inputs "bash")
2937 "/bin/bash"))
2938 (love (string-append (assoc-ref %build-inputs "love")
2939 "/bin/love")))
2940 (mkdir-p bindir)
2941 (with-output-to-file prog
2942 (lambda ()
2943 (format #t "#!~a~%" bash)
2944 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
2945 (chmod prog #o755)
2946 #t))))
2947 (inputs
2948 `(("bash" ,bash)
2949 ("love" ,love)))
2950 (home-page "http://tangramgames.dk/games/mrrescue")
2951 (synopsis "Arcade-style fire fighting game")
2952 (description
2953 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
2954 civilians from burning buildings. The game features fast paced fire
2955 extinguishing action, intense boss battles, a catchy soundtrack and lots of
2956 throwing people around in pseudo-randomly generated buildings.")
2957 (license (list license:zlib ; for source code
2958 license:cc-by-sa3.0)))) ; for graphics and music assets
2959
2960 (define-public hyperrogue
2961 (package
2962 (name "hyperrogue")
2963 (version "8.3j")
2964 (source (origin
2965 (method url-fetch)
2966 (uri (string-append
2967 "http://www.roguetemple.com/z/hyper/"
2968 name "-83j.zip"))
2969 (sha256
2970 (base32
2971 "1ag95d84m4j0rqyn9hj7655znixw2j57bpf93nk14nfy02xz1g6p"))
2972 (modules '((guix build utils)))
2973 ;; Remove .exe and .dll files.
2974 (snippet
2975 '(for-each delete-file (find-files "." "\\.(exe|dll)$")))))
2976 (build-system gnu-build-system)
2977 (arguments
2978 '(#:tests? #f ; no check target
2979 #:make-flags '("-Csrc")
2980 #:phases
2981 (modify-phases %standard-phases
2982 (add-after 'set-paths 'set-sdl-paths
2983 (lambda* (#:key inputs #:allow-other-keys)
2984 (setenv "CPATH"
2985 (string-append (assoc-ref inputs "sdl-union")
2986 "/include/SDL"))))
2987 ;; Fix font and music paths.
2988 (replace 'configure
2989 (lambda* (#:key inputs outputs #:allow-other-keys)
2990 (let ((out (assoc-ref outputs "out"))
2991 (dejavu-dir (string-append
2992 (assoc-ref inputs "font-dejavu")
2993 "/share/fonts/truetype"))
2994 (dejavu-font "DejaVuSans-Bold.ttf")
2995 (music-file "hyperrogue-music.txt"))
2996 (with-directory-excursion "src"
2997 (substitute* "graph.cpp"
2998 ((dejavu-font)
2999 (string-append dejavu-dir "/" dejavu-font))
3000 (((string-append "\\./" music-file))
3001 (string-append out "/share/hyperrogue/" music-file)))
3002 (substitute* music-file
3003 (("\\*/")
3004 (string-append out "/share/hyperrogue/")))))
3005 #t))
3006 (replace 'install
3007 (lambda* (#:key inputs outputs #:allow-other-keys)
3008 (let* ((out (assoc-ref outputs "out"))
3009 (bin (string-append out "/bin"))
3010 (share-dir (string-append out "/share/hyperrogue")))
3011 (mkdir-p bin)
3012 (copy-file "src/hyper" (string-append bin "/hyperrogue"))
3013 (mkdir-p share-dir)
3014 (copy-file "src/hyperrogue-music.txt"
3015 (string-append share-dir "/hyperrogue-music.txt"))
3016 (for-each (lambda (file)
3017 (copy-file file (string-append share-dir "/" file)))
3018 (find-files "." "\\.ogg$")))
3019 #t)))))
3020 (inputs
3021 `(("font-dejavu" ,font-dejavu)
3022 ("glew" ,glew)
3023 ("libpng" ,libpng)
3024 ("sdl-union" ,(sdl-union (list sdl
3025 sdl-gfx
3026 sdl-mixer
3027 sdl-ttf)))))
3028 (home-page "http://www.roguetemple.com/z/hyper/")
3029 (synopsis "Non-euclidean graphical rogue-like game")
3030 (description
3031 "HyperRogue is a game in which the player collects treasures and fights
3032 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3033 plane and not in euclidean space.
3034
3035 In HyperRogue, the player can move through different parts of the world, which
3036 are home to particular creatures and may be subject to own rules of \"physics\".
3037
3038 While it can use ASCII characters to display the world the classical rogue
3039 symbols, the game needs graphics to render the non-euclidean world.")
3040 (license (list license:bsd-3 ; src/glew.c, src/mtrand.*
3041 license:cc-by-sa3.0 ; *.ogg
3042 license:public-domain ; src/direntx.*
3043 license:zlib ; src/savepng.*
3044 license:gpl2+)))) ; remaining files
3045
3046 (define-public kobodeluxe
3047 (package
3048 (name "kobodeluxe")
3049 (version "0.5.1")
3050 (source (origin
3051 (method url-fetch)
3052 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3053 version ".tar.bz2"))
3054 (sha256
3055 (base32
3056 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3057 (patches (search-patches
3058 "kobodeluxe-const-charp-conversion.patch"
3059 "kobodeluxe-enemies-pipe-decl.patch"
3060 "kobodeluxe-graphics-window-signed-char.patch"
3061 "kobodeluxe-manpage-minus-not-hyphen.patch"
3062 "kobodeluxe-midicon-segmentation-fault.patch"
3063 "kobodeluxe-paths.patch"))))
3064 (build-system gnu-build-system)
3065 (arguments
3066 '(#:configure-flags
3067 (list (string-append "CPPFLAGS=-I"
3068 (assoc-ref %build-inputs "sdl-union")
3069 "/include/SDL"))))
3070 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3071 (synopsis "Shooter with space station destruction")
3072 (description
3073 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3074 for Un*x systems with X11.")
3075 (home-page "http://olofson.net/kobodl/")
3076 (license license:gpl2+)))