1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2015, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
18 ;;; Copyright © 2016 Rodger Fox <thylakoid@openmailbox.org>
19 ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
20 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
21 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
22 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
23 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
24 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
25 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
26 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages games)
44 #:use-module (ice-9 match)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix svn-download)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages algebra)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages backup)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages audio)
58 #:use-module (gnu packages avahi)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages fltk)
61 #:use-module (gnu packages fribidi)
62 #:use-module (gnu packages game-development)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages ghostscript)
65 #:use-module (gnu packages gl)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages gnome)
68 #:use-module (gnu packages gperf)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages guile)
71 #:use-module (gnu packages libcanberra)
72 #:use-module (gnu packages libunwind)
73 #:use-module (gnu packages haskell)
74 #:use-module (gnu packages mp3)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages netpbm)
79 #:use-module (gnu packages ocaml)
80 #:use-module (gnu packages python)
81 #:use-module (gnu packages readline)
82 #:use-module (gnu packages xorg)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages databases)
85 #:use-module (gnu packages sdl)
86 #:use-module (gnu packages texinfo)
87 #:use-module (gnu packages check)
88 #:use-module (gnu packages fonts)
89 #:use-module (gnu packages fontutils)
90 #:use-module (gnu packages gstreamer)
91 #:use-module (gnu packages bash)
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages pulseaudio)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages zip)
98 #:use-module (gnu packages xiph)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages lua)
101 #:use-module (gnu packages video)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages tcl)
104 #:use-module (gnu packages xdisorg)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages pcre)
107 #:use-module (guix build-system gnu)
108 #:use-module (guix build-system haskell)
109 #:use-module (guix build-system python)
110 #:use-module (guix build-system cmake)
111 #:use-module (guix build-system trivial))
120 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
121 version ".000-sources." "tar.gz"))
124 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
125 (build-system gnu-build-system)
126 (inputs `(("glib" ,glib)
127 ("readline" ,readline)
131 ("gtkglext" ,gtkglext)
133 ("libcanberra" ,libcanberra)))
134 (native-inputs `(("python-2" ,python-2)
135 ("pkg-config" ,pkg-config)))
136 (home-page "http://gnubg.org")
137 (synopsis "Backgammon game")
138 (description "The GNU backgammon application can be used for playing, analyzing and
139 teaching the game. It has an advanced evaluation engine based on artificial
140 neural networks suitable for both beginners and advanced players. In
141 addition to a command-line interface, it also features an attractive, 3D
142 representation of the playing board.")
143 (license license:gpl3+)))
145 (define-public gnubik
152 (uri (string-append "mirror://gnu/gnubik/gnubik-"
156 "0mhpfnxzbns0wfrsjv5vafqr34770rbvkmdzxk0x0aq67hb3zyl5"))))
157 (build-system gnu-build-system)
158 (inputs `(("gtk+" ,gtk+-2)
163 ("gtkglext" ,gtkglext)))
164 (native-inputs `(("gettext" ,gettext-minimal)
165 ("pkg-config" ,pkg-config)))
166 (home-page "https://www.gnu.org/software/gnubik/")
167 (synopsis "3d Rubik's cube game")
169 "GNUbik is a puzzle game in which you must manipulate a cube to make
170 each of its faces have a uniform color. The game is customizable, allowing
171 you to set the size of the cube (the default is 3x3) or to change the colors.
172 You may even apply photos to the faces instead of colors. The game is
173 scriptable with Guile.")
174 (license license:gpl3+)))
176 (define-public abbaye
183 (uri (string-append "https://storage.googleapis.com/"
184 "google-code-archive-downloads/v2/code.google.com/"
185 "abbaye-for-linux/abbaye-for-linux-src-"
189 "1wgvckgqa2084rbskxif58wbb83xbas8s1i8s7d57xbj08ryq8rk"))))
190 (build-system gnu-build-system)
192 '(#:modules ((ice-9 match)
193 (guix build gnu-build-system)
195 #:phases (modify-phases %standard-phases
196 (add-after 'set-paths 'set-sdl-paths
197 (lambda* (#:key inputs #:allow-other-keys)
199 (string-append (assoc-ref inputs "sdl-union")
201 (add-after 'patch-source-shebangs 'patch-makefile
202 (lambda* (#:key outputs #:allow-other-keys)
203 ;; Replace /usr with package output directory.
204 (for-each (lambda (file)
206 (("/usr") (assoc-ref outputs "out"))))
207 '("makefile" "src/pantallas.c" "src/comun.h"))))
208 (add-before 'install 'make-install-dirs
209 (lambda* (#:key outputs #:allow-other-keys)
210 (let ((prefix (assoc-ref outputs "out")))
211 ;; Create directories that the makefile assumes exist.
212 (mkdir-p (string-append prefix "/bin"))
213 (mkdir-p (string-append prefix "/share/applications"))
214 (mkdir-p (string-append prefix "/share/pixmaps")))))
215 ;; No configure script.
217 #:tests? #f)) ;; No check target.
218 (native-inputs `(("pkg-config" ,pkg-config)))
219 (inputs `(("sdl-union" ,(sdl-union))))
220 (home-page "http://code.google.com/p/abbaye-for-linux/")
221 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
222 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
223 France. The Cathars, who preach about good Christian beliefs, were being
224 expelled by the Catholic Church out of the Languedoc region in France. One of
225 them, called Jean Raymond, found an old church in which to hide, not knowing
226 that beneath its ruins lay buried an ancient evil.")
227 (license license:gpl3+)))
229 (define-public pingus
236 (uri (string-append "https://github.com/Pingus/pingus/archive/v"
238 (file-name (string-append name "-" version ".tar.gz"))
241 "0r9v6as5vi7skvvy7b0fcaimhdlzmik64pyy68plgljhsghqkkf4"))
242 (patches (search-patches "pingus-sdl-libs-config.patch"))))
243 (build-system gnu-build-system)
244 (native-inputs `(("pkg-config" ,pkg-config)
246 (inputs `(("sdl" ,sdl)
247 ("sdl-image" ,sdl-image)
248 ("sdl-mixer" ,sdl-mixer)
254 '(#:tests? #f ;no check target
260 (lambda* (#:key outputs #:allow-other-keys)
261 (zero? (system* "make" "install"
262 (string-append "PREFIX="
263 (assoc-ref outputs "out")))))
265 (home-page "http://pingus.seul.org/welcome.html")
266 (synopsis "Lemmings clone")
268 "Pingus is a free Lemmings-like puzzle game in which the player takes
269 command of a bunch of small animals and has to guide them through levels.
270 Since the animals walk on their own, the player can only influence them by
271 giving them commands, like build a bridge, dig a hole, or redirect all animals
272 in the other direction. Multiple such commands are necessary to reach the
273 level's exit. The game is presented in a 2D side view.")
274 ;; Some source files are under bsd-3 and gpl2+ licenses.
275 (license license:gpl3+)))
277 (define-public talkfilters
284 (uri (string-append "http://www.hyperrealm.com/" name "/"
285 name "-" version ".tar.gz"))
287 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
288 (build-system gnu-build-system)
289 (home-page "http://www.gnu.org/software/talkfilters")
290 (synopsis "Convert English text to humorous dialects")
291 (description "The GNU Talk Filters are programs that convert English text
292 into stereotyped or otherwise humorous dialects. The filters are provided as
293 a C library, so they can easily be integrated into other programs.")
294 (license license:gpl2+)))
296 (define-public cmatrix
303 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
307 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
308 (build-system gnu-build-system)
311 (alist-replace 'configure
312 (lambda* (#:key outputs #:allow-other-keys)
313 ;; This old `configure' script doesn't support
314 ;; variables passed as arguments.
315 (let ((out (assoc-ref outputs "out")))
316 (setenv "CONFIG_SHELL" (which "bash"))
318 (system* "./configure"
319 (string-append "--prefix=" out)))))
321 (inputs `(("ncurses" ,ncurses)))
322 (home-page "http://www.asty.org/cmatrix")
323 (synopsis "Simulate the display from \"The Matrix\"")
324 (description "CMatrix simulates the display from \"The Matrix\" and is
325 based on the screensaver from the movie's website. It works with terminal
326 settings up to 132x300 and can scroll lines all at the same rate or
327 asynchronously and at a user-defined speed.")
328 (license license:gpl2+)))
337 (uri (string-append "mirror://gnu/chess/gnuchess-" version
341 "1vw2w3jwnmn44d5vsw47f8y70xvxcsz9m5msq9fgqlzjch15qhiw"))))
342 (build-system gnu-build-system)
343 (home-page "https://www.gnu.org/software/chess")
344 (synopsis "Full chess implementation")
345 (description "GNU Chess is a chess engine. It allows you to compete
346 against the computer in a game of chess, either through the default terminal
347 interface or via an external visual interface such as GNU XBoard.")
348 (license license:gpl3+)))
350 (define freedink-engine
352 (name "freedink-engine")
356 (uri (string-append "mirror://gnu/freedink/freedink-" version
360 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
361 (build-system gnu-build-system)
362 (arguments `(#:configure-flags '("--disable-embedded-resources")))
363 (native-inputs `(("gettext" ,gettext-minimal)
364 ("pkg-config" ,pkg-config)))
365 (inputs `(("sdl" ,sdl)
366 ("sdl-image" ,sdl-image)
367 ("sdl-mixer" ,sdl-mixer)
370 ("fontconfig" ,fontconfig)
372 (home-page "http://www.gnu.org/software/freedink/")
373 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
375 "GNU FreeDink is a free and portable re-implementation of the engine
376 for the role-playing game Dink Smallwood. It supports not only the original
377 game data files but it also supports user-produced game mods or \"D-Mods\".
378 To that extent, it also includes a front-end for managing all of your D-Mods.")
379 (license license:gpl3+)))
381 (define freedink-data
383 (name "freedink-data")
384 (version "1.08.20140901")
387 (uri (string-append "mirror://gnu/freedink/freedink-data-"
391 "04f1aa8gfz30qkgv7chjz5n1s8v5hbqs01h2113cq1ylm3isd5sp"))))
392 (build-system gnu-build-system)
394 `(#:phases (alist-delete 'configure (alist-delete 'check %standard-phases))
395 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
396 (home-page "http://www.gnu.org/software/freedink/")
397 (synopsis "Game data for GNU Freedink")
399 "This package contains the game data of GNU Freedink.")
400 (license license:gpl3+)))
402 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
404 (define-public freedink
405 ;; This is a wrapper that tells the engine where to find the data.
406 (package (inherit freedink-engine)
408 (build-system trivial-build-system)
411 (use-modules (guix build utils))
413 (let* ((output (assoc-ref %outputs "out"))
414 (bin (string-append output "/bin"))
415 (executable (string-append bin "/freedink")))
417 (call-with-output-file executable
419 (format port "#!~a/bin/sh
420 exec ~a/bin/freedink -refdir ~a/share/dink\n"
421 (assoc-ref %build-inputs "bash")
422 (assoc-ref %build-inputs "engine")
423 (assoc-ref %build-inputs "data"))
424 (chmod port #o777)))))
425 #:modules ((guix build utils))))
426 (inputs `(("engine" ,freedink-engine)
427 ("data" ,freedink-data)
429 (native-inputs '())))
431 (define-public xboard
438 (uri (string-append "mirror://gnu/xboard/xboard-" version
442 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
443 (build-system gnu-build-system)
446 ("librsvg" ,librsvg)))
448 `(("texinfo" ,texinfo)
449 ("pkg-config" ,pkg-config)))
450 (home-page "https://www.gnu.org/software/xboard")
451 (synopsis "Graphical user interface for chess programs")
452 (description "GNU XBoard is a graphical board for all varieties of chess,
453 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
454 and Makruk. Several lesser-known variants are also supported. It presents a
455 fully interactive graphical interface and it can load and save games in the
456 Portable Game Notation.")
457 (license license:gpl3+)))
460 (define-public xboing
467 (uri (string-append "http://www.techrescue.org/xboing/xboing"
470 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
476 (lambda* (#:key outputs #:allow-other-keys)
478 (substitute* "Imakefile"
479 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
480 (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
483 (substitute* "Imakefile"
484 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
486 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
488 (zero? (system* "xmkmf" "-a"
489 (string-append "-DProjectRoot="
490 (assoc-ref outputs "out")))))
491 (alist-replace 'install
492 (lambda* (#:key outputs #:allow-other-keys)
494 (zero? (system* "make" "install.man"))
495 (zero? (system* "make" "install"))))
497 (inputs `(("libx11" ,libx11)
500 (native-inputs `(("imake" ,imake)
501 ("inetutils" ,inetutils)
502 ("makedepend" ,makedepend)))
503 (build-system gnu-build-system)
504 (home-page "http://www.techrescue.org/xboing")
505 (synopsis "Ball and paddle game")
506 (description "XBoing is a blockout type game where you have a paddle which
507 you control to bounce a ball around the game zone destroying blocks with a
508 proton ball. Each block carries a different point value. The more blocks you
509 destroy, the better your score. The person with the highest score wins.")
510 (license (license:x11-style "file://COPYING"
511 "Very similar to the X11 licence."))))
513 (define-public gtypist
519 (uri (string-append "mirror://gnu/gtypist/gtypist-"
523 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
524 (modules '((guix build utils)))
526 ;; We do not provide `ncurses.h' within an `ncursesw'
527 ;; sub-directory, so patch the source accordingly. See
528 ;; <http://bugs.gnu.org/19018>.
529 '(for-each (lambda (file)
531 (("ncursesw/ncurses.h")
533 (find-files "." "configure$|\\.c$")))))
534 (build-system gnu-build-system)
535 (inputs `(("ncurses" ,ncurses)
537 (home-page "http://www.gnu.org/software/gtypist/")
538 (synopsis "Typing tutor")
540 "GNU Typist is a universal typing tutor. It can be used to learn and
541 practice touch-typing. Several tutorials are included; in addition to
542 tutorials for the standard QWERTY layout, there are also tutorials for the
543 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
544 are primarily in English, however some in other languages are provided.")
545 (license license:gpl3+)))
547 (define-public irrlicht
554 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
555 (version-major+minor version)
556 "/" version "/irrlicht-" version ".zip"))
559 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
560 (build-system gnu-build-system)
562 `(#:phases (alist-cons-after
563 'unpack 'fix-build-env
564 (lambda* (#:key outputs #:allow-other-keys)
565 (let ((out (assoc-ref outputs "out")))
566 (substitute* "Makefile"
567 (("INSTALL_DIR = /usr/local/lib")
568 (string-append "INSTALL_DIR = " out "/lib")))
569 ;; The Makefile assumes these directories exist.
570 (mkdir-p (string-append out "/lib"))
571 (mkdir-p (string-append out "/include"))))
574 (lambda* (#:key source #:allow-other-keys)
575 (and (zero? (system* "unzip" source))
576 ;; The actual source is buried a few directories deep.
577 (chdir (string-append "irrlicht-" ,version "/source/Irrlicht/"))))
578 ;; No configure script
579 (alist-delete 'configure %standard-phases)))
580 #:tests? #f ; no check target
581 #:make-flags '("CC=gcc" "sharedlib")))
587 (synopsis "3D game engine written in C++")
589 "The Irrlicht Engine is a high performance realtime 3D engine written in
590 C++. Features include an OpenGL renderer, extensible materials, scene graph
591 management, character animation, particle and other special effects, support
592 for common mesh file formats, and collision detection.")
593 (home-page "http://irrlicht.sourceforge.net/")
594 (license license:zlib)))
597 ;; The latest release on SourceForge relies on an unreleased version of SFML
598 ;; with a different API, so we take the latest version from the official
599 ;; repository on Github.
600 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
604 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
608 (url "https://github.com/thelaui/M.A.R.S..git")
610 (file-name (string-append name "-" version))
613 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
614 (patches (search-patches "mars-sfml-2.3.patch"
615 "mars-install.patch"))))
616 (build-system cmake-build-system)
618 `(#:tests? #f ; There are no tests
620 (modify-phases %standard-phases
621 (add-after 'unpack 'fix-install-path
623 (substitute* "src/CMakeLists.txt"
624 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
625 "${CMAKE_INSTALL_PREFIX}/bin"))
627 (add-after 'unpack 'fix-data-path
628 (lambda* (#:key outputs #:allow-other-keys)
629 (substitute* "src/System/settings.cpp"
630 (("C_dataPath = \"./data/\";")
631 (string-append "C_dataPath = \""
632 (assoc-ref outputs "out")
633 "/share/games/marsshooter/\";")))
640 (home-page "http://marsshooter.org")
641 (synopsis "2D space shooter")
643 "M.A.R.S. is a 2D space shooter with pretty visual effects and
644 attractive physics. Players can battle each other or computer controlled
645 enemies in different game modes such as space ball, death match, team death
646 match, cannon keep, and grave-itation pit.")
647 (license license:gpl3+))))
649 (define minetest-data
651 (name "minetest-data")
656 "https://github.com/minetest/minetest_game/archive/"
658 (file-name (string-append name "-" version ".tar.gz"))
661 "12kxklcd1b5n0f369zf3xxhvkrizxj4d9xv0dh8crfqiymaym0zm"))))
662 (build-system trivial-build-system)
666 ("gzip" ,(@ (gnu packages compression) gzip))))
668 `(#:modules ((guix build utils))
670 (use-modules (guix build utils))
671 (let ((tar (string-append (assoc-ref %build-inputs "tar")
673 (install-dir (string-append
675 "/share/minetest/games/minetest_game"))
676 (path (string-append (assoc-ref %build-inputs
680 (system* tar "xvf" (assoc-ref %build-inputs "source"))
681 (chdir (string-append "minetest_game-" ,version))
682 (mkdir-p install-dir)
683 (copy-recursively "." install-dir)))))
684 (synopsis "Main game data for the Minetest game engine")
686 "Game data for the Minetest infinite-world block sandox game.")
687 (home-page "http://minetest.net")
688 (license license:lgpl2.1+)))
690 (define-public minetest
697 "https://github.com/minetest/minetest/archive/"
699 (file-name (string-append name "-" version ".tar.gz"))
702 "1ag3jcj7kpq3ph12zirk1c0mj9i0g50wmw932f8gi11liq8yd12n"))))
703 (build-system cmake-build-system)
706 (list "-DRUN_IN_PLACE=0"
707 "-DENABLE_FREETYPE=1"
709 (string-append "-DIRRLICHT_INCLUDE_DIR="
710 (assoc-ref %build-inputs "irrlicht")
712 (string-append "-DCURL_INCLUDE_DIR="
713 (assoc-ref %build-inputs "curl")
715 #:tests? #f)) ; no check target
717 (list (search-path-specification
718 (variable "MINETEST_SUBGAME_PATH")
719 (files '("share/minetest/games")))))
721 `(("pkg-config" ,pkg-config)))
723 `(("irrlicht" ,irrlicht)
726 ("libxxf86vm" ,libxxf86vm)
729 ("libvorbis" ,libvorbis)
731 ("freetype" ,(@ (gnu packages fontutils) freetype))
734 ("gettext" ,gettext-minimal)
737 `(("minetest-data" ,minetest-data)))
738 (synopsis "Infinite-world block sandbox game")
740 "Minetest is a sandbox construction game. Players can create and destroy
741 various types of blocks in a three-dimensional open world. This allows
742 forming structures in every possible creation, on multiplayer servers or as a
743 single player. Mods and texture packs allow players to personalize the game
745 (home-page "http://minetest.net")
746 (license license:lgpl2.1+)))
755 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
756 "glk/implementations/glkterm-104.tar.gz"))
759 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
760 (build-system gnu-build-system)
761 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
763 '(#:tests? #f ; no check target
767 (lambda* (#:key outputs #:allow-other-keys)
768 (let* ((out (assoc-ref outputs "out"))
769 (inc (string-append out "/include")))
773 (copy-file file (string-append inc "/" file)))
774 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
775 (mkdir (string-append out "/lib"))
776 (copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
777 (alist-delete 'configure %standard-phases))))
778 (home-page "http://www.eblong.com/zarf/glk/")
779 (synopsis "Curses Implementation of the Glk API")
781 "Glk defines a portable API for applications with text UIs. It was
782 primarily designed for interactive fiction, but it should be suitable for many
783 interactive text utilities, particularly those based on a command line.
784 This is an implementation of the Glk library which runs in a terminal window,
785 using the curses.h library for screen control.")
786 (license (license:fsf-free "file://README"))))
788 (define-public glulxe
795 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
796 "glulx/interpreters/glulxe/glulxe-052.tar.gz"))
799 "19iw6kl8ncqcy9pv4gsqfh3xsa1n94zd234rqavvmxccnf3nj19g"))))
800 (build-system gnu-build-system)
801 (inputs `(("glk" ,glkterm)))
803 '(#:tests? #f ; no check target
805 (let* ((glk (assoc-ref %build-inputs "glk")))
806 (list (string-append "GLKINCLUDEDIR=" glk "/include")
807 (string-append "GLKLIBDIR=" glk "/lib")
808 (string-append "GLKMAKEFILE=" "Make.glkterm")))
812 (lambda* (#:key outputs #:allow-other-keys)
813 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
815 (copy-file "glulxe" (string-append bin "/glulxe"))))
816 (alist-delete 'configure %standard-phases))))
817 (home-page "http://www.eblong.com/zarf/glulx/")
818 (synopsis "Interpreter for Glulx VM")
820 "Glulx is a 32-bit portable virtual machine intended for writing and
821 playing interactive fiction. It was designed by Andrew Plotkin to relieve
822 some of the restrictions in the venerable Z-machine format. This is the
823 reference interpreter, using Glk API.")
824 (license (license:fsf-free "file://README"))))
832 (uri (string-append "https://christoph-ender.de/fizmo/source/"
833 name "-" version ".tar.gz"))
836 "1w7cgyjrhgkadjrazijzhq7zh0pl5bfc6wl7mdpgh020y4kp46d7"))))
837 (build-system gnu-build-system)
840 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
841 (ncurses (assoc-ref %build-inputs "ncurses")))
842 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
843 (string-append "jpeg_LIBS=-ljpeg")
844 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
845 (string-append "ncursesw_LIBS=-lncursesw")))))
847 `(("pkg-config" ,pkg-config)))
849 `(("libjpeg" ,libjpeg)
851 ("libsndfile" ,libsndfile)
855 (home-page "https://christoph-ender.de/fizmo/")
856 (synopsis "Z-machine interpreter")
858 "Fizmo is a console-based Z-machine interpreter. It is used to play
859 interactive fiction, also known as text adventures, which were implemented
860 either by Infocom or created using the Inform compiler.")
861 (license license:bsd-3)))
863 (define-public retroarch
870 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
872 (file-name (string-append name "-" version ".tar.gz"))
874 (base32 "1xar0wagcz50clwwkvjg4zq9m1sjqw47vw3xx44pisdj94g21m5y"))))
875 (build-system gnu-build-system)
877 '(#:tests? #f ; no tests
882 (substitute* "qb/qb.libs.sh"
883 (("/bin/true") (which "true")))
886 (string-append "--prefix=" %output)
887 (string-append "--global-config-dir=" %output "/etc"))))
890 `(("alsa-lib" ,alsa-lib)
892 ("freetype" ,freetype)
893 ("libxinerama" ,libxinerama)
894 ("libxkbcommon" ,libxkbcommon)
899 ("pulseaudio" ,pulseaudio)
905 `(("pkg-config" ,pkg-config)
907 (home-page "http://www.libretro.com/")
908 (synopsis "Reference frontend for the libretro API")
910 "Libretro is a simple but powerful development interface that allows for
911 the easy creation of emulators, games and multimedia applications that can plug
912 straight into any libretro-compatible frontend. RetroArch is the official
913 reference frontend for the libretro API, currently used by most as a modular
914 multi-system game/emulator system.")
915 (license license:gpl3+)))
923 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
927 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
928 (build-system gnu-build-system)
929 (inputs `(("readline" ,readline)))
930 (synopsis "Play the game of Go")
932 "GNU Go is a program that plays the game of Go, in which players
933 place stones on a grid to form territory or capture other stones. While
934 it can be played directly from the terminal, rendered in ASCII characters,
935 it is also possible to play GNU Go with 3rd party graphical interfaces or
936 even in Emacs. It supports the standard game storage format (SGF, Smart
937 Game Format) and inter-process communication format (GMP, Go Modem
939 (home-page "http://www.gnu.org/software/gnugo/")
940 (license license:gpl3+)))
942 (define-public extremetuxracer
944 (name "extremetuxracer")
949 "mirror://sourceforge/extremetuxracer/releases/"
950 version "/etr-" version ".tar.xz"))
953 "1lg3z7jhzmsjym53qss8mbydny8hafwjnfsc7x91hrr9zrkwblly"))))
954 (build-system gnu-build-system)
956 `(("pkg-config" ,pkg-config)))
960 (synopsis "High speed arctic racing game based on Tux Racer")
961 ;; Snarfed straight from Debian
962 (description "Extreme Tux Racer, or etracer as it is called for short, is
963 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
964 game is to slide down a snow- and ice-covered mountain as quickly as possible,
965 avoiding the trees and rocks that will slow you down.
967 Collect herrings and other goodies while sliding down the hill, but avoid fish
970 This game is based on the GPL version of the famous game TuxRacer.")
971 (home-page "https://sourceforge.net/projects/extremetuxracer/")
972 (license license:gpl2+)))
974 (define-public supertuxkart
976 (name "supertuxkart")
981 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
982 version "/supertuxkart-" version "-src.tar.xz"))
985 "10l2ljmd7mv8f9ylarqmxxryicdnph2qkm3g5maxnsm2k2q0n20b"))
986 (modules '((guix build utils)))
988 ;; Delete bundled library sources
990 ;; FIXME: try to unbundle enet, and angelscript
991 (for-each delete-file-recursively
997 (substitute* "CMakeLists.txt"
998 ;; Supertuxkart uses modified versions of the Irrlicht engine
999 ;; and the bullet library. The developers gave an explanation here:
1000 ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
1001 (("add_subdirectory\\(.*/(glew|zlib)\"\\)") ""))
1003 (build-system cmake-build-system)
1005 `(#:tests? #f ; no check target
1007 (list "-DUSE_WIIUSE=0"
1008 ;; Do not use the bundled zlib
1009 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
1010 ;; Irrlicht returns an integer instead of a boolean
1011 "-DCMAKE_C_FLAGS=-fpermissive")
1013 (modify-phases %standard-phases
1014 (add-after 'unpack 'unbundle
1015 (lambda* (#:key inputs #:allow-other-keys)
1016 (substitute* "CMakeLists.txt"
1018 (string-append (assoc-ref inputs "glew")
1020 (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)")
1021 (string-append "include_directories(\""
1022 (assoc-ref inputs "glew")
1029 ("libvorbis" ,libvorbis)
1030 ("freetype" ,freetype)
1031 ("fribidi" ,fribidi)
1034 ("libxrandr" ,libxrandr)
1036 ;; The following input is needed to build the bundled and modified
1037 ;; version of irrlicht.
1038 ("libjpeg" ,libjpeg)))
1040 `(("pkg-config" ,pkg-config)))
1041 (home-page "http://supertuxkart.net")
1042 (synopsis "3D kart racing game")
1043 (description "SuperTuxKart is a 3D kart racing game, with a focus on
1044 having fun over realism. You can play with up to 4 friends on one PC, racing
1045 against each other or just trying to beat the computer; single-player mode is
1047 (license license:gpl3+)))
1049 (define-public gnujump
1055 (uri (string-append "mirror://gnu/gnujump/gnujump-"
1059 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
1060 (build-system gnu-build-system)
1063 (modify-phases %standard-phases
1065 'configure 'link-libm
1066 (lambda _ (setenv "LIBS" "-lm"))))))
1071 ("sdl-image" ,sdl-image)
1072 ("sdl-mixer" ,sdl-mixer)))
1073 (home-page "http://gnujump.es.gnu.org/")
1075 "Game of jumping to the next floor, trying not to fall")
1077 "GNUjump is a simple, yet addictive game in which you must jump from
1078 platform to platform to avoid falling, while the platforms drop at faster rates
1079 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1080 falling, themeable graphics and sounds, and replays.")
1081 (license license:gpl3+)))
1083 (define-public wesnoth
1089 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1090 (version-major+minor version) "/wesnoth-"
1092 name "-" version ".tar.bz2"))
1095 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1096 (build-system cmake-build-system)
1098 '(#:tests? #f ; no check target
1100 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1101 ;; boost/mpl/assert.hpp:313:58: error:
1102 ;; use of old-style cast [-Werror=old-style-cast]
1104 ;; cc1plus: all warnings being treated as errors
1105 '("-DENABLE_STRICT_COMPILATION=OFF")))
1107 `(("gettext" ,gettext-minimal)
1108 ("pkg-config" ,pkg-config)))
1112 ("fribidi" ,fribidi)
1113 ("libvorbis" ,libvorbis)
1115 ("sdl-image" ,sdl-image)
1116 ("sdl-mixer" ,sdl-mixer)
1117 ("sdl-net" ,sdl-net)
1118 ("sdl-ttf" ,sdl-ttf)))
1119 (home-page "http://www.wesnoth.org/")
1120 (synopsis "Turn-based strategy game")
1122 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1123 with several single player campaigns, and multiplayer games (both networked and
1126 Battle for control on a range of maps, using variety of units which have
1127 advantages and disadvantages against different types of attacks. Units gain
1128 experience and advance levels, and are carried over from one scenario to the
1130 (license license:gpl2+)))
1132 (define-public dosbox
1135 (version "0.74.svn3947")
1139 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1141 (file-name (string-append name "-" version "-checkout"))
1142 ;; Use SVN head, since the last release (2010) is incompatible
1143 ;; with GCC 4.8+ (see
1144 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1147 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1148 (build-system gnu-build-system)
1150 `(#:phases (modify-phases %standard-phases
1154 (zero? (system* "sh" "autogen.sh")))))))
1156 `(("autoconf" ,autoconf)
1157 ("automake" ,automake)))
1162 ("alsa-lib" ,alsa-lib)
1165 (home-page "http://www.dosbox.com")
1166 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1167 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1168 also emulates CPU:286/386 realmode/protected mode, Directory
1169 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1170 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1172 (license license:gpl2+)))
1174 (define-public gamine
1180 (uri (string-append "mirror://sourceforge/gamine-game/"
1181 "gamine-" version ".tar.gz"))
1184 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1185 (build-system gnu-build-system)
1187 `(("pkg-config" ,pkg-config)
1188 ("intltool" ,intltool)))
1190 `(("gstreamer" ,gstreamer)
1191 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1192 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1197 (let ((out (assoc-ref %outputs "out")))
1198 (list (string-append "PREFIX=" out)
1199 (string-append "SYSCONFDIR=" out "/etc")))
1201 (modify-phases %standard-phases
1204 'install 'wrap-gamine
1205 (lambda* (#:key outputs #:allow-other-keys)
1206 (let ((out (assoc-ref outputs "out"))
1207 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1208 (wrap-program (string-append out "/bin/gamine")
1209 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1211 (home-page "http://gamine-game.sourceforge.net/")
1212 (synopsis "Mouse and keyboard discovery for children")
1214 "Gamine is a game designed for young children who are learning to use the
1215 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1216 on the screen and keyboard to display letters.")
1217 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1218 (license license:gpl3)))
1220 (define-public raincat
1228 "http://hackage.haskell.org/package/Raincat/Raincat-"
1233 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1234 (build-system haskell-build-system)
1236 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1237 ("ghc-mtl" ,ghc-mtl)
1238 ("ghc-random" ,ghc-random)
1239 ("ghc-glut" ,ghc-glut)
1240 ("freeglut" ,freeglut)
1241 ("ghc-opengl" ,ghc-opengl)
1242 ("ghc-sdl" ,ghc-sdl)
1243 ("ghc-sdl-image" ,ghc-sdl-image)
1244 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1245 (home-page "http://raincat.bysusanlin.com/")
1246 (synopsis "Puzzle game with a cat in lead role")
1247 (description "Project Raincat is a game developed by Carnegie Mellon
1248 students through GCS during the Fall 2008 semester. Raincat features game
1249 play inspired from classics Lemmings and The Incredible Machine. The project
1250 proved to be an excellent learning experience for the programmers. Everything
1251 is programmed in Haskell.")
1252 (license license:bsd-3)))
1254 (define-public manaplus
1257 (version "1.6.12.24")
1261 "http://repo.manaplus.org/manaplus/download/"
1262 version "/manaplus-" version ".tar.xz"))
1265 "1g64pid26vcv1ay002bzz6ymabwrmy3wmklywpcgpvrhynm6f2cq"))))
1266 (build-system gnu-build-system)
1269 (list (string-append "CPPFLAGS=-I"
1270 (assoc-ref %build-inputs "sdl-union")
1273 `(("pkg-config" ,pkg-config)))
1277 ("libxml2" ,libxml2)
1280 ("sdl-union" ,(sdl-union))))
1281 (home-page "http://manaplus.org")
1282 (synopsis "Client for 'The Mana World' and similar games")
1284 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1285 fully supported client for @uref{http://www.themanaworld.org, The mana
1286 world}, @uref{http://evolonline.org, Evol Online} and
1287 @uref{http://landoffire.org, Land of fire}.")
1288 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1289 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1290 ;; The rest is under GPL2+.
1291 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1293 (define-public mupen64plus-core
1295 (name "mupen64plus-core")
1301 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1303 (file-name (string-append name "-" version ".tar.gz"))
1305 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1306 (build-system gnu-build-system)
1308 `(("pkg-config" ,pkg-config)
1311 `(("freetype" ,freetype)
1319 (modify-phases %standard-phases
1320 ;; The mupen64plus build system has no configure phase.
1322 ;; Makefile is in a subdirectory.
1324 'build 'cd-to-project-dir
1326 (chdir "projects/unix"))))
1327 #:make-flags (let ((out (assoc-ref %outputs "out")))
1328 (list "all" (string-append "PREFIX=" out)))
1329 ;; There are no tests.
1331 ;; As per the Makefile (in projects/unix/Makefile):
1332 (supported-systems '("i686-linux" "x86_64-linux"))
1333 (home-page "http://www.mupen64plus.org/")
1334 (synopsis "Nintendo 64 emulator core library")
1336 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1337 which is capable of accurately playing many games. This package contains the
1339 (license license:gpl2+)))
1341 (define-public mupen64plus-audio-sdl
1343 (name "mupen64plus-audio-sdl")
1349 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1351 (file-name (string-append name "-" version ".tar.gz"))
1353 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1354 (build-system gnu-build-system)
1356 `(("pkg-config" ,pkg-config)
1359 `(("mupen64plus-core" ,mupen64plus-core)
1363 (modify-phases %standard-phases
1364 ;; The mupen64plus build system has no configure phase.
1366 ;; Makefile is in a subdirectory.
1368 'build 'cd-to-project-dir
1370 (chdir "projects/unix"))))
1372 (let ((out (assoc-ref %outputs "out"))
1373 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1375 (string-append "PREFIX=" out)
1376 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1377 ;; There are no tests.
1379 (home-page "http://www.mupen64plus.org/")
1380 (synopsis "Mupen64Plus SDL input plugin")
1382 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1383 which is capable of accurately playing many games. This package contains the
1385 (license license:gpl2+)))
1387 (define-public mupen64plus-input-sdl
1389 (name "mupen64plus-input-sdl")
1395 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1397 (file-name (string-append name "-" version ".tar.gz"))
1399 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1400 (build-system gnu-build-system)
1402 `(("which" ,which)))
1404 `(("mupen64plus-core" ,mupen64plus-core)
1408 (modify-phases %standard-phases
1409 ;; The mupen64plus build system has no configure phase.
1411 ;; Makefile is in a subdirectory.
1413 'build 'cd-to-project-dir
1415 (chdir "projects/unix"))))
1417 (let ((out (assoc-ref %outputs "out"))
1418 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1420 (string-append "PREFIX=" out)
1421 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1422 ;; There are no tests.
1424 (home-page "http://www.mupen64plus.org/")
1425 (synopsis "Mupen64Plus SDL input plugin")
1427 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1428 which is capable of accurately playing many games. This package contains the
1430 (license license:gpl2+)))
1432 (define-public mupen64plus-rsp-hle
1434 (name "mupen64plus-rsp-hle")
1440 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1442 (file-name (string-append name "-" version ".tar.gz"))
1444 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1445 (build-system gnu-build-system)
1447 `(("mupen64plus-core" ,mupen64plus-core)))
1450 (modify-phases %standard-phases
1451 ;; The mupen64plus build system has no configure phase.
1453 ;; Makefile is in a subdirectory.
1455 'build 'cd-to-project-dir
1457 (chdir "projects/unix"))))
1459 (let ((out (assoc-ref %outputs "out"))
1460 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1462 (string-append "PREFIX=" out)
1463 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1464 ;; There are no tests.
1466 (home-page "http://www.mupen64plus.org/")
1467 (synopsis "Mupen64Plus SDL input plugin")
1469 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1470 which is capable of accurately playing many games. This package contains the
1471 high-level emulation (HLE) RSP processor plugin.")
1472 (license license:gpl2+)))
1474 (define-public mupen64plus-rsp-z64
1476 (name "mupen64plus-rsp-z64")
1482 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1484 (file-name (string-append name "-" version ".tar.gz"))
1486 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1487 (build-system gnu-build-system)
1489 `(("mupen64plus-core" ,mupen64plus-core)))
1492 (modify-phases %standard-phases
1493 ;; The mupen64plus build system has no configure phase.
1495 ;; Makefile is in a subdirectory.
1497 'build 'cd-to-project-dir
1499 (chdir "projects/unix"))))
1501 (let ((out (assoc-ref %outputs "out"))
1502 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1504 (string-append "PREFIX=" out)
1505 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1506 ;; There are no tests.
1508 (home-page "http://www.mupen64plus.org/")
1509 (synopsis "Mupen64Plus SDL input plugin")
1511 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1512 which is capable of accurately playing many games. This package contains the
1513 Z64 RSP processor plugin.")
1514 (license license:gpl2+)))
1516 (define-public mupen64plus-video-arachnoid
1518 (name "mupen64plus-video-arachnoid")
1524 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1526 (file-name (string-append name "-" version ".tar.gz"))
1528 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1529 (build-system gnu-build-system)
1531 `(("pkg-config" ,pkg-config)
1535 ("mupen64plus-core" ,mupen64plus-core)))
1538 (modify-phases %standard-phases
1539 ;; The mupen64plus build system has no configure phase.
1541 ;; Makefile is in a subdirectory.
1543 'build 'cd-to-project-dir
1545 (chdir "projects/unix"))))
1547 (let ((out (assoc-ref %outputs "out"))
1548 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1550 (string-append "PREFIX=" out)
1551 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1552 ;; There are no tests.
1554 (home-page "http://www.mupen64plus.org/")
1555 (synopsis "Mupen64Plus Rice Video plugin")
1557 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1558 which is capable of accurately playing many games. This package contains the
1559 Arachnoid video plugin.")
1560 (license license:gpl2+)))
1562 (define-public mupen64plus-video-glide64
1564 (name "mupen64plus-video-glide64")
1570 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1572 (file-name (string-append name "-" version ".tar.gz"))
1574 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1575 (build-system gnu-build-system)
1577 `(("pkg-config" ,pkg-config)
1581 ("mupen64plus-core" ,mupen64plus-core)
1585 (modify-phases %standard-phases
1586 ;; The mupen64plus build system has no configure phase.
1588 ;; Makefile is in a subdirectory.
1590 'build 'cd-to-project-dir
1592 (chdir "projects/unix")))
1593 ;; XXX Should be unnecessary with the next release.
1597 (substitute* "Makefile"
1598 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1599 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1601 (let ((out (assoc-ref %outputs "out"))
1602 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1604 (string-append "PREFIX=" out)
1605 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1606 ;; There are no tests.
1608 (home-page "http://www.mupen64plus.org/")
1609 (synopsis "Mupen64Plus Rice Video plugin")
1611 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1612 which is capable of accurately playing many games. This package contains the
1613 Glide64 video plugin.")
1614 (license license:gpl2+)))
1616 (define-public mupen64plus-video-glide64mk2
1618 (name "mupen64plus-video-glide64mk2")
1624 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1626 (file-name (string-append name "-" version ".tar.gz"))
1628 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1629 (build-system gnu-build-system)
1631 `(("pkg-config" ,pkg-config)
1637 ("mupen64plus-core" ,mupen64plus-core)
1642 (modify-phases %standard-phases
1643 ;; The mupen64plus build system has no configure phase.
1645 ;; Makefile is in a subdirectory.
1647 'build 'cd-to-project-dir
1649 (chdir "projects/unix"))))
1651 (let ((out (assoc-ref %outputs "out"))
1652 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1654 (string-append "PREFIX=" out)
1655 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1656 ;; There are no tests.
1658 (home-page "http://www.mupen64plus.org/")
1659 (synopsis "Mupen64Plus Rice Video plugin")
1661 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1662 which is capable of accurately playing many games. This package contains the
1663 Glide64MK2 video plugin.")
1664 (license license:gpl2+)))
1666 (define-public mupen64plus-video-rice
1668 (name "mupen64plus-video-rice")
1674 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1676 (file-name (string-append name "-" version ".tar.gz"))
1678 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1679 (build-system gnu-build-system)
1681 `(("pkg-config" ,pkg-config)
1684 `(("libpng" ,libpng)
1686 ("mupen64plus-core" ,mupen64plus-core)
1690 (modify-phases %standard-phases
1691 ;; The mupen64plus build system has no configure phase.
1693 ;; Makefile is in a subdirectory.
1695 'build 'cd-to-project-dir
1697 (chdir "projects/unix"))))
1699 (let ((out (assoc-ref %outputs "out"))
1700 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1702 (string-append "PREFIX=" out)
1703 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1704 ;; There are no tests.
1706 (home-page "http://www.mupen64plus.org/")
1707 (synopsis "Mupen64Plus Rice Video plugin")
1709 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1710 which is capable of accurately playing many games. This package contains the
1711 Rice Video plugin.")
1712 (license license:gpl2+)))
1714 (define-public mupen64plus-video-z64
1716 (name "mupen64plus-video-z64")
1722 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1724 (file-name (string-append name "-" version ".tar.gz"))
1726 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1727 (build-system gnu-build-system)
1729 `(("pkg-config" ,pkg-config)
1733 ("mupen64plus-core" ,mupen64plus-core)
1737 (modify-phases %standard-phases
1738 ;; The mupen64plus build system has no configure phase.
1740 ;; Makefile is in a subdirectory.
1742 'build 'cd-to-project-dir
1744 (chdir "projects/unix")))
1745 ;; XXX Should be unnecessary with the next release.
1749 (substitute* "Makefile"
1750 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1751 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1753 (let ((out (assoc-ref %outputs "out"))
1754 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1756 (string-append "PREFIX=" out)
1757 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1758 ;; There are no tests.
1760 (home-page "http://www.mupen64plus.org/")
1761 (synopsis "Mupen64Plus Z64 video plugin")
1763 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1764 which is capable of accurately playing many games. This package contains the
1766 (license license:gpl2+)))
1768 (define-public mupen64plus-ui-console
1770 (name "mupen64plus-ui-console")
1776 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1778 (file-name (string-append name "-" version ".tar.gz"))
1780 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1781 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1782 (build-system gnu-build-system)
1784 `(("pkg-config" ,pkg-config)
1788 ;; Mupen64Plus supports a single data directory and a single plugin
1789 ;; directory in its configuration, yet we need data and plugin files from
1790 ;; a variety of packages. The best way to deal with this is to install
1791 ;; all packages from which data and plugin files are needed into one's
1792 ;; profile, and point the configuration there. Hence, propagate the most
1793 ;; important packages here to save the user from the bother. The patch
1794 ;; mupen64plus-ui-console-notice also gives users instructions on what
1795 ;; they need to do in order to point the configuration to their profile.
1797 `(("mupen64plus-core" ,mupen64plus-core)
1798 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1799 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1800 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1801 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1802 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1803 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1806 (modify-phases %standard-phases
1807 ;; The mupen64plus build system has no configure phase.
1809 ;; Makefile is in a subdirectory.
1811 'build 'cd-to-project-dir
1813 (chdir "projects/unix"))))
1815 (let ((out (assoc-ref %outputs "out"))
1816 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1818 (string-append "PREFIX=" out)
1819 (string-append "APIDIR=" m64p "/include/mupen64plus")
1820 ;; Trailing slash matters here.
1821 (string-append "COREDIR=" m64p "/lib/")))
1822 ;; There are no tests.
1824 (home-page "http://www.mupen64plus.org/")
1825 (synopsis "Mupen64Plus SDL input plugin")
1827 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1828 which is capable of accurately playing many games. This package contains the
1829 command line user interface. Installing this package is the easiest way
1830 towards a working Mupen64Plus for casual users.")
1831 (license license:gpl2+)))
1833 (define-public nestopia-ue
1835 (name "nestopia-ue")
1840 "https://github.com/rdanbrook/nestopia/archive/"
1842 (file-name (string-append name "-" version ".tar.gz"))
1845 "1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
1846 (modules '((guix build utils)))
1849 ;; We don't need libretro for the GNU/Linux build.
1850 (delete-file-recursively "libretro")
1852 (delete-file-recursively "source/zlib")
1853 (substitute* "source/core/NstZlib.cpp"
1854 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1855 (build-system gnu-build-system)
1857 `(("pkg-config" ,pkg-config)))
1862 ("libarchive" ,libarchive)
1868 (modify-phases %standard-phases
1869 ;; The Nestopia build system consists solely of a Makefile.
1871 (add-before 'build 'remove-xdg-desktop-menu-call
1873 (substitute* "Makefile"
1874 (("xdg-desktop-menu install .*") ""))))
1875 (add-before 'build 'remove-gdkwayland-include
1877 (substitute* "source/unix/gtkui/gtkui.h"
1878 (("#include <gdk/gdkwayland\\.h>") "")))))
1879 #:make-flags (let ((out (assoc-ref %outputs "out")))
1880 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1881 ;; There are no tests.
1883 (home-page "http://0ldsk00l.ca/nestopia/")
1884 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1886 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1887 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1888 emulation community. It provides highly accurate emulation.")
1889 (license license:gpl2+)))
1891 (define-public emulation-station
1892 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1894 (name "emulation-station")
1897 (method git-fetch) ; no tarball available
1899 (url "https://github.com/Aloshi/EmulationStation.git")
1900 (commit commit))) ; no version tag
1903 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1904 (build-system cmake-build-system)
1906 '(#:tests? #f)) ; no tests
1908 `(("alsa-lib" ,alsa-lib)
1912 ("freeimage" ,freeimage)
1913 ("freetype" ,freetype)
1916 (synopsis "Video game console emulator front-end")
1917 (description "EmulationStation provides a graphical front-end to a large
1918 number of video game console emulators. It features an interface that is
1919 usable with any game controller that has at least 4 buttons, theming support,
1920 and a game metadata scraper.")
1921 (home-page "http://www.emulationstation.org")
1922 (license license:expat))))
1924 (define openttd-engine
1926 (name "openttd-engine")
1929 (origin (method url-fetch)
1930 (uri (string-append "http://binaries.openttd.org/releases/"
1931 version "/openttd-" version "-source.tar.xz"))
1934 "1ak32fj5xkk2fvmm3g8i7wzmk4bh2ijsp8fzvvw5wj6365p9j24v"))
1935 (modules '((guix build utils)))
1937 ;; The DOS port contains proprietary software.
1938 '(delete-file-recursively "os/dos"))))
1939 (build-system gnu-build-system)
1941 `(#:tests? #f ; no "check" target
1943 (modify-phases %standard-phases
1944 ;; The build process fails if the configure script is passed the
1945 ;; option "--enable-fast-install".
1947 (lambda* (#:key inputs outputs #:allow-other-keys)
1948 (let ((out (assoc-ref outputs "out"))
1949 (lzo (assoc-ref inputs "lzo")))
1951 (system* "./configure"
1952 (string-append "--prefix=" out)
1953 ;; Provide the "lzo" path.
1954 (string-append "--with-liblzo2="
1955 lzo "/lib/liblzo2.a")
1956 ;; Put the binary in 'bin' instead of 'games'.
1957 "--binary-dir=bin"))))))))
1958 (native-inputs `(("pkg-config" ,pkg-config)))
1960 `(("allegro" ,allegro-4)
1961 ("fontconfig" ,fontconfig)
1962 ("freetype" ,freetype)
1969 (synopsis "Transportation economics simulator")
1970 (description "OpenTTD is a game in which you transport goods and
1971 passengers by land, water and air. It is a re-implementation of Transport
1972 Tycoon Deluxe with many enhancements including multiplayer mode,
1973 internationalization support, conditional orders and the ability to clone,
1974 autoreplace and autoupdate vehicles. This package only includes the game engine. When you start
1975 it you will be prompted to download a graphics set.")
1976 (home-page "http://openttd.org/")
1977 ;; This package is GPLv2, except for a few files located in
1978 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1979 ;; licenses. In addition, this software contains an in-game downloader
1980 ;; from which the user may find non-functional data licensed under
1982 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1984 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1985 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1986 ;; but it asks a user to download graphics if it's not found.
1988 (define-public openttd
1990 (inherit openttd-engine)
1993 (define-public pinball
1998 (origin (method url-fetch)
1999 (uri (string-append "mirror://sourceforge/pinball/pinball/"
2000 "pinball-" version "/"
2001 "pinball-" version ".tar.gz"))
2004 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
2005 (patches (search-patches "pinball-const-fix.patch"
2006 "pinball-cstddef.patch"
2007 "pinball-missing-separators.patch"
2008 "pinball-src-deps.patch"
2009 "pinball-system-ltdl.patch"))))
2010 (build-system gnu-build-system)
2015 ("sdl-image" ,sdl-image)
2016 ("sdl-mixer" ,sdl-mixer)))
2019 (list (string-append "CPPFLAGS=-I"
2020 (assoc-ref %build-inputs "sdl-image")
2022 (assoc-ref %build-inputs "sdl-mixer")
2024 (home-page "http://pinball.sourceforge.net")
2025 (synopsis "Pinball simulator")
2026 (description "The Emilia Pinball Project is a pinball simulator. There
2027 are only two levels to play with, but they are very addictive.")
2028 (license license:gpl2)))
2030 (define-public pioneers
2036 (uri (string-append "http://downloads.sourceforge.net/pio/"
2037 "pioneers-" version ".tar.gz"))
2040 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
2041 (build-system gnu-build-system)
2042 (inputs `(("gtk+" ,gtk+)
2043 ("librsvg" ,librsvg)
2045 (native-inputs `(("intltool" ,intltool)
2046 ("pkg-config" ,pkg-config)))
2047 (synopsis "Board game inspired by The Settlers of Catan")
2048 (description "Pioneers is an emulation of the board game The Settlers of
2049 Catan. It can be played on a local network, on the internet, and with AI
2051 (home-page "http://pio.sourceforge.net/")
2052 (license license:gpl2+)))
2054 (define-public desmume
2062 "mirror://sourceforge/desmume/desmume/"
2063 version "/desmume-" version ".tar.gz"))
2066 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2067 (build-system gnu-build-system)
2069 ;; Enable support for WiFi and microphone.
2070 `(#:configure-flags '("--enable-wifi"
2071 "--enable-openal")))
2073 `(("pkg-config" ,pkg-config)
2074 ("intltool" ,intltool)))
2081 (home-page "http://desmume.org/")
2082 (synopsis "Nintendo DS emulator")
2084 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2085 (license license:gpl2)))
2087 (define-public einstein
2093 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2094 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2097 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2098 (patches (search-patches "einstein-build.patch"))))
2099 (build-system gnu-build-system)
2101 `(("freetype" ,freetype)
2102 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2105 `(("font-dejavu" ,font-dejavu)))
2107 `(#:tests? #f ; no check target
2109 (modify-phases %standard-phases
2111 (lambda* (#:key outputs inputs #:allow-other-keys)
2112 (let ((out (assoc-ref outputs "out"))
2113 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2114 "/share/fonts/truetype/DejaVuSans.ttf")))
2115 (substitute* "Makefile"
2116 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2117 ;; The patch above registers a free font for use by the binary,
2118 ;; but the font is copied during the compile phase into a
2119 ;; resources file, so we need to make the ttf file available.
2120 (symlink dejavu "res/DejaVuSans.ttf")
2122 (synopsis "Logic puzzle game")
2123 (description "The goal of this logic game is to open all cards in a 6x6
2124 grid, using a number of hints as to their relative position. The game idea
2125 is attributed to Albert Einstein.")
2126 ;; The original home page has disappeared.
2127 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2128 "http://games.flowix.com/en/index.html"))
2129 ;; License according to
2130 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2131 ;; The source code is a DFSG-sanitized tarball and does not contain any
2132 ;; license information.
2133 (license license:gpl3+)))
2135 (define-public powwow
2142 "https://www.hoopajoo.net/static/projects/powwow-"
2144 (file-name (string-append name "-" version ".tar.gz"))
2147 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2149 `(("ncurses" ,ncurses)))
2150 (build-system gnu-build-system)
2151 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2152 (synopsis "MUD and telnet client")
2154 "POWWOW is a client software which can be used for telnet as well as for
2155 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2156 the chat server psyced with the specific config located at
2157 http://lavachat.symlynx.com/unix/")
2158 (license license:gpl2+)))
2160 (define-public red-eclipse
2162 '(("acerspyro" "0zmg78scrfdv33h7vszqvzylcqjwg7d5b0j2riav3rjfh326j8xx")
2163 ("actors" "0l00rsvppqzdpsikm5qpj38jiygirszxlzay2nxp4g4n2qjq0m4a")
2164 ("appleflap" "0jhfr7f13hk3nswwxqc4jajriipr6zz6j63v955nv4sgxs7lzbjd")
2165 ("blendbrush" "1nk0zaisbqf2khrivq8ls6z2lnh6d51m133m2ppxk7k4c9gq1imq")
2166 ("caustics" "1hq08k476wayi0kmk4ps8h6jr75yinq04f1r2p8r79xsdpxq9my5")
2167 ("crosshairs" "1gmrmjm7i7n9py0qrzamk7ygi63yx1mr2pp6iwz2vwngprl03n8m")
2168 ("dziq" "0gr36ydrv8syjxv7w9dw3ix8waaq201fzxr0klkqp260p8xp215s")
2169 ("elyvisions" "05syxlpsap6nfwxnnd0ls7qj1p4vhw2jxi41pi5inwpfifapfphz")
2170 ("fonts" "184syks602xc657q08973w5ji50x5zssvd4vp2q2ig8m68iyr51c")
2171 ("freezurbern" "020gpgcpy4rqjd9d18npfm96j8f02jcjnccbxcgzk1yb58y687ya")
2172 ("john" "0hj5kwlb2gb0gsnl9bk7dkqlk8r7vxcw8gxpgrb3kfn8d9cwcb7k")
2173 ("jojo" "0fij06040r7s5p7jksxm7wxi9jqwkhhm8iywys0dagk8j2wcbvsz")
2174 ("jwin" "0ysfynjvypc8dszf7rsvk02jgw8fmsli49vy2xpm83zpkrqpddgf")
2175 ("luckystrike" "1bm0xdqjv35ry5xwbzw3a3v1xf2gj1jwfg29nyl6w3ch0h6crr11")
2176 ("maps" "0c9d1zxmpnngwhchzw6xb6cf84cx8xyycmdqcvyhamrd95d96qma")
2177 ("mayhem" "133pdql7ari159skd9qdmw0p1m73x32d1v6jswkz0xwk8vgxmkil")
2178 ("mikeplus64" "1d5npn9wlw0mviz9vhzzcsj98jvfh1wbvlh1nyqfj4ws5nfxhs7x")
2179 ("misc" "19x2ps6yxnfrz0xdhqdwncaq25ds7i4w2l8sdfi95yh2r7c5k1qn")
2180 ("nieb" "15029nipl92cb0jbh46z00k51hf3jk4v05pwx266b6b11bapdz0c")
2181 ("nobiax" "0k9apim5z4ihd5ajmnbq4gyh24w872dv0mr5v8wqn31a8gxzahhp")
2182 ("particles" "06827r9pnhzjil381xiwcbc93v9nxin7qlr59yrvk9gdzxmklk9m")
2183 ("philipk" "1l6fhl6qz471vjn05hvk29bm8dhwnzqbmi2hdylpa9k998nzkfc1")
2184 ("projectiles" "03ay8ik52n3vx723swqlnl5gpkzf1v1gadwj3zcnh43ch7nd2bqh")
2185 ("props" "1yxz7gfmb79sqqrkyfdzp4ar9rf5f1kpfij4nrkk1l8vbw9liksc")
2186 ("skyboxes" "1mm98mhb6yhb006p1hlic91jcwjxhq79mblxciwbqqa9c5g4yki6")
2187 ("snipergoth" "1vlpmwlg71g6l5b706gp82bc07i5bbw2zphzynm2fx49za0zdi44")
2188 ("sounds" "156g5wh8cvdh6zr33haqm566sd28ylnzdf2h4pqzpxbb2i19vbfg")
2189 ("textures" "0wkhl5cgymr9kslzhksi83hs15rb0q01xvax5khi6b4dcl3mrmsh")
2190 ("torley" "1xlag6ndjyqafl984n6d9zi96dv9aif7vrc2nvikc3iwgjwlbxav")
2191 ("trak" "12x9ix8zkqn9svy56qmdgj4x2814qh25f4srplgq691lqn9qjhvd")
2192 ("ulukai" "0gz1hd8hca2biskc85hw4jjacpsmqg9x4w6cwrka8x987xmc92k5")
2193 ("unnamed" "09v8fjy6jqypm1i121kilg3z6zpw7dm0i4gxhd9b7ihprvzvy8r7")
2194 ("vanities" "0m3vfq9l71pbb80qz4s3k8r5azmm158chqbw8snch09ymxm6h462")
2195 ("vegetation" "07yzm9lbzr624j4i652ny5p762p83gadg40c1k8gwff4y7yk55gn")
2196 ("weapons" "05fsp17gdrhjqdwia7rwdw9gcijaqwcnny8lf6krms43xmn8cj0x")
2197 ("wicked" "0jjgwzdibr5my369gwvmvbklpjlwq939zgf643rv0168xc087xb2"))))
2199 (name "red-eclipse")
2203 (uri (string-append "https://github.com/red-eclipse/base"
2204 "/archive/v" version ".tar.gz"))
2205 (file-name (string-append name "-" version ".tar.gz"))
2208 "1ah92axwcai0fhgm7pvfb2dxvfdiwwyh8iqyiffndh6782hxz3bc"))))
2209 (build-system gnu-build-system)
2211 `(#:tests? #f ; no check target
2212 #:make-flags (list "CC=gcc" "-Csrc"
2213 (string-append "INSTDIR="
2214 (assoc-ref %outputs "out") "/bin"))
2216 (modify-phases %standard-phases
2217 (add-after 'unpack 'unpack-data
2218 (lambda* (#:key inputs #:allow-other-keys)
2219 (delete-file-recursively "data")
2221 (for-each (lambda (name)
2222 (system* "tar" "-xvf"
2223 (assoc-ref inputs name)
2227 name "-" ,version "/"
2229 (list ,@(map car data-sources)))
2231 (delete 'configure) ; no configure script
2232 (add-after 'set-paths 'set-sdl-paths
2233 (lambda* (#:key inputs #:allow-other-keys)
2235 (string-append (assoc-ref inputs "sdl-union")
2238 (add-after 'install 'copy-data
2239 (lambda* (#:key outputs #:allow-other-keys)
2240 (let ((out (assoc-ref outputs "out")))
2241 (copy-recursively "config"
2242 (string-append out "/config"))
2243 (copy-file "doc/examples/servinit.cfg"
2244 (string-append out "/config/servinit.cfg"))
2245 (copy-recursively "data"
2246 (string-append out "/data")))
2248 (add-after 'copy-data 'wrap-program
2249 (lambda* (#:key inputs outputs #:allow-other-keys)
2250 (let* ((out (assoc-ref outputs "out"))
2251 (bin (string-append out "/bin")))
2252 (with-directory-excursion bin
2253 (rename-file "redeclipse_linux"
2254 ".redeclipse_linux-real")
2255 (rename-file "redeclipse_server_linux"
2256 ".redeclipse_server_linux-real")
2257 (call-with-output-file "redeclipse_linux"
2259 (format port "#!~a/bin/sh
2260 # Run the thing from its home, otherwise it just bails out.
2262 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2263 (assoc-ref inputs "bash") ;implicit input
2265 (string-append bin))))
2266 (call-with-output-file "redeclipse_server_linux"
2268 (format port "#!~a/bin/sh
2269 # Run the thing from its home, otherwise it just bails out.
2271 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2272 (assoc-ref inputs "bash") ;implicit input
2274 (string-append bin))))
2275 (chmod "redeclipse_linux" #o555)
2276 (chmod "redeclipse_server_linux" #o555)))
2278 (native-inputs `(("pkg-config" ,pkg-config)))
2282 ("sdl-union" ,(sdl-union (list sdl2
2285 ;; Create origin records for the many separate data packages.
2286 ,@(map (match-lambda
2292 "https://github.com/red-eclipse/"
2293 name "/archive/v" version ".tar.gz"))
2294 (sha256 (base32 hash))
2295 (file-name (string-append name "-" version
2298 (home-page "http://redeclipse.net/")
2299 (synopsis "Arena shooter derived from the Cube 2 engine")
2301 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2302 Offering an innovative parkour system and distinct but all potent weapons,
2303 Red Eclipse provides fast paced and accessible gameplay.")
2304 ;; The engine is under Zlib; data files are covered by the other
2305 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2306 (license (list license:expat
2312 (define-public higan
2320 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2322 (file-name (string-append name "-" version ".tar.gz"))
2324 (base32 "0qavwkmzc63p6qplmxii4gc541z5mcs8gjwh3m4y7i576r7rcbk9"))
2325 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2326 (build-system gnu-build-system)
2328 `(("pkg-config" ,pkg-config)))
2330 `(("alsa-lib" ,alsa-lib)
2334 ("gtksourceview-2" ,gtksourceview-2)
2338 ("pulseaudio" ,pulseaudio)
2342 (let ((build-phase (assoc-ref %standard-phases 'build))
2343 (install-phase (assoc-ref %standard-phases 'install)))
2344 (modify-phases %standard-phases
2345 ;; The higan build system has no configure phase.
2347 (add-before 'build 'chdir-to-higan
2350 (add-before 'install 'create-/share/applications
2351 (lambda* (#:key outputs #:allow-other-keys)
2352 (let ((out (assoc-ref outputs "out")))
2353 ;; It seems the author forgot to do this in the Makefile.
2354 (mkdir-p (string-append out "/share/applications")))))
2355 (add-after 'install 'chdir-to-icarus
2357 (chdir "../icarus")))
2358 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2359 (add-after 'build-icarus 'install-icarus install-phase)
2360 (add-after 'install-icarus 'wrap-higan-executable
2361 (lambda* (#:key inputs outputs #:allow-other-keys)
2362 (let* ((out (assoc-ref outputs "out"))
2363 (bin (string-append out "/bin"))
2364 (higan (string-append bin "/higan"))
2365 (higan-original (string-append higan "-original"))
2366 (bash (string-append (assoc-ref inputs "bash")
2368 (coreutils (assoc-ref inputs "coreutils"))
2369 (mkdir (string-append coreutils "/bin/mkdir"))
2370 (cp (string-append coreutils "/bin/cp"))
2371 (cp-r (string-append cp " -r --no-preserve=mode")))
2372 ;; First, have the executable make sure ~/.local/share/higan
2373 ;; contains up to date files. Higan insists on looking there
2374 ;; for these data files.
2375 (rename-file higan higan-original)
2376 (with-output-to-file higan
2381 ;; higan doesn't respect $XDG_DATA_HOME
2382 mkdir " -p ~/.local/share\n"
2383 cp-r " " out "/share/higan ~/.local/share\n"
2384 "exec " higan-original))))
2386 ;; Second, make sure higan will find icarus in PATH.
2388 `("PATH" ":" prefix (,bin))))))))
2390 (list "compiler=g++"
2391 (string-append "prefix=" (assoc-ref %outputs "out")))
2392 ;; There is no test suite.
2394 (home-page "http://byuu.org/emulation/higan/")
2395 (synopsis "Nintendo multi-system emulator")
2397 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2398 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2399 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2400 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2401 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2402 ;; As noted in these files among more:
2403 ;; - icarus/icarus.cpp
2404 ;; - higan/emulator/emulator.hpp
2405 (license license:gpl3)))
2407 (define-public grue-hunter
2409 (name "grue-hunter")
2413 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2416 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2417 (build-system trivial-build-system) ; no Makefile.PL
2418 (arguments `(#:modules ((guix build utils))
2421 (use-modules (guix build utils))
2422 (use-modules (srfi srfi-1))
2424 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2425 (perl (string-append (assoc-ref %build-inputs
2428 (gzip (string-append (assoc-ref %build-inputs
2431 (tar (string-append (assoc-ref %build-inputs
2434 (out (assoc-ref %outputs "out"))
2435 (bin (string-append out "/bin"))
2436 (doc (string-append out "/share/doc")))
2439 (copy-file tarball "grue-hunter.tar.gz")
2440 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2441 (zero? (system* tar "xvf" "grue-hunter.tar"))
2444 (copy-file "grue-hunter/gh.pl"
2445 (string-append bin "/grue-hunter"))
2446 (patch-shebang (string-append bin "/grue-hunter")
2450 (copy-file "grue-hunter/AGPLv3.txt"
2451 (string-append doc "/grue-hunter")))))))
2452 (inputs `(("perl" ,perl)
2455 ("tarball" ,source)))
2456 (home-page "http://jxself.org/grue-hunter.shtml")
2457 (synopsis "Text adventure game")
2459 "Grue Hunter is a text adventure game written in Perl. You must make
2460 your way through an underground cave system in search of the Grue. Can you
2461 capture it and get out alive?")
2462 (license license:agpl3+)))
2464 (define-public warzone2100
2466 (name "warzone2100")
2470 (uri (string-append "mirror://sourceforge/" name
2471 "/releases/" version "/" name "-" version
2475 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2476 (build-system gnu-build-system)
2479 (modify-phases %standard-phases
2480 (add-after 'unpack 'link-tests-with-qt
2482 (substitute* "tests/Makefile.in"
2483 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2484 (string-append prefix "$(QT5_LIBS) ")))
2486 (add-after 'unpack 'remove-reference-to-missing-file
2488 (substitute* "icons/Makefile.in"
2489 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2491 (native-inputs `(("pkg-config" ,pkg-config)
2494 (inputs `(("fontconfig" ,fontconfig)
2495 ("freetype" ,freetype)
2496 ("fribidi" ,fribidi)
2498 ("libtheora" ,libtheora)
2499 ("libvorbis" ,libvorbis)
2500 ("libxrandr" ,libxrandr)
2504 ("openssl" ,openssl)
2505 ("quesoglc" ,quesoglc)
2507 (home-page "http://wz2100.net")
2508 (synopsis "3D Real-time strategy and real-time tactics game")
2510 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2511 modes. An extensive tech tree with over 400 different technologies, combined
2512 with the unit design system, allows for a wide variety of possible units and
2514 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2515 (license (list license:bsd-3
2520 license:lgpl2.1+))))
2522 (define-public starfighter
2524 (name "starfighter")
2529 "mirror://savannah/starfighter/"
2530 (version-major+minor version) "/"
2531 name "-" version "-src.tar.gz"))
2534 "1qb5nk0b3d0ia5zszmg4a3ydf4fiy39fmymb66vwkqn4djajdhzq"))))
2535 (build-system gnu-build-system)
2537 '(#:tests? #f ; no check target
2539 (let ((out (assoc-ref %outputs "out")))
2540 (list (string-append "PREFIX=" out)
2541 (string-append "BINDIR=" out "/bin/")))
2543 (modify-phases %standard-phases
2544 ;; no configure script
2545 (delete 'configure))))
2547 `(("pkg-config" ,pkg-config)))
2550 ("sdl2-image" ,sdl2-image)
2551 ("sdl2-mixer" ,sdl2-mixer)))
2552 (home-page "http://starfighter.nongnu.org/")
2553 (synopsis "2D scrolling shooter game")
2555 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2556 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2557 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2558 way, you will encounter new foes, make new allies, and assist local rebels
2559 in strikes against the evil corporation.")
2560 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2561 (license (list license:gpl3+
2565 license:public-domain))))
2567 (define-public chromium-bsu
2569 (name "chromium-bsu")
2570 (version "0.9.16.1")
2573 (uri (string-append "mirror://sourceforge/" name
2574 "/Chromium B.S.U. source code/"
2575 name "-" version ".tar.gz"))
2578 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
2579 (build-system gnu-build-system)
2580 (native-inputs `(("pkg-config" ,pkg-config)))
2581 (inputs `(("gettext" ,gettext-minimal)
2583 ("quesoglc" ,quesoglc)
2584 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2585 (home-page "http://chromium-bsu.sourceforge.net/")
2586 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2588 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2589 are responsible for delivering supplies to the troops on the front line. Your
2590 ship has a small fleet of robotic fighters which you control from the relative
2591 safety of the Chromium vessel.")
2592 ;; Clarified Artistic License for everything but sound, which is covered
2593 ;; by the Expat License.
2594 (license (list license:clarified-artistic license:expat))))
2596 (define-public tuxpaint
2599 (version "0.9.22") ;keep VER_DATE below in sync
2603 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2604 version "/tuxpaint-" version ".tar.gz"))
2607 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2608 (modules '((guix build utils)))
2611 ;; Remove win32 directory which contains binary dll's and the
2612 ;; deprecated visualc directory.
2613 (for-each delete-file-recursively '("win32" "visualc"))
2614 (substitute* "Makefile"
2615 ;; Do not rely on $(GPERF) being an absolute file name
2616 (("\\[ -x \\$\\(GPERF\\) \\]")
2617 "$(GPERF) --version >/dev/null 2>&1"))))
2618 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2619 (build-system gnu-build-system)
2622 ("pkg-config" ,pkg-config)))
2625 ("fribidi" ,fribidi)
2626 ("gettext" ,gettext-minimal)
2628 ("librsvg" ,librsvg)
2629 ("libpaper" ,libpaper)
2631 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2632 ;; TODO: Use system fonts rather than those in data/fonts
2634 `(#:make-flags `("VER_DATE=2014-08-23"
2635 "GPERF=gperf" "CC=gcc"
2636 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2637 ,(string-append "PREFIX=" %output)
2638 "GNOME_PREFIX=$(PREFIX)"
2639 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2640 #:tests? #f ;No tests
2641 #:phases (modify-phases %standard-phases
2642 (delete 'configure) ;no configure phase
2643 (add-after 'install 'fix-import
2644 (lambda* (#:key inputs outputs #:allow-other-keys)
2645 (let* ((out (assoc-ref outputs "out"))
2646 (net (assoc-ref inputs "netpbm"))
2647 (tpi (string-append out "/bin/tuxpaint-import")))
2649 ;; Point to installation prefix so that the default
2650 ;; configure file is found.
2651 (("/usr/local") out))
2652 ;; tuxpaint-import uses a bunch of programs from
2653 ;; netpbm, so make sure it knows where those are
2656 (,(string-append net "/bin"))))))))))
2657 (native-search-paths
2658 (list (search-path-specification
2659 (variable "TUXPAINT_STAMPS_PATH")
2660 (files '("share/tuxpaint/stamps")))))
2661 (home-page "http://www.tuxpaint.org")
2662 (synopsis "Drawing software for children")
2664 "Tux Paint is a free drawing program designed for young children (kids
2665 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2666 and an encouraging cartoon mascot who helps guide children as they use the
2667 program. It provides a blank canvas and a variety of drawing tools to help
2668 your child be creative.")
2669 (license license:gpl2+)))
2671 (define-public tuxpaint-stamps
2673 (name "tuxpaint-stamps")
2674 (version "2014.08.23")
2678 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2679 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2680 "/tuxpaint-stamps-" version ".tar.gz"))
2683 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2684 (build-system trivial-build-system)
2689 `(#:modules ((guix build utils))
2691 (use-modules (guix build utils))
2694 (assoc-ref %build-inputs "tar") "/bin" ":"
2695 (assoc-ref %build-inputs "gzip") "/bin"))
2696 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
2697 (chdir (string-append ,name "-" ,version))
2698 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2700 (copy-recursively "stamps" dir)))))
2701 (home-page (package-home-page tuxpaint))
2702 (synopsis "Stamp images for Tux Paint")
2704 "This package contains a set of \"Rubber Stamp\" images which can be used
2705 with the \"Stamp\" tool within Tux Paint.")
2706 (license license:gpl2+)))
2708 (define-public tuxpaint-config
2710 (name "tuxpaint-config")
2711 (version "0.0.13") ;keep VER_DATE below in sync
2715 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2716 version "/tuxpaint-config-" version ".tar.gz"))
2719 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2720 (build-system gnu-build-system)
2722 `(("gettext" ,gettext-minimal)))
2725 ("libpaper" ,libpaper)
2726 ;; TODO: Should the following be propagated by fltk?
2731 `(#:make-flags `("VER_DATE=2014-08-23"
2732 "CONFDIR=/etc/tuxpaint" ;don't write to store
2733 ,(string-append "PREFIX=" %output)
2734 "GNOME_PREFIX=$(PREFIX)")
2735 #:parallel-build? #f ;race conditions
2736 #:tests? #f ;no tests
2737 #:phases (modify-phases %standard-phases
2738 (delete 'configure) ;no configure phase
2739 (add-before 'install 'gzip-no-name
2741 (substitute* "Makefile"
2742 ;; tuxpaint-config compresses its own documentation;
2743 ;; make sure it uses flags for reproducibility.
2744 (("gzip") "gzip --no-name"))))
2745 (add-before 'install 'make-install-dirs
2746 (lambda* (#:key outputs #:allow-other-keys)
2747 (let ((out (assoc-ref outputs "out")))
2748 (mkdir-p (string-append out "/bin"))
2750 (home-page (package-home-page tuxpaint))
2751 (synopsis "Configure Tux Paint")
2753 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2754 (license license:gpl2))) ;no "or later" present
2756 (define-public supertux
2762 (uri (string-append "https://github.com/SuperTux/supertux/"
2763 "releases/download/v" version "/SuperTux-v"
2764 version "-Source.tar.gz"))
2767 "1i8avad7w7ikj870z519j383ldy29r6f956bs38cbr8wk513pp69"))))
2770 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
2771 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
2772 (build-system cmake-build-system)
2773 (inputs `(("sdl2" ,sdl2)
2774 ("sdl2-image" ,sdl2-image)
2775 ("sdl2-mixer" ,sdl2-mixer)
2779 ("libvorbis" ,libvorbis)
2784 (native-inputs `(("pkg-config" ,pkg-config)))
2785 (synopsis "2D platformer game")
2786 (description "SuperTux is a free classic 2D jump'n run sidescroller game
2787 in a style similar to the original Super Mario games covered under
2789 (home-page "https://supertuxproject.org/")
2790 (license license:gpl3+)))
2792 (define-public tintin++
2798 (uri (string-append "https://sourceforge.net/projects/tintin"
2799 "/files/TinTin++ Source Code/" version
2800 "/tintin" "-" version ".tar.gz"))
2803 "13h39agyhlhm17zyqlb56bmbbxpimikyf5pana3gd3ylvqy1xq81"))))
2805 `(("gnutls" ,gnutls)
2807 ("readline" ,readline)
2810 '(#:tests? #f ; no test suite
2812 (modify-phases %standard-phases
2813 ;; The source is in tt/src.
2814 (add-before 'configure 'chdir
2818 (build-system gnu-build-system)
2819 (home-page "http://tintin.sourceforge.net/")
2820 (synopsis "MUD client")
2822 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
2823 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
2824 as well as those required to login via telnet on Linux / Mac OS X servers, and an
2825 auto mapper with a VT100 map display.")
2826 (license license:gpl2+)))
2833 (origin (method url-fetch)
2835 "https://github.com/sgimenez/laby/archive/"
2836 name "-" version ".tar.gz"))
2839 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
2840 (patches (search-patches "laby-make-install.patch"))))
2841 (build-system gnu-build-system)
2843 `(("lablgtk" ,lablgtk)
2845 ("ocaml-findlib" ,ocaml-findlib)))
2848 (modify-phases %standard-phases
2850 (add-before 'build 'setenv
2851 (lambda* (#:key inputs #:allow-other-keys)
2852 (let ((lablgtk (assoc-ref inputs "lablgtk")))
2853 (setenv "LD_LIBRARY_PATH"
2854 (string-append lablgtk "/lib/ocaml/stublibs"))))))
2855 #:tests? #f ; no 'check' target
2857 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
2858 (home-page "https://sgimenez.github.io/laby/")
2859 (synopsis "Programming game")
2860 (description "Learn programming, playing with ants and spider webs ;-)
2861 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
2862 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
2863 programmers may also add their own favorite language.")
2864 (license license:gpl3+)))
2866 (define-public bambam
2873 (uri (string-append "https://github.com/porridge/bambam/archive/"
2875 (file-name (string-append name "-" version ".tar.gz"))
2878 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
2879 (build-system python-build-system)
2881 `(#:python ,python-2
2882 #:tests? #f ; no tests
2884 (modify-phases %standard-phases
2886 (add-before 'install 'patch-data-dir-location
2888 (substitute* "bambam.py"
2889 (("'data'") "'../share/bambam/data'"))
2892 (lambda* (#:key outputs #:allow-other-keys)
2893 (let* ((out (assoc-ref outputs "out"))
2894 (bin (string-append out "/bin"))
2895 (share (string-append out "/share")))
2897 (copy-file "bambam.py" (string-append bin "/bambam"))
2898 (install-file "bambam.6" (string-append share "/man/man6"))
2899 (copy-recursively "data" (string-append share "/bambam/data")))
2902 `(("python-pygame" ,python-pygame)))
2903 (home-page "https://github.com/porridge/bambam")
2904 (synopsis "Keyboard mashing and doodling game for babies")
2905 (description "Bambam is a simple baby keyboard (and gamepad) masher
2906 application that locks the keyboard and mouse and instead displays bright
2907 colors, pictures, and sounds.")
2908 (license license:gpl3+)))
2910 (define-public mrrescue
2917 "https://github.com/SimonLarsen/mrrescue/releases/"
2918 "download/" version "/" name version ".love"))
2919 (file-name (string-append name "-" version ".love"))
2922 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
2923 (build-system trivial-build-system)
2925 '(#:modules ((guix build utils))
2928 (use-modules (guix build utils))
2929 (let* ((out (assoc-ref %outputs "out"))
2930 (bindir (string-append out "/bin"))
2931 (prog (string-append bindir "/mrrescue"))
2932 (source (assoc-ref %build-inputs "source"))
2933 (bash (string-append (assoc-ref %build-inputs "bash")
2935 (love (string-append (assoc-ref %build-inputs "love")
2938 (with-output-to-file prog
2940 (format #t "#!~a~%" bash)
2941 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
2947 (home-page "http://tangramgames.dk/games/mrrescue")
2948 (synopsis "Arcade-style fire fighting game")
2950 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
2951 civilians from burning buildings. The game features fast paced fire
2952 extinguishing action, intense boss battles, a catchy soundtrack and lots of
2953 throwing people around in pseudo-randomly generated buildings.")
2954 (license (list license:zlib ; for source code
2955 license:cc-by-sa3.0)))) ; for graphics and music assets
2957 (define-public hyperrogue
2964 "http://www.roguetemple.com/z/hyper/"
2968 "1ag95d84m4j0rqyn9hj7655znixw2j57bpf93nk14nfy02xz1g6p"))
2969 (modules '((guix build utils)))
2970 ;; Remove .exe and .dll files.
2972 '(for-each delete-file (find-files "." "\\.(exe|dll)$")))))
2973 (build-system gnu-build-system)
2975 '(#:tests? #f ; no check target
2976 #:make-flags '("-Csrc")
2978 (modify-phases %standard-phases
2979 (add-after 'set-paths 'set-sdl-paths
2980 (lambda* (#:key inputs #:allow-other-keys)
2982 (string-append (assoc-ref inputs "sdl-union")
2984 ;; Fix font and music paths.
2986 (lambda* (#:key inputs outputs #:allow-other-keys)
2987 (let ((out (assoc-ref outputs "out"))
2988 (dejavu-dir (string-append
2989 (assoc-ref inputs "font-dejavu")
2990 "/share/fonts/truetype"))
2991 (dejavu-font "DejaVuSans-Bold.ttf")
2992 (music-file "hyperrogue-music.txt"))
2993 (with-directory-excursion "src"
2994 (substitute* "graph.cpp"
2996 (string-append dejavu-dir "/" dejavu-font))
2997 (((string-append "\\./" music-file))
2998 (string-append out "/share/hyperrogue/" music-file)))
2999 (substitute* music-file
3001 (string-append out "/share/hyperrogue/")))))
3004 (lambda* (#:key inputs outputs #:allow-other-keys)
3005 (let* ((out (assoc-ref outputs "out"))
3006 (bin (string-append out "/bin"))
3007 (share-dir (string-append out "/share/hyperrogue")))
3009 (copy-file "src/hyper" (string-append bin "/hyperrogue"))
3011 (copy-file "src/hyperrogue-music.txt"
3012 (string-append share-dir "/hyperrogue-music.txt"))
3013 (for-each (lambda (file)
3014 (copy-file file (string-append share-dir "/" file)))
3015 (find-files "." "\\.ogg$")))
3018 `(("font-dejavu" ,font-dejavu)
3021 ("sdl-union" ,(sdl-union (list sdl
3025 (home-page "http://www.roguetemple.com/z/hyper/")
3026 (synopsis "Non-euclidean graphical rogue-like game")
3028 "HyperRogue is a game in which the player collects treasures and fights
3029 monsters -- rogue-like but for the fact that it is played on the hyperbolic
3030 plane and not in euclidean space.
3032 In HyperRogue, the player can move through different parts of the world, which
3033 are home to particular creatures and may be subject to own rules of \"physics\".
3035 While it can use ASCII characters to display the world the classical rogue
3036 symbols, the game needs graphics to render the non-euclidean world.")
3037 (license (list license:bsd-3 ; src/glew.c, src/mtrand.*
3038 license:cc-by-sa3.0 ; *.ogg
3039 license:public-domain ; src/direntx.*
3040 license:zlib ; src/savepng.*
3041 license:gpl2+)))) ; remaining files
3043 (define-public kobodeluxe
3049 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
3050 version ".tar.bz2"))
3053 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
3054 (patches (search-patches
3055 "kobodeluxe-const-charp-conversion.patch"
3056 "kobodeluxe-enemies-pipe-decl.patch"
3057 "kobodeluxe-graphics-window-signed-char.patch"
3058 "kobodeluxe-manpage-minus-not-hyphen.patch"
3059 "kobodeluxe-midicon-segmentation-fault.patch"
3060 "kobodeluxe-paths.patch"))))
3061 (build-system gnu-build-system)
3064 (list (string-append "CPPFLAGS=-I"
3065 (assoc-ref %build-inputs "sdl-union")
3067 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
3068 (synopsis "Shooter with space station destruction")
3070 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
3071 for Un*x systems with X11.")
3072 (home-page "http://olofson.net/kobodl/")
3073 (license license:gpl2+)))