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