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"
26 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
112 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
113 version ".000-sources." "tar.gz"))
116 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
117 (build-system gnu-build-system)
118 (inputs `(("glib" ,glib)
119 ("readline" ,readline)
123 ("gtkglext" ,gtkglext)
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+)))
137 (define-public gnubik
144 (uri (string-append "mirror://gnu/gnubik/gnubik-"
148 "0mhpfnxzbns0wfrsjv5vafqr34770rbvkmdzxk0x0aq67hb3zyl5"))))
149 (build-system gnu-build-system)
150 (inputs `(("gtk+" ,gtk+-2)
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")
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+)))
168 (define-public abbaye
175 (uri (string-append "http://abbaye-for-linux.googlecode.com/files/"
176 "abbaye-for-linux-src-" version ".tar.gz"))
179 "1wgvckgqa2084rbskxif58wbb83xbas8s1i8s7d57xbj08ryq8rk"))))
180 (build-system gnu-build-system)
182 '(#:modules ((ice-9 match)
183 (guix build gnu-build-system)
185 #:phases (modify-phases %standard-phases
186 (add-after 'set-paths 'set-sdl-paths
187 (lambda* (#:key inputs #:allow-other-keys)
189 (string-append (assoc-ref inputs "sdl-union")
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)
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.
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+)))
219 (define-public pingus
226 (uri (string-append "http://pingus.googlecode.com/files/pingus-"
230 "0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"))
231 (patches (search-patches "pingus-sdl-libs-config.patch"))))
232 (build-system gnu-build-system)
233 (native-inputs `(("pkg-config" ,pkg-config)
235 (inputs `(("sdl" ,sdl)
236 ("sdl-image" ,sdl-image)
237 ("sdl-mixer" ,sdl-mixer)
243 '(#:tests? #f ;no check target
249 (lambda* (#:key outputs #:allow-other-keys)
250 (zero? (system* "make" "install"
251 (string-append "PREFIX="
252 (assoc-ref outputs "out")))))
254 (home-page "http://pingus.seul.org/welcome.html")
255 (synopsis "Lemmings clone")
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+)))
266 (define-public talkfilters
273 (uri (string-append "http://www.hyperrealm.com/" name "/"
274 name "-" version ".tar.gz"))
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+)))
285 (define-public cmatrix
292 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
296 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
297 (build-system gnu-build-system)
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"))
307 (system* "./configure"
308 (string-append "--prefix=" out)))))
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+)))
326 (uri (string-append "mirror://gnu/chess/gnuchess-" version
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+)))
339 (define freedink-engine
341 (name "freedink-engine")
345 (uri (string-append "mirror://gnu/freedink/freedink-" version
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)
359 ("fontconfig" ,fontconfig)
361 (home-page "http://www.gnu.org/software/freedink/")
362 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
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+)))
370 (define freedink-data
372 (name "freedink-data")
373 (version "1.08.20140901")
376 (uri (string-append "mirror://gnu/freedink/freedink-data-"
380 "04f1aa8gfz30qkgv7chjz5n1s8v5hbqs01h2113cq1ylm3isd5sp"))))
381 (build-system gnu-build-system)
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")
388 "This package contains the game data of GNU Freedink.")
389 (license license:gpl3+)))
391 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
393 (define-public freedink
394 ;; This is a wrapper that tells the engine where to find the data.
395 (package (inherit freedink-engine)
397 (build-system trivial-build-system)
400 (use-modules (guix build utils))
402 (let* ((output (assoc-ref %outputs "out"))
403 (bin (string-append output "/bin"))
404 (executable (string-append bin "/freedink")))
406 (call-with-output-file executable
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)
418 (native-inputs '())))
420 (define-public xboard
427 (uri (string-append "mirror://gnu/xboard/xboard-" version
431 "1av6r3s5vyclwf3c9i1pkr2442ryrf4ixhhf2i44a4j1xyhlp5jb"))))
432 (build-system gnu-build-system)
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+)))
448 (define-public xboing
455 (uri (string-append "http://www.techrescue.org/xboing/xboing"
458 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
464 (lambda* (#:key outputs #:allow-other-keys)
466 (substitute* "Imakefile"
467 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
468 (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
471 (substitute* "Imakefile"
472 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
474 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
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)
482 (zero? (system* "make" "install.man"))
483 (zero? (system* "make" "install"))))
485 (inputs `(("libx11" ,libx11)
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."))))
501 (define-public gtypist
507 (uri (string-append "mirror://gnu/gtypist/gtypist-"
511 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
512 (modules '((guix build utils)))
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)
519 (("ncursesw/ncurses.h")
521 (find-files "." "configure$|\\.c$")))))
522 (build-system gnu-build-system)
523 (inputs `(("ncurses" ,ncurses)
525 (home-page "http://www.gnu.org/software/gtypist/")
526 (synopsis "Typing tutor")
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+)))
535 (define-public irrlicht
542 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
543 (version-major+minor version)
544 "/" version "/irrlicht-" version ".zip"))
547 "0yz9lvsc8aqk8wj4rnpanxrw90gqpwn9w5hxp94r8hnm2q0vjjw1"))))
548 (build-system gnu-build-system)
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"))))
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/")))
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")))
576 `(("patch/mesa-10-fix" ,(search-patch "irrlicht-mesa-10.patch"))
581 (synopsis "3D game engine written in C++")
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)))
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")
598 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
602 (url "https://github.com/thelaui/M.A.R.S..git")
604 (file-name (string-append name "-" version))
607 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
608 (patches (search-patches "mars-sfml-2.3.patch"
609 "mars-install.patch"))))
610 (build-system cmake-build-system)
612 `(#:tests? #f ; There are no tests
614 (modify-phases %standard-phases
615 (add-after 'unpack 'fix-install-path
617 (substitute* "src/CMakeLists.txt"
618 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
619 "${CMAKE_INSTALL_PREFIX}/bin"))
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/\";")))
634 (home-page "http://marsshooter.org")
635 (synopsis "2D space shooter")
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+))))
643 (define minetest-data
645 (name "minetest-data")
650 "https://github.com/minetest/minetest_game/archive/"
652 (file-name (string-append name "-" version ".tar.gz"))
655 "11fzdh4icx2yvjfz1skdql0d0wxpzdr006k993v33x72s0q2ig7f"))))
656 (build-system trivial-build-system)
660 ("gzip" ,(@ (gnu packages compression) gzip))))
662 `(#:modules ((guix build utils))
664 (use-modules (guix build utils))
665 (let ((tar (string-append (assoc-ref %build-inputs "tar")
667 (install-dir (string-append
669 "/share/minetest/games/minetest_game"))
670 (path (string-append (assoc-ref %build-inputs
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")
680 "Game data for the Minetest infinite-world block sandox game.")
681 (home-page "http://minetest.net")
682 (license license:lgpl2.1+)))
684 (define-public minetest
691 "https://github.com/minetest/minetest/archive/"
693 (file-name (string-append name "-" version ".tar.gz"))
696 "0m3hhk5icx4y4gd970z7ya2013fq4vvqbjljmck62ik03baf8g90"))))
697 (build-system cmake-build-system)
700 (list "-DRUN_IN_PLACE=0"
701 "-DENABLE_FREETYPE=1"
703 (string-append "-DIRRLICHT_INCLUDE_DIR="
704 (assoc-ref %build-inputs "irrlicht")
706 (string-append "-DCURL_INCLUDE_DIR="
707 (assoc-ref %build-inputs "curl")
709 #:tests? #f)) ; no check target
711 (list (search-path-specification
712 (variable "MINETEST_SUBGAME_PATH")
713 (files '("share/minetest/games")))))
715 `(("pkg-config" ,pkg-config)))
717 `(("irrlicht" ,irrlicht)
720 ("libxxf86vm" ,libxxf86vm)
723 ("libvorbis" ,libvorbis)
725 ("freetype" ,(@ (gnu packages fontutils) freetype))
728 ("gettext" ,gnu-gettext)
731 `(("minetest-data" ,minetest-data)))
732 (synopsis "Infinite-world block sandbox game")
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
739 (home-page "http://minetest.net")
740 (license license:lgpl2.1+)))
749 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
750 "glk/implementations/glkterm-104.tar.gz"))
753 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
754 (build-system gnu-build-system)
755 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
757 '(#:tests? #f ; no check target
761 (lambda* (#:key outputs #:allow-other-keys)
762 (let* ((out (assoc-ref outputs "out"))
763 (inc (string-append out "/include")))
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")
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"))))
782 (define-public glulxe
789 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
790 "glulx/interpreters/glulxe/glulxe-052.tar.gz"))
793 "19iw6kl8ncqcy9pv4gsqfh3xsa1n94zd234rqavvmxccnf3nj19g"))))
794 (build-system gnu-build-system)
795 (inputs `(("glk" ,glkterm)))
797 '(#:tests? #f ; no check target
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")))
806 (lambda* (#:key outputs #:allow-other-keys)
807 (let ((bin (string-append (assoc-ref outputs "out") "/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")
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"))))
826 (uri (string-append "https://christoph-ender.de/fizmo/source/"
827 name "-" version ".tar.gz"))
830 "1w7cgyjrhgkadjrazijzhq7zh0pl5bfc6wl7mdpgh020y4kp46d7"))))
831 (build-system gnu-build-system)
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")))))
841 `(("pkg-config" ,pkg-config)))
843 `(("libjpeg" ,libjpeg)
845 ("libsndfile" ,libsndfile)
849 (home-page "https://christoph-ender.de/fizmo/")
850 (synopsis "Z-machine interpreter")
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)))
857 (define-public retroarch
864 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
866 (file-name (string-append name "-" version ".tar.gz"))
868 (base32 "077v1sj000y3csjw9vradba3k2aknvg5k8521z8aya6q987klwx5"))))
869 (build-system gnu-build-system)
871 '(#:tests? #f ; no tests
876 (substitute* "qb/qb.libs.sh"
877 (("/bin/true") (which "true")))
880 (string-append "--prefix=" %output)
881 (string-append "--global-config-dir=" %output "/etc"))))
884 `(("alsa-lib" ,alsa-lib)
886 ("freetype" ,freetype)
887 ("libxinerama" ,libxinerama)
888 ("libxkbcommon" ,libxkbcommon)
893 ("pulseaudio" ,pulseaudio)
899 `(("pkg-config" ,pkg-config)
901 (home-page "http://www.libretro.com/")
902 (synopsis "Reference frontend for the libretro API")
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+)))
917 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
921 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
922 (build-system gnu-build-system)
923 (inputs `(("readline" ,readline)))
924 (synopsis "Play the game of Go")
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
933 (home-page "http://www.gnu.org/software/gnugo/")
934 (license license:gpl3+)))
936 (define-public extremetuxracer
938 (name "extremetuxracer")
943 "http://downloads.sourceforge.net/project/extremetuxracer/releases/"
944 version "/etr-" version ".tar.xz"))
947 "0fl9pwkywqnsmgr6plfj9zb05xrdnl5xb2hcmbjk7ap9l4cjfca4"))))
948 (build-system gnu-build-system)
950 `(("pkg-config" ,pkg-config)))
952 `(("freetype" ,freetype)
958 ("sdl-mixer" ,sdl-mixer)
959 ("sdl-image" ,sdl-image)
961 ("libunwind" ,libunwind)
971 (modify-phases %standard-phases
972 (add-after 'configure 'patch-makefile
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.
983 Collect herrings and other goodies while sliding down the hill, but avoid fish
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+)))
990 (define-public gnujump
996 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1000 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1001 (build-system gnu-build-system)
1004 (modify-phases %standard-phases
1006 'configure 'link-libm
1007 (lambda _ (setenv "LIBS" "-lm"))))))
1012 ("sdl-image" ,sdl-image)
1013 ("sdl-mixer" ,sdl-mixer)))
1014 (home-page "http://gnujump.es.gnu.org/")
1016 "Game of jumping to the next floor, trying not to fall")
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+)))
1024 (define-public wesnoth
1030 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1031 (version-major+minor version) "/wesnoth-"
1033 name "-" version ".tar.bz2"))
1036 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1037 (build-system cmake-build-system)
1039 '(#:tests? #f ; no check target
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]
1045 ;; cc1plus: all warnings being treated as errors
1046 '("-DENABLE_STRICT_COMPILATION=OFF")))
1048 `(("gettext" ,gnu-gettext)
1049 ("pkg-config" ,pkg-config)))
1053 ("fribidi" ,fribidi)
1054 ("libvorbis" ,libvorbis)
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")
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
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
1071 (license license:gpl2+)))
1073 (define-public dosbox
1076 (version "0.74.svn3947")
1080 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
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>).
1088 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1089 (build-system gnu-build-system)
1091 `(#:phases (modify-phases %standard-phases
1095 (zero? (system* "sh" "autogen.sh")))))))
1097 `(("autoconf" ,autoconf)
1098 ("automake" ,automake)))
1103 ("alsa-lib" ,alsa-lib)
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
1113 (license license:gpl2+)))
1115 (define-public gamine
1121 (uri (string-append "mirror://sourceforge/gamine-game/"
1122 "gamine-" version ".tar.gz"))
1125 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1126 (build-system gnu-build-system)
1128 `(("pkg-config" ,pkg-config)
1129 ("intltool" ,intltool)))
1131 `(("gstreamer" ,gstreamer)
1132 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1133 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1138 (let ((out (assoc-ref %outputs "out")))
1139 (list (string-append "PREFIX=" out)
1140 (string-append "SYSCONFDIR=" out "/etc")))
1142 (modify-phases %standard-phases
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))))
1152 (home-page "http://gamine-game.sourceforge.net/")
1153 (synopsis "Mouse and keyboard discovery for children")
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)))
1161 (define-public raincat
1169 "http://hackage.haskell.org/package/Raincat/Raincat-"
1174 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1175 (build-system haskell-build-system)
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)))
1194 (define-public manaplus
1201 "http://repo.manaplus.org/manaplus/download/"
1202 version "/manaplus-" version ".tar.xz"))
1205 "00sdw2mspdhrqvz0vl6jbnhiclj7vmvyjih9qf8dbkfw2s921ybc"))))
1206 (build-system gnu-build-system)
1209 (list (string-append "CPPFLAGS=-I"
1210 (assoc-ref %build-inputs "sdl-union")
1213 `(("pkg-config" ,pkg-config)))
1217 ("libxml2" ,libxml2)
1220 ("sdl-union" ,(sdl-union))))
1221 (home-page "http://manaplus.org")
1222 (synopsis "Client for 'The Mana World' and similar games")
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))))
1233 (define-public mupen64plus-core
1235 (name "mupen64plus-core")
1241 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1243 (file-name (string-append name "-" version ".tar.gz"))
1245 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1246 (build-system gnu-build-system)
1248 `(("pkg-config" ,pkg-config)
1251 `(("freetype" ,freetype)
1259 (modify-phases %standard-phases
1260 ;; The mupen64plus build system has no configure phase.
1262 ;; Makefile is in a subdirectory.
1264 'build 'cd-to-project-dir
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.
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")
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
1279 (license license:gpl2+)))
1281 (define-public mupen64plus-audio-sdl
1283 (name "mupen64plus-audio-sdl")
1289 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1291 (file-name (string-append name "-" version ".tar.gz"))
1293 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1294 (build-system gnu-build-system)
1296 `(("pkg-config" ,pkg-config)
1299 `(("mupen64plus-core" ,mupen64plus-core)
1303 (modify-phases %standard-phases
1304 ;; The mupen64plus build system has no configure phase.
1306 ;; Makefile is in a subdirectory.
1308 'build 'cd-to-project-dir
1310 (chdir "projects/unix"))))
1312 (let ((out (assoc-ref %outputs "out"))
1313 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1315 (string-append "PREFIX=" out)
1316 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1317 ;; There are no tests.
1319 (home-page "http://www.mupen64plus.org/")
1320 (synopsis "Mupen64Plus SDL input plugin")
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
1325 (license license:gpl2+)))
1327 (define-public mupen64plus-input-sdl
1329 (name "mupen64plus-input-sdl")
1335 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1337 (file-name (string-append name "-" version ".tar.gz"))
1339 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1340 (build-system gnu-build-system)
1342 `(("which" ,which)))
1344 `(("mupen64plus-core" ,mupen64plus-core)
1348 (modify-phases %standard-phases
1349 ;; The mupen64plus build system has no configure phase.
1351 ;; Makefile is in a subdirectory.
1353 'build 'cd-to-project-dir
1355 (chdir "projects/unix"))))
1357 (let ((out (assoc-ref %outputs "out"))
1358 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1360 (string-append "PREFIX=" out)
1361 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1362 ;; There are no tests.
1364 (home-page "http://www.mupen64plus.org/")
1365 (synopsis "Mupen64Plus SDL input plugin")
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
1370 (license license:gpl2+)))
1372 (define-public mupen64plus-rsp-hle
1374 (name "mupen64plus-rsp-hle")
1380 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1382 (file-name (string-append name "-" version ".tar.gz"))
1384 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1385 (build-system gnu-build-system)
1387 `(("mupen64plus-core" ,mupen64plus-core)))
1390 (modify-phases %standard-phases
1391 ;; The mupen64plus build system has no configure phase.
1393 ;; Makefile is in a subdirectory.
1395 'build 'cd-to-project-dir
1397 (chdir "projects/unix"))))
1399 (let ((out (assoc-ref %outputs "out"))
1400 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1402 (string-append "PREFIX=" out)
1403 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1404 ;; There are no tests.
1406 (home-page "http://www.mupen64plus.org/")
1407 (synopsis "Mupen64Plus SDL input plugin")
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+)))
1414 (define-public mupen64plus-rsp-z64
1416 (name "mupen64plus-rsp-z64")
1422 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1424 (file-name (string-append name "-" version ".tar.gz"))
1426 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1427 (build-system gnu-build-system)
1429 `(("mupen64plus-core" ,mupen64plus-core)))
1432 (modify-phases %standard-phases
1433 ;; The mupen64plus build system has no configure phase.
1435 ;; Makefile is in a subdirectory.
1437 'build 'cd-to-project-dir
1439 (chdir "projects/unix"))))
1441 (let ((out (assoc-ref %outputs "out"))
1442 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1444 (string-append "PREFIX=" out)
1445 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1446 ;; There are no tests.
1448 (home-page "http://www.mupen64plus.org/")
1449 (synopsis "Mupen64Plus SDL input plugin")
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+)))
1456 (define-public mupen64plus-video-arachnoid
1458 (name "mupen64plus-video-arachnoid")
1464 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1466 (file-name (string-append name "-" version ".tar.gz"))
1468 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1469 (build-system gnu-build-system)
1471 `(("pkg-config" ,pkg-config)
1475 ("mupen64plus-core" ,mupen64plus-core)))
1478 (modify-phases %standard-phases
1479 ;; The mupen64plus build system has no configure phase.
1481 ;; Makefile is in a subdirectory.
1483 'build 'cd-to-project-dir
1485 (chdir "projects/unix"))))
1487 (let ((out (assoc-ref %outputs "out"))
1488 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1490 (string-append "PREFIX=" out)
1491 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1492 ;; There are no tests.
1494 (home-page "http://www.mupen64plus.org/")
1495 (synopsis "Mupen64Plus Rice Video plugin")
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+)))
1502 (define-public mupen64plus-video-glide64
1504 (name "mupen64plus-video-glide64")
1510 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1512 (file-name (string-append name "-" version ".tar.gz"))
1514 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1515 (build-system gnu-build-system)
1517 `(("pkg-config" ,pkg-config)
1521 ("mupen64plus-core" ,mupen64plus-core)
1525 (modify-phases %standard-phases
1526 ;; The mupen64plus build system has no configure phase.
1528 ;; Makefile is in a subdirectory.
1530 'build 'cd-to-project-dir
1532 (chdir "projects/unix")))
1533 ;; XXX Should be unnecessary with the next release.
1537 (substitute* "Makefile"
1538 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1539 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1541 (let ((out (assoc-ref %outputs "out"))
1542 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1544 (string-append "PREFIX=" out)
1545 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1546 ;; There are no tests.
1548 (home-page "http://www.mupen64plus.org/")
1549 (synopsis "Mupen64Plus Rice Video plugin")
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+)))
1556 (define-public mupen64plus-video-glide64mk2
1558 (name "mupen64plus-video-glide64mk2")
1564 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1566 (file-name (string-append name "-" version ".tar.gz"))
1568 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1569 (build-system gnu-build-system)
1571 `(("pkg-config" ,pkg-config)
1577 ("mupen64plus-core" ,mupen64plus-core)
1582 (modify-phases %standard-phases
1583 ;; The mupen64plus build system has no configure phase.
1585 ;; Makefile is in a subdirectory.
1587 'build 'cd-to-project-dir
1589 (chdir "projects/unix"))))
1591 (let ((out (assoc-ref %outputs "out"))
1592 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1594 (string-append "PREFIX=" out)
1595 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1596 ;; There are no tests.
1598 (home-page "http://www.mupen64plus.org/")
1599 (synopsis "Mupen64Plus Rice Video plugin")
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+)))
1606 (define-public mupen64plus-video-rice
1608 (name "mupen64plus-video-rice")
1614 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1616 (file-name (string-append name "-" version ".tar.gz"))
1618 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1619 (build-system gnu-build-system)
1621 `(("pkg-config" ,pkg-config)
1624 `(("libpng" ,libpng)
1626 ("mupen64plus-core" ,mupen64plus-core)
1630 (modify-phases %standard-phases
1631 ;; The mupen64plus build system has no configure phase.
1633 ;; Makefile is in a subdirectory.
1635 'build 'cd-to-project-dir
1637 (chdir "projects/unix"))))
1639 (let ((out (assoc-ref %outputs "out"))
1640 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1642 (string-append "PREFIX=" out)
1643 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1644 ;; There are no tests.
1646 (home-page "http://www.mupen64plus.org/")
1647 (synopsis "Mupen64Plus Rice Video plugin")
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+)))
1654 (define-public mupen64plus-video-z64
1656 (name "mupen64plus-video-z64")
1662 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1664 (file-name (string-append name "-" version ".tar.gz"))
1666 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1667 (build-system gnu-build-system)
1669 `(("pkg-config" ,pkg-config)
1673 ("mupen64plus-core" ,mupen64plus-core)
1677 (modify-phases %standard-phases
1678 ;; The mupen64plus build system has no configure phase.
1680 ;; Makefile is in a subdirectory.
1682 'build 'cd-to-project-dir
1684 (chdir "projects/unix")))
1685 ;; XXX Should be unnecessary with the next release.
1689 (substitute* "Makefile"
1690 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1691 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1693 (let ((out (assoc-ref %outputs "out"))
1694 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1696 (string-append "PREFIX=" out)
1697 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1698 ;; There are no tests.
1700 (home-page "http://www.mupen64plus.org/")
1701 (synopsis "Mupen64Plus Z64 video plugin")
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
1706 (license license:gpl2+)))
1708 (define-public mupen64plus-ui-console
1710 (name "mupen64plus-ui-console")
1716 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1718 (file-name (string-append name "-" version ".tar.gz"))
1720 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1721 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1722 (build-system gnu-build-system)
1724 `(("pkg-config" ,pkg-config)
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.
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)))
1746 (modify-phases %standard-phases
1747 ;; The mupen64plus build system has no configure phase.
1749 ;; Makefile is in a subdirectory.
1751 'build 'cd-to-project-dir
1753 (chdir "projects/unix"))))
1755 (let ((out (assoc-ref %outputs "out"))
1756 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
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.
1764 (home-page "http://www.mupen64plus.org/")
1765 (synopsis "Mupen64Plus SDL input plugin")
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+)))
1773 (define-public nestopia-ue
1775 (name "nestopia-ue")
1780 "https://github.com/rdanbrook/nestopia/archive/"
1782 (file-name (string-append name "-" version ".tar.gz"))
1785 "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
1786 (modules '((guix build utils)))
1789 ;; We don't need libretro for the GNU/Linux build.
1790 (delete-file-recursively "libretro")
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)
1797 `(("pkg-config" ,pkg-config)))
1802 ("libarchive" ,libarchive)
1808 (modify-phases %standard-phases
1809 ;; The Nestopia build system consists solely of a Makefile.
1811 ;; XXX Should be unnecessary with the next release.
1813 'build 'patch-makefile
1815 (substitute* "Makefile"
1816 (("@mkdir \\$@") "@mkdir -p $@")
1818 (("CXX =") "CXX ?=")
1819 (("PREFIX =") "PREFIX ?=")
1820 (("^install:\n$") "install:\n\tmkdir -p $(BINDIR)\n"))))
1822 'build 'remove-xdg-desktop-menu-call
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.
1830 (home-page "http://0ldsk00l.ca/nestopia/")
1831 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
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+)))
1838 (define-public emulation-station
1839 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1841 (name "emulation-station")
1844 (method git-fetch) ; no tarball available
1846 (url "https://github.com/Aloshi/EmulationStation.git")
1847 (commit commit))) ; no version tag
1850 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1851 (build-system cmake-build-system)
1853 '(#:tests? #f)) ; no tests
1855 `(("alsa-lib" ,alsa-lib)
1859 ("freeimage" ,freeimage)
1860 ("freetype" ,freetype)
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))))
1871 (define openttd-engine
1873 (name "openttd-engine")
1876 (origin (method url-fetch)
1877 (uri (string-append "http://binaries.openttd.org/releases/"
1878 version "/openttd-" version "-source.tar.xz"))
1881 "1cjf9gz7d0sn7893wv9d00q724sxv3d81bgb0c5f5ppz2ssyc4jc"))
1882 (modules '((guix build utils)))
1884 ;; The DOS port contains proprietary software.
1885 '(delete-file-recursively "os/dos"))))
1886 (build-system gnu-build-system)
1888 `(#:tests? #f ; no "check" target
1890 (modify-phases %standard-phases
1891 ;; The build process fails if the configure script is passed the
1892 ;; option "--enable-fast-install".
1894 (lambda* (#:key inputs outputs #:allow-other-keys)
1895 (let ((out (assoc-ref outputs "out"))
1896 (lzo (assoc-ref inputs "lzo")))
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)))
1907 `(("allegro" ,allegro-4)
1908 ("fontconfig" ,fontconfig)
1909 ("freetype" ,freetype)
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
1928 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
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.
1934 (define-public openttd
1936 (inherit openttd-engine)
1939 (define-public pinball
1944 (origin (method url-fetch)
1945 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1946 "pinball-" version "/"
1947 "pinball-" version ".tar.gz"))
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)
1961 ("sdl-image" ,sdl-image)
1962 ("sdl-mixer" ,sdl-mixer)))
1965 (list (string-append "CPPFLAGS=-I"
1966 (assoc-ref %build-inputs "sdl-image")
1968 (assoc-ref %build-inputs "sdl-mixer")
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)))
1976 (define-public pioneers
1982 (uri (string-append "http://downloads.sourceforge.net/pio/"
1983 "pioneers-" version ".tar.gz"))
1986 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
1987 (build-system gnu-build-system)
1988 (inputs `(("gtk+" ,gtk+)
1989 ("librsvg" ,librsvg)
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
1997 (home-page "http://pio.sourceforge.net/")
1998 (license license:gpl2+)))
2000 (define-public desmume
2008 "mirror://sourceforge/desmume/desmume/"
2009 version "/desmume-" version ".tar.gz"))
2012 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2013 (build-system gnu-build-system)
2015 ;; Enable support for WiFi and microphone.
2016 `(#:configure-flags '("--enable-wifi"
2017 "--enable-openal")))
2019 `(("pkg-config" ,pkg-config)
2020 ("intltool" ,intltool)))
2027 (home-page "http://desmume.org/")
2028 (synopsis "Nintendo DS emulator")
2030 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2031 (license license:gpl2)))
2033 (define-public einstein
2039 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2040 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2043 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2044 (patches (search-patches "einstein-build.patch"))))
2045 (build-system gnu-build-system)
2047 `(("freetype" ,freetype)
2048 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2051 `(("font-dejavu" ,font-dejavu)))
2053 `(#:tests? #f ; no check target
2055 (modify-phases %standard-phases
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")
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+)))
2081 (define-public powwow
2088 "http://www.hoopajoo.net/static/projects/powwow-"
2090 (file-name (string-append name "-" version ".tar.gz"))
2093 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
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")
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+)))
2106 (define-public red-eclipse
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"))))
2142 (name "red-eclipse")
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"))
2151 "1y0jv5lz69zisiw8sd5z9a9v21zc83by1sx9b7dly78ngif4gc4l"))))
2152 (build-system gnu-build-system)
2154 `(#:tests? #f ; no check target
2155 #:make-flags (list "CC=gcc" "-Csrc"
2156 (string-append "INSTDIR="
2157 (assoc-ref %outputs "out") "/bin"))
2159 (modify-phases %standard-phases
2160 (add-after 'unpack 'unpack-data
2161 (lambda* (#:key inputs #:allow-other-keys)
2162 (delete-file-recursively "data")
2164 (for-each (lambda (name)
2165 (system* "tar" "-xvf"
2166 (assoc-ref inputs name)
2172 (list ,@(map car data-sources)))
2174 (delete 'configure) ; no configure script
2175 (add-after 'set-paths 'set-sdl-paths
2176 (lambda* (#:key inputs #:allow-other-keys)
2178 (string-append (assoc-ref inputs "sdl-union")
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")))
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"
2200 (format port "#!~a/bin/sh
2201 # Run the thing from its home, otherwise it just bails out.
2203 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2204 (assoc-ref inputs "bash") ;implicit input
2206 (string-append bin))))
2207 (call-with-output-file "redeclipse_server_linux"
2209 (format port "#!~a/bin/sh
2210 # Run the thing from its home, otherwise it just bails out.
2212 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2213 (assoc-ref inputs "bash") ;implicit input
2215 (string-append bin))))
2216 (chmod "redeclipse_linux" #o555)
2217 (chmod "redeclipse_server_linux" #o555)))
2219 (native-inputs `(("pkg-config" ,pkg-config)))
2223 ("sdl-union" ,(sdl-union))
2224 ;; Create origin records for the many separate data packages.
2225 ,@(map (match-lambda
2231 "https://github.com/red-eclipse/"
2232 name "/archive/v" version ".tar.gz"))
2233 (sha256 (base32 hash))
2234 (file-name (string-append name "-" version
2237 (home-page "http://redeclipse.net/")
2238 (synopsis "Arena shooter derived from the Cube 2 engine")
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
2251 (define-public higan
2259 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2261 (file-name (string-append name "-" version ".tar.gz"))
2263 (base32 "0xlzjqrd308hmg6yjzjkmxkkr9p3w387kf6yxyplb47jcbx2sq4n"))
2264 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2265 (build-system gnu-build-system)
2267 `(("pkg-config" ,pkg-config)))
2269 `(("alsa-lib" ,alsa-lib)
2273 ("gtksourceview-2" ,gtksourceview-2)
2277 ("pulseaudio" ,pulseaudio)
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.
2286 (add-before 'build 'chdir-to-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
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")
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
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))))
2325 ;; Second, make sure higan will find icarus in PATH.
2327 `("PATH" ":" prefix (,bin))))))))
2329 (list "compiler=g++"
2330 (string-append "prefix=" (assoc-ref %outputs "out")))
2331 ;; There is no test suite.
2333 (home-page "http://byuu.org/emulation/higan/")
2334 (synopsis "Nintendo multi-system emulator")
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)))
2346 (define-public grue-hunter
2348 (name "grue-hunter")
2352 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2355 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2356 (build-system trivial-build-system) ; no Makefile.PL
2357 (arguments `(#:modules ((guix build utils))
2360 (use-modules (guix build utils))
2361 (use-modules (srfi srfi-1))
2363 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2364 (perl (string-append (assoc-ref %build-inputs
2367 (gzip (string-append (assoc-ref %build-inputs
2370 (tar (string-append (assoc-ref %build-inputs
2373 (out (assoc-ref %outputs "out"))
2374 (bin (string-append out "/bin"))
2375 (doc (string-append out "/share/doc")))
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"))
2383 (copy-file "grue-hunter/gh.pl"
2384 (string-append bin "/grue-hunter"))
2385 (patch-shebang (string-append bin "/grue-hunter")
2389 (copy-file "grue-hunter/AGPLv3.txt"
2390 (string-append doc "/grue-hunter")))))))
2391 (inputs `(("perl" ,perl)
2394 ("tarball" ,source)))
2395 (home-page "http://jxself.org/grue-hunter.shtml")
2396 (synopsis "Text adventure game")
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+)))
2403 (define-public warzone2100
2405 (name "warzone2100")
2409 (uri (string-append "mirror://sourceforge/" name
2410 "/releases/" version "/" name "-" version
2414 "0hm49i2knvvg3wlnryv7h4m84s3qa7jfyym5yy6365sx8wzcrai1"))))
2415 (build-system gnu-build-system)
2417 `(#:phases (modify-phases %standard-phases
2418 (add-after 'set-paths 'set-sdl-paths
2419 (lambda* (#:key inputs #:allow-other-keys)
2421 (string-append (assoc-ref inputs "sdl-union")
2424 (native-inputs `(("pkg-config" ,pkg-config)
2427 (inputs `(("fontconfig" ,fontconfig)
2428 ("freetype" ,freetype)
2429 ("fribidi" ,fribidi)
2431 ("libtheora" ,libtheora)
2432 ("libvorbis" ,libvorbis)
2433 ("libxrandr" ,libxrandr)
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")
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
2446 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2447 (license (list license:bsd-3
2452 license:lgpl2.1+))))
2454 (define-public starfighter
2456 (name "starfighter")
2461 "mirror://savannah/starfighter/"
2462 (version-major+minor version) "/"
2463 name "-" version "-src.tar.gz"))
2466 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2467 (build-system gnu-build-system)
2469 '(#:tests? #f ; no check target
2471 (let ((out (assoc-ref %outputs "out")))
2472 (list (string-append "PREFIX=" out)
2473 (string-append "BINDIR=" out "/bin/")))
2475 (modify-phases %standard-phases
2476 ;; no configure script
2477 (delete 'configure))))
2479 `(("pkg-config" ,pkg-config)))
2482 ("sdl2-image" ,sdl2-image)
2483 ("sdl2-mixer" ,sdl2-mixer)))
2484 (home-page "http://starfighter.nongnu.org/")
2485 (synopsis "2D scrolling shooter game")
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+
2497 license:public-domain))))
2499 (define-public chromium-bsu
2501 (name "chromium-bsu")
2502 (version "0.9.15.1")
2505 (uri (string-append "mirror://sourceforge/" name
2506 "/Chromium B.S.U. source code/"
2507 name "-" version ".tar.gz"))
2510 "01c4mki0rpz6wrqbf18fj4vd7axln5v0xqm80cyksbv63g04s6w6"))))
2511 (build-system gnu-build-system)
2513 `(#:phases (modify-phases %standard-phases
2514 (add-after 'set-paths 'set-sdl-paths
2515 (lambda* (#:key inputs #:allow-other-keys)
2517 (string-append (assoc-ref inputs "sdl-union")
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")
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))))