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