1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
4 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
6 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
7 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
8 ;;; Copyright © 2014, 2015 Sou Bunnbu <iyzsong@gmail.com>
9 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
10 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
11 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
12 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
15 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
16 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages games)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix utils)
36 #:use-module (guix packages)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix svn-download)
40 #:use-module (gnu packages)
41 #:use-module (gnu packages algebra)
42 #:use-module (gnu packages autotools)
43 #:use-module (gnu packages backup)
44 #:use-module (gnu packages base)
45 #:use-module (gnu packages admin)
46 #:use-module (gnu packages audio)
47 #:use-module (gnu packages boost)
48 #:use-module (gnu packages fribidi)
49 #:use-module (gnu packages game-development)
50 #:use-module (gnu packages gettext)
51 #:use-module (gnu packages gl)
52 #:use-module (gnu packages glib)
53 #:use-module (gnu packages gnome)
54 #:use-module (gnu packages gtk)
55 #:use-module (gnu packages guile)
56 #:use-module (gnu packages libcanberra)
57 #:use-module (gnu packages libunwind)
58 #:use-module (gnu packages haskell)
59 #:use-module (gnu packages mp3)
60 #:use-module (gnu packages image)
61 #:use-module (gnu packages ncurses)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages readline)
64 #:use-module (gnu packages xorg)
65 #:use-module (gnu packages pkg-config)
66 #:use-module (gnu packages databases)
67 #:use-module (gnu packages sdl)
68 #:use-module (gnu packages texinfo)
69 #:use-module (gnu packages check)
70 #:use-module (gnu packages fontutils)
71 #:use-module (gnu packages gstreamer)
72 #:use-module (gnu packages bash)
73 #:use-module (gnu packages perl)
74 #:use-module (gnu packages qt)
75 #:use-module (gnu packages compression)
76 #:use-module (gnu packages pulseaudio)
77 #:use-module (gnu packages linux)
78 #:use-module (gnu packages zip)
79 #:use-module (gnu packages xiph)
80 #:use-module (gnu packages curl)
81 #:use-module (gnu packages lua)
82 #:use-module (gnu packages video)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages tcl)
85 #:use-module (gnu packages fribidi)
86 #:use-module (guix build-system trivial)
87 #:use-module (guix build-system gnu)
88 #:use-module (guix build-system haskell)
89 #:use-module (guix build-system cmake)
90 #:use-module (guix build-system trivial))
99 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
100 version ".000-sources." "tar.gz"))
103 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
104 (build-system gnu-build-system)
105 (inputs `(("glib" ,glib)
106 ("readline" ,readline)
110 ("gtkglext" ,gtkglext)
112 ("libcanberra" ,libcanberra)))
113 (native-inputs `(("python-2" ,python-2)
114 ("pkg-config" ,pkg-config)))
115 (home-page "http://gnubg.org")
116 (synopsis "Backgammon game")
117 (description "The GNU backgammon application can be used for playing, analyzing and
118 teaching the game. It has an advanced evaluation engine based on artificial
119 neural networks suitable for both beginners and advanced players. In
120 addition to a command-line interface, it also features an attractive, 3D
121 representation of the playing board.")
122 (license license:gpl3+)))
124 (define-public gnubik
131 (uri (string-append "mirror://gnu/gnubik/gnubik-"
135 "0mhpfnxzbns0wfrsjv5vafqr34770rbvkmdzxk0x0aq67hb3zyl5"))))
136 (build-system gnu-build-system)
137 (inputs `(("gtk+" ,gtk+-2)
142 ("gtkglext" ,gtkglext)))
143 (native-inputs `(("gettext" ,gnu-gettext)
144 ("pkg-config" ,pkg-config)))
145 (home-page "https://www.gnu.org/software/gnubik/")
146 (synopsis "3d Rubik's cube game")
148 "GNUbik is a puzzle game in which you must manipulate a cube to make
149 each of its faces have a uniform color. The game is customizable, allowing
150 you to set the size of the cube (the default is 3x3) or to change the colors.
151 You may even apply photos to the faces instead of colors. The game is
152 scriptable with Guile.")
153 (license license:gpl3+)))
155 (define-public abbaye
162 (uri (string-append "http://abbaye-for-linux.googlecode.com/files/"
163 "abbaye-for-linux-src-" version ".tar.gz"))
166 "1wgvckgqa2084rbskxif58wbb83xbas8s1i8s7d57xbj08ryq8rk"))))
167 (build-system gnu-build-system)
169 '(#:modules ((ice-9 match)
170 (guix build gnu-build-system)
172 #:phases (modify-phases %standard-phases
173 (add-after 'set-paths 'set-sdl-paths
174 (lambda* (#:key inputs #:allow-other-keys)
176 (string-append (assoc-ref inputs "sdl-union")
178 (add-after 'patch-source-shebangs 'patch-makefile
179 (lambda* (#:key outputs #:allow-other-keys)
180 ;; Replace /usr with package output directory.
181 (for-each (lambda (file)
183 (("/usr") (assoc-ref outputs "out"))))
184 '("makefile" "src/pantallas.c" "src/comun.h"))))
185 (add-before 'install 'make-install-dirs
186 (lambda* (#:key outputs #:allow-other-keys)
187 (let ((prefix (assoc-ref outputs "out")))
188 ;; Create directories that the makefile assumes exist.
189 (mkdir-p (string-append prefix "/bin"))
190 (mkdir-p (string-append prefix "/share/applications"))
191 (mkdir-p (string-append prefix "/share/pixmaps")))))
192 ;; No configure script.
194 #:tests? #f)) ;; No check target.
195 (native-inputs `(("pkg-config" ,pkg-config)))
196 (inputs `(("sdl-union" ,(sdl-union))))
197 (home-page "http://code.google.com/p/abbaye-for-linux/")
198 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
199 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
200 France. The Cathars, who preach about good Christian beliefs, were being
201 expelled by the Catholic Church out of the Languedoc region in France. One of
202 them, called Jean Raymond, found an old church in which to hide, not knowing
203 that beneath its ruins lay buried an ancient evil.")
204 (license license:gpl3+)))
206 (define-public pingus
213 (uri (string-append "http://pingus.googlecode.com/files/pingus-"
217 "0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"))
218 (patches (list (search-patch "pingus-sdl-libs-config.patch")))))
219 (build-system gnu-build-system)
220 (native-inputs `(("pkg-config" ,pkg-config)
222 (inputs `(("sdl" ,sdl)
223 ("sdl-image" ,sdl-image)
224 ("sdl-mixer" ,sdl-mixer)
230 '(#:tests? #f ;no check target
236 (lambda* (#:key outputs #:allow-other-keys)
237 (zero? (system* "make" "install"
238 (string-append "PREFIX="
239 (assoc-ref outputs "out")))))
241 (home-page "http://pingus.seul.org/welcome.html")
242 (synopsis "Lemmings clone")
244 "Pingus is a free Lemmings-like puzzle game in which the player takes
245 command of a bunch of small animals and has to guide them through levels.
246 Since the animals walk on their own, the player can only influence them by
247 giving them commands, like build a bridge, dig a hole, or redirect all animals
248 in the other direction. Multiple such commands are necessary to reach the
249 level's exit. The game is presented in a 2D side view.")
250 ;; Some source files are under bsd-3 and gpl2+ licenses.
251 (license license:gpl3+)))
253 (define-public talkfilters
260 (uri (string-append "http://www.hyperrealm.com/" name "/"
261 name "-" version ".tar.gz"))
263 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
264 (build-system gnu-build-system)
265 (home-page "http://www.gnu.org/software/talkfilters")
266 (synopsis "Convert English text to humorous dialects")
267 (description "The GNU Talk Filters are programs that convert English text
268 into stereotyped or otherwise humorous dialects. The filters are provided as
269 a C library, so they can easily be integrated into other programs.")
270 (license license:gpl2+)))
272 (define-public cmatrix
279 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
283 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
284 (build-system gnu-build-system)
287 (alist-replace 'configure
288 (lambda* (#:key outputs #:allow-other-keys)
289 ;; This old `configure' script doesn't support
290 ;; variables passed as arguments.
291 (let ((out (assoc-ref outputs "out")))
292 (setenv "CONFIG_SHELL" (which "bash"))
294 (system* "./configure"
295 (string-append "--prefix=" out)))))
297 (inputs `(("ncurses" ,ncurses)))
298 (home-page "http://www.asty.org/cmatrix")
299 (synopsis "Simulate the display from \"The Matrix\"")
300 (description "CMatrix simulates the display from \"The Matrix\" and is
301 based on the screensaver from the movie's website. It works with terminal
302 settings up to 132x300 and can scroll lines all at the same rate or
303 asynchronously and at a user-defined speed.")
304 (license license:gpl2+)))
313 (uri (string-append "mirror://gnu/chess/gnuchess-" version
317 "1a41ag03q66pwy3pjrmbxxjpzi9fcaiiaiywd7m9v25mxqac2xkp"))))
318 (build-system gnu-build-system)
319 (home-page "http://www.gnu.org/software/chess")
320 (synopsis "Full chess implementation")
321 (description "GNU Chess is a chess engine. It allows you to compete
322 against the computer in a game of chess, either through the default terminal
323 interface or via an external visual interface such as GNU XBoard.")
324 (license license:gpl3+)))
326 (define freedink-engine
328 (name "freedink-engine")
332 (uri (string-append "mirror://gnu/freedink/freedink-" version
336 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
337 (build-system gnu-build-system)
338 (arguments `(#:configure-flags '("--disable-embedded-resources")))
339 (native-inputs `(("gettext" ,gnu-gettext)
340 ("pkg-config" ,pkg-config)))
341 (inputs `(("sdl" ,sdl)
342 ("sdl-image" ,sdl-image)
343 ("sdl-mixer" ,sdl-mixer)
346 ("fontconfig" ,fontconfig)
348 (home-page "http://www.gnu.org/software/freedink/")
349 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
351 "GNU FreeDink is a free and portable re-implementation of the engine
352 for the role-playing game Dink Smallwood. It supports not only the original
353 game data files but it also supports user-produced game mods or \"D-Mods\".
354 To that extent, it also includes a front-end for managing all of your D-Mods.")
355 (license license:gpl3+)))
357 (define freedink-data
359 (name "freedink-data")
360 (version "1.08.20140901")
363 (uri (string-append "mirror://gnu/freedink/freedink-data-"
367 "04f1aa8gfz30qkgv7chjz5n1s8v5hbqs01h2113cq1ylm3isd5sp"))))
368 (build-system gnu-build-system)
370 `(#:phases (alist-delete 'configure (alist-delete 'check %standard-phases))
371 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
372 (home-page "http://www.gnu.org/software/freedink/")
373 (synopsis "Game data for GNU Freedink")
375 "This package contains the game data of GNU Freedink.")
376 (license license:gpl3+)))
378 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
380 (define-public freedink
381 ;; This is a wrapper that tells the engine where to find the data.
382 (package (inherit freedink-engine)
384 (build-system trivial-build-system)
387 (use-modules (guix build utils))
389 (let* ((output (assoc-ref %outputs "out"))
390 (bin (string-append output "/bin"))
391 (executable (string-append bin "/freedink")))
393 (call-with-output-file executable
395 (format port "#!~a/bin/sh
396 exec ~a/bin/freedink -refdir ~a/share/dink\n"
397 (assoc-ref %build-inputs "bash")
398 (assoc-ref %build-inputs "engine")
399 (assoc-ref %build-inputs "data"))
400 (chmod port #o777)))))
401 #:modules ((guix build utils))))
402 (inputs `(("engine" ,freedink-engine)
403 ("data" ,freedink-data)
405 (native-inputs '())))
407 (define-public xboard
414 (uri (string-append "mirror://gnu/xboard/xboard-" version
418 "05rdj0nyirc4g1qi5hhrjy45y52ihp1j3ldq2c5bwrz0gzy4i3y8"))))
419 (build-system gnu-build-system)
420 (inputs `(("cairo" ,cairo)
424 (native-inputs `(("texinfo" ,texinfo)
425 ("pkg-config" ,pkg-config)))
426 (home-page "http://www.gnu.org/software/xboard")
427 (synopsis "Graphical user interface for chess programs")
428 (description "GNU XBoard is a graphical board for all varieties of chess,
429 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
430 and Makruk. Several lesser-known variants are also supported. It presents a
431 fully interactive graphical interface and it can load and save games in the
432 Portable Game Notation.")
433 (license license:gpl3+)))
436 (define-public xboing
443 (uri (string-append "http://www.techrescue.org/xboing/xboing"
446 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
452 (lambda* (#:key outputs #:allow-other-keys)
454 (substitute* "Imakefile"
455 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
456 (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
459 (substitute* "Imakefile"
460 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
462 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
464 (zero? (system* "xmkmf" "-a"
465 (string-append "-DProjectRoot="
466 (assoc-ref outputs "out")))))
467 (alist-replace 'install
468 (lambda* (#:key outputs #:allow-other-keys)
470 (zero? (system* "make" "install.man"))
471 (zero? (system* "make" "install"))))
473 (inputs `(("libx11" ,libx11)
476 (native-inputs `(("imake" ,imake)
477 ("inetutils" ,inetutils)
478 ("makedepend" ,makedepend)))
479 (build-system gnu-build-system)
480 (home-page "http://www.techrescue.org/xboing")
481 (synopsis "Ball and paddle game")
482 (description "XBoing is a blockout type game where you have a paddle which
483 you control to bounce a ball around the game zone destroying blocks with a
484 proton ball. Each block carries a different point value. The more blocks you
485 destroy, the better your score. The person with the highest score wins.")
486 (license (license:x11-style "file://COPYING"
487 "Very similar to the X11 licence."))))
489 (define-public gtypist
495 (uri (string-append "mirror://gnu/gtypist/gtypist-"
499 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
500 (modules '((guix build utils)))
502 ;; We do not provide `ncurses.h' within an `ncursesw'
503 ;; sub-directory, so patch the source accordingly. See
504 ;; <http://bugs.gnu.org/19018>.
505 '(for-each (lambda (file)
507 (("ncursesw/ncurses.h")
509 (find-files "." "configure$|\\.c$")))))
510 (build-system gnu-build-system)
511 (inputs `(("ncurses" ,ncurses)
513 (home-page "http://www.gnu.org/software/gtypist/")
514 (synopsis "Typing tutor")
516 "GNU Typist is a universal typing tutor. It can be used to learn and
517 practice touch-typing. Several tutorials are included; in addition to
518 tutorials for the standard QWERTY layout, there are also tutorials for the
519 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
520 are primarily in English, however some in other languages are provided.")
521 (license license:gpl3+)))
523 (define-public irrlicht
530 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
531 (version-major+minor version)
532 "/" version "/irrlicht-" version ".zip"))
535 "0yz9lvsc8aqk8wj4rnpanxrw90gqpwn9w5hxp94r8hnm2q0vjjw1"))))
536 (build-system gnu-build-system)
538 '(#:phases (alist-cons-after
539 'unpack 'fix-build-env
540 (lambda* (#:key outputs #:allow-other-keys)
541 (let ((out (assoc-ref outputs "out")))
542 (substitute* "Makefile"
543 (("INSTALL_DIR = /usr/local/lib")
544 (string-append "INSTALL_DIR = " out "/lib")))
545 ;; The Makefile assumes these directories exist.
546 (mkdir-p (string-append out "/lib"))
547 (mkdir-p (string-append out "/include"))))
550 (lambda* (#:key source #:allow-other-keys)
551 (and (zero? (system* "unzip" source))
552 ;; The actual source is buried a few directories deep.
553 (chdir "irrlicht-1.8.1/source/Irrlicht/")))
555 'unpack 'apply-patch/mesa-10-fix
556 (lambda* (#:key inputs #:allow-other-keys)
557 (zero? (system* "patch" "--force" "-p3" "-i"
558 (assoc-ref inputs "patch/mesa-10-fix"))))
559 ;; No configure script
560 (alist-delete 'configure %standard-phases))))
561 #:tests? #f ; no check target
562 #:make-flags '("CC=gcc" "sharedlib")))
564 `(("patch/mesa-10-fix" ,(search-patch "irrlicht-mesa-10.patch"))
569 (synopsis "3D game engine written in C++")
571 "The Irrlicht Engine is a high performance realtime 3D engine written in
572 C++. Features include an OpenGL renderer, extensible materials, scene graph
573 management, character animation, particle and other special effects, support
574 for common mesh file formats, and collision detection.")
575 (home-page "http://irrlicht.sourceforge.net/")
576 (license license:zlib)))
579 ;; The latest release on SourceForge relies on an unreleased version of SFML
580 ;; with a different API, so we take the latest version from the official
581 ;; repository on Github.
582 (let ((commit "c855d04409")
586 (version (string-append "0.7.5." revision "." commit ))
590 (url "https://github.com/thelaui/M.A.R.S..git")
592 (file-name (string-append name "-" version))
595 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
596 (patches (list (search-patch "mars-sfml-2.3.patch")
597 (search-patch "mars-install.patch")))))
598 (build-system cmake-build-system)
600 `(#:tests? #f ; There are no tests
602 (modify-phases %standard-phases
603 (add-after 'unpack 'fix-install-path
605 (substitute* "src/CMakeLists.txt"
606 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
607 "${CMAKE_INSTALL_PREFIX}/bin"))
609 (add-after 'unpack 'fix-data-path
610 (lambda* (#:key outputs #:allow-other-keys)
611 (substitute* "src/System/settings.cpp"
612 (("C_dataPath = \"./data/\";")
613 (string-append "C_dataPath = \""
614 (assoc-ref outputs "out")
615 "/share/games/marsshooter/\";")))
622 (home-page "http://marsshooter.org")
623 (synopsis "2D space shooter")
625 "M.A.R.S. is a 2D space shooter with pretty visual effects and
626 attractive physics. Players can battle each other or computer controlled
627 enemies in different game modes such as space ball, death match, team death
628 match, cannon keep, and grave-itation pit.")
629 (license license:gpl3+))))
631 (define minetest-data
633 (name "minetest-data")
638 "https://github.com/minetest/minetest_game/archive/"
640 (file-name (string-append name "-" version ".tar.gz"))
643 "04xnyfap75v3p818kpqb07xshqwqzpws5xjvw5m96qnd9x4725ld"))))
644 (build-system trivial-build-system)
648 ("gzip" ,(@ (gnu packages compression) gzip))))
650 `(#:modules ((guix build utils))
652 (use-modules (guix build utils))
653 (let ((tar (string-append (assoc-ref %build-inputs "tar")
655 (install-dir (string-append
657 "/share/minetest/games/minetest_game"))
658 (path (string-append (assoc-ref %build-inputs
662 (system* tar "xvf" (assoc-ref %build-inputs "source"))
663 (chdir (string-append "minetest_game-" ,version))
664 (mkdir-p install-dir)
665 (copy-recursively "." install-dir)))))
666 (synopsis "Main game data for the Minetest game engine")
668 "Game data for the Minetest infinite-world block sandox game.")
669 (home-page "http://minetest.net")
670 (license license:lgpl2.1+)))
672 (define-public minetest
679 "https://github.com/minetest/minetest/archive/"
681 (file-name (string-append name "-" version ".tar.gz"))
684 "1xzrvsg0fpbj5p4pz6lls11m3ab4y2bnjlsm4gnw68x9006ffznp"))))
685 (build-system cmake-build-system)
688 (list "-DRUN_IN_PLACE=0"
689 "-DENABLE_FREETYPE=1"
691 (string-append "-DIRRLICHT_INCLUDE_DIR="
692 (assoc-ref %build-inputs "irrlicht")
694 (string-append "-DCURL_INCLUDE_DIR="
695 (assoc-ref %build-inputs "curl")
697 #:tests? #f)) ; no check target
699 (list (search-path-specification
700 (variable "MINETEST_SUBGAME_PATH")
701 (files '("share/minetest/games")))))
703 `(("pkg-config" ,pkg-config)))
705 `(("irrlicht" ,irrlicht)
708 ("libxxf86vm" ,libxxf86vm)
711 ("libvorbis" ,libvorbis)
713 ("freetype" ,(@ (gnu packages fontutils) freetype))
716 ("gettext" ,gnu-gettext)
719 `(("minetest-data" ,minetest-data)))
720 (synopsis "Infinite-world block sandbox game")
722 "Minetest is a sandbox construction game. Players can create and destroy
723 various types of blocks in a three-dimensional open world. This allows
724 forming structures in every possible creation, on multiplayer servers or as a
725 single player. Mods and texture packs allow players to personalize the game
727 (home-page "http://minetest.net")
728 (license license:lgpl2.1+)))
737 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
738 "glk/implementations/glkterm-104.tar.gz"))
741 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
742 (build-system gnu-build-system)
743 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
745 '(#:tests? #f ; no check target
749 (lambda* (#:key outputs #:allow-other-keys)
750 (let* ((out (assoc-ref outputs "out"))
751 (inc (string-append out "/include")))
755 (copy-file file (string-append inc "/" file)))
756 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
757 (mkdir (string-append out "/lib"))
758 (copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
759 (alist-delete 'configure %standard-phases))))
760 (home-page "http://www.eblong.com/zarf/glk/")
761 (synopsis "Curses Implementation of the Glk API")
763 "Glk defines a portable API for applications with text UIs. It was
764 primarily designed for interactive fiction, but it should be suitable for many
765 interactive text utilities, particularly those based on a command line.
766 This is an implementation of the Glk library which runs in a terminal window,
767 using the curses.h library for screen control.")
768 (license (license:fsf-free "file://README"))))
770 (define-public glulxe
777 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
778 "glulx/interpreters/glulxe/glulxe-052.tar.gz"))
781 "19iw6kl8ncqcy9pv4gsqfh3xsa1n94zd234rqavvmxccnf3nj19g"))))
782 (build-system gnu-build-system)
783 (inputs `(("glk" ,glkterm)))
785 '(#:tests? #f ; no check target
787 (let* ((glk (assoc-ref %build-inputs "glk")))
788 (list (string-append "GLKINCLUDEDIR=" glk "/include")
789 (string-append "GLKLIBDIR=" glk "/lib")
790 (string-append "GLKMAKEFILE=" "Make.glkterm")))
794 (lambda* (#:key outputs #:allow-other-keys)
795 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
797 (copy-file "glulxe" (string-append bin "/glulxe"))))
798 (alist-delete 'configure %standard-phases))))
799 (home-page "http://www.eblong.com/zarf/glulx/")
800 (synopsis "Interpreter for Glulx VM")
802 "Glulx is a 32-bit portable virtual machine intended for writing and
803 playing interactive fiction. It was designed by Andrew Plotkin to relieve
804 some of the restrictions in the venerable Z-machine format. This is the
805 reference interpreter, using Glk API.")
806 (license (license:fsf-free "file://README"))))
814 (uri (string-append "https://christoph-ender.de/fizmo/source/"
815 name "-" version ".tar.gz"))
818 "1w7cgyjrhgkadjrazijzhq7zh0pl5bfc6wl7mdpgh020y4kp46d7"))))
819 (build-system gnu-build-system)
822 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
823 (ncurses (assoc-ref %build-inputs "ncurses")))
824 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
825 (string-append "jpeg_LIBS=-ljpeg")
826 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
827 (string-append "ncursesw_LIBS=-lncursesw")))))
829 `(("pkg-config" ,pkg-config)))
831 `(("libjpeg" ,libjpeg)
833 ("libsndfile" ,libsndfile)
837 (home-page "https://christoph-ender.de/fizmo/")
838 (synopsis "Z-machine interpreter")
840 "Fizmo is a console-based Z-machine interpreter. It is used to play
841 interactive fiction, also known as text adventures, which were implemented
842 either by Infocom or created using the Inform compiler.")
843 (license license:bsd-3)))
845 (define-public retroarch
852 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
854 (file-name (string-append name "-" version ".tar.gz"))
856 (base32 "1bxr8yhk3ad4df544qljsfjfhxa8zy1grq7rn1s02yfvdmgzf4qi"))))
857 (build-system gnu-build-system)
859 '(#:tests? #f ; no tests
864 (substitute* "qb/qb.libs.sh"
865 (("/bin/true") (which "true")))
868 (string-append "--prefix=" %output)
869 (string-append "--global-config-dir=" %output "/etc"))))
872 `(("alsa-lib" ,alsa-lib)
874 ("freetype" ,freetype)
875 ("libxinerama" ,libxinerama)
876 ("libxkbcommon" ,libxkbcommon)
881 ("pulseaudio" ,pulseaudio)
887 `(("pkg-config" ,pkg-config)
889 (home-page "http://www.libretro.com/")
890 (synopsis "Reference frontend for the libretro API")
892 "Libretro is a simple but powerful development interface that allows for
893 the easy creation of emulators, games and multimedia applications that can plug
894 straight into any libretro-compatible frontend. RetroArch is the official
895 reference frontend for the libretro API, currently used by most as a modular
896 multi-system game/emulator system.")
897 (license license:gpl3+)))
905 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
909 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
910 (build-system gnu-build-system)
911 (inputs `(("readline" ,readline)))
912 (synopsis "Play the game of Go")
914 "GNU Go is a program that plays the game of Go, in which players
915 place stones on a grid to form territory or capture other stones. While
916 it can be played directly from the terminal, rendered in ASCII characters,
917 it is also possible to play GNU Go with 3rd party graphical interfaces or
918 even in Emacs. It supports the standard game storage format (SGF, Smart
919 Game Format) and inter-process communication format (GMP, Go Modem
921 (home-page "http://www.gnu.org/software/gnugo/")
922 (license license:gpl3+)))
924 (define-public extremetuxracer
926 (name "extremetuxracer")
931 "http://downloads.sourceforge.net/project/extremetuxracer/releases/"
932 version "/etr-" version ".tar.xz"))
935 "0fl9pwkywqnsmgr6plfj9zb05xrdnl5xb2hcmbjk7ap9l4cjfca4"))))
936 (build-system gnu-build-system)
938 `(("pkg-config" ,pkg-config)))
940 `(("freetype" ,freetype)
946 ("sdl-mixer" ,sdl-mixer)
947 ("sdl-image" ,sdl-image)
949 ("libunwind" ,libunwind)
959 (modify-phases %standard-phases
960 (add-after 'configure 'patch-makefile
962 (substitute* "Makefile"
963 (("CXXFLAGS =") "CXXFLAGS = ${CFLAGS}")))))))
964 (synopsis "High speed arctic racing game based on Tux Racer")
965 ;; Snarfed straight from Debian
966 (description "Extreme Tux Racer, or etracer as it is called for short, is
967 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
968 game is to slide down a snow- and ice-covered mountain as quickly as possible,
969 avoiding the trees and rocks that will slow you down.
971 Collect herrings and other goodies while sliding down the hill, but avoid fish
974 This game is based on the GPL version of the famous game TuxRacer.")
975 (home-page "http://sourceforge.net/projects/extremetuxracer/")
976 (license license:gpl2+)))
978 (define-public gnujump
984 (uri (string-append "mirror://gnu/gnujump/gnujump-"
988 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
989 (build-system gnu-build-system)
992 (modify-phases %standard-phases
994 'configure 'link-libm
995 (lambda _ (setenv "LIBS" "-lm"))))))
1000 ("sdl-image" ,sdl-image)
1001 ("sdl-mixer" ,sdl-mixer)))
1002 (home-page "http://gnujump.es.gnu.org/")
1004 "Game of jumping to the next floor, trying not to fall")
1006 "GNUjump is a simple, yet addictive game in which you must jump from
1007 platform to platform to avoid falling, while the platforms drop at faster rates
1008 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1009 falling, themeable graphics and sounds, and replays.")
1010 (license license:gpl3+)))
1012 (define-public wesnoth
1018 (uri (string-append "mirror://sourceforge/wesnoth/"
1019 name "-" version ".tar.bz2"))
1022 "19qyylylaljhk45lk2ja0xp7cx9iy4hx07l65zkg20a2v9h50lmz"))))
1023 (build-system cmake-build-system)
1025 '(#:tests? #f ; no check target
1027 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1028 ;; boost/mpl/assert.hpp:313:58: error:
1029 ;; use of old-style cast [-Werror=old-style-cast]
1031 ;; cc1plus: all warnings being treated as errors
1032 '("-DENABLE_STRICT_COMPILATION=OFF")))
1034 `(("gettext" ,gnu-gettext)
1035 ("pkg-config" ,pkg-config)))
1039 ("fribidi" ,fribidi)
1040 ("libvorbis" ,libvorbis)
1042 ("sdl-image" ,sdl-image)
1043 ("sdl-mixer" ,sdl-mixer)
1044 ("sdl-net" ,sdl-net)
1045 ("sdl-ttf" ,sdl-ttf)))
1046 (home-page "http://www.wesnoth.org/")
1047 (synopsis "Turn-based strategy game")
1049 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1050 with several single player campaigns, and multiplayer games (both networked and
1053 Battle for control on a range of maps, using variety of units which have
1054 advantages and disadvantages against different types of attacks. Units gain
1055 experience and advance levels, and are carried over from one scenario to the
1057 (license license:gpl2+)))
1059 (define-public dosbox
1062 (version "0.74.svn3947")
1066 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1068 (file-name (string-append name "-" version "-checkout"))
1069 ;; Use SVN head, since the last release (2010) is incompatible
1070 ;; with GCC 4.8+ (see
1071 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1074 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1075 (build-system gnu-build-system)
1077 `(#:phases (modify-phases %standard-phases
1081 (zero? (system* "sh" "autogen.sh")))))))
1083 `(("autoconf" ,autoconf)
1084 ("automake" ,automake)))
1089 ("alsa-lib" ,alsa-lib)
1092 (home-page "http://www.dosbox.com")
1093 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1094 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1095 also emulates CPU:286/386 realmode/protected mode, Directory
1096 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1097 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1099 (license license:gpl2+)))
1101 (define-public gamine
1107 (uri (string-append "mirror://sourceforge/gamine-game/"
1108 "gamine-" version ".tar.gz"))
1111 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1112 (build-system gnu-build-system)
1114 `(("pkg-config" ,pkg-config)
1115 ("intltool" ,intltool)))
1117 `(("gstreamer" ,gstreamer)
1118 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1119 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1124 (let ((out (assoc-ref %outputs "out")))
1125 (list (string-append "PREFIX=" out)
1126 (string-append "SYSCONFDIR=" out "/etc")))
1128 (modify-phases %standard-phases
1131 'install 'wrap-gamine
1132 (lambda* (#:key outputs #:allow-other-keys)
1133 (let ((out (assoc-ref outputs "out"))
1134 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1135 (wrap-program (string-append out "/bin/gamine")
1136 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1138 (home-page "http://gamine-game.sourceforge.net/")
1139 (synopsis "Mouse and keyboard discovery for children")
1141 "Gamine is a game designed for young children who are learning to use the
1142 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1143 on the screen and keyboard to display letters.")
1144 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1145 (license license:gpl3)))
1147 (define-public raincat
1155 "http://hackage.haskell.org/package/Raincat/Raincat-"
1160 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1161 (build-system haskell-build-system)
1163 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1164 ("ghc-mtl" ,ghc-mtl)
1165 ("ghc-random" ,ghc-random)
1166 ("ghc-glut" ,ghc-glut)
1167 ("ghc-opengl" ,ghc-opengl)
1168 ("ghc-sdl" ,ghc-sdl)
1169 ("ghc-sdl-image" ,ghc-sdl-image)
1170 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1171 (home-page "http://raincat.bysusanlin.com/")
1172 (synopsis "Puzzle game with a cat in lead role")
1173 (description "Project Raincat is a game developed by Carnegie Mellon
1174 students through GCS during the Fall 2008 semester. Raincat features game
1175 play inspired from classics Lemmings and The Incredible Machine. The project
1176 proved to be an excellent learning experience for the programmers. Everything
1177 is programmed in Haskell.")
1178 (license license:bsd-3)))
1180 (define-public manaplus
1183 (version "1.6.1.16")
1187 "http://repo.manaplus.org/manaplus/download/"
1188 version "/manaplus-" version ".tar.xz"))
1191 "1vrsjvdbdzbnqmr8sp110b2d93kp5yfnifsn6zjm60kdvvbphdir"))))
1192 (build-system gnu-build-system)
1195 (list (string-append "CPPFLAGS=-I"
1196 (assoc-ref %build-inputs "sdl-union")
1199 `(("pkg-config" ,pkg-config)))
1203 ("libxml2" ,libxml2)
1206 ("sdl-union" ,(sdl-union))))
1207 (home-page "http://manaplus.org")
1208 (synopsis "Client for 'The Mana World' and similar games")
1210 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1211 fully supported client for @uref{http://www.themanaworld.org, The mana
1212 world}, @uref{http://evolonline.org, Evol Online} and
1213 @uref{http://landoffire.org, Land of fire}.")
1214 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1215 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1216 ;; The rest is under GPL2+.
1217 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1219 (define-public mupen64plus-core
1221 (name "mupen64plus-core")
1227 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1229 (file-name (string-append name "-" version ".tar.gz"))
1231 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1232 (build-system gnu-build-system)
1234 `(("pkg-config" ,pkg-config)
1237 `(("freetype" ,freetype)
1245 (modify-phases %standard-phases
1246 ;; The mupen64plus build system has no configure phase.
1248 ;; Makefile is in a subdirectory.
1250 'build 'cd-to-project-dir
1252 (chdir "projects/unix"))))
1253 #:make-flags (let ((out (assoc-ref %outputs "out")))
1254 (list "all" (string-append "PREFIX=" out)))
1255 ;; There are no tests.
1257 ;; As per the Makefile (in projects/unix/Makefile):
1258 (supported-systems '("i686-linux" "x86_64-linux"))
1259 (home-page "http://www.mupen64plus.org/")
1260 (synopsis "Nintendo 64 emulator core library")
1262 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1263 which is capable of accurately playing many games. This package contains the
1265 (license license:gpl2+)))
1267 (define-public mupen64plus-audio-sdl
1269 (name "mupen64plus-audio-sdl")
1275 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1277 (file-name (string-append name "-" version ".tar.gz"))
1279 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1280 (build-system gnu-build-system)
1282 `(("pkg-config" ,pkg-config)
1285 `(("mupen64plus-core" ,mupen64plus-core)
1289 (modify-phases %standard-phases
1290 ;; The mupen64plus build system has no configure phase.
1292 ;; Makefile is in a subdirectory.
1294 'build 'cd-to-project-dir
1296 (chdir "projects/unix"))))
1298 (let ((out (assoc-ref %outputs "out"))
1299 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1301 (string-append "PREFIX=" out)
1302 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1303 ;; There are no tests.
1305 (home-page "http://www.mupen64plus.org/")
1306 (synopsis "Mupen64Plus SDL input plugin")
1308 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1309 which is capable of accurately playing many games. This package contains the
1311 (license license:gpl2+)))
1313 (define-public mupen64plus-input-sdl
1315 (name "mupen64plus-input-sdl")
1321 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1323 (file-name (string-append name "-" version ".tar.gz"))
1325 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1326 (build-system gnu-build-system)
1328 `(("which" ,which)))
1330 `(("mupen64plus-core" ,mupen64plus-core)
1334 (modify-phases %standard-phases
1335 ;; The mupen64plus build system has no configure phase.
1337 ;; Makefile is in a subdirectory.
1339 'build 'cd-to-project-dir
1341 (chdir "projects/unix"))))
1343 (let ((out (assoc-ref %outputs "out"))
1344 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1346 (string-append "PREFIX=" out)
1347 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1348 ;; There are no tests.
1350 (home-page "http://www.mupen64plus.org/")
1351 (synopsis "Mupen64Plus SDL input plugin")
1353 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1354 which is capable of accurately playing many games. This package contains the
1356 (license license:gpl2+)))
1358 (define-public mupen64plus-rsp-hle
1360 (name "mupen64plus-rsp-hle")
1366 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1368 (file-name (string-append name "-" version ".tar.gz"))
1370 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1371 (build-system gnu-build-system)
1373 `(("mupen64plus-core" ,mupen64plus-core)))
1376 (modify-phases %standard-phases
1377 ;; The mupen64plus build system has no configure phase.
1379 ;; Makefile is in a subdirectory.
1381 'build 'cd-to-project-dir
1383 (chdir "projects/unix"))))
1385 (let ((out (assoc-ref %outputs "out"))
1386 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1388 (string-append "PREFIX=" out)
1389 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1390 ;; There are no tests.
1392 (home-page "http://www.mupen64plus.org/")
1393 (synopsis "Mupen64Plus SDL input plugin")
1395 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1396 which is capable of accurately playing many games. This package contains the
1397 high-level emulation (HLE) RSP processor plugin.")
1398 (license license:gpl2+)))
1400 (define-public mupen64plus-rsp-z64
1402 (name "mupen64plus-rsp-z64")
1408 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1410 (file-name (string-append name "-" version ".tar.gz"))
1412 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1413 (build-system gnu-build-system)
1415 `(("mupen64plus-core" ,mupen64plus-core)))
1418 (modify-phases %standard-phases
1419 ;; The mupen64plus build system has no configure phase.
1421 ;; Makefile is in a subdirectory.
1423 'build 'cd-to-project-dir
1425 (chdir "projects/unix"))))
1427 (let ((out (assoc-ref %outputs "out"))
1428 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1430 (string-append "PREFIX=" out)
1431 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1432 ;; There are no tests.
1434 (home-page "http://www.mupen64plus.org/")
1435 (synopsis "Mupen64Plus SDL input plugin")
1437 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1438 which is capable of accurately playing many games. This package contains the
1439 Z64 RSP processor plugin.")
1440 (license license:gpl2+)))
1442 (define-public mupen64plus-video-arachnoid
1444 (name "mupen64plus-video-arachnoid")
1450 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1452 (file-name (string-append name "-" version ".tar.gz"))
1454 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1455 (build-system gnu-build-system)
1457 `(("pkg-config" ,pkg-config)
1461 ("mupen64plus-core" ,mupen64plus-core)))
1464 (modify-phases %standard-phases
1465 ;; The mupen64plus build system has no configure phase.
1467 ;; Makefile is in a subdirectory.
1469 'build 'cd-to-project-dir
1471 (chdir "projects/unix"))))
1473 (let ((out (assoc-ref %outputs "out"))
1474 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1476 (string-append "PREFIX=" out)
1477 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1478 ;; There are no tests.
1480 (home-page "http://www.mupen64plus.org/")
1481 (synopsis "Mupen64Plus Rice Video plugin")
1483 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1484 which is capable of accurately playing many games. This package contains the
1485 Arachnoid video plugin.")
1486 (license license:gpl2+)))
1488 (define-public mupen64plus-video-glide64
1490 (name "mupen64plus-video-glide64")
1496 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1498 (file-name (string-append name "-" version ".tar.gz"))
1500 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1501 (build-system gnu-build-system)
1503 `(("pkg-config" ,pkg-config)
1507 ("mupen64plus-core" ,mupen64plus-core)
1511 (modify-phases %standard-phases
1512 ;; The mupen64plus build system has no configure phase.
1514 ;; Makefile is in a subdirectory.
1516 'build 'cd-to-project-dir
1518 (chdir "projects/unix")))
1519 ;; XXX Should be unnecessary with the next release.
1523 (substitute* "Makefile"
1524 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1525 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1527 (let ((out (assoc-ref %outputs "out"))
1528 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1530 (string-append "PREFIX=" out)
1531 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1532 ;; There are no tests.
1534 (home-page "http://www.mupen64plus.org/")
1535 (synopsis "Mupen64Plus Rice Video plugin")
1537 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1538 which is capable of accurately playing many games. This package contains the
1539 Glide64 video plugin.")
1540 (license license:gpl2+)))
1542 (define-public mupen64plus-video-glide64mk2
1544 (name "mupen64plus-video-glide64mk2")
1550 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1552 (file-name (string-append name "-" version ".tar.gz"))
1554 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1555 (build-system gnu-build-system)
1557 `(("pkg-config" ,pkg-config)
1563 ("mupen64plus-core" ,mupen64plus-core)
1568 (modify-phases %standard-phases
1569 ;; The mupen64plus build system has no configure phase.
1571 ;; Makefile is in a subdirectory.
1573 'build 'cd-to-project-dir
1575 (chdir "projects/unix"))))
1577 (let ((out (assoc-ref %outputs "out"))
1578 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1580 (string-append "PREFIX=" out)
1581 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1582 ;; There are no tests.
1584 (home-page "http://www.mupen64plus.org/")
1585 (synopsis "Mupen64Plus Rice Video plugin")
1587 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1588 which is capable of accurately playing many games. This package contains the
1589 Glide64MK2 video plugin.")
1590 (license license:gpl2+)))
1592 (define-public mupen64plus-video-rice
1594 (name "mupen64plus-video-rice")
1600 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1602 (file-name (string-append name "-" version ".tar.gz"))
1604 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1605 (build-system gnu-build-system)
1607 `(("pkg-config" ,pkg-config)
1610 `(("libpng" ,libpng)
1612 ("mupen64plus-core" ,mupen64plus-core)
1616 (modify-phases %standard-phases
1617 ;; The mupen64plus build system has no configure phase.
1619 ;; Makefile is in a subdirectory.
1621 'build 'cd-to-project-dir
1623 (chdir "projects/unix"))))
1625 (let ((out (assoc-ref %outputs "out"))
1626 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1628 (string-append "PREFIX=" out)
1629 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1630 ;; There are no tests.
1632 (home-page "http://www.mupen64plus.org/")
1633 (synopsis "Mupen64Plus Rice Video plugin")
1635 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1636 which is capable of accurately playing many games. This package contains the
1637 Rice Video plugin.")
1638 (license license:gpl2+)))
1640 (define-public mupen64plus-video-z64
1642 (name "mupen64plus-video-z64")
1648 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1650 (file-name (string-append name "-" version ".tar.gz"))
1652 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1653 (build-system gnu-build-system)
1655 `(("pkg-config" ,pkg-config)
1659 ("mupen64plus-core" ,mupen64plus-core)
1663 (modify-phases %standard-phases
1664 ;; The mupen64plus build system has no configure phase.
1666 ;; Makefile is in a subdirectory.
1668 'build 'cd-to-project-dir
1670 (chdir "projects/unix")))
1671 ;; XXX Should be unnecessary with the next release.
1675 (substitute* "Makefile"
1676 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1677 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1679 (let ((out (assoc-ref %outputs "out"))
1680 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1682 (string-append "PREFIX=" out)
1683 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1684 ;; There are no tests.
1686 (home-page "http://www.mupen64plus.org/")
1687 (synopsis "Mupen64Plus Z64 video plugin")
1689 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1690 which is capable of accurately playing many games. This package contains the
1692 (license license:gpl2+)))
1694 (define-public mupen64plus-ui-console
1696 (name "mupen64plus-ui-console")
1702 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1704 (file-name (string-append name "-" version ".tar.gz"))
1706 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1708 (list (search-patch "mupen64plus-ui-console-notice.patch")))))
1709 (build-system gnu-build-system)
1711 `(("pkg-config" ,pkg-config)
1715 ;; Mupen64Plus supports a single data directory and a single plugin
1716 ;; directory in its configuration, yet we need data and plugin files from
1717 ;; a variety of packages. The best way to deal with this is to install
1718 ;; all packages from which data and plugin files are needed into one's
1719 ;; profile, and point the configuration there. Hence, propagate the most
1720 ;; important packages here to save the user from the bother. The patch
1721 ;; mupen64plus-ui-console-notice also gives users instructions on what
1722 ;; they need to do in order to point the configuration to their profile.
1724 `(("mupen64plus-core" ,mupen64plus-core)
1725 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1726 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1727 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1728 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1729 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1730 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1733 (modify-phases %standard-phases
1734 ;; The mupen64plus build system has no configure phase.
1736 ;; Makefile is in a subdirectory.
1738 'build 'cd-to-project-dir
1740 (chdir "projects/unix"))))
1742 (let ((out (assoc-ref %outputs "out"))
1743 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1745 (string-append "PREFIX=" out)
1746 (string-append "APIDIR=" m64p "/include/mupen64plus")
1747 ;; Trailing slash matters here.
1748 (string-append "COREDIR=" m64p "/lib/")))
1749 ;; There are no tests.
1751 (home-page "http://www.mupen64plus.org/")
1752 (synopsis "Mupen64Plus SDL input plugin")
1754 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1755 which is capable of accurately playing many games. This package contains the
1756 command line user interface. Installing this package is the easiest way
1757 towards a working Mupen64Plus for casual users.")
1758 (license license:gpl2+)))
1760 (define-public nestopia-ue
1762 (name "nestopia-ue")
1767 "https://github.com/rdanbrook/nestopia/archive/"
1769 (file-name (string-append name "-" version ".tar.gz"))
1772 "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
1773 (modules '((guix build utils)))
1776 ;; We don't need libretro for the GNU/Linux build.
1777 (delete-file-recursively "libretro")
1779 (delete-file-recursively "source/zlib")
1780 (substitute* "source/core/NstZlib.cpp"
1781 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1782 (build-system gnu-build-system)
1784 `(("pkg-config" ,pkg-config)))
1789 ("libarchive" ,libarchive)
1795 (modify-phases %standard-phases
1796 ;; The Nestopia build system consists solely of a Makefile.
1798 ;; XXX Should be unnecessary with the next release.
1800 'build 'patch-makefile
1802 (substitute* "Makefile"
1803 (("@mkdir \\$@") "@mkdir -p $@")
1805 (("CXX =") "CXX ?=")
1806 (("PREFIX =") "PREFIX ?=")
1807 (("^install:\n$") "install:\n\tmkdir -p $(BINDIR)\n"))))
1809 'build 'remove-xdg-desktop-menu-call
1811 (substitute* "Makefile"
1812 (("xdg-desktop-menu install .*") "")))))
1813 #:make-flags (let ((out (assoc-ref %outputs "out")))
1814 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1815 ;; There are no tests.
1817 (home-page "http://0ldsk00l.ca/nestopia/")
1818 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1820 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1821 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1822 emulation community. It provides highly accurate emulation.")
1823 (license license:gpl2+)))
1825 (define-public emulation-station
1827 (name "emulation-station")
1830 (method git-fetch) ; no tarball available
1832 (url "https://github.com/Aloshi/EmulationStation.git")
1833 (commit "646bede"))) ; no version tag
1836 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1837 (build-system cmake-build-system)
1839 '(#:tests? #f)) ; no tests
1841 `(("alsa-lib" ,alsa-lib)
1845 ("freeimage" ,freeimage)
1846 ("freetype" ,freetype)
1849 (synopsis "Video game console emulator front-end")
1850 (description "EmulationStation provides a graphical front-end to a large
1851 number of video game console emulators. It features an interface that is
1852 usable with any game controller that has at least 4 buttons, theming support,
1853 and a game metadata scraper.")
1854 (home-page "http://www.emulationstation.org")
1855 (license license:expat)))
1857 (define-public pinball
1862 (origin (method url-fetch)
1863 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1864 "pinball-" version "/"
1865 "pinball-" version ".tar.gz"))
1868 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
1869 (patches (map search-patch
1870 '("pinball-const-fix.patch"
1871 "pinball-cstddef.patch"
1872 "pinball-missing-separators.patch"
1873 "pinball-src-deps.patch"
1874 "pinball-system-ltdl.patch")))))
1875 (build-system gnu-build-system)
1880 ("sdl-image" ,sdl-image)
1881 ("sdl-mixer" ,sdl-mixer)))
1884 (list (string-append "CPPFLAGS=-I"
1885 (assoc-ref %build-inputs "sdl-image")
1887 (assoc-ref %build-inputs "sdl-mixer")
1889 (home-page "http://pinball.sourceforge.net")
1890 (synopsis "Pinball simulator")
1891 (description "The Emilia Pinball Project is a pinball simulator. There
1892 are only two levels to play with, but they are very addictive.")
1893 (license license:gpl2)))