gnu: grue-hunter: Adapt to gzip-1.8 update.
[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 Nils Gillmann <niasterisk@grrlz.net>
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.5")
1028 (source (origin
1029 (method url-fetch)
1030 (uri (string-append "mirror://sourceforge/wesnoth/"
1031 name "-" version ".tar.bz2"))
1032 (sha256
1033 (base32
1034 "07d8ms9ayswg2g530p0zwmz3d77zv68l6nmc718iq9sbv90av6jr"))))
1035 (build-system cmake-build-system)
1036 (arguments
1037 '(#:tests? #f ; no check target
1038 #:configure-flags
1039 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1040 ;; boost/mpl/assert.hpp:313:58: error:
1041 ;; use of old-style cast [-Werror=old-style-cast]
1042 ;; [...]
1043 ;; cc1plus: all warnings being treated as errors
1044 '("-DENABLE_STRICT_COMPILATION=OFF")))
1045 (native-inputs
1046 `(("gettext" ,gnu-gettext)
1047 ("pkg-config" ,pkg-config)))
1048 (inputs
1049 `(("boost" ,boost)
1050 ("dbus" ,dbus)
1051 ("fribidi" ,fribidi)
1052 ("libvorbis" ,libvorbis)
1053 ("pango" ,pango)
1054 ("sdl-image" ,sdl-image)
1055 ("sdl-mixer" ,sdl-mixer)
1056 ("sdl-net" ,sdl-net)
1057 ("sdl-ttf" ,sdl-ttf)))
1058 (home-page "http://www.wesnoth.org/")
1059 (synopsis "Turn-based strategy game")
1060 (description
1061 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1062 with several single player campaigns, and multiplayer games (both networked and
1063 local).
1064
1065 Battle for control on a range of maps, using variety of units which have
1066 advantages and disadvantages against different types of attacks. Units gain
1067 experience and advance levels, and are carried over from one scenario to the
1068 next campaign.")
1069 (license license:gpl2+)))
1070
1071 (define-public dosbox
1072 (package
1073 (name "dosbox")
1074 (version "0.74.svn3947")
1075 (source (origin
1076 (method svn-fetch)
1077 (uri (svn-reference
1078 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1079 (revision 3947)))
1080 (file-name (string-append name "-" version "-checkout"))
1081 ;; Use SVN head, since the last release (2010) is incompatible
1082 ;; with GCC 4.8+ (see
1083 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1084 (sha256
1085 (base32
1086 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1087 (build-system gnu-build-system)
1088 (arguments
1089 `(#:phases (modify-phases %standard-phases
1090 (add-after
1091 'unpack 'autogen.sh
1092 (lambda _
1093 (zero? (system* "sh" "autogen.sh")))))))
1094 (native-inputs
1095 `(("autoconf" ,autoconf)
1096 ("automake" ,automake)))
1097 (inputs
1098 `(("sdl" ,sdl)
1099 ("libpng" ,libpng)
1100 ("zlib" ,zlib)
1101 ("alsa-lib" ,alsa-lib)
1102 ("glu" ,glu)
1103 ("mesa" ,mesa)))
1104 (home-page "http://www.dosbox.com")
1105 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1106 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1107 also emulates CPU:286/386 realmode/protected mode, Directory
1108 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1109 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1110 older games.")
1111 (license license:gpl2+)))
1112
1113 (define-public gamine
1114 (package
1115 (name "gamine")
1116 (version "1.4")
1117 (source (origin
1118 (method url-fetch)
1119 (uri (string-append "mirror://sourceforge/gamine-game/"
1120 "gamine-" version ".tar.gz"))
1121 (sha256
1122 (base32
1123 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1124 (build-system gnu-build-system)
1125 (native-inputs
1126 `(("pkg-config" ,pkg-config)
1127 ("intltool" ,intltool)))
1128 (inputs
1129 `(("gstreamer" ,gstreamer)
1130 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1131 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1132 ("gtk+" ,gtk+)))
1133 (arguments
1134 `(#:tests? #f
1135 #:make-flags
1136 (let ((out (assoc-ref %outputs "out")))
1137 (list (string-append "PREFIX=" out)
1138 (string-append "SYSCONFDIR=" out "/etc")))
1139 #:phases
1140 (modify-phases %standard-phases
1141 (delete 'configure)
1142 (add-after
1143 'install 'wrap-gamine
1144 (lambda* (#:key outputs #:allow-other-keys)
1145 (let ((out (assoc-ref outputs "out"))
1146 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1147 (wrap-program (string-append out "/bin/gamine")
1148 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1149 #t)))))
1150 (home-page "http://gamine-game.sourceforge.net/")
1151 (synopsis "Mouse and keyboard discovery for children")
1152 (description
1153 "Gamine is a game designed for young children who are learning to use the
1154 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1155 on the screen and keyboard to display letters.")
1156 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1157 (license license:gpl3)))
1158
1159 (define-public raincat
1160 (package
1161 (name "raincat")
1162 (version "1.1.1.3")
1163 (source
1164 (origin
1165 (method url-fetch)
1166 (uri (string-append
1167 "http://hackage.haskell.org/package/Raincat/Raincat-"
1168 version
1169 ".tar.gz"))
1170 (sha256
1171 (base32
1172 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1173 (build-system haskell-build-system)
1174 (inputs
1175 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1176 ("ghc-mtl" ,ghc-mtl)
1177 ("ghc-random" ,ghc-random)
1178 ("ghc-glut" ,ghc-glut)
1179 ("ghc-opengl" ,ghc-opengl)
1180 ("ghc-sdl" ,ghc-sdl)
1181 ("ghc-sdl-image" ,ghc-sdl-image)
1182 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1183 (home-page "http://raincat.bysusanlin.com/")
1184 (synopsis "Puzzle game with a cat in lead role")
1185 (description "Project Raincat is a game developed by Carnegie Mellon
1186 students through GCS during the Fall 2008 semester. Raincat features game
1187 play inspired from classics Lemmings and The Incredible Machine. The project
1188 proved to be an excellent learning experience for the programmers. Everything
1189 is programmed in Haskell.")
1190 (license license:bsd-3)))
1191
1192 (define-public manaplus
1193 (package
1194 (name "manaplus")
1195 (version "1.6.6.4")
1196 (source (origin
1197 (method url-fetch)
1198 (uri (string-append
1199 "http://repo.manaplus.org/manaplus/download/"
1200 version "/manaplus-" version ".tar.xz"))
1201 (sha256
1202 (base32
1203 "00sdw2mspdhrqvz0vl6jbnhiclj7vmvyjih9qf8dbkfw2s921ybc"))))
1204 (build-system gnu-build-system)
1205 (arguments
1206 '(#:configure-flags
1207 (list (string-append "CPPFLAGS=-I"
1208 (assoc-ref %build-inputs "sdl-union")
1209 "/include/SDL"))))
1210 (native-inputs
1211 `(("pkg-config" ,pkg-config)))
1212 (inputs
1213 `(("glu" ,glu)
1214 ("curl" ,curl)
1215 ("libxml2" ,libxml2)
1216 ("mesa" ,mesa)
1217 ("physfs" ,physfs)
1218 ("sdl-union" ,(sdl-union))))
1219 (home-page "http://manaplus.org")
1220 (synopsis "Client for 'The Mana World' and similar games")
1221 (description
1222 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1223 fully supported client for @uref{http://www.themanaworld.org, The mana
1224 world}, @uref{http://evolonline.org, Evol Online} and
1225 @uref{http://landoffire.org, Land of fire}.")
1226 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1227 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1228 ;; The rest is under GPL2+.
1229 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1230
1231 (define-public mupen64plus-core
1232 (package
1233 (name "mupen64plus-core")
1234 (version "2.5")
1235 (source
1236 (origin
1237 (method url-fetch)
1238 (uri (string-append
1239 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1240 version ".tar.gz"))
1241 (file-name (string-append name "-" version ".tar.gz"))
1242 (sha256
1243 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1244 (build-system gnu-build-system)
1245 (native-inputs
1246 `(("pkg-config" ,pkg-config)
1247 ("which" ,which)))
1248 (inputs
1249 `(("freetype" ,freetype)
1250 ("glu" ,glu)
1251 ("libpng" ,libpng)
1252 ("mesa" ,mesa)
1253 ("sdl2" ,sdl2)
1254 ("zlib" ,zlib)))
1255 (arguments
1256 '(#:phases
1257 (modify-phases %standard-phases
1258 ;; The mupen64plus build system has no configure phase.
1259 (delete 'configure)
1260 ;; Makefile is in a subdirectory.
1261 (add-before
1262 'build 'cd-to-project-dir
1263 (lambda _
1264 (chdir "projects/unix"))))
1265 #:make-flags (let ((out (assoc-ref %outputs "out")))
1266 (list "all" (string-append "PREFIX=" out)))
1267 ;; There are no tests.
1268 #:tests? #f))
1269 ;; As per the Makefile (in projects/unix/Makefile):
1270 (supported-systems '("i686-linux" "x86_64-linux"))
1271 (home-page "http://www.mupen64plus.org/")
1272 (synopsis "Nintendo 64 emulator core library")
1273 (description
1274 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1275 which is capable of accurately playing many games. This package contains the
1276 core library.")
1277 (license license:gpl2+)))
1278
1279 (define-public mupen64plus-audio-sdl
1280 (package
1281 (name "mupen64plus-audio-sdl")
1282 (version "2.5")
1283 (source
1284 (origin
1285 (method url-fetch)
1286 (uri (string-append
1287 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1288 version ".tar.gz"))
1289 (file-name (string-append name "-" version ".tar.gz"))
1290 (sha256
1291 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1292 (build-system gnu-build-system)
1293 (native-inputs
1294 `(("pkg-config" ,pkg-config)
1295 ("which" ,which)))
1296 (inputs
1297 `(("mupen64plus-core" ,mupen64plus-core)
1298 ("sdl2" ,sdl2)))
1299 (arguments
1300 '(#:phases
1301 (modify-phases %standard-phases
1302 ;; The mupen64plus build system has no configure phase.
1303 (delete 'configure)
1304 ;; Makefile is in a subdirectory.
1305 (add-before
1306 'build 'cd-to-project-dir
1307 (lambda _
1308 (chdir "projects/unix"))))
1309 #:make-flags
1310 (let ((out (assoc-ref %outputs "out"))
1311 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1312 (list "all"
1313 (string-append "PREFIX=" out)
1314 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1315 ;; There are no tests.
1316 #:tests? #f))
1317 (home-page "http://www.mupen64plus.org/")
1318 (synopsis "Mupen64Plus SDL input plugin")
1319 (description
1320 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1321 which is capable of accurately playing many games. This package contains the
1322 SDL audio plugin.")
1323 (license license:gpl2+)))
1324
1325 (define-public mupen64plus-input-sdl
1326 (package
1327 (name "mupen64plus-input-sdl")
1328 (version "2.5")
1329 (source
1330 (origin
1331 (method url-fetch)
1332 (uri (string-append
1333 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1334 version ".tar.gz"))
1335 (file-name (string-append name "-" version ".tar.gz"))
1336 (sha256
1337 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1338 (build-system gnu-build-system)
1339 (native-inputs
1340 `(("which" ,which)))
1341 (inputs
1342 `(("mupen64plus-core" ,mupen64plus-core)
1343 ("sdl2" ,sdl2)))
1344 (arguments
1345 '(#:phases
1346 (modify-phases %standard-phases
1347 ;; The mupen64plus build system has no configure phase.
1348 (delete 'configure)
1349 ;; Makefile is in a subdirectory.
1350 (add-before
1351 'build 'cd-to-project-dir
1352 (lambda _
1353 (chdir "projects/unix"))))
1354 #:make-flags
1355 (let ((out (assoc-ref %outputs "out"))
1356 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1357 (list "all"
1358 (string-append "PREFIX=" out)
1359 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1360 ;; There are no tests.
1361 #:tests? #f))
1362 (home-page "http://www.mupen64plus.org/")
1363 (synopsis "Mupen64Plus SDL input plugin")
1364 (description
1365 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1366 which is capable of accurately playing many games. This package contains the
1367 SDL input plugin.")
1368 (license license:gpl2+)))
1369
1370 (define-public mupen64plus-rsp-hle
1371 (package
1372 (name "mupen64plus-rsp-hle")
1373 (version "2.5")
1374 (source
1375 (origin
1376 (method url-fetch)
1377 (uri (string-append
1378 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1379 version ".tar.gz"))
1380 (file-name (string-append name "-" version ".tar.gz"))
1381 (sha256
1382 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1383 (build-system gnu-build-system)
1384 (inputs
1385 `(("mupen64plus-core" ,mupen64plus-core)))
1386 (arguments
1387 '(#:phases
1388 (modify-phases %standard-phases
1389 ;; The mupen64plus build system has no configure phase.
1390 (delete 'configure)
1391 ;; Makefile is in a subdirectory.
1392 (add-before
1393 'build 'cd-to-project-dir
1394 (lambda _
1395 (chdir "projects/unix"))))
1396 #:make-flags
1397 (let ((out (assoc-ref %outputs "out"))
1398 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1399 (list "all"
1400 (string-append "PREFIX=" out)
1401 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1402 ;; There are no tests.
1403 #:tests? #f))
1404 (home-page "http://www.mupen64plus.org/")
1405 (synopsis "Mupen64Plus SDL input plugin")
1406 (description
1407 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1408 which is capable of accurately playing many games. This package contains the
1409 high-level emulation (HLE) RSP processor plugin.")
1410 (license license:gpl2+)))
1411
1412 (define-public mupen64plus-rsp-z64
1413 (package
1414 (name "mupen64plus-rsp-z64")
1415 (version "2.0.0")
1416 (source
1417 (origin
1418 (method url-fetch)
1419 (uri (string-append
1420 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1421 version ".tar.gz"))
1422 (file-name (string-append name "-" version ".tar.gz"))
1423 (sha256
1424 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1425 (build-system gnu-build-system)
1426 (inputs
1427 `(("mupen64plus-core" ,mupen64plus-core)))
1428 (arguments
1429 '(#:phases
1430 (modify-phases %standard-phases
1431 ;; The mupen64plus build system has no configure phase.
1432 (delete 'configure)
1433 ;; Makefile is in a subdirectory.
1434 (add-before
1435 'build 'cd-to-project-dir
1436 (lambda _
1437 (chdir "projects/unix"))))
1438 #:make-flags
1439 (let ((out (assoc-ref %outputs "out"))
1440 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1441 (list "all"
1442 (string-append "PREFIX=" out)
1443 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1444 ;; There are no tests.
1445 #:tests? #f))
1446 (home-page "http://www.mupen64plus.org/")
1447 (synopsis "Mupen64Plus SDL input plugin")
1448 (description
1449 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1450 which is capable of accurately playing many games. This package contains the
1451 Z64 RSP processor plugin.")
1452 (license license:gpl2+)))
1453
1454 (define-public mupen64plus-video-arachnoid
1455 (package
1456 (name "mupen64plus-video-arachnoid")
1457 (version "2.0.0")
1458 (source
1459 (origin
1460 (method url-fetch)
1461 (uri (string-append
1462 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1463 version ".tar.gz"))
1464 (file-name (string-append name "-" version ".tar.gz"))
1465 (sha256
1466 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1467 (build-system gnu-build-system)
1468 (native-inputs
1469 `(("pkg-config" ,pkg-config)
1470 ("which" ,which)))
1471 (inputs
1472 `(("mesa" ,mesa)
1473 ("mupen64plus-core" ,mupen64plus-core)))
1474 (arguments
1475 '(#:phases
1476 (modify-phases %standard-phases
1477 ;; The mupen64plus build system has no configure phase.
1478 (delete 'configure)
1479 ;; Makefile is in a subdirectory.
1480 (add-before
1481 'build 'cd-to-project-dir
1482 (lambda _
1483 (chdir "projects/unix"))))
1484 #:make-flags
1485 (let ((out (assoc-ref %outputs "out"))
1486 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1487 (list "all"
1488 (string-append "PREFIX=" out)
1489 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1490 ;; There are no tests.
1491 #:tests? #f))
1492 (home-page "http://www.mupen64plus.org/")
1493 (synopsis "Mupen64Plus Rice Video plugin")
1494 (description
1495 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1496 which is capable of accurately playing many games. This package contains the
1497 Arachnoid video plugin.")
1498 (license license:gpl2+)))
1499
1500 (define-public mupen64plus-video-glide64
1501 (package
1502 (name "mupen64plus-video-glide64")
1503 (version "2.0.0")
1504 (source
1505 (origin
1506 (method url-fetch)
1507 (uri (string-append
1508 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1509 version ".tar.gz"))
1510 (file-name (string-append name "-" version ".tar.gz"))
1511 (sha256
1512 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1513 (build-system gnu-build-system)
1514 (native-inputs
1515 `(("pkg-config" ,pkg-config)
1516 ("which" ,which)))
1517 (inputs
1518 `(("mesa" ,mesa)
1519 ("mupen64plus-core" ,mupen64plus-core)
1520 ("sdl2" ,sdl2)))
1521 (arguments
1522 '(#:phases
1523 (modify-phases %standard-phases
1524 ;; The mupen64plus build system has no configure phase.
1525 (delete 'configure)
1526 ;; Makefile is in a subdirectory.
1527 (add-before
1528 'build 'cd-to-project-dir
1529 (lambda _
1530 (chdir "projects/unix")))
1531 ;; XXX Should be unnecessary with the next release.
1532 (add-before
1533 'build 'use-sdl2
1534 (lambda _
1535 (substitute* "Makefile"
1536 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1537 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1538 #:make-flags
1539 (let ((out (assoc-ref %outputs "out"))
1540 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1541 (list "all"
1542 (string-append "PREFIX=" out)
1543 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1544 ;; There are no tests.
1545 #:tests? #f))
1546 (home-page "http://www.mupen64plus.org/")
1547 (synopsis "Mupen64Plus Rice Video plugin")
1548 (description
1549 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1550 which is capable of accurately playing many games. This package contains the
1551 Glide64 video plugin.")
1552 (license license:gpl2+)))
1553
1554 (define-public mupen64plus-video-glide64mk2
1555 (package
1556 (name "mupen64plus-video-glide64mk2")
1557 (version "2.5")
1558 (source
1559 (origin
1560 (method url-fetch)
1561 (uri (string-append
1562 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1563 version ".tar.gz"))
1564 (file-name (string-append name "-" version ".tar.gz"))
1565 (sha256
1566 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1567 (build-system gnu-build-system)
1568 (native-inputs
1569 `(("pkg-config" ,pkg-config)
1570 ("which" ,which)))
1571 (inputs
1572 `(("boost" ,boost)
1573 ("libpng" ,libpng)
1574 ("mesa" ,mesa)
1575 ("mupen64plus-core" ,mupen64plus-core)
1576 ("sdl2" ,sdl2)
1577 ("zlib" ,zlib)))
1578 (arguments
1579 '(#:phases
1580 (modify-phases %standard-phases
1581 ;; The mupen64plus build system has no configure phase.
1582 (delete 'configure)
1583 ;; Makefile is in a subdirectory.
1584 (add-before
1585 'build 'cd-to-project-dir
1586 (lambda _
1587 (chdir "projects/unix"))))
1588 #:make-flags
1589 (let ((out (assoc-ref %outputs "out"))
1590 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1591 (list "all"
1592 (string-append "PREFIX=" out)
1593 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1594 ;; There are no tests.
1595 #:tests? #f))
1596 (home-page "http://www.mupen64plus.org/")
1597 (synopsis "Mupen64Plus Rice Video plugin")
1598 (description
1599 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1600 which is capable of accurately playing many games. This package contains the
1601 Glide64MK2 video plugin.")
1602 (license license:gpl2+)))
1603
1604 (define-public mupen64plus-video-rice
1605 (package
1606 (name "mupen64plus-video-rice")
1607 (version "2.5")
1608 (source
1609 (origin
1610 (method url-fetch)
1611 (uri (string-append
1612 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1613 version ".tar.gz"))
1614 (file-name (string-append name "-" version ".tar.gz"))
1615 (sha256
1616 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1617 (build-system gnu-build-system)
1618 (native-inputs
1619 `(("pkg-config" ,pkg-config)
1620 ("which" ,which)))
1621 (inputs
1622 `(("libpng" ,libpng)
1623 ("mesa" ,mesa)
1624 ("mupen64plus-core" ,mupen64plus-core)
1625 ("sdl2" ,sdl2)))
1626 (arguments
1627 '(#:phases
1628 (modify-phases %standard-phases
1629 ;; The mupen64plus build system has no configure phase.
1630 (delete 'configure)
1631 ;; Makefile is in a subdirectory.
1632 (add-before
1633 'build 'cd-to-project-dir
1634 (lambda _
1635 (chdir "projects/unix"))))
1636 #:make-flags
1637 (let ((out (assoc-ref %outputs "out"))
1638 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1639 (list "all"
1640 (string-append "PREFIX=" out)
1641 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1642 ;; There are no tests.
1643 #:tests? #f))
1644 (home-page "http://www.mupen64plus.org/")
1645 (synopsis "Mupen64Plus Rice Video plugin")
1646 (description
1647 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1648 which is capable of accurately playing many games. This package contains the
1649 Rice Video plugin.")
1650 (license license:gpl2+)))
1651
1652 (define-public mupen64plus-video-z64
1653 (package
1654 (name "mupen64plus-video-z64")
1655 (version "2.0.0")
1656 (source
1657 (origin
1658 (method url-fetch)
1659 (uri (string-append
1660 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1661 version ".tar.gz"))
1662 (file-name (string-append name "-" version ".tar.gz"))
1663 (sha256
1664 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1665 (build-system gnu-build-system)
1666 (native-inputs
1667 `(("pkg-config" ,pkg-config)
1668 ("which" ,which)))
1669 (inputs
1670 `(("glew" ,glew)
1671 ("mupen64plus-core" ,mupen64plus-core)
1672 ("sdl2" ,sdl2)))
1673 (arguments
1674 '(#:phases
1675 (modify-phases %standard-phases
1676 ;; The mupen64plus build system has no configure phase.
1677 (delete 'configure)
1678 ;; Makefile is in a subdirectory.
1679 (add-before
1680 'build 'cd-to-project-dir
1681 (lambda _
1682 (chdir "projects/unix")))
1683 ;; XXX Should be unnecessary with the next release.
1684 (add-before
1685 'build 'use-sdl2
1686 (lambda _
1687 (substitute* "Makefile"
1688 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1689 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1690 #:make-flags
1691 (let ((out (assoc-ref %outputs "out"))
1692 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1693 (list "all"
1694 (string-append "PREFIX=" out)
1695 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1696 ;; There are no tests.
1697 #:tests? #f))
1698 (home-page "http://www.mupen64plus.org/")
1699 (synopsis "Mupen64Plus Z64 video plugin")
1700 (description
1701 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1702 which is capable of accurately playing many games. This package contains the
1703 Z64 video plugin.")
1704 (license license:gpl2+)))
1705
1706 (define-public mupen64plus-ui-console
1707 (package
1708 (name "mupen64plus-ui-console")
1709 (version "2.5")
1710 (source
1711 (origin
1712 (method url-fetch)
1713 (uri (string-append
1714 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1715 version ".tar.gz"))
1716 (file-name (string-append name "-" version ".tar.gz"))
1717 (sha256
1718 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1719 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1720 (build-system gnu-build-system)
1721 (native-inputs
1722 `(("pkg-config" ,pkg-config)
1723 ("which" ,which)))
1724 (inputs
1725 `(("sdl2" ,sdl2)))
1726 ;; Mupen64Plus supports a single data directory and a single plugin
1727 ;; directory in its configuration, yet we need data and plugin files from
1728 ;; a variety of packages. The best way to deal with this is to install
1729 ;; all packages from which data and plugin files are needed into one's
1730 ;; profile, and point the configuration there. Hence, propagate the most
1731 ;; important packages here to save the user from the bother. The patch
1732 ;; mupen64plus-ui-console-notice also gives users instructions on what
1733 ;; they need to do in order to point the configuration to their profile.
1734 (propagated-inputs
1735 `(("mupen64plus-core" ,mupen64plus-core)
1736 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1737 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1738 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1739 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1740 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1741 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1742 (arguments
1743 '(#:phases
1744 (modify-phases %standard-phases
1745 ;; The mupen64plus build system has no configure phase.
1746 (delete 'configure)
1747 ;; Makefile is in a subdirectory.
1748 (add-before
1749 'build 'cd-to-project-dir
1750 (lambda _
1751 (chdir "projects/unix"))))
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 ;; Trailing slash matters here.
1759 (string-append "COREDIR=" m64p "/lib/")))
1760 ;; There are no tests.
1761 #:tests? #f))
1762 (home-page "http://www.mupen64plus.org/")
1763 (synopsis "Mupen64Plus SDL input plugin")
1764 (description
1765 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1766 which is capable of accurately playing many games. This package contains the
1767 command line user interface. Installing this package is the easiest way
1768 towards a working Mupen64Plus for casual users.")
1769 (license license:gpl2+)))
1770
1771 (define-public nestopia-ue
1772 (package
1773 (name "nestopia-ue")
1774 (version "1.46.2")
1775 (source (origin
1776 (method url-fetch)
1777 (uri (string-append
1778 "https://github.com/rdanbrook/nestopia/archive/"
1779 version ".tar.gz"))
1780 (file-name (string-append name "-" version ".tar.gz"))
1781 (sha256
1782 (base32
1783 "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
1784 (modules '((guix build utils)))
1785 (snippet
1786 '(begin
1787 ;; We don't need libretro for the GNU/Linux build.
1788 (delete-file-recursively "libretro")
1789 ;; Use system zlib.
1790 (delete-file-recursively "source/zlib")
1791 (substitute* "source/core/NstZlib.cpp"
1792 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1793 (build-system gnu-build-system)
1794 (native-inputs
1795 `(("pkg-config" ,pkg-config)))
1796 (inputs
1797 `(("ao" ,ao)
1798 ("glu" ,glu)
1799 ("gtk+" ,gtk+)
1800 ("libarchive" ,libarchive)
1801 ("mesa" ,mesa)
1802 ("sdl2" ,sdl2)
1803 ("zlib" ,zlib)))
1804 (arguments
1805 '(#:phases
1806 (modify-phases %standard-phases
1807 ;; The Nestopia build system consists solely of a Makefile.
1808 (delete 'configure)
1809 ;; XXX Should be unnecessary with the next release.
1810 (add-before
1811 'build 'patch-makefile
1812 (lambda _
1813 (substitute* "Makefile"
1814 (("@mkdir \\$@") "@mkdir -p $@")
1815 (("CC =") "CC ?=")
1816 (("CXX =") "CXX ?=")
1817 (("PREFIX =") "PREFIX ?=")
1818 (("^install:\n$") "install:\n\tmkdir -p $(BINDIR)\n"))))
1819 (add-before
1820 'build 'remove-xdg-desktop-menu-call
1821 (lambda _
1822 (substitute* "Makefile"
1823 (("xdg-desktop-menu install .*") "")))))
1824 #:make-flags (let ((out (assoc-ref %outputs "out")))
1825 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1826 ;; There are no tests.
1827 #:tests? #f))
1828 (home-page "http://0ldsk00l.ca/nestopia/")
1829 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1830 (description
1831 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1832 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1833 emulation community. It provides highly accurate emulation.")
1834 (license license:gpl2+)))
1835
1836 (define-public emulation-station
1837 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1838 (package
1839 (name "emulation-station")
1840 (version "2.0.1")
1841 (source (origin
1842 (method git-fetch) ; no tarball available
1843 (uri (git-reference
1844 (url "https://github.com/Aloshi/EmulationStation.git")
1845 (commit commit))) ; no version tag
1846 (sha256
1847 (base32
1848 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1849 (build-system cmake-build-system)
1850 (arguments
1851 '(#:tests? #f)) ; no tests
1852 (inputs
1853 `(("alsa-lib" ,alsa-lib)
1854 ("boost" ,boost)
1855 ("curl" ,curl)
1856 ("eigin" ,eigen)
1857 ("freeimage" ,freeimage)
1858 ("freetype" ,freetype)
1859 ("mesa" ,mesa)
1860 ("sdl2" ,sdl2)))
1861 (synopsis "Video game console emulator front-end")
1862 (description "EmulationStation provides a graphical front-end to a large
1863 number of video game console emulators. It features an interface that is
1864 usable with any game controller that has at least 4 buttons, theming support,
1865 and a game metadata scraper.")
1866 (home-page "http://www.emulationstation.org")
1867 (license license:expat))))
1868
1869 (define openttd-engine
1870 (package
1871 (name "openttd-engine")
1872 (version "1.6.0")
1873 (source
1874 (origin (method url-fetch)
1875 (uri (string-append "http://binaries.openttd.org/releases/"
1876 version "/openttd-" version "-source.tar.xz"))
1877 (sha256
1878 (base32
1879 "1cjf9gz7d0sn7893wv9d00q724sxv3d81bgb0c5f5ppz2ssyc4jc"))
1880 (modules '((guix build utils)))
1881 (snippet
1882 ;; The DOS port contains proprietary software.
1883 '(delete-file-recursively "os/dos"))))
1884 (build-system gnu-build-system)
1885 (arguments
1886 `(#:tests? #f ; no "check" target
1887 #:phases
1888 (modify-phases %standard-phases
1889 ;; The build process fails if the configure script is passed the
1890 ;; option "--enable-fast-install".
1891 (replace 'configure
1892 (lambda* (#:key inputs outputs #:allow-other-keys)
1893 (let ((out (assoc-ref outputs "out"))
1894 (lzo (assoc-ref inputs "lzo")))
1895 (zero?
1896 (system* "./configure"
1897 (string-append "--prefix=" out)
1898 ;; Provide the "lzo" path.
1899 (string-append "--with-liblzo2="
1900 lzo "/lib/liblzo2.a")
1901 ;; Put the binary in 'bin' instead of 'games'.
1902 "--binary-dir=bin"))))))))
1903 (native-inputs `(("pkg-config" ,pkg-config)))
1904 (inputs
1905 `(("allegro" ,allegro-4)
1906 ("fontconfig" ,fontconfig)
1907 ("freetype" ,freetype)
1908 ("icu4c" ,icu4c)
1909 ("libpng" ,libpng)
1910 ("lzo" ,lzo)
1911 ("sdl" ,sdl)
1912 ("xz" ,xz)
1913 ("zlib" ,zlib)))
1914 (synopsis "Transportation economics simulator")
1915 (description "OpenTTD is a game in which you transport goods and
1916 passengers by land, water and air. It is a re-implementation of Transport
1917 Tycoon Deluxe with many enhancements including multiplayer mode,
1918 internationalization support, conditional orders and the ability to clone,
1919 autoreplace and autoupdate vehicles.")
1920 (home-page "http://openttd.org/")
1921 ;; This package is GPLv2, except for a few files located in
1922 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1923 ;; licenses. In addition, this software contains an in-game downloader
1924 ;; from which the user may find non-functional data licensed under
1925 ;; different terms.
1926 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1927
1928 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1929 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1930 ;; but it asks a user to download graphics if it's not found.
1931
1932 (define-public openttd
1933 (package
1934 (inherit openttd-engine)
1935 (name "openttd")))
1936
1937 (define-public pinball
1938 (package
1939 (name "pinball")
1940 (version "0.3.1")
1941 (source
1942 (origin (method url-fetch)
1943 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1944 "pinball-" version "/"
1945 "pinball-" version ".tar.gz"))
1946 (sha256
1947 (base32
1948 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
1949 (patches (search-patches "pinball-const-fix.patch"
1950 "pinball-cstddef.patch"
1951 "pinball-missing-separators.patch"
1952 "pinball-src-deps.patch"
1953 "pinball-system-ltdl.patch"))))
1954 (build-system gnu-build-system)
1955 (inputs
1956 `(("glu" ,glu)
1957 ("mesa" ,mesa)
1958 ("sdl" ,sdl)
1959 ("sdl-image" ,sdl-image)
1960 ("sdl-mixer" ,sdl-mixer)))
1961 (arguments
1962 '(#:configure-flags
1963 (list (string-append "CPPFLAGS=-I"
1964 (assoc-ref %build-inputs "sdl-image")
1965 "/include/SDL -I"
1966 (assoc-ref %build-inputs "sdl-mixer")
1967 "/include/SDL"))))
1968 (home-page "http://pinball.sourceforge.net")
1969 (synopsis "Pinball simulator")
1970 (description "The Emilia Pinball Project is a pinball simulator. There
1971 are only two levels to play with, but they are very addictive.")
1972 (license license:gpl2)))
1973
1974 (define-public pioneers
1975 (package
1976 (name "pioneers")
1977 (version "15.3")
1978 (source (origin
1979 (method url-fetch)
1980 (uri (string-append "http://downloads.sourceforge.net/pio/"
1981 "pioneers-" version ".tar.gz"))
1982 (sha256
1983 (base32
1984 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
1985 (build-system gnu-build-system)
1986 (inputs `(("gtk+" ,gtk+)
1987 ("librsvg" ,librsvg)
1988 ("avahi" ,avahi)))
1989 (native-inputs `(("intltool" ,intltool)
1990 ("pkg-config" ,pkg-config)))
1991 (synopsis "Board game inspired by The Settlers of Catan")
1992 (description "Pioneers is an emulation of the board game The Settlers of
1993 Catan. It can be played on a local network, on the internet, and with AI
1994 players.")
1995 (home-page "http://pio.sourceforge.net/")
1996 (license license:gpl2+)))
1997
1998 (define-public desmume
1999 (package
2000 (name "desmume")
2001 (version "0.9.11")
2002 (source
2003 (origin
2004 (method url-fetch)
2005 (uri (string-append
2006 "mirror://sourceforge/desmume/desmume/"
2007 version "/desmume-" version ".tar.gz"))
2008 (sha256
2009 (base32
2010 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2011 (build-system gnu-build-system)
2012 (arguments
2013 ;; Enable support for WiFi and microphone.
2014 `(#:configure-flags '("--enable-wifi"
2015 "--enable-openal")))
2016 (native-inputs
2017 `(("pkg-config" ,pkg-config)
2018 ("intltool" ,intltool)))
2019 (inputs
2020 `(("zlib" ,zlib)
2021 ("sdl" ,sdl)
2022 ("glib" ,glib)
2023 ("gtk+" ,gtk+-2)
2024 ("glu" ,glu)))
2025 (home-page "http://desmume.org/")
2026 (synopsis "Nintendo DS emulator")
2027 (description
2028 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2029 (license license:gpl2)))
2030
2031 (define-public einstein
2032 (package
2033 (name "einstein")
2034 (version "2.0")
2035 (source (origin
2036 (method url-fetch)
2037 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2038 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2039 (sha256
2040 (base32
2041 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2042 (patches (search-patches "einstein-build.patch"))))
2043 (build-system gnu-build-system)
2044 (inputs
2045 `(("freetype" ,freetype)
2046 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2047 ("zlib" ,zlib)))
2048 (native-inputs
2049 `(("font-dejavu" ,font-dejavu)))
2050 (arguments
2051 `(#:tests? #f ; no check target
2052 #:phases
2053 (modify-phases %standard-phases
2054 (replace 'configure
2055 (lambda* (#:key outputs inputs #:allow-other-keys)
2056 (let ((out (assoc-ref outputs "out"))
2057 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2058 "/share/fonts/truetype/DejaVuSans.ttf")))
2059 (substitute* "Makefile"
2060 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2061 ;; The patch above registers a free font for use by the binary,
2062 ;; but the font is copied during the compile phase into a
2063 ;; resources file, so we need to make the ttf file available.
2064 (symlink dejavu "res/DejaVuSans.ttf")
2065 #t))))))
2066 (synopsis "Logic puzzle game")
2067 (description "The goal of this logic game is to open all cards in a 6x6
2068 grid, using a number of hints as to their relative position. The game idea
2069 is attributed to Albert Einstein.")
2070 ;; The original home page has disappeared.
2071 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2072 "http://games.flowix.com/en/index.html"))
2073 ;; License according to
2074 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2075 ;; The source code is a DFSG-sanitized tarball and does not contain any
2076 ;; license information.
2077 (license license:gpl3+)))
2078
2079 (define-public powwow
2080 (package
2081 (name "powwow")
2082 (version "1.2.17")
2083 (source (origin
2084 (method url-fetch)
2085 (uri (string-append
2086 "http://www.hoopajoo.net/static/projects/powwow-"
2087 version ".tar.gz"))
2088 (file-name (string-append name "-" version ".tar.gz"))
2089 (sha256
2090 (base32
2091 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2092 (inputs
2093 `(("ncurses" ,ncurses)))
2094 (build-system gnu-build-system)
2095 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2096 (synopsis "MUD and telnet client")
2097 (description
2098 "POWWOW is a client software which can be used for telnet as well as for
2099 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2100 the chat server psyced with the specific config located at
2101 http://lavachat.symlynx.com/unix/")
2102 (license license:gpl2+)))
2103
2104 (define-public red-eclipse
2105 (let ((data-sources
2106 '(("acerspyro" "0gxxr6nbac918b49x1cp72nw951hqm5m4iyi2shb1612ly384w8q")
2107 ("actors" "1jq9q82m6nx07nwpb5cnpdcwa33jrcgg0j2yir8zk6zpnxdmp0il")
2108 ("appleflap" "1cn41c6xs68l88rmphqh4rlsh6h04xnkkvklxdpqpvvr4zlsmi85")
2109 ("blendbrush" "0wjbgnniirl9arv274m8mpdqbbq7d09g0pq1z9dl56sazmbk5yy0")
2110 ("caustics" "0gxv1pqhi6c27mqi9mwqyfnzv9rq5sva1vgxhb9ljh231rmkdc15")
2111 ("crosshairs" "0vlyhd10mly2qnjpwvss9ani7dg3v2njpf7457ilx7fk9a3hlbkk")
2112 ("elyvisions" "0s0l77rd9fd09imvj05pwcz4bqrn3j8qsw8prv5pi5bqa50mbn19")
2113 ("fonts" "0apn8j9lf43nmnidq1f0azhrr1n896g7si4djbix1bwll6ild0mq")
2114 ("freezurbern" "0y60s3g8v8bl2m6pk2yr9fzl67ymv821x6l2f9hszzydlcjwlscn")
2115 ("john" "1lmwn0r7qpyac2qrnkv9llhsbyzqpgr27hxq2qn1rfbq12fja0ld")
2116 ("jojo" "0sh3ricqlqw868a0mz2n9iw7lhp650pysd2wkcdizhcmw2hlayx9")
2117 ("jwin" "1r459jhxx64j3vdw886ypkm6zg0yg6cr2qark54i1zdskjhp762k")
2118 ("luckystrike" "08xq87crcz0jq45q1g6p8h4xrm1bcqzd019zp7n0f9c3p9j6al91")
2119 ("maps" "1f0hqh8mbd4nzqi4hja4k5f380nszhx8igajg5ini4p9cp39x9vi")
2120 ("mayhem" "1hn9jp64aiz8k6p2nxyg82h2nc8fadgghzhrm26y7i4bz9xwxacm")
2121 ("mikeplus64" "1kj2zznxykgm3f1h1fvd8xzim5f292lyh96l2gj5km1nynzjmaap")
2122 ("misc" "1phmzjs5rmika3568b7jb6ywbsi40r711rhg8cbsflllcp7hdidf")
2123 ("nobiax" "08in9c24m2pq7x371q10ny4q3l1l3zb8m029iypy2lx9gr99i7hm")
2124 ("particles" "0wcd3s6vhrjknffnfqrcpkcqk1r01f1fiz6q7n4srhpdv3i4d6vm")
2125 ("philipk" "1s0kmap8iv5sddanrhycblskj3ywvz9xg2m11f6vnfy108palkga")
2126 ("projectiles" "0xdhrs9rsncd1f88s5igdbfksli7h0irg5jdbj6p2a3rgdzb3gnj")
2127 ("props" "1sbh3a94pmzic78bil0dvdh4fd8s6gh52f77jdram3w0gwv79x3r")
2128 ("skyboxes" "0hy95a6ps0fk4cq8j6pjipk8rnsjna9bm0ly2l373gbshlfg6zgi")
2129 ("sounds" "1pnyd7acm19sj1k1cy9hq3n3dnzzaiak7j5f0h7fikiybq5rdk7b")
2130 ("textures" "0gxfnc4xm0kp3pd7lhd4yy1dqq00g727h21l64nyiw2b2d6n1755")
2131 ("torley" "1cri5mf8ls8mvpn1x1p9hacyg9ibilaiz07gqv2hl2q8ww5xc1s6")
2132 ("trak" "0xyk5z59kn9ym9n5fdcrwhqig6gjcjgnrgi9rqbbai713w9vpsbq")
2133 ("ulukai" "0ziv9c4inmza40mas1w9dp048y6f646x00bs7kqv33hd1snbg3v3")
2134 ("unnamed" "0hm291k9azilnp0m04zhm52vml1rhxk1z4l74v66spbikr6s2zdx")
2135 ("vanities" "1qbc2v67kdrlvq10miw3dfmg3j9w9bq1hgqrzjcbph0l4gra1ndw")
2136 ("vegetation" "13928yw0wflcj620cmp8rqwplaw8508f3j4zi32vxida1ksz6xn0")
2137 ("weapons" "1ghn6nfcnd5lyl8dnj22csldvf9hrb32wjzpab4sjjz3iyv0zmr3")
2138 ("wicked" "0q9badvg6ix5rhl05s83kw2v6a49jpnbkqk4ls89qahaddfagi8g"))))
2139 (package
2140 (name "red-eclipse")
2141 (version "1.5.3")
2142 (source (origin
2143 (method url-fetch)
2144 (uri (string-append "https://github.com/red-eclipse/base"
2145 "/archive/v" version ".tar.gz"))
2146 (file-name (string-append name "-" version ".tar.gz"))
2147 (sha256
2148 (base32
2149 "1y0jv5lz69zisiw8sd5z9a9v21zc83by1sx9b7dly78ngif4gc4l"))))
2150 (build-system gnu-build-system)
2151 (arguments
2152 `(#:tests? #f ; no check target
2153 #:make-flags (list "CC=gcc" "-Csrc"
2154 (string-append "INSTDIR="
2155 (assoc-ref %outputs "out") "/bin"))
2156 #:phases
2157 (modify-phases %standard-phases
2158 (add-after 'unpack 'unpack-data
2159 (lambda* (#:key inputs #:allow-other-keys)
2160 (delete-file-recursively "data")
2161 (mkdir "data")
2162 (for-each (lambda (name)
2163 (system* "tar" "-xvf"
2164 (assoc-ref inputs name)
2165 "-Cdata"
2166 "--transform"
2167 (string-append "s/"
2168 name "-1.5.3/"
2169 name "/")))
2170 (list ,@(map car data-sources)))
2171 #t))
2172 (delete 'configure) ; no configure script
2173 (add-after 'set-paths 'set-sdl-paths
2174 (lambda* (#:key inputs #:allow-other-keys)
2175 (setenv "CPATH"
2176 (string-append (assoc-ref inputs "sdl-union")
2177 "/include/SDL"))
2178 #t))
2179 (add-after 'install 'copy-data
2180 (lambda* (#:key outputs #:allow-other-keys)
2181 (let ((out (assoc-ref outputs "out")))
2182 (copy-recursively "config"
2183 (string-append out "/config"))
2184 (copy-recursively "data"
2185 (string-append out "/data")))
2186 #t))
2187 (add-after 'copy-data 'wrap-program
2188 (lambda* (#:key inputs outputs #:allow-other-keys)
2189 (let* ((out (assoc-ref outputs "out"))
2190 (bin (string-append out "/bin")))
2191 (with-directory-excursion bin
2192 (rename-file "redeclipse_linux"
2193 ".redeclipse_linux-real")
2194 (rename-file "redeclipse_server_linux"
2195 ".redeclipse_server_linux-real")
2196 (call-with-output-file "redeclipse_linux"
2197 (lambda (port)
2198 (format port "#!~a/bin/sh
2199 # Run the thing from its home, otherwise it just bails out.
2200 cd \"~a\"
2201 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2202 (assoc-ref inputs "bash") ;implicit input
2203 (string-append out)
2204 (string-append bin))))
2205 (call-with-output-file "redeclipse_server_linux"
2206 (lambda (port)
2207 (format port "#!~a/bin/sh
2208 # Run the thing from its home, otherwise it just bails out.
2209 cd \"~a\"
2210 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2211 (assoc-ref inputs "bash") ;implicit input
2212 (string-append out)
2213 (string-append bin))))
2214 (chmod "redeclipse_linux" #o555)
2215 (chmod "redeclipse_server_linux" #o555)))
2216 #t)))))
2217 (native-inputs `(("pkg-config" ,pkg-config)))
2218 (inputs
2219 `(("curl" ,curl)
2220 ("glu" ,glu)
2221 ("sdl-union" ,(sdl-union))
2222 ;; Create origin records for the many separate data packages.
2223 ,@(map (match-lambda
2224 ((name hash)
2225 (list name
2226 (origin
2227 (method url-fetch)
2228 (uri (string-append
2229 "https://github.com/red-eclipse/"
2230 name "/archive/v" version ".tar.gz"))
2231 (sha256 (base32 hash))
2232 (file-name (string-append name "-" version
2233 ".tar.gz"))))))
2234 data-sources)))
2235 (home-page "http://redeclipse.net/")
2236 (synopsis "Arena shooter derived from the Cube 2 engine")
2237 (description
2238 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2239 Offering an innovative parkour system and distinct but all potent weapons,
2240 Red Eclipse provides fast paced and accessible gameplay.")
2241 ;; The engine is under Zlib; data files are covered by the other
2242 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2243 (license (list license:expat
2244 license:zlib
2245 license:cc-by-sa3.0
2246 license:cc-by3.0
2247 license:cc0)))))
2248
2249 (define-public higan
2250 (package
2251 (name "higan")
2252 (version "099")
2253 (source
2254 (origin
2255 (method url-fetch)
2256 (uri (string-append
2257 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2258 version))
2259 (file-name (string-append name "-" version ".tar.gz"))
2260 (sha256
2261 (base32 "0xlzjqrd308hmg6yjzjkmxkkr9p3w387kf6yxyplb47jcbx2sq4n"))
2262 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2263 (build-system gnu-build-system)
2264 (native-inputs
2265 `(("pkg-config" ,pkg-config)))
2266 (inputs
2267 `(("alsa-lib" ,alsa-lib)
2268 ("ao" ,ao)
2269 ("eudev" ,eudev)
2270 ("gtk+" ,gtk+-2)
2271 ("gtksourceview-2" ,gtksourceview-2)
2272 ("libxv" ,libxv)
2273 ("mesa" ,mesa)
2274 ("openal" ,openal)
2275 ("pulseaudio" ,pulseaudio)
2276 ("sdl" ,sdl)))
2277 (arguments
2278 '(#:phases
2279 (let ((build-phase (assoc-ref %standard-phases 'build))
2280 (install-phase (assoc-ref %standard-phases 'install)))
2281 (modify-phases %standard-phases
2282 ;; The higan build system has no configure phase.
2283 (delete 'configure)
2284 (add-before 'build 'chdir-to-higan
2285 (lambda _
2286 (chdir "higan")))
2287 (add-before 'install 'create-/share/applications
2288 (lambda* (#:key outputs #:allow-other-keys)
2289 (let ((out (assoc-ref outputs "out")))
2290 ;; It seems the author forgot to do this in the Makefile.
2291 (mkdir-p (string-append out "/share/applications")))))
2292 (add-after 'install 'chdir-to-icarus
2293 (lambda _
2294 (chdir "../icarus")))
2295 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2296 (add-after 'build-icarus 'install-icarus install-phase)
2297 (add-after 'install-icarus 'wrap-higan-executable
2298 (lambda* (#:key inputs outputs #:allow-other-keys)
2299 (let* ((out (assoc-ref outputs "out"))
2300 (bin (string-append out "/bin"))
2301 (higan (string-append bin "/higan"))
2302 (higan-original (string-append higan "-original"))
2303 (bash (string-append (assoc-ref inputs "bash")
2304 "/bin/bash"))
2305 (coreutils (assoc-ref inputs "coreutils"))
2306 (mkdir (string-append coreutils "/bin/mkdir"))
2307 (cp (string-append coreutils "/bin/cp"))
2308 (cp-r (string-append cp " -r --no-preserve=mode")))
2309 ;; First, have the executable make sure ~/.local/share/higan
2310 ;; contains up to date files. Higan insists on looking there
2311 ;; for these data files.
2312 (rename-file higan higan-original)
2313 (with-output-to-file higan
2314 (lambda ()
2315 (display
2316 (string-append
2317 "#!" bash "\n"
2318 ;; higan doesn't respect $XDG_DATA_HOME
2319 mkdir " -p ~/.local/share\n"
2320 cp-r " " out "/share/higan ~/.local/share\n"
2321 "exec " higan-original))))
2322 (chmod higan #o555)
2323 ;; Second, make sure higan will find icarus in PATH.
2324 (wrap-program higan
2325 `("PATH" ":" prefix (,bin))))))))
2326 #:make-flags
2327 (list "compiler=g++"
2328 (string-append "prefix=" (assoc-ref %outputs "out")))
2329 ;; There is no test suite.
2330 #:tests? #f))
2331 (home-page "http://byuu.org/emulation/higan/")
2332 (synopsis "Nintendo multi-system emulator")
2333 (description
2334 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2335 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2336 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2337 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2338 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2339 ;; As noted in these files among more:
2340 ;; - icarus/icarus.cpp
2341 ;; - higan/emulator/emulator.hpp
2342 (license license:gpl3)))
2343
2344 (define-public grue-hunter
2345 (package
2346 (name "grue-hunter")
2347 (version "1.0")
2348 (source (origin
2349 (method url-fetch)
2350 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2351 (sha256
2352 (base32
2353 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2354 (build-system trivial-build-system) ; no Makefile.PL
2355 (arguments `(#:modules ((guix build utils))
2356 #:builder
2357 (begin
2358 (use-modules (guix build utils))
2359 (use-modules (srfi srfi-1))
2360
2361 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2362 (perl (string-append (assoc-ref %build-inputs
2363 "perl")
2364 "/bin"))
2365 (gzip (string-append (assoc-ref %build-inputs
2366 "gzip")
2367 "/bin/gzip"))
2368 (tar (string-append (assoc-ref %build-inputs
2369 "tar")
2370 "/bin/tar"))
2371 (out (assoc-ref %outputs "out"))
2372 (bin (string-append out "/bin"))
2373 (doc (string-append out "/share/doc")))
2374 (begin
2375 (mkdir out)
2376 (copy-file tarball "grue-hunter.tar.gz")
2377 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2378 (zero? (system* tar "xvf" "grue-hunter.tar"))
2379
2380 (mkdir-p bin)
2381 (copy-file "grue-hunter/gh.pl"
2382 (string-append bin "/grue-hunter"))
2383 (patch-shebang (string-append bin "/grue-hunter")
2384 (list perl))
2385
2386 (mkdir-p doc)
2387 (copy-file "grue-hunter/AGPLv3.txt"
2388 (string-append doc "/grue-hunter")))))))
2389 (inputs `(("perl" ,perl)
2390 ("tar" ,tar)
2391 ("gzip" ,gzip)
2392 ("tarball" ,source)))
2393 (home-page "http://jxself.org/grue-hunter.shtml")
2394 (synopsis "Text adventure game")
2395 (description
2396 "Grue Hunter is a text adventure game written in Perl. You must make
2397 your way through an underground cave system in search of the Grue. Can you
2398 capture it and get out alive?")
2399 (license license:agpl3+)))
2400
2401 (define-public warzone2100
2402 (package
2403 (name "warzone2100")
2404 (version "3.1.5")
2405 (source (origin
2406 (method url-fetch)
2407 (uri (string-append "mirror://sourceforge/" name
2408 "/releases/" version "/" name "-" version
2409 ".tar.xz"))
2410 (sha256
2411 (base32
2412 "0hm49i2knvvg3wlnryv7h4m84s3qa7jfyym5yy6365sx8wzcrai1"))))
2413 (build-system gnu-build-system)
2414 (arguments
2415 `(#:phases (modify-phases %standard-phases
2416 (add-after 'set-paths 'set-sdl-paths
2417 (lambda* (#:key inputs #:allow-other-keys)
2418 (setenv "CPATH"
2419 (string-append (assoc-ref inputs "sdl-union")
2420 "/include/SDL"))
2421 #t)))))
2422 (native-inputs `(("pkg-config" ,pkg-config)
2423 ("unzip" ,unzip)
2424 ("zip" ,zip)))
2425 (inputs `(("fontconfig" ,fontconfig)
2426 ("freetype" ,freetype)
2427 ("fribidi" ,fribidi)
2428 ("glew" ,glew)
2429 ("libtheora" ,libtheora)
2430 ("libvorbis" ,libvorbis)
2431 ("libxrandr" ,libxrandr)
2432 ("openal" ,openal)
2433 ("physfs" ,physfs)
2434 ("qt", qt-4)
2435 ("quesoglc" ,quesoglc)
2436 ("sdl-union" ,(sdl-union))))
2437 (home-page "http://wz2100.net")
2438 (synopsis "3D Real-time strategy and real-time tactics game")
2439 (description
2440 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2441 modes. An extensive tech tree with over 400 different technologies, combined
2442 with the unit design system, allows for a wide variety of possible units and
2443 tactics.")
2444 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2445 (license (list license:bsd-3
2446 license:cc0
2447 license:cc-by-sa3.0
2448 license:expat
2449 license:gpl2+
2450 license:lgpl2.1+))))
2451
2452 (define-public starfighter
2453 (package
2454 (name "starfighter")
2455 (version "1.5.1.1")
2456 (source (origin
2457 (method url-fetch)
2458 (uri (string-append
2459 "mirror://savannah/starfighter/"
2460 (version-major+minor version) "/"
2461 name "-" version "-src.tar.gz"))
2462 (sha256
2463 (base32
2464 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2465 (build-system gnu-build-system)
2466 (arguments
2467 '(#:tests? #f ; no check target
2468 #:make-flags
2469 (let ((out (assoc-ref %outputs "out")))
2470 (list (string-append "PREFIX=" out)
2471 (string-append "BINDIR=" out "/bin/")))
2472 #:phases
2473 (modify-phases %standard-phases
2474 ;; no configure script
2475 (delete 'configure))))
2476 (native-inputs
2477 `(("pkg-config" ,pkg-config)))
2478 (inputs
2479 `(("sdl2" ,sdl2)
2480 ("sdl2-image" ,sdl2-image)
2481 ("sdl2-mixer" ,sdl2-mixer)))
2482 (home-page "http://starfighter.nongnu.org/")
2483 (synopsis "2D scrolling shooter game")
2484 (description
2485 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2486 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2487 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2488 way, you will encounter new foes, make new allies, and assist local rebels
2489 in strikes against the evil corporation.")
2490 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2491 (license (list license:gpl3+
2492 license:cc-by3.0
2493 license:cc-by-sa3.0
2494 license:cc0
2495 license:public-domain))))