1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2015, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
18 ;;; Copyright © 2016 Rodger Fox <thylakoid@openmailbox.org>
19 ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
20 ;;; Copyright © 2016 Nils Gillmann <niasterisk@grrlz.net>
21 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
22 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
23 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
24 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il"
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/"
1031 name "-" version ".tar.bz2"))
1034 "07d8ms9ayswg2g530p0zwmz3d77zv68l6nmc718iq9sbv90av6jr"))))
1035 (build-system cmake-build-system)
1037 '(#:tests? #f ; no check target
1039 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1040 ;; boost/mpl/assert.hpp:313:58: error:
1041 ;; use of old-style cast [-Werror=old-style-cast]
1043 ;; cc1plus: all warnings being treated as errors
1044 '("-DENABLE_STRICT_COMPILATION=OFF")))
1046 `(("gettext" ,gnu-gettext)
1047 ("pkg-config" ,pkg-config)))
1051 ("fribidi" ,fribidi)
1052 ("libvorbis" ,libvorbis)
1054 ("sdl-image" ,sdl-image)
1055 ("sdl-mixer" ,sdl-mixer)
1056 ("sdl-net" ,sdl-net)
1057 ("sdl-ttf" ,sdl-ttf)))
1058 (home-page "http://www.wesnoth.org/")
1059 (synopsis "Turn-based strategy game")
1061 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1062 with several single player campaigns, and multiplayer games (both networked and
1065 Battle for control on a range of maps, using variety of units which have
1066 advantages and disadvantages against different types of attacks. Units gain
1067 experience and advance levels, and are carried over from one scenario to the
1069 (license license:gpl2+)))
1071 (define-public dosbox
1074 (version "0.74.svn3947")
1078 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1080 (file-name (string-append name "-" version "-checkout"))
1081 ;; Use SVN head, since the last release (2010) is incompatible
1082 ;; with GCC 4.8+ (see
1083 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1086 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1087 (build-system gnu-build-system)
1089 `(#:phases (modify-phases %standard-phases
1093 (zero? (system* "sh" "autogen.sh")))))))
1095 `(("autoconf" ,autoconf)
1096 ("automake" ,automake)))
1101 ("alsa-lib" ,alsa-lib)
1104 (home-page "http://www.dosbox.com")
1105 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1106 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1107 also emulates CPU:286/386 realmode/protected mode, Directory
1108 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1109 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1111 (license license:gpl2+)))
1113 (define-public gamine
1119 (uri (string-append "mirror://sourceforge/gamine-game/"
1120 "gamine-" version ".tar.gz"))
1123 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1124 (build-system gnu-build-system)
1126 `(("pkg-config" ,pkg-config)
1127 ("intltool" ,intltool)))
1129 `(("gstreamer" ,gstreamer)
1130 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1131 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1136 (let ((out (assoc-ref %outputs "out")))
1137 (list (string-append "PREFIX=" out)
1138 (string-append "SYSCONFDIR=" out "/etc")))
1140 (modify-phases %standard-phases
1143 'install 'wrap-gamine
1144 (lambda* (#:key outputs #:allow-other-keys)
1145 (let ((out (assoc-ref outputs "out"))
1146 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1147 (wrap-program (string-append out "/bin/gamine")
1148 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1150 (home-page "http://gamine-game.sourceforge.net/")
1151 (synopsis "Mouse and keyboard discovery for children")
1153 "Gamine is a game designed for young children who are learning to use the
1154 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1155 on the screen and keyboard to display letters.")
1156 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1157 (license license:gpl3)))
1159 (define-public raincat
1167 "http://hackage.haskell.org/package/Raincat/Raincat-"
1172 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1173 (build-system haskell-build-system)
1175 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1176 ("ghc-mtl" ,ghc-mtl)
1177 ("ghc-random" ,ghc-random)
1178 ("ghc-glut" ,ghc-glut)
1179 ("ghc-opengl" ,ghc-opengl)
1180 ("ghc-sdl" ,ghc-sdl)
1181 ("ghc-sdl-image" ,ghc-sdl-image)
1182 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1183 (home-page "http://raincat.bysusanlin.com/")
1184 (synopsis "Puzzle game with a cat in lead role")
1185 (description "Project Raincat is a game developed by Carnegie Mellon
1186 students through GCS during the Fall 2008 semester. Raincat features game
1187 play inspired from classics Lemmings and The Incredible Machine. The project
1188 proved to be an excellent learning experience for the programmers. Everything
1189 is programmed in Haskell.")
1190 (license license:bsd-3)))
1192 (define-public manaplus
1199 "http://repo.manaplus.org/manaplus/download/"
1200 version "/manaplus-" version ".tar.xz"))
1203 "00sdw2mspdhrqvz0vl6jbnhiclj7vmvyjih9qf8dbkfw2s921ybc"))))
1204 (build-system gnu-build-system)
1207 (list (string-append "CPPFLAGS=-I"
1208 (assoc-ref %build-inputs "sdl-union")
1211 `(("pkg-config" ,pkg-config)))
1215 ("libxml2" ,libxml2)
1218 ("sdl-union" ,(sdl-union))))
1219 (home-page "http://manaplus.org")
1220 (synopsis "Client for 'The Mana World' and similar games")
1222 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1223 fully supported client for @uref{http://www.themanaworld.org, The mana
1224 world}, @uref{http://evolonline.org, Evol Online} and
1225 @uref{http://landoffire.org, Land of fire}.")
1226 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1227 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1228 ;; The rest is under GPL2+.
1229 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1231 (define-public mupen64plus-core
1233 (name "mupen64plus-core")
1239 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1241 (file-name (string-append name "-" version ".tar.gz"))
1243 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1244 (build-system gnu-build-system)
1246 `(("pkg-config" ,pkg-config)
1249 `(("freetype" ,freetype)
1257 (modify-phases %standard-phases
1258 ;; The mupen64plus build system has no configure phase.
1260 ;; Makefile is in a subdirectory.
1262 'build 'cd-to-project-dir
1264 (chdir "projects/unix"))))
1265 #:make-flags (let ((out (assoc-ref %outputs "out")))
1266 (list "all" (string-append "PREFIX=" out)))
1267 ;; There are no tests.
1269 ;; As per the Makefile (in projects/unix/Makefile):
1270 (supported-systems '("i686-linux" "x86_64-linux"))
1271 (home-page "http://www.mupen64plus.org/")
1272 (synopsis "Nintendo 64 emulator core library")
1274 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1275 which is capable of accurately playing many games. This package contains the
1277 (license license:gpl2+)))
1279 (define-public mupen64plus-audio-sdl
1281 (name "mupen64plus-audio-sdl")
1287 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1289 (file-name (string-append name "-" version ".tar.gz"))
1291 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1292 (build-system gnu-build-system)
1294 `(("pkg-config" ,pkg-config)
1297 `(("mupen64plus-core" ,mupen64plus-core)
1301 (modify-phases %standard-phases
1302 ;; The mupen64plus build system has no configure phase.
1304 ;; Makefile is in a subdirectory.
1306 'build 'cd-to-project-dir
1308 (chdir "projects/unix"))))
1310 (let ((out (assoc-ref %outputs "out"))
1311 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1313 (string-append "PREFIX=" out)
1314 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1315 ;; There are no tests.
1317 (home-page "http://www.mupen64plus.org/")
1318 (synopsis "Mupen64Plus SDL input plugin")
1320 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1321 which is capable of accurately playing many games. This package contains the
1323 (license license:gpl2+)))
1325 (define-public mupen64plus-input-sdl
1327 (name "mupen64plus-input-sdl")
1333 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1335 (file-name (string-append name "-" version ".tar.gz"))
1337 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1338 (build-system gnu-build-system)
1340 `(("which" ,which)))
1342 `(("mupen64plus-core" ,mupen64plus-core)
1346 (modify-phases %standard-phases
1347 ;; The mupen64plus build system has no configure phase.
1349 ;; Makefile is in a subdirectory.
1351 'build 'cd-to-project-dir
1353 (chdir "projects/unix"))))
1355 (let ((out (assoc-ref %outputs "out"))
1356 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1358 (string-append "PREFIX=" out)
1359 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1360 ;; There are no tests.
1362 (home-page "http://www.mupen64plus.org/")
1363 (synopsis "Mupen64Plus SDL input plugin")
1365 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1366 which is capable of accurately playing many games. This package contains the
1368 (license license:gpl2+)))
1370 (define-public mupen64plus-rsp-hle
1372 (name "mupen64plus-rsp-hle")
1378 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1380 (file-name (string-append name "-" version ".tar.gz"))
1382 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1383 (build-system gnu-build-system)
1385 `(("mupen64plus-core" ,mupen64plus-core)))
1388 (modify-phases %standard-phases
1389 ;; The mupen64plus build system has no configure phase.
1391 ;; Makefile is in a subdirectory.
1393 'build 'cd-to-project-dir
1395 (chdir "projects/unix"))))
1397 (let ((out (assoc-ref %outputs "out"))
1398 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1400 (string-append "PREFIX=" out)
1401 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1402 ;; There are no tests.
1404 (home-page "http://www.mupen64plus.org/")
1405 (synopsis "Mupen64Plus SDL input plugin")
1407 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1408 which is capable of accurately playing many games. This package contains the
1409 high-level emulation (HLE) RSP processor plugin.")
1410 (license license:gpl2+)))
1412 (define-public mupen64plus-rsp-z64
1414 (name "mupen64plus-rsp-z64")
1420 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1422 (file-name (string-append name "-" version ".tar.gz"))
1424 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1425 (build-system gnu-build-system)
1427 `(("mupen64plus-core" ,mupen64plus-core)))
1430 (modify-phases %standard-phases
1431 ;; The mupen64plus build system has no configure phase.
1433 ;; Makefile is in a subdirectory.
1435 'build 'cd-to-project-dir
1437 (chdir "projects/unix"))))
1439 (let ((out (assoc-ref %outputs "out"))
1440 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1442 (string-append "PREFIX=" out)
1443 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1444 ;; There are no tests.
1446 (home-page "http://www.mupen64plus.org/")
1447 (synopsis "Mupen64Plus SDL input plugin")
1449 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1450 which is capable of accurately playing many games. This package contains the
1451 Z64 RSP processor plugin.")
1452 (license license:gpl2+)))
1454 (define-public mupen64plus-video-arachnoid
1456 (name "mupen64plus-video-arachnoid")
1462 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1464 (file-name (string-append name "-" version ".tar.gz"))
1466 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1467 (build-system gnu-build-system)
1469 `(("pkg-config" ,pkg-config)
1473 ("mupen64plus-core" ,mupen64plus-core)))
1476 (modify-phases %standard-phases
1477 ;; The mupen64plus build system has no configure phase.
1479 ;; Makefile is in a subdirectory.
1481 'build 'cd-to-project-dir
1483 (chdir "projects/unix"))))
1485 (let ((out (assoc-ref %outputs "out"))
1486 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1488 (string-append "PREFIX=" out)
1489 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1490 ;; There are no tests.
1492 (home-page "http://www.mupen64plus.org/")
1493 (synopsis "Mupen64Plus Rice Video plugin")
1495 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1496 which is capable of accurately playing many games. This package contains the
1497 Arachnoid video plugin.")
1498 (license license:gpl2+)))
1500 (define-public mupen64plus-video-glide64
1502 (name "mupen64plus-video-glide64")
1508 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1510 (file-name (string-append name "-" version ".tar.gz"))
1512 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1513 (build-system gnu-build-system)
1515 `(("pkg-config" ,pkg-config)
1519 ("mupen64plus-core" ,mupen64plus-core)
1523 (modify-phases %standard-phases
1524 ;; The mupen64plus build system has no configure phase.
1526 ;; Makefile is in a subdirectory.
1528 'build 'cd-to-project-dir
1530 (chdir "projects/unix")))
1531 ;; XXX Should be unnecessary with the next release.
1535 (substitute* "Makefile"
1536 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1537 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1539 (let ((out (assoc-ref %outputs "out"))
1540 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1542 (string-append "PREFIX=" out)
1543 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1544 ;; There are no tests.
1546 (home-page "http://www.mupen64plus.org/")
1547 (synopsis "Mupen64Plus Rice Video plugin")
1549 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1550 which is capable of accurately playing many games. This package contains the
1551 Glide64 video plugin.")
1552 (license license:gpl2+)))
1554 (define-public mupen64plus-video-glide64mk2
1556 (name "mupen64plus-video-glide64mk2")
1562 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1564 (file-name (string-append name "-" version ".tar.gz"))
1566 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1567 (build-system gnu-build-system)
1569 `(("pkg-config" ,pkg-config)
1575 ("mupen64plus-core" ,mupen64plus-core)
1580 (modify-phases %standard-phases
1581 ;; The mupen64plus build system has no configure phase.
1583 ;; Makefile is in a subdirectory.
1585 'build 'cd-to-project-dir
1587 (chdir "projects/unix"))))
1589 (let ((out (assoc-ref %outputs "out"))
1590 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1592 (string-append "PREFIX=" out)
1593 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1594 ;; There are no tests.
1596 (home-page "http://www.mupen64plus.org/")
1597 (synopsis "Mupen64Plus Rice Video plugin")
1599 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1600 which is capable of accurately playing many games. This package contains the
1601 Glide64MK2 video plugin.")
1602 (license license:gpl2+)))
1604 (define-public mupen64plus-video-rice
1606 (name "mupen64plus-video-rice")
1612 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1614 (file-name (string-append name "-" version ".tar.gz"))
1616 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1617 (build-system gnu-build-system)
1619 `(("pkg-config" ,pkg-config)
1622 `(("libpng" ,libpng)
1624 ("mupen64plus-core" ,mupen64plus-core)
1628 (modify-phases %standard-phases
1629 ;; The mupen64plus build system has no configure phase.
1631 ;; Makefile is in a subdirectory.
1633 'build 'cd-to-project-dir
1635 (chdir "projects/unix"))))
1637 (let ((out (assoc-ref %outputs "out"))
1638 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1640 (string-append "PREFIX=" out)
1641 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1642 ;; There are no tests.
1644 (home-page "http://www.mupen64plus.org/")
1645 (synopsis "Mupen64Plus Rice Video plugin")
1647 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1648 which is capable of accurately playing many games. This package contains the
1649 Rice Video plugin.")
1650 (license license:gpl2+)))
1652 (define-public mupen64plus-video-z64
1654 (name "mupen64plus-video-z64")
1660 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1662 (file-name (string-append name "-" version ".tar.gz"))
1664 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1665 (build-system gnu-build-system)
1667 `(("pkg-config" ,pkg-config)
1671 ("mupen64plus-core" ,mupen64plus-core)
1675 (modify-phases %standard-phases
1676 ;; The mupen64plus build system has no configure phase.
1678 ;; Makefile is in a subdirectory.
1680 'build 'cd-to-project-dir
1682 (chdir "projects/unix")))
1683 ;; XXX Should be unnecessary with the next release.
1687 (substitute* "Makefile"
1688 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1689 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1691 (let ((out (assoc-ref %outputs "out"))
1692 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1694 (string-append "PREFIX=" out)
1695 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1696 ;; There are no tests.
1698 (home-page "http://www.mupen64plus.org/")
1699 (synopsis "Mupen64Plus Z64 video plugin")
1701 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1702 which is capable of accurately playing many games. This package contains the
1704 (license license:gpl2+)))
1706 (define-public mupen64plus-ui-console
1708 (name "mupen64plus-ui-console")
1714 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1716 (file-name (string-append name "-" version ".tar.gz"))
1718 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1719 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1720 (build-system gnu-build-system)
1722 `(("pkg-config" ,pkg-config)
1726 ;; Mupen64Plus supports a single data directory and a single plugin
1727 ;; directory in its configuration, yet we need data and plugin files from
1728 ;; a variety of packages. The best way to deal with this is to install
1729 ;; all packages from which data and plugin files are needed into one's
1730 ;; profile, and point the configuration there. Hence, propagate the most
1731 ;; important packages here to save the user from the bother. The patch
1732 ;; mupen64plus-ui-console-notice also gives users instructions on what
1733 ;; they need to do in order to point the configuration to their profile.
1735 `(("mupen64plus-core" ,mupen64plus-core)
1736 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1737 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1738 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1739 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1740 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1741 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1744 (modify-phases %standard-phases
1745 ;; The mupen64plus build system has no configure phase.
1747 ;; Makefile is in a subdirectory.
1749 'build 'cd-to-project-dir
1751 (chdir "projects/unix"))))
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 ;; Trailing slash matters here.
1759 (string-append "COREDIR=" m64p "/lib/")))
1760 ;; There are no tests.
1762 (home-page "http://www.mupen64plus.org/")
1763 (synopsis "Mupen64Plus SDL input plugin")
1765 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1766 which is capable of accurately playing many games. This package contains the
1767 command line user interface. Installing this package is the easiest way
1768 towards a working Mupen64Plus for casual users.")
1769 (license license:gpl2+)))
1771 (define-public nestopia-ue
1773 (name "nestopia-ue")
1778 "https://github.com/rdanbrook/nestopia/archive/"
1780 (file-name (string-append name "-" version ".tar.gz"))
1783 "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
1784 (modules '((guix build utils)))
1787 ;; We don't need libretro for the GNU/Linux build.
1788 (delete-file-recursively "libretro")
1790 (delete-file-recursively "source/zlib")
1791 (substitute* "source/core/NstZlib.cpp"
1792 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1793 (build-system gnu-build-system)
1795 `(("pkg-config" ,pkg-config)))
1800 ("libarchive" ,libarchive)
1806 (modify-phases %standard-phases
1807 ;; The Nestopia build system consists solely of a Makefile.
1809 ;; XXX Should be unnecessary with the next release.
1811 'build 'patch-makefile
1813 (substitute* "Makefile"
1814 (("@mkdir \\$@") "@mkdir -p $@")
1816 (("CXX =") "CXX ?=")
1817 (("PREFIX =") "PREFIX ?=")
1818 (("^install:\n$") "install:\n\tmkdir -p $(BINDIR)\n"))))
1820 'build 'remove-xdg-desktop-menu-call
1822 (substitute* "Makefile"
1823 (("xdg-desktop-menu install .*") "")))))
1824 #:make-flags (let ((out (assoc-ref %outputs "out")))
1825 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1826 ;; There are no tests.
1828 (home-page "http://0ldsk00l.ca/nestopia/")
1829 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1831 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1832 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1833 emulation community. It provides highly accurate emulation.")
1834 (license license:gpl2+)))
1836 (define-public emulation-station
1837 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1839 (name "emulation-station")
1842 (method git-fetch) ; no tarball available
1844 (url "https://github.com/Aloshi/EmulationStation.git")
1845 (commit commit))) ; no version tag
1848 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1849 (build-system cmake-build-system)
1851 '(#:tests? #f)) ; no tests
1853 `(("alsa-lib" ,alsa-lib)
1857 ("freeimage" ,freeimage)
1858 ("freetype" ,freetype)
1861 (synopsis "Video game console emulator front-end")
1862 (description "EmulationStation provides a graphical front-end to a large
1863 number of video game console emulators. It features an interface that is
1864 usable with any game controller that has at least 4 buttons, theming support,
1865 and a game metadata scraper.")
1866 (home-page "http://www.emulationstation.org")
1867 (license license:expat))))
1869 (define openttd-engine
1871 (name "openttd-engine")
1874 (origin (method url-fetch)
1875 (uri (string-append "http://binaries.openttd.org/releases/"
1876 version "/openttd-" version "-source.tar.xz"))
1879 "1cjf9gz7d0sn7893wv9d00q724sxv3d81bgb0c5f5ppz2ssyc4jc"))
1880 (modules '((guix build utils)))
1882 ;; The DOS port contains proprietary software.
1883 '(delete-file-recursively "os/dos"))))
1884 (build-system gnu-build-system)
1886 `(#:tests? #f ; no "check" target
1888 (modify-phases %standard-phases
1889 ;; The build process fails if the configure script is passed the
1890 ;; option "--enable-fast-install".
1892 (lambda* (#:key inputs outputs #:allow-other-keys)
1893 (let ((out (assoc-ref outputs "out"))
1894 (lzo (assoc-ref inputs "lzo")))
1896 (system* "./configure"
1897 (string-append "--prefix=" out)
1898 ;; Provide the "lzo" path.
1899 (string-append "--with-liblzo2="
1900 lzo "/lib/liblzo2.a")
1901 ;; Put the binary in 'bin' instead of 'games'.
1902 "--binary-dir=bin"))))))))
1903 (native-inputs `(("pkg-config" ,pkg-config)))
1905 `(("allegro" ,allegro-4)
1906 ("fontconfig" ,fontconfig)
1907 ("freetype" ,freetype)
1914 (synopsis "Transportation economics simulator")
1915 (description "OpenTTD is a game in which you transport goods and
1916 passengers by land, water and air. It is a re-implementation of Transport
1917 Tycoon Deluxe with many enhancements including multiplayer mode,
1918 internationalization support, conditional orders and the ability to clone,
1919 autoreplace and autoupdate vehicles.")
1920 (home-page "http://openttd.org/")
1921 ;; This package is GPLv2, except for a few files located in
1922 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1923 ;; licenses. In addition, this software contains an in-game downloader
1924 ;; from which the user may find non-functional data licensed under
1926 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1928 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1929 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1930 ;; but it asks a user to download graphics if it's not found.
1932 (define-public openttd
1934 (inherit openttd-engine)
1937 (define-public pinball
1942 (origin (method url-fetch)
1943 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1944 "pinball-" version "/"
1945 "pinball-" version ".tar.gz"))
1948 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
1949 (patches (search-patches "pinball-const-fix.patch"
1950 "pinball-cstddef.patch"
1951 "pinball-missing-separators.patch"
1952 "pinball-src-deps.patch"
1953 "pinball-system-ltdl.patch"))))
1954 (build-system gnu-build-system)
1959 ("sdl-image" ,sdl-image)
1960 ("sdl-mixer" ,sdl-mixer)))
1963 (list (string-append "CPPFLAGS=-I"
1964 (assoc-ref %build-inputs "sdl-image")
1966 (assoc-ref %build-inputs "sdl-mixer")
1968 (home-page "http://pinball.sourceforge.net")
1969 (synopsis "Pinball simulator")
1970 (description "The Emilia Pinball Project is a pinball simulator. There
1971 are only two levels to play with, but they are very addictive.")
1972 (license license:gpl2)))
1974 (define-public pioneers
1980 (uri (string-append "http://downloads.sourceforge.net/pio/"
1981 "pioneers-" version ".tar.gz"))
1984 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
1985 (build-system gnu-build-system)
1986 (inputs `(("gtk+" ,gtk+)
1987 ("librsvg" ,librsvg)
1989 (native-inputs `(("intltool" ,intltool)
1990 ("pkg-config" ,pkg-config)))
1991 (synopsis "Board game inspired by The Settlers of Catan")
1992 (description "Pioneers is an emulation of the board game The Settlers of
1993 Catan. It can be played on a local network, on the internet, and with AI
1995 (home-page "http://pio.sourceforge.net/")
1996 (license license:gpl2+)))
1998 (define-public desmume
2006 "mirror://sourceforge/desmume/desmume/"
2007 version "/desmume-" version ".tar.gz"))
2010 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
2011 (build-system gnu-build-system)
2013 ;; Enable support for WiFi and microphone.
2014 `(#:configure-flags '("--enable-wifi"
2015 "--enable-openal")))
2017 `(("pkg-config" ,pkg-config)
2018 ("intltool" ,intltool)))
2025 (home-page "http://desmume.org/")
2026 (synopsis "Nintendo DS emulator")
2028 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2029 (license license:gpl2)))
2031 (define-public einstein
2037 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2038 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2041 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2042 (patches (search-patches "einstein-build.patch"))))
2043 (build-system gnu-build-system)
2045 `(("freetype" ,freetype)
2046 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2049 `(("font-dejavu" ,font-dejavu)))
2051 `(#:tests? #f ; no check target
2053 (modify-phases %standard-phases
2055 (lambda* (#:key outputs inputs #:allow-other-keys)
2056 (let ((out (assoc-ref outputs "out"))
2057 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2058 "/share/fonts/truetype/DejaVuSans.ttf")))
2059 (substitute* "Makefile"
2060 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2061 ;; The patch above registers a free font for use by the binary,
2062 ;; but the font is copied during the compile phase into a
2063 ;; resources file, so we need to make the ttf file available.
2064 (symlink dejavu "res/DejaVuSans.ttf")
2066 (synopsis "Logic puzzle game")
2067 (description "The goal of this logic game is to open all cards in a 6x6
2068 grid, using a number of hints as to their relative position. The game idea
2069 is attributed to Albert Einstein.")
2070 ;; The original home page has disappeared.
2071 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2072 "http://games.flowix.com/en/index.html"))
2073 ;; License according to
2074 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2075 ;; The source code is a DFSG-sanitized tarball and does not contain any
2076 ;; license information.
2077 (license license:gpl3+)))
2079 (define-public powwow
2086 "http://www.hoopajoo.net/static/projects/powwow-"
2088 (file-name (string-append name "-" version ".tar.gz"))
2091 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2093 `(("ncurses" ,ncurses)))
2094 (build-system gnu-build-system)
2095 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2096 (synopsis "MUD and telnet client")
2098 "POWWOW is a client software which can be used for telnet as well as for
2099 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2100 the chat server psyced with the specific config located at
2101 http://lavachat.symlynx.com/unix/")
2102 (license license:gpl2+)))
2104 (define-public red-eclipse
2106 '(("acerspyro" "0gxxr6nbac918b49x1cp72nw951hqm5m4iyi2shb1612ly384w8q")
2107 ("actors" "1jq9q82m6nx07nwpb5cnpdcwa33jrcgg0j2yir8zk6zpnxdmp0il")
2108 ("appleflap" "1cn41c6xs68l88rmphqh4rlsh6h04xnkkvklxdpqpvvr4zlsmi85")
2109 ("blendbrush" "0wjbgnniirl9arv274m8mpdqbbq7d09g0pq1z9dl56sazmbk5yy0")
2110 ("caustics" "0gxv1pqhi6c27mqi9mwqyfnzv9rq5sva1vgxhb9ljh231rmkdc15")
2111 ("crosshairs" "0vlyhd10mly2qnjpwvss9ani7dg3v2njpf7457ilx7fk9a3hlbkk")
2112 ("elyvisions" "0s0l77rd9fd09imvj05pwcz4bqrn3j8qsw8prv5pi5bqa50mbn19")
2113 ("fonts" "0apn8j9lf43nmnidq1f0azhrr1n896g7si4djbix1bwll6ild0mq")
2114 ("freezurbern" "0y60s3g8v8bl2m6pk2yr9fzl67ymv821x6l2f9hszzydlcjwlscn")
2115 ("john" "1lmwn0r7qpyac2qrnkv9llhsbyzqpgr27hxq2qn1rfbq12fja0ld")
2116 ("jojo" "0sh3ricqlqw868a0mz2n9iw7lhp650pysd2wkcdizhcmw2hlayx9")
2117 ("jwin" "1r459jhxx64j3vdw886ypkm6zg0yg6cr2qark54i1zdskjhp762k")
2118 ("luckystrike" "08xq87crcz0jq45q1g6p8h4xrm1bcqzd019zp7n0f9c3p9j6al91")
2119 ("maps" "1f0hqh8mbd4nzqi4hja4k5f380nszhx8igajg5ini4p9cp39x9vi")
2120 ("mayhem" "1hn9jp64aiz8k6p2nxyg82h2nc8fadgghzhrm26y7i4bz9xwxacm")
2121 ("mikeplus64" "1kj2zznxykgm3f1h1fvd8xzim5f292lyh96l2gj5km1nynzjmaap")
2122 ("misc" "1phmzjs5rmika3568b7jb6ywbsi40r711rhg8cbsflllcp7hdidf")
2123 ("nobiax" "08in9c24m2pq7x371q10ny4q3l1l3zb8m029iypy2lx9gr99i7hm")
2124 ("particles" "0wcd3s6vhrjknffnfqrcpkcqk1r01f1fiz6q7n4srhpdv3i4d6vm")
2125 ("philipk" "1s0kmap8iv5sddanrhycblskj3ywvz9xg2m11f6vnfy108palkga")
2126 ("projectiles" "0xdhrs9rsncd1f88s5igdbfksli7h0irg5jdbj6p2a3rgdzb3gnj")
2127 ("props" "1sbh3a94pmzic78bil0dvdh4fd8s6gh52f77jdram3w0gwv79x3r")
2128 ("skyboxes" "0hy95a6ps0fk4cq8j6pjipk8rnsjna9bm0ly2l373gbshlfg6zgi")
2129 ("sounds" "1pnyd7acm19sj1k1cy9hq3n3dnzzaiak7j5f0h7fikiybq5rdk7b")
2130 ("textures" "0gxfnc4xm0kp3pd7lhd4yy1dqq00g727h21l64nyiw2b2d6n1755")
2131 ("torley" "1cri5mf8ls8mvpn1x1p9hacyg9ibilaiz07gqv2hl2q8ww5xc1s6")
2132 ("trak" "0xyk5z59kn9ym9n5fdcrwhqig6gjcjgnrgi9rqbbai713w9vpsbq")
2133 ("ulukai" "0ziv9c4inmza40mas1w9dp048y6f646x00bs7kqv33hd1snbg3v3")
2134 ("unnamed" "0hm291k9azilnp0m04zhm52vml1rhxk1z4l74v66spbikr6s2zdx")
2135 ("vanities" "1qbc2v67kdrlvq10miw3dfmg3j9w9bq1hgqrzjcbph0l4gra1ndw")
2136 ("vegetation" "13928yw0wflcj620cmp8rqwplaw8508f3j4zi32vxida1ksz6xn0")
2137 ("weapons" "1ghn6nfcnd5lyl8dnj22csldvf9hrb32wjzpab4sjjz3iyv0zmr3")
2138 ("wicked" "0q9badvg6ix5rhl05s83kw2v6a49jpnbkqk4ls89qahaddfagi8g"))))
2140 (name "red-eclipse")
2144 (uri (string-append "https://github.com/red-eclipse/base"
2145 "/archive/v" version ".tar.gz"))
2146 (file-name (string-append name "-" version ".tar.gz"))
2149 "1y0jv5lz69zisiw8sd5z9a9v21zc83by1sx9b7dly78ngif4gc4l"))))
2150 (build-system gnu-build-system)
2152 `(#:tests? #f ; no check target
2153 #:make-flags (list "CC=gcc" "-Csrc"
2154 (string-append "INSTDIR="
2155 (assoc-ref %outputs "out") "/bin"))
2157 (modify-phases %standard-phases
2158 (add-after 'unpack 'unpack-data
2159 (lambda* (#:key inputs #:allow-other-keys)
2160 (delete-file-recursively "data")
2162 (for-each (lambda (name)
2163 (system* "tar" "-xvf"
2164 (assoc-ref inputs name)
2170 (list ,@(map car data-sources)))
2172 (delete 'configure) ; no configure script
2173 (add-after 'set-paths 'set-sdl-paths
2174 (lambda* (#:key inputs #:allow-other-keys)
2176 (string-append (assoc-ref inputs "sdl-union")
2179 (add-after 'install 'copy-data
2180 (lambda* (#:key outputs #:allow-other-keys)
2181 (let ((out (assoc-ref outputs "out")))
2182 (copy-recursively "config"
2183 (string-append out "/config"))
2184 (copy-recursively "data"
2185 (string-append out "/data")))
2187 (add-after 'copy-data 'wrap-program
2188 (lambda* (#:key inputs outputs #:allow-other-keys)
2189 (let* ((out (assoc-ref outputs "out"))
2190 (bin (string-append out "/bin")))
2191 (with-directory-excursion bin
2192 (rename-file "redeclipse_linux"
2193 ".redeclipse_linux-real")
2194 (rename-file "redeclipse_server_linux"
2195 ".redeclipse_server_linux-real")
2196 (call-with-output-file "redeclipse_linux"
2198 (format port "#!~a/bin/sh
2199 # Run the thing from its home, otherwise it just bails out.
2201 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2202 (assoc-ref inputs "bash") ;implicit input
2204 (string-append bin))))
2205 (call-with-output-file "redeclipse_server_linux"
2207 (format port "#!~a/bin/sh
2208 # Run the thing from its home, otherwise it just bails out.
2210 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2211 (assoc-ref inputs "bash") ;implicit input
2213 (string-append bin))))
2214 (chmod "redeclipse_linux" #o555)
2215 (chmod "redeclipse_server_linux" #o555)))
2217 (native-inputs `(("pkg-config" ,pkg-config)))
2221 ("sdl-union" ,(sdl-union))
2222 ;; Create origin records for the many separate data packages.
2223 ,@(map (match-lambda
2229 "https://github.com/red-eclipse/"
2230 name "/archive/v" version ".tar.gz"))
2231 (sha256 (base32 hash))
2232 (file-name (string-append name "-" version
2235 (home-page "http://redeclipse.net/")
2236 (synopsis "Arena shooter derived from the Cube 2 engine")
2238 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2239 Offering an innovative parkour system and distinct but all potent weapons,
2240 Red Eclipse provides fast paced and accessible gameplay.")
2241 ;; The engine is under Zlib; data files are covered by the other
2242 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2243 (license (list license:expat
2249 (define-public higan
2257 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2259 (file-name (string-append name "-" version ".tar.gz"))
2261 (base32 "0xlzjqrd308hmg6yjzjkmxkkr9p3w387kf6yxyplb47jcbx2sq4n"))
2262 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2263 (build-system gnu-build-system)
2265 `(("pkg-config" ,pkg-config)))
2267 `(("alsa-lib" ,alsa-lib)
2271 ("gtksourceview-2" ,gtksourceview-2)
2275 ("pulseaudio" ,pulseaudio)
2279 (let ((build-phase (assoc-ref %standard-phases 'build))
2280 (install-phase (assoc-ref %standard-phases 'install)))
2281 (modify-phases %standard-phases
2282 ;; The higan build system has no configure phase.
2284 (add-before 'build 'chdir-to-higan
2287 (add-before 'install 'create-/share/applications
2288 (lambda* (#:key outputs #:allow-other-keys)
2289 (let ((out (assoc-ref outputs "out")))
2290 ;; It seems the author forgot to do this in the Makefile.
2291 (mkdir-p (string-append out "/share/applications")))))
2292 (add-after 'install 'chdir-to-icarus
2294 (chdir "../icarus")))
2295 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2296 (add-after 'build-icarus 'install-icarus install-phase)
2297 (add-after 'install-icarus 'wrap-higan-executable
2298 (lambda* (#:key inputs outputs #:allow-other-keys)
2299 (let* ((out (assoc-ref outputs "out"))
2300 (bin (string-append out "/bin"))
2301 (higan (string-append bin "/higan"))
2302 (higan-original (string-append higan "-original"))
2303 (bash (string-append (assoc-ref inputs "bash")
2305 (coreutils (assoc-ref inputs "coreutils"))
2306 (mkdir (string-append coreutils "/bin/mkdir"))
2307 (cp (string-append coreutils "/bin/cp"))
2308 (cp-r (string-append cp " -r --no-preserve=mode")))
2309 ;; First, have the executable make sure ~/.local/share/higan
2310 ;; contains up to date files. Higan insists on looking there
2311 ;; for these data files.
2312 (rename-file higan higan-original)
2313 (with-output-to-file higan
2318 ;; higan doesn't respect $XDG_DATA_HOME
2319 mkdir " -p ~/.local/share\n"
2320 cp-r " " out "/share/higan ~/.local/share\n"
2321 "exec " higan-original))))
2323 ;; Second, make sure higan will find icarus in PATH.
2325 `("PATH" ":" prefix (,bin))))))))
2327 (list "compiler=g++"
2328 (string-append "prefix=" (assoc-ref %outputs "out")))
2329 ;; There is no test suite.
2331 (home-page "http://byuu.org/emulation/higan/")
2332 (synopsis "Nintendo multi-system emulator")
2334 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2335 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2336 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2337 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2338 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2339 ;; As noted in these files among more:
2340 ;; - icarus/icarus.cpp
2341 ;; - higan/emulator/emulator.hpp
2342 (license license:gpl3)))
2344 (define-public grue-hunter
2346 (name "grue-hunter")
2350 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2353 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2354 (build-system trivial-build-system) ; no Makefile.PL
2355 (arguments `(#:modules ((guix build utils))
2358 (use-modules (guix build utils))
2359 (use-modules (srfi srfi-1))
2361 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2362 (perl (string-append (assoc-ref %build-inputs
2365 (gzip (string-append (assoc-ref %build-inputs
2368 (tar (string-append (assoc-ref %build-inputs
2371 (out (assoc-ref %outputs "out"))
2372 (bin (string-append out "/bin"))
2373 (doc (string-append out "/share/doc")))
2376 (copy-file tarball "grue-hunter.tar.gz")
2377 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2378 (zero? (system* tar "xvf" "grue-hunter.tar"))
2381 (copy-file "grue-hunter/gh.pl"
2382 (string-append bin "/grue-hunter"))
2383 (patch-shebang (string-append bin "/grue-hunter")
2387 (copy-file "grue-hunter/AGPLv3.txt"
2388 (string-append doc "/grue-hunter")))))))
2389 (inputs `(("perl" ,perl)
2392 ("tarball" ,source)))
2393 (home-page "http://jxself.org/grue-hunter.shtml")
2394 (synopsis "Text adventure game")
2396 "Grue Hunter is a text adventure game written in Perl. You must make
2397 your way through an underground cave system in search of the Grue. Can you
2398 capture it and get out alive?")
2399 (license license:agpl3+)))
2401 (define-public warzone2100
2403 (name "warzone2100")
2407 (uri (string-append "mirror://sourceforge/" name
2408 "/releases/" version "/" name "-" version
2412 "0hm49i2knvvg3wlnryv7h4m84s3qa7jfyym5yy6365sx8wzcrai1"))))
2413 (build-system gnu-build-system)
2415 `(#:phases (modify-phases %standard-phases
2416 (add-after 'set-paths 'set-sdl-paths
2417 (lambda* (#:key inputs #:allow-other-keys)
2419 (string-append (assoc-ref inputs "sdl-union")
2422 (native-inputs `(("pkg-config" ,pkg-config)
2425 (inputs `(("fontconfig" ,fontconfig)
2426 ("freetype" ,freetype)
2427 ("fribidi" ,fribidi)
2429 ("libtheora" ,libtheora)
2430 ("libvorbis" ,libvorbis)
2431 ("libxrandr" ,libxrandr)
2435 ("quesoglc" ,quesoglc)
2436 ("sdl-union" ,(sdl-union))))
2437 (home-page "http://wz2100.net")
2438 (synopsis "3D Real-time strategy and real-time tactics game")
2440 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2441 modes. An extensive tech tree with over 400 different technologies, combined
2442 with the unit design system, allows for a wide variety of possible units and
2444 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2445 (license (list license:bsd-3
2450 license:lgpl2.1+))))
2452 (define-public starfighter
2454 (name "starfighter")
2459 "mirror://savannah/starfighter/"
2460 (version-major+minor version) "/"
2461 name "-" version "-src.tar.gz"))
2464 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2465 (build-system gnu-build-system)
2467 '(#:tests? #f ; no check target
2469 (let ((out (assoc-ref %outputs "out")))
2470 (list (string-append "PREFIX=" out)
2471 (string-append "BINDIR=" out "/bin/")))
2473 (modify-phases %standard-phases
2474 ;; no configure script
2475 (delete 'configure))))
2477 `(("pkg-config" ,pkg-config)))
2480 ("sdl2-image" ,sdl2-image)
2481 ("sdl2-mixer" ,sdl2-mixer)))
2482 (home-page "http://starfighter.nongnu.org/")
2483 (synopsis "2D scrolling shooter game")
2485 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2486 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2487 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2488 way, you will encounter new foes, make new allies, and assist local rebels
2489 in strikes against the evil corporation.")
2490 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2491 (license (list license:gpl3+
2495 license:public-domain))))