1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2015, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
18 ;;; Copyright © 2016 Rodger Fox <thylakoid@openmailbox.org>
19 ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
20 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
21 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
22 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
23 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
24 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
25 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
26 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages games)
44 #:use-module (ice-9 match)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix svn-download)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages algebra)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages backup)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages audio)
58 #:use-module (gnu packages avahi)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages fltk)
61 #:use-module (gnu packages fribidi)
62 #:use-module (gnu packages game-development)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages ghostscript)
65 #:use-module (gnu packages gl)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages gnome)
68 #:use-module (gnu packages gperf)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages guile)
71 #:use-module (gnu packages libcanberra)
72 #:use-module (gnu packages libunwind)
73 #:use-module (gnu packages haskell)
74 #:use-module (gnu packages mp3)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages netpbm)
79 #:use-module (gnu packages ocaml)
80 #:use-module (gnu packages python)
81 #:use-module (gnu packages readline)
82 #:use-module (gnu packages xorg)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages databases)
85 #:use-module (gnu packages sdl)
86 #:use-module (gnu packages texinfo)
87 #:use-module (gnu packages check)
88 #:use-module (gnu packages fonts)
89 #:use-module (gnu packages fontutils)
90 #:use-module (gnu packages gstreamer)
91 #:use-module (gnu packages bash)
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages pulseaudio)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages zip)
98 #:use-module (gnu packages xiph)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages lua)
101 #:use-module (gnu packages video)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages tcl)
104 #:use-module (gnu packages xdisorg)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages pcre)
107 #:use-module (guix build-system gnu)
108 #:use-module (guix build-system haskell)
109 #:use-module (guix build-system python)
110 #:use-module (guix build-system cmake)
111 #:use-module (guix build-system trivial))
120 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
121 version ".000-sources." "tar.gz"))
124 "015mvjk2iw1cg1kxwxfnvp2rxb9cylf6yc39i30fdy414k07zkky"))))
125 (build-system gnu-build-system)
126 (inputs `(("glib" ,glib)
127 ("readline" ,readline)
131 ("gtkglext" ,gtkglext)
133 ("libcanberra" ,libcanberra)))
134 (native-inputs `(("python-2" ,python-2)
135 ("pkg-config" ,pkg-config)))
136 (home-page "http://gnubg.org")
137 (synopsis "Backgammon game")
138 (description "The GNU backgammon application can be used for playing, analyzing and
139 teaching the game. It has an advanced evaluation engine based on artificial
140 neural networks suitable for both beginners and advanced players. In
141 addition to a command-line interface, it also features an attractive, 3D
142 representation of the playing board.")
143 (license license:gpl3+)))
145 (define-public gnubik
152 (uri (string-append "mirror://gnu/gnubik/gnubik-"
156 "0mhpfnxzbns0wfrsjv5vafqr34770rbvkmdzxk0x0aq67hb3zyl5"))))
157 (build-system gnu-build-system)
158 (inputs `(("gtk+" ,gtk+-2)
163 ("gtkglext" ,gtkglext)))
164 (native-inputs `(("gettext" ,gnu-gettext)
165 ("pkg-config" ,pkg-config)))
166 (home-page "https://www.gnu.org/software/gnubik/")
167 (synopsis "3d Rubik's cube game")
169 "GNUbik is a puzzle game in which you must manipulate a cube to make
170 each of its faces have a uniform color. The game is customizable, allowing
171 you to set the size of the cube (the default is 3x3) or to change the colors.
172 You may even apply photos to the faces instead of colors. The game is
173 scriptable with Guile.")
174 (license license:gpl3+)))
176 (define-public abbaye
183 (uri (string-append "https://storage.googleapis.com/"
184 "google-code-archive-downloads/v2/code.google.com/"
185 "abbaye-for-linux/abbaye-for-linux-src-"
189 "1wgvckgqa2084rbskxif58wbb83xbas8s1i8s7d57xbj08ryq8rk"))))
190 (build-system gnu-build-system)
192 '(#:modules ((ice-9 match)
193 (guix build gnu-build-system)
195 #:phases (modify-phases %standard-phases
196 (add-after 'set-paths 'set-sdl-paths
197 (lambda* (#:key inputs #:allow-other-keys)
199 (string-append (assoc-ref inputs "sdl-union")
201 (add-after 'patch-source-shebangs 'patch-makefile
202 (lambda* (#:key outputs #:allow-other-keys)
203 ;; Replace /usr with package output directory.
204 (for-each (lambda (file)
206 (("/usr") (assoc-ref outputs "out"))))
207 '("makefile" "src/pantallas.c" "src/comun.h"))))
208 (add-before 'install 'make-install-dirs
209 (lambda* (#:key outputs #:allow-other-keys)
210 (let ((prefix (assoc-ref outputs "out")))
211 ;; Create directories that the makefile assumes exist.
212 (mkdir-p (string-append prefix "/bin"))
213 (mkdir-p (string-append prefix "/share/applications"))
214 (mkdir-p (string-append prefix "/share/pixmaps")))))
215 ;; No configure script.
217 #:tests? #f)) ;; No check target.
218 (native-inputs `(("pkg-config" ,pkg-config)))
219 (inputs `(("sdl-union" ,(sdl-union))))
220 (home-page "http://code.google.com/p/abbaye-for-linux/")
221 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
222 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
223 France. The Cathars, who preach about good Christian beliefs, were being
224 expelled by the Catholic Church out of the Languedoc region in France. One of
225 them, called Jean Raymond, found an old church in which to hide, not knowing
226 that beneath its ruins lay buried an ancient evil.")
227 (license license:gpl3+)))
229 (define-public pingus
236 (uri (string-append "http://pingus.googlecode.com/files/pingus-"
240 "0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m"))
241 (patches (search-patches "pingus-sdl-libs-config.patch"))))
242 (build-system gnu-build-system)
243 (native-inputs `(("pkg-config" ,pkg-config)
245 (inputs `(("sdl" ,sdl)
246 ("sdl-image" ,sdl-image)
247 ("sdl-mixer" ,sdl-mixer)
253 '(#:tests? #f ;no check target
259 (lambda* (#:key outputs #:allow-other-keys)
260 (zero? (system* "make" "install"
261 (string-append "PREFIX="
262 (assoc-ref outputs "out")))))
264 (home-page "http://pingus.seul.org/welcome.html")
265 (synopsis "Lemmings clone")
267 "Pingus is a free Lemmings-like puzzle game in which the player takes
268 command of a bunch of small animals and has to guide them through levels.
269 Since the animals walk on their own, the player can only influence them by
270 giving them commands, like build a bridge, dig a hole, or redirect all animals
271 in the other direction. Multiple such commands are necessary to reach the
272 level's exit. The game is presented in a 2D side view.")
273 ;; Some source files are under bsd-3 and gpl2+ licenses.
274 (license license:gpl3+)))
276 (define-public talkfilters
283 (uri (string-append "http://www.hyperrealm.com/" name "/"
284 name "-" version ".tar.gz"))
286 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
287 (build-system gnu-build-system)
288 (home-page "http://www.gnu.org/software/talkfilters")
289 (synopsis "Convert English text to humorous dialects")
290 (description "The GNU Talk Filters are programs that convert English text
291 into stereotyped or otherwise humorous dialects. The filters are provided as
292 a C library, so they can easily be integrated into other programs.")
293 (license license:gpl2+)))
295 (define-public cmatrix
302 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
306 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
307 (build-system gnu-build-system)
310 (alist-replace 'configure
311 (lambda* (#:key outputs #:allow-other-keys)
312 ;; This old `configure' script doesn't support
313 ;; variables passed as arguments.
314 (let ((out (assoc-ref outputs "out")))
315 (setenv "CONFIG_SHELL" (which "bash"))
317 (system* "./configure"
318 (string-append "--prefix=" out)))))
320 (inputs `(("ncurses" ,ncurses)))
321 (home-page "http://www.asty.org/cmatrix")
322 (synopsis "Simulate the display from \"The Matrix\"")
323 (description "CMatrix simulates the display from \"The Matrix\" and is
324 based on the screensaver from the movie's website. It works with terminal
325 settings up to 132x300 and can scroll lines all at the same rate or
326 asynchronously and at a user-defined speed.")
327 (license license:gpl2+)))
336 (uri (string-append "mirror://gnu/chess/gnuchess-" version
340 "10hvnfhj9bkpz80x20jgxyqvgvrcgfdp8sfcbcrf1dgjn9v936bq"))))
341 (build-system gnu-build-system)
342 (home-page "http://www.gnu.org/software/chess")
343 (synopsis "Full chess implementation")
344 (description "GNU Chess is a chess engine. It allows you to compete
345 against the computer in a game of chess, either through the default terminal
346 interface or via an external visual interface such as GNU XBoard.")
347 (license license:gpl3+)))
349 (define freedink-engine
351 (name "freedink-engine")
355 (uri (string-append "mirror://gnu/freedink/freedink-" version
359 "08c51imfjfcydm7h0va09z8qfw5nc837bi2x754ni2z737hb5kw2"))))
360 (build-system gnu-build-system)
361 (arguments `(#:configure-flags '("--disable-embedded-resources")))
362 (native-inputs `(("gettext" ,gnu-gettext)
363 ("pkg-config" ,pkg-config)))
364 (inputs `(("sdl" ,sdl)
365 ("sdl-image" ,sdl-image)
366 ("sdl-mixer" ,sdl-mixer)
369 ("fontconfig" ,fontconfig)
371 (home-page "http://www.gnu.org/software/freedink/")
372 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
374 "GNU FreeDink is a free and portable re-implementation of the engine
375 for the role-playing game Dink Smallwood. It supports not only the original
376 game data files but it also supports user-produced game mods or \"D-Mods\".
377 To that extent, it also includes a front-end for managing all of your D-Mods.")
378 (license license:gpl3+)))
380 (define freedink-data
382 (name "freedink-data")
383 (version "1.08.20140901")
386 (uri (string-append "mirror://gnu/freedink/freedink-data-"
390 "04f1aa8gfz30qkgv7chjz5n1s8v5hbqs01h2113cq1ylm3isd5sp"))))
391 (build-system gnu-build-system)
393 `(#:phases (alist-delete 'configure (alist-delete 'check %standard-phases))
394 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
395 (home-page "http://www.gnu.org/software/freedink/")
396 (synopsis "Game data for GNU Freedink")
398 "This package contains the game data of GNU Freedink.")
399 (license license:gpl3+)))
401 ;; TODO: Add freedink-dfarc when there's a wxWidgets package.
403 (define-public freedink
404 ;; This is a wrapper that tells the engine where to find the data.
405 (package (inherit freedink-engine)
407 (build-system trivial-build-system)
410 (use-modules (guix build utils))
412 (let* ((output (assoc-ref %outputs "out"))
413 (bin (string-append output "/bin"))
414 (executable (string-append bin "/freedink")))
416 (call-with-output-file executable
418 (format port "#!~a/bin/sh
419 exec ~a/bin/freedink -refdir ~a/share/dink\n"
420 (assoc-ref %build-inputs "bash")
421 (assoc-ref %build-inputs "engine")
422 (assoc-ref %build-inputs "data"))
423 (chmod port #o777)))))
424 #:modules ((guix build utils))))
425 (inputs `(("engine" ,freedink-engine)
426 ("data" ,freedink-data)
428 (native-inputs '())))
430 (define-public xboard
437 (uri (string-append "mirror://gnu/xboard/xboard-" version
441 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
442 (build-system gnu-build-system)
445 ("librsvg" ,librsvg)))
447 `(("texinfo" ,texinfo)
448 ("pkg-config" ,pkg-config)))
449 (home-page "https://www.gnu.org/software/xboard")
450 (synopsis "Graphical user interface for chess programs")
451 (description "GNU XBoard is a graphical board for all varieties of chess,
452 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
453 and Makruk. Several lesser-known variants are also supported. It presents a
454 fully interactive graphical interface and it can load and save games in the
455 Portable Game Notation.")
456 (license license:gpl3+)))
459 (define-public xboing
466 (uri (string-append "http://www.techrescue.org/xboing/xboing"
469 (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
475 (lambda* (#:key outputs #:allow-other-keys)
477 (substitute* "Imakefile"
478 (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
479 (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
482 (substitute* "Imakefile"
483 (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
485 ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
487 (zero? (system* "xmkmf" "-a"
488 (string-append "-DProjectRoot="
489 (assoc-ref outputs "out")))))
490 (alist-replace 'install
491 (lambda* (#:key outputs #:allow-other-keys)
493 (zero? (system* "make" "install.man"))
494 (zero? (system* "make" "install"))))
496 (inputs `(("libx11" ,libx11)
499 (native-inputs `(("imake" ,imake)
500 ("inetutils" ,inetutils)
501 ("makedepend" ,makedepend)))
502 (build-system gnu-build-system)
503 (home-page "http://www.techrescue.org/xboing")
504 (synopsis "Ball and paddle game")
505 (description "XBoing is a blockout type game where you have a paddle which
506 you control to bounce a ball around the game zone destroying blocks with a
507 proton ball. Each block carries a different point value. The more blocks you
508 destroy, the better your score. The person with the highest score wins.")
509 (license (license:x11-style "file://COPYING"
510 "Very similar to the X11 licence."))))
512 (define-public gtypist
518 (uri (string-append "mirror://gnu/gtypist/gtypist-"
522 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
523 (modules '((guix build utils)))
525 ;; We do not provide `ncurses.h' within an `ncursesw'
526 ;; sub-directory, so patch the source accordingly. See
527 ;; <http://bugs.gnu.org/19018>.
528 '(for-each (lambda (file)
530 (("ncursesw/ncurses.h")
532 (find-files "." "configure$|\\.c$")))))
533 (build-system gnu-build-system)
534 (inputs `(("ncurses" ,ncurses)
536 (home-page "http://www.gnu.org/software/gtypist/")
537 (synopsis "Typing tutor")
539 "GNU Typist is a universal typing tutor. It can be used to learn and
540 practice touch-typing. Several tutorials are included; in addition to
541 tutorials for the standard QWERTY layout, there are also tutorials for the
542 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
543 are primarily in English, however some in other languages are provided.")
544 (license license:gpl3+)))
546 (define-public irrlicht
553 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
554 (version-major+minor version)
555 "/" version "/irrlicht-" version ".zip"))
558 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))))
559 (build-system gnu-build-system)
561 `(#:phases (alist-cons-after
562 'unpack 'fix-build-env
563 (lambda* (#:key outputs #:allow-other-keys)
564 (let ((out (assoc-ref outputs "out")))
565 (substitute* "Makefile"
566 (("INSTALL_DIR = /usr/local/lib")
567 (string-append "INSTALL_DIR = " out "/lib")))
568 ;; The Makefile assumes these directories exist.
569 (mkdir-p (string-append out "/lib"))
570 (mkdir-p (string-append out "/include"))))
573 (lambda* (#:key source #:allow-other-keys)
574 (and (zero? (system* "unzip" source))
575 ;; The actual source is buried a few directories deep.
576 (chdir (string-append "irrlicht-" ,version "/source/Irrlicht/"))))
577 ;; No configure script
578 (alist-delete 'configure %standard-phases)))
579 #:tests? #f ; no check target
580 #:make-flags '("CC=gcc" "sharedlib")))
586 (synopsis "3D game engine written in C++")
588 "The Irrlicht Engine is a high performance realtime 3D engine written in
589 C++. Features include an OpenGL renderer, extensible materials, scene graph
590 management, character animation, particle and other special effects, support
591 for common mesh file formats, and collision detection.")
592 (home-page "http://irrlicht.sourceforge.net/")
593 (license license:zlib)))
596 ;; The latest release on SourceForge relies on an unreleased version of SFML
597 ;; with a different API, so we take the latest version from the official
598 ;; repository on Github.
599 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
603 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
607 (url "https://github.com/thelaui/M.A.R.S..git")
609 (file-name (string-append name "-" version))
612 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
613 (patches (search-patches "mars-sfml-2.3.patch"
614 "mars-install.patch"))))
615 (build-system cmake-build-system)
617 `(#:tests? #f ; There are no tests
619 (modify-phases %standard-phases
620 (add-after 'unpack 'fix-install-path
622 (substitute* "src/CMakeLists.txt"
623 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
624 "${CMAKE_INSTALL_PREFIX}/bin"))
626 (add-after 'unpack 'fix-data-path
627 (lambda* (#:key outputs #:allow-other-keys)
628 (substitute* "src/System/settings.cpp"
629 (("C_dataPath = \"./data/\";")
630 (string-append "C_dataPath = \""
631 (assoc-ref outputs "out")
632 "/share/games/marsshooter/\";")))
639 (home-page "http://marsshooter.org")
640 (synopsis "2D space shooter")
642 "M.A.R.S. is a 2D space shooter with pretty visual effects and
643 attractive physics. Players can battle each other or computer controlled
644 enemies in different game modes such as space ball, death match, team death
645 match, cannon keep, and grave-itation pit.")
646 (license license:gpl3+))))
648 (define minetest-data
650 (name "minetest-data")
655 "https://github.com/minetest/minetest_game/archive/"
657 (file-name (string-append name "-" version ".tar.gz"))
660 "11fzdh4icx2yvjfz1skdql0d0wxpzdr006k993v33x72s0q2ig7f"))))
661 (build-system trivial-build-system)
665 ("gzip" ,(@ (gnu packages compression) gzip))))
667 `(#:modules ((guix build utils))
669 (use-modules (guix build utils))
670 (let ((tar (string-append (assoc-ref %build-inputs "tar")
672 (install-dir (string-append
674 "/share/minetest/games/minetest_game"))
675 (path (string-append (assoc-ref %build-inputs
679 (system* tar "xvf" (assoc-ref %build-inputs "source"))
680 (chdir (string-append "minetest_game-" ,version))
681 (mkdir-p install-dir)
682 (copy-recursively "." install-dir)))))
683 (synopsis "Main game data for the Minetest game engine")
685 "Game data for the Minetest infinite-world block sandox game.")
686 (home-page "http://minetest.net")
687 (license license:lgpl2.1+)))
689 (define-public minetest
696 "https://github.com/minetest/minetest/archive/"
698 (file-name (string-append name "-" version ".tar.gz"))
701 "0m3hhk5icx4y4gd970z7ya2013fq4vvqbjljmck62ik03baf8g90"))))
702 (build-system cmake-build-system)
705 (list "-DRUN_IN_PLACE=0"
706 "-DENABLE_FREETYPE=1"
708 (string-append "-DIRRLICHT_INCLUDE_DIR="
709 (assoc-ref %build-inputs "irrlicht")
711 (string-append "-DCURL_INCLUDE_DIR="
712 (assoc-ref %build-inputs "curl")
714 #:tests? #f)) ; no check target
716 (list (search-path-specification
717 (variable "MINETEST_SUBGAME_PATH")
718 (files '("share/minetest/games")))))
720 `(("pkg-config" ,pkg-config)))
722 `(("irrlicht" ,irrlicht)
725 ("libxxf86vm" ,libxxf86vm)
728 ("libvorbis" ,libvorbis)
730 ("freetype" ,(@ (gnu packages fontutils) freetype))
733 ("gettext" ,gnu-gettext)
736 `(("minetest-data" ,minetest-data)))
737 (synopsis "Infinite-world block sandbox game")
739 "Minetest is a sandbox construction game. Players can create and destroy
740 various types of blocks in a three-dimensional open world. This allows
741 forming structures in every possible creation, on multiplayer servers or as a
742 single player. Mods and texture packs allow players to personalize the game
744 (home-page "http://minetest.net")
745 (license license:lgpl2.1+)))
754 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
755 "glk/implementations/glkterm-104.tar.gz"))
758 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
759 (build-system gnu-build-system)
760 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
762 '(#:tests? #f ; no check target
766 (lambda* (#:key outputs #:allow-other-keys)
767 (let* ((out (assoc-ref outputs "out"))
768 (inc (string-append out "/include")))
772 (copy-file file (string-append inc "/" file)))
773 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
774 (mkdir (string-append out "/lib"))
775 (copy-file "libglkterm.a" (string-append out "/lib/libglkterm.a"))))
776 (alist-delete 'configure %standard-phases))))
777 (home-page "http://www.eblong.com/zarf/glk/")
778 (synopsis "Curses Implementation of the Glk API")
780 "Glk defines a portable API for applications with text UIs. It was
781 primarily designed for interactive fiction, but it should be suitable for many
782 interactive text utilities, particularly those based on a command line.
783 This is an implementation of the Glk library which runs in a terminal window,
784 using the curses.h library for screen control.")
785 (license (license:fsf-free "file://README"))))
787 (define-public glulxe
794 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
795 "glulx/interpreters/glulxe/glulxe-052.tar.gz"))
798 "19iw6kl8ncqcy9pv4gsqfh3xsa1n94zd234rqavvmxccnf3nj19g"))))
799 (build-system gnu-build-system)
800 (inputs `(("glk" ,glkterm)))
802 '(#:tests? #f ; no check target
804 (let* ((glk (assoc-ref %build-inputs "glk")))
805 (list (string-append "GLKINCLUDEDIR=" glk "/include")
806 (string-append "GLKLIBDIR=" glk "/lib")
807 (string-append "GLKMAKEFILE=" "Make.glkterm")))
811 (lambda* (#:key outputs #:allow-other-keys)
812 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
814 (copy-file "glulxe" (string-append bin "/glulxe"))))
815 (alist-delete 'configure %standard-phases))))
816 (home-page "http://www.eblong.com/zarf/glulx/")
817 (synopsis "Interpreter for Glulx VM")
819 "Glulx is a 32-bit portable virtual machine intended for writing and
820 playing interactive fiction. It was designed by Andrew Plotkin to relieve
821 some of the restrictions in the venerable Z-machine format. This is the
822 reference interpreter, using Glk API.")
823 (license (license:fsf-free "file://README"))))
831 (uri (string-append "https://christoph-ender.de/fizmo/source/"
832 name "-" version ".tar.gz"))
835 "1w7cgyjrhgkadjrazijzhq7zh0pl5bfc6wl7mdpgh020y4kp46d7"))))
836 (build-system gnu-build-system)
839 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
840 (ncurses (assoc-ref %build-inputs "ncurses")))
841 (list (string-append "jpeg_CFLAGS=-I" libjpeg "/include")
842 (string-append "jpeg_LIBS=-ljpeg")
843 (string-append "ncursesw_CFLAGS=-I" ncurses "/include")
844 (string-append "ncursesw_LIBS=-lncursesw")))))
846 `(("pkg-config" ,pkg-config)))
848 `(("libjpeg" ,libjpeg)
850 ("libsndfile" ,libsndfile)
854 (home-page "https://christoph-ender.de/fizmo/")
855 (synopsis "Z-machine interpreter")
857 "Fizmo is a console-based Z-machine interpreter. It is used to play
858 interactive fiction, also known as text adventures, which were implemented
859 either by Infocom or created using the Inform compiler.")
860 (license license:bsd-3)))
862 (define-public retroarch
869 (uri (string-append "https://github.com/libretro/RetroArch/archive/v"
871 (file-name (string-append name "-" version ".tar.gz"))
873 (base32 "1xar0wagcz50clwwkvjg4zq9m1sjqw47vw3xx44pisdj94g21m5y"))))
874 (build-system gnu-build-system)
876 '(#:tests? #f ; no tests
881 (substitute* "qb/qb.libs.sh"
882 (("/bin/true") (which "true")))
885 (string-append "--prefix=" %output)
886 (string-append "--global-config-dir=" %output "/etc"))))
889 `(("alsa-lib" ,alsa-lib)
891 ("freetype" ,freetype)
892 ("libxinerama" ,libxinerama)
893 ("libxkbcommon" ,libxkbcommon)
898 ("pulseaudio" ,pulseaudio)
904 `(("pkg-config" ,pkg-config)
906 (home-page "http://www.libretro.com/")
907 (synopsis "Reference frontend for the libretro API")
909 "Libretro is a simple but powerful development interface that allows for
910 the easy creation of emulators, games and multimedia applications that can plug
911 straight into any libretro-compatible frontend. RetroArch is the official
912 reference frontend for the libretro API, currently used by most as a modular
913 multi-system game/emulator system.")
914 (license license:gpl3+)))
922 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
926 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
927 (build-system gnu-build-system)
928 (inputs `(("readline" ,readline)))
929 (synopsis "Play the game of Go")
931 "GNU Go is a program that plays the game of Go, in which players
932 place stones on a grid to form territory or capture other stones. While
933 it can be played directly from the terminal, rendered in ASCII characters,
934 it is also possible to play GNU Go with 3rd party graphical interfaces or
935 even in Emacs. It supports the standard game storage format (SGF, Smart
936 Game Format) and inter-process communication format (GMP, Go Modem
938 (home-page "http://www.gnu.org/software/gnugo/")
939 (license license:gpl3+)))
941 (define-public extremetuxracer
943 (name "extremetuxracer")
948 "http://downloads.sourceforge.net/project/extremetuxracer/releases/"
949 version "/etr-" version ".tar.xz"))
952 "1lg3z7jhzmsjym53qss8mbydny8hafwjnfsc7x91hrr9zrkwblly"))))
953 (build-system gnu-build-system)
955 `(("pkg-config" ,pkg-config)))
959 (synopsis "High speed arctic racing game based on Tux Racer")
960 ;; Snarfed straight from Debian
961 (description "Extreme Tux Racer, or etracer as it is called for short, is
962 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
963 game is to slide down a snow- and ice-covered mountain as quickly as possible,
964 avoiding the trees and rocks that will slow you down.
966 Collect herrings and other goodies while sliding down the hill, but avoid fish
969 This game is based on the GPL version of the famous game TuxRacer.")
970 (home-page "http://sourceforge.net/projects/extremetuxracer/")
971 (license license:gpl2+)))
973 (define-public gnujump
979 (uri (string-append "mirror://gnu/gnujump/gnujump-"
983 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
984 (build-system gnu-build-system)
987 (modify-phases %standard-phases
989 'configure 'link-libm
990 (lambda _ (setenv "LIBS" "-lm"))))))
995 ("sdl-image" ,sdl-image)
996 ("sdl-mixer" ,sdl-mixer)))
997 (home-page "http://gnujump.es.gnu.org/")
999 "Game of jumping to the next floor, trying not to fall")
1001 "GNUjump is a simple, yet addictive game in which you must jump from
1002 platform to platform to avoid falling, while the platforms drop at faster rates
1003 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
1004 falling, themeable graphics and sounds, and replays.")
1005 (license license:gpl3+)))
1007 (define-public wesnoth
1013 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
1014 (version-major+minor version) "/wesnoth-"
1016 name "-" version ".tar.bz2"))
1019 "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5"))))
1020 (build-system cmake-build-system)
1022 '(#:tests? #f ; no check target
1024 ;; XXX: Failed to compile with '-Werror=old-style-cast'.
1025 ;; boost/mpl/assert.hpp:313:58: error:
1026 ;; use of old-style cast [-Werror=old-style-cast]
1028 ;; cc1plus: all warnings being treated as errors
1029 '("-DENABLE_STRICT_COMPILATION=OFF")))
1031 `(("gettext" ,gnu-gettext)
1032 ("pkg-config" ,pkg-config)))
1036 ("fribidi" ,fribidi)
1037 ("libvorbis" ,libvorbis)
1039 ("sdl-image" ,sdl-image)
1040 ("sdl-mixer" ,sdl-mixer)
1041 ("sdl-net" ,sdl-net)
1042 ("sdl-ttf" ,sdl-ttf)))
1043 (home-page "http://www.wesnoth.org/")
1044 (synopsis "Turn-based strategy game")
1046 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
1047 with several single player campaigns, and multiplayer games (both networked and
1050 Battle for control on a range of maps, using variety of units which have
1051 advantages and disadvantages against different types of attacks. Units gain
1052 experience and advance levels, and are carried over from one scenario to the
1054 (license license:gpl2+)))
1056 (define-public dosbox
1059 (version "0.74.svn3947")
1063 (url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/")
1065 (file-name (string-append name "-" version "-checkout"))
1066 ;; Use SVN head, since the last release (2010) is incompatible
1067 ;; with GCC 4.8+ (see
1068 ;; <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624976>).
1071 "1p918j6090d1nkvgq7ifvmn506zrdmyi32y7p3ms40d5ssqjg8fj"))))
1072 (build-system gnu-build-system)
1074 `(#:phases (modify-phases %standard-phases
1078 (zero? (system* "sh" "autogen.sh")))))))
1080 `(("autoconf" ,autoconf)
1081 ("automake" ,automake)))
1086 ("alsa-lib" ,alsa-lib)
1089 (home-page "http://www.dosbox.com")
1090 (synopsis "X86 emulator with CGA/EGA/VGA/etc. graphics and sound")
1091 (description "DOSBox is a DOS-emulator that uses the SDL library. DOSBox
1092 also emulates CPU:286/386 realmode/protected mode, Directory
1093 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
1094 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
1096 (license license:gpl2+)))
1098 (define-public gamine
1104 (uri (string-append "mirror://sourceforge/gamine-game/"
1105 "gamine-" version ".tar.gz"))
1108 "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h"))))
1109 (build-system gnu-build-system)
1111 `(("pkg-config" ,pkg-config)
1112 ("intltool" ,intltool)))
1114 `(("gstreamer" ,gstreamer)
1115 ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin
1116 ("gst-plugins-good" ,gst-plugins-good) ;for wav playback
1121 (let ((out (assoc-ref %outputs "out")))
1122 (list (string-append "PREFIX=" out)
1123 (string-append "SYSCONFDIR=" out "/etc")))
1125 (modify-phases %standard-phases
1128 'install 'wrap-gamine
1129 (lambda* (#:key outputs #:allow-other-keys)
1130 (let ((out (assoc-ref outputs "out"))
1131 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1132 (wrap-program (string-append out "/bin/gamine")
1133 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
1135 (home-page "http://gamine-game.sourceforge.net/")
1136 (synopsis "Mouse and keyboard discovery for children")
1138 "Gamine is a game designed for young children who are learning to use the
1139 mouse and keyboard. The child uses the mouse to draw colored dots and lines
1140 on the screen and keyboard to display letters.")
1141 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
1142 (license license:gpl3)))
1144 (define-public raincat
1152 "http://hackage.haskell.org/package/Raincat/Raincat-"
1157 "1aalh68h6799mv4vyg30zpskl5jkn6x2j1jza7p4lrflyifxzar8"))))
1158 (build-system haskell-build-system)
1160 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
1161 ("ghc-mtl" ,ghc-mtl)
1162 ("ghc-random" ,ghc-random)
1163 ("ghc-glut" ,ghc-glut)
1164 ("freeglut" ,freeglut)
1165 ("ghc-opengl" ,ghc-opengl)
1166 ("ghc-sdl" ,ghc-sdl)
1167 ("ghc-sdl-image" ,ghc-sdl-image)
1168 ("ghc-sdl-mixer" ,ghc-sdl-mixer)))
1169 (home-page "http://raincat.bysusanlin.com/")
1170 (synopsis "Puzzle game with a cat in lead role")
1171 (description "Project Raincat is a game developed by Carnegie Mellon
1172 students through GCS during the Fall 2008 semester. Raincat features game
1173 play inspired from classics Lemmings and The Incredible Machine. The project
1174 proved to be an excellent learning experience for the programmers. Everything
1175 is programmed in Haskell.")
1176 (license license:bsd-3)))
1178 (define-public manaplus
1181 (version "1.6.8.14")
1185 "http://repo.manaplus.org/manaplus/download/"
1186 version "/manaplus-" version ".tar.xz"))
1189 "1mah4w6ng0j76cjzbw8y9m2ds5f1w5ka9b1k3gzgvxh4yaphqnff"))))
1190 (build-system gnu-build-system)
1193 (list (string-append "CPPFLAGS=-I"
1194 (assoc-ref %build-inputs "sdl-union")
1197 `(("pkg-config" ,pkg-config)))
1201 ("libxml2" ,libxml2)
1204 ("sdl-union" ,(sdl-union))))
1205 (home-page "http://manaplus.org")
1206 (synopsis "Client for 'The Mana World' and similar games")
1208 "ManaPlus is a 2D MMORPG client for game servers. It is the only
1209 fully supported client for @uref{http://www.themanaworld.org, The mana
1210 world}, @uref{http://evolonline.org, Evol Online} and
1211 @uref{http://landoffire.org, Land of fire}.")
1212 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
1213 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
1214 ;; The rest is under GPL2+.
1215 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
1217 (define-public mupen64plus-core
1219 (name "mupen64plus-core")
1225 "https://github.com/mupen64plus/mupen64plus-core/archive/"
1227 (file-name (string-append name "-" version ".tar.gz"))
1229 (base32 "0dg2hksm5qni2hcha93k7n4fqr92888p946f7phb0ndschzfh9kk"))))
1230 (build-system gnu-build-system)
1232 `(("pkg-config" ,pkg-config)
1235 `(("freetype" ,freetype)
1243 (modify-phases %standard-phases
1244 ;; The mupen64plus build system has no configure phase.
1246 ;; Makefile is in a subdirectory.
1248 'build 'cd-to-project-dir
1250 (chdir "projects/unix"))))
1251 #:make-flags (let ((out (assoc-ref %outputs "out")))
1252 (list "all" (string-append "PREFIX=" out)))
1253 ;; There are no tests.
1255 ;; As per the Makefile (in projects/unix/Makefile):
1256 (supported-systems '("i686-linux" "x86_64-linux"))
1257 (home-page "http://www.mupen64plus.org/")
1258 (synopsis "Nintendo 64 emulator core library")
1260 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1261 which is capable of accurately playing many games. This package contains the
1263 (license license:gpl2+)))
1265 (define-public mupen64plus-audio-sdl
1267 (name "mupen64plus-audio-sdl")
1273 "https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/"
1275 (file-name (string-append name "-" version ".tar.gz"))
1277 (base32 "0ss6w92n2rpfnazhg9lbq0nvs3fqx93nliz3k3wjxdlx4dpi7h3a"))))
1278 (build-system gnu-build-system)
1280 `(("pkg-config" ,pkg-config)
1283 `(("mupen64plus-core" ,mupen64plus-core)
1287 (modify-phases %standard-phases
1288 ;; The mupen64plus build system has no configure phase.
1290 ;; Makefile is in a subdirectory.
1292 'build 'cd-to-project-dir
1294 (chdir "projects/unix"))))
1296 (let ((out (assoc-ref %outputs "out"))
1297 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1299 (string-append "PREFIX=" out)
1300 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1301 ;; There are no tests.
1303 (home-page "http://www.mupen64plus.org/")
1304 (synopsis "Mupen64Plus SDL input plugin")
1306 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1307 which is capable of accurately playing many games. This package contains the
1309 (license license:gpl2+)))
1311 (define-public mupen64plus-input-sdl
1313 (name "mupen64plus-input-sdl")
1319 "https://github.com/mupen64plus/mupen64plus-input-sdl/archive/"
1321 (file-name (string-append name "-" version ".tar.gz"))
1323 (base32 "11sj5dbalp2nrlmki34vy7wy28vc175pnnkdk65p8599hnyq37ri"))))
1324 (build-system gnu-build-system)
1326 `(("which" ,which)))
1328 `(("mupen64plus-core" ,mupen64plus-core)
1332 (modify-phases %standard-phases
1333 ;; The mupen64plus build system has no configure phase.
1335 ;; Makefile is in a subdirectory.
1337 'build 'cd-to-project-dir
1339 (chdir "projects/unix"))))
1341 (let ((out (assoc-ref %outputs "out"))
1342 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1344 (string-append "PREFIX=" out)
1345 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1346 ;; There are no tests.
1348 (home-page "http://www.mupen64plus.org/")
1349 (synopsis "Mupen64Plus SDL input plugin")
1351 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1352 which is capable of accurately playing many games. This package contains the
1354 (license license:gpl2+)))
1356 (define-public mupen64plus-rsp-hle
1358 (name "mupen64plus-rsp-hle")
1364 "https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/"
1366 (file-name (string-append name "-" version ".tar.gz"))
1368 (base32 "15h7mgz6xd2zjzm6l3f96sbs8kwr3xvbwzgikhnka79m6c69hsxv"))))
1369 (build-system gnu-build-system)
1371 `(("mupen64plus-core" ,mupen64plus-core)))
1374 (modify-phases %standard-phases
1375 ;; The mupen64plus build system has no configure phase.
1377 ;; Makefile is in a subdirectory.
1379 'build 'cd-to-project-dir
1381 (chdir "projects/unix"))))
1383 (let ((out (assoc-ref %outputs "out"))
1384 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1386 (string-append "PREFIX=" out)
1387 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1388 ;; There are no tests.
1390 (home-page "http://www.mupen64plus.org/")
1391 (synopsis "Mupen64Plus SDL input plugin")
1393 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1394 which is capable of accurately playing many games. This package contains the
1395 high-level emulation (HLE) RSP processor plugin.")
1396 (license license:gpl2+)))
1398 (define-public mupen64plus-rsp-z64
1400 (name "mupen64plus-rsp-z64")
1406 "https://github.com/mupen64plus/mupen64plus-rsp-z64/archive/"
1408 (file-name (string-append name "-" version ".tar.gz"))
1410 (base32 "10jz1w2dhx5slhyk4m8mdqlpsd6cshchslr1fckb2ayzb1ls3ghi"))))
1411 (build-system gnu-build-system)
1413 `(("mupen64plus-core" ,mupen64plus-core)))
1416 (modify-phases %standard-phases
1417 ;; The mupen64plus build system has no configure phase.
1419 ;; Makefile is in a subdirectory.
1421 'build 'cd-to-project-dir
1423 (chdir "projects/unix"))))
1425 (let ((out (assoc-ref %outputs "out"))
1426 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1428 (string-append "PREFIX=" out)
1429 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1430 ;; There are no tests.
1432 (home-page "http://www.mupen64plus.org/")
1433 (synopsis "Mupen64Plus SDL input plugin")
1435 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1436 which is capable of accurately playing many games. This package contains the
1437 Z64 RSP processor plugin.")
1438 (license license:gpl2+)))
1440 (define-public mupen64plus-video-arachnoid
1442 (name "mupen64plus-video-arachnoid")
1448 "https://github.com/mupen64plus/mupen64plus-video-arachnoid/archive/"
1450 (file-name (string-append name "-" version ".tar.gz"))
1452 (base32 "0jjwf144rihznm4lnqbhgigxw664v3v32wy94adaa6imk8z6gslh"))))
1453 (build-system gnu-build-system)
1455 `(("pkg-config" ,pkg-config)
1459 ("mupen64plus-core" ,mupen64plus-core)))
1462 (modify-phases %standard-phases
1463 ;; The mupen64plus build system has no configure phase.
1465 ;; Makefile is in a subdirectory.
1467 'build 'cd-to-project-dir
1469 (chdir "projects/unix"))))
1471 (let ((out (assoc-ref %outputs "out"))
1472 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1474 (string-append "PREFIX=" out)
1475 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1476 ;; There are no tests.
1478 (home-page "http://www.mupen64plus.org/")
1479 (synopsis "Mupen64Plus Rice Video plugin")
1481 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1482 which is capable of accurately playing many games. This package contains the
1483 Arachnoid video plugin.")
1484 (license license:gpl2+)))
1486 (define-public mupen64plus-video-glide64
1488 (name "mupen64plus-video-glide64")
1494 "https://github.com/mupen64plus/mupen64plus-video-glide64/archive/"
1496 (file-name (string-append name "-" version ".tar.gz"))
1498 (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
1499 (build-system gnu-build-system)
1501 `(("pkg-config" ,pkg-config)
1505 ("mupen64plus-core" ,mupen64plus-core)
1509 (modify-phases %standard-phases
1510 ;; The mupen64plus build system has no configure phase.
1512 ;; Makefile is in a subdirectory.
1514 'build 'cd-to-project-dir
1516 (chdir "projects/unix")))
1517 ;; XXX Should be unnecessary with the next release.
1521 (substitute* "Makefile"
1522 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1523 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1525 (let ((out (assoc-ref %outputs "out"))
1526 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1528 (string-append "PREFIX=" out)
1529 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1530 ;; There are no tests.
1532 (home-page "http://www.mupen64plus.org/")
1533 (synopsis "Mupen64Plus Rice Video plugin")
1535 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1536 which is capable of accurately playing many games. This package contains the
1537 Glide64 video plugin.")
1538 (license license:gpl2+)))
1540 (define-public mupen64plus-video-glide64mk2
1542 (name "mupen64plus-video-glide64mk2")
1548 "https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/"
1550 (file-name (string-append name "-" version ".tar.gz"))
1552 (base32 "1ihl4q293d6svba26b4mhapjcdg12p90gibz79b4mx423jlcxxj9"))))
1553 (build-system gnu-build-system)
1555 `(("pkg-config" ,pkg-config)
1561 ("mupen64plus-core" ,mupen64plus-core)
1566 (modify-phases %standard-phases
1567 ;; The mupen64plus build system has no configure phase.
1569 ;; Makefile is in a subdirectory.
1571 'build 'cd-to-project-dir
1573 (chdir "projects/unix"))))
1575 (let ((out (assoc-ref %outputs "out"))
1576 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1578 (string-append "PREFIX=" out)
1579 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1580 ;; There are no tests.
1582 (home-page "http://www.mupen64plus.org/")
1583 (synopsis "Mupen64Plus Rice Video plugin")
1585 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1586 which is capable of accurately playing many games. This package contains the
1587 Glide64MK2 video plugin.")
1588 (license license:gpl2+)))
1590 (define-public mupen64plus-video-rice
1592 (name "mupen64plus-video-rice")
1598 "https://github.com/mupen64plus/mupen64plus-video-rice/archive/"
1600 (file-name (string-append name "-" version ".tar.gz"))
1602 (base32 "0rd2scjmh285w61aj3mgx71whg5rqrjbry3cdgicczrnyvf8wdvk"))))
1603 (build-system gnu-build-system)
1605 `(("pkg-config" ,pkg-config)
1608 `(("libpng" ,libpng)
1610 ("mupen64plus-core" ,mupen64plus-core)
1614 (modify-phases %standard-phases
1615 ;; The mupen64plus build system has no configure phase.
1617 ;; Makefile is in a subdirectory.
1619 'build 'cd-to-project-dir
1621 (chdir "projects/unix"))))
1623 (let ((out (assoc-ref %outputs "out"))
1624 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1626 (string-append "PREFIX=" out)
1627 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1628 ;; There are no tests.
1630 (home-page "http://www.mupen64plus.org/")
1631 (synopsis "Mupen64Plus Rice Video plugin")
1633 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1634 which is capable of accurately playing many games. This package contains the
1635 Rice Video plugin.")
1636 (license license:gpl2+)))
1638 (define-public mupen64plus-video-z64
1640 (name "mupen64plus-video-z64")
1646 "https://github.com/mupen64plus/mupen64plus-video-z64/archive/"
1648 (file-name (string-append name "-" version ".tar.gz"))
1650 (base32 "1x7wsjs5gx2iwx20p4cjcbf696zsjlh31qxmghwv0ifrq8x58s1b"))))
1651 (build-system gnu-build-system)
1653 `(("pkg-config" ,pkg-config)
1657 ("mupen64plus-core" ,mupen64plus-core)
1661 (modify-phases %standard-phases
1662 ;; The mupen64plus build system has no configure phase.
1664 ;; Makefile is in a subdirectory.
1666 'build 'cd-to-project-dir
1668 (chdir "projects/unix")))
1669 ;; XXX Should be unnecessary with the next release.
1673 (substitute* "Makefile"
1674 (("SDL_CONFIG = (.*)sdl-config" all prefix)
1675 (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
1677 (let ((out (assoc-ref %outputs "out"))
1678 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1680 (string-append "PREFIX=" out)
1681 (string-append "APIDIR=" m64p "/include/mupen64plus")))
1682 ;; There are no tests.
1684 (home-page "http://www.mupen64plus.org/")
1685 (synopsis "Mupen64Plus Z64 video plugin")
1687 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1688 which is capable of accurately playing many games. This package contains the
1690 (license license:gpl2+)))
1692 (define-public mupen64plus-ui-console
1694 (name "mupen64plus-ui-console")
1700 "https://github.com/mupen64plus/mupen64plus-ui-console/archive/"
1702 (file-name (string-append name "-" version ".tar.gz"))
1704 (base32 "04qkpd8ic7xsgnqz7spl00wxdygf79m7d1k8rabbygjk5lg6p8z2"))
1705 (patches (search-patches "mupen64plus-ui-console-notice.patch"))))
1706 (build-system gnu-build-system)
1708 `(("pkg-config" ,pkg-config)
1712 ;; Mupen64Plus supports a single data directory and a single plugin
1713 ;; directory in its configuration, yet we need data and plugin files from
1714 ;; a variety of packages. The best way to deal with this is to install
1715 ;; all packages from which data and plugin files are needed into one's
1716 ;; profile, and point the configuration there. Hence, propagate the most
1717 ;; important packages here to save the user from the bother. The patch
1718 ;; mupen64plus-ui-console-notice also gives users instructions on what
1719 ;; they need to do in order to point the configuration to their profile.
1721 `(("mupen64plus-core" ,mupen64plus-core)
1722 ("mupen64plus-audio-sdl" ,mupen64plus-audio-sdl)
1723 ("mupen64plus-input-sdl" ,mupen64plus-input-sdl)
1724 ("mupen64plus-rsp-hle" ,mupen64plus-rsp-hle)
1725 ("mupen64plus-video-glide64" ,mupen64plus-video-glide64)
1726 ("mupen64plus-video-glide64mk2" ,mupen64plus-video-glide64mk2)
1727 ("mupen64plus-video-rice" ,mupen64plus-video-rice)))
1730 (modify-phases %standard-phases
1731 ;; The mupen64plus build system has no configure phase.
1733 ;; Makefile is in a subdirectory.
1735 'build 'cd-to-project-dir
1737 (chdir "projects/unix"))))
1739 (let ((out (assoc-ref %outputs "out"))
1740 (m64p (assoc-ref %build-inputs "mupen64plus-core")))
1742 (string-append "PREFIX=" out)
1743 (string-append "APIDIR=" m64p "/include/mupen64plus")
1744 ;; Trailing slash matters here.
1745 (string-append "COREDIR=" m64p "/lib/")))
1746 ;; There are no tests.
1748 (home-page "http://www.mupen64plus.org/")
1749 (synopsis "Mupen64Plus SDL input plugin")
1751 "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
1752 which is capable of accurately playing many games. This package contains the
1753 command line user interface. Installing this package is the easiest way
1754 towards a working Mupen64Plus for casual users.")
1755 (license license:gpl2+)))
1757 (define-public nestopia-ue
1759 (name "nestopia-ue")
1764 "https://github.com/rdanbrook/nestopia/archive/"
1766 (file-name (string-append name "-" version ".tar.gz"))
1769 "1dzrrjmvyqks64q5l5pfly80jb6qcsbj5b3dm40fijd5xnpbapci"))
1770 (modules '((guix build utils)))
1773 ;; We don't need libretro for the GNU/Linux build.
1774 (delete-file-recursively "libretro")
1776 (delete-file-recursively "source/zlib")
1777 (substitute* "source/core/NstZlib.cpp"
1778 (("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
1779 (build-system gnu-build-system)
1781 `(("pkg-config" ,pkg-config)))
1786 ("libarchive" ,libarchive)
1792 (modify-phases %standard-phases
1793 ;; The Nestopia build system consists solely of a Makefile.
1795 (add-before 'build 'remove-xdg-desktop-menu-call
1797 (substitute* "Makefile"
1798 (("xdg-desktop-menu install .*") ""))))
1799 (add-before 'build 'remove-gdkwayland-include
1801 (substitute* "source/unix/gtkui/gtkui.h"
1802 (("#include <gdk/gdkwayland\\.h>") "")))))
1803 #:make-flags (let ((out (assoc-ref %outputs "out")))
1804 (list "CC=gcc" "CXX=g++" (string-append "PREFIX=" out)))
1805 ;; There are no tests.
1807 (home-page "http://0ldsk00l.ca/nestopia/")
1808 (synopsis "Nintendo Entertainment System (NES/Famicom) emulator")
1810 "Nestopia UE (Undead Edition) is a fork of the Nintendo Entertainment
1811 System (NES/Famicom) emulator Nestopia, with enhancements from members of the
1812 emulation community. It provides highly accurate emulation.")
1813 (license license:gpl2+)))
1815 (define-public emulation-station
1816 (let ((commit "646bede3d9ec0acf0ae378415edac136774a66c5"))
1818 (name "emulation-station")
1821 (method git-fetch) ; no tarball available
1823 (url "https://github.com/Aloshi/EmulationStation.git")
1824 (commit commit))) ; no version tag
1827 "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v"))))
1828 (build-system cmake-build-system)
1830 '(#:tests? #f)) ; no tests
1832 `(("alsa-lib" ,alsa-lib)
1836 ("freeimage" ,freeimage)
1837 ("freetype" ,freetype)
1840 (synopsis "Video game console emulator front-end")
1841 (description "EmulationStation provides a graphical front-end to a large
1842 number of video game console emulators. It features an interface that is
1843 usable with any game controller that has at least 4 buttons, theming support,
1844 and a game metadata scraper.")
1845 (home-page "http://www.emulationstation.org")
1846 (license license:expat))))
1848 (define openttd-engine
1850 (name "openttd-engine")
1853 (origin (method url-fetch)
1854 (uri (string-append "http://binaries.openttd.org/releases/"
1855 version "/openttd-" version "-source.tar.xz"))
1858 "1ak32fj5xkk2fvmm3g8i7wzmk4bh2ijsp8fzvvw5wj6365p9j24v"))
1859 (modules '((guix build utils)))
1861 ;; The DOS port contains proprietary software.
1862 '(delete-file-recursively "os/dos"))))
1863 (build-system gnu-build-system)
1865 `(#:tests? #f ; no "check" target
1867 (modify-phases %standard-phases
1868 ;; The build process fails if the configure script is passed the
1869 ;; option "--enable-fast-install".
1871 (lambda* (#:key inputs outputs #:allow-other-keys)
1872 (let ((out (assoc-ref outputs "out"))
1873 (lzo (assoc-ref inputs "lzo")))
1875 (system* "./configure"
1876 (string-append "--prefix=" out)
1877 ;; Provide the "lzo" path.
1878 (string-append "--with-liblzo2="
1879 lzo "/lib/liblzo2.a")
1880 ;; Put the binary in 'bin' instead of 'games'.
1881 "--binary-dir=bin"))))))))
1882 (native-inputs `(("pkg-config" ,pkg-config)))
1884 `(("allegro" ,allegro-4)
1885 ("fontconfig" ,fontconfig)
1886 ("freetype" ,freetype)
1893 (synopsis "Transportation economics simulator")
1894 (description "OpenTTD is a game in which you transport goods and
1895 passengers by land, water and air. It is a re-implementation of Transport
1896 Tycoon Deluxe with many enhancements including multiplayer mode,
1897 internationalization support, conditional orders and the ability to clone,
1898 autoreplace and autoupdate vehicles. This package only includes the game engine. When you start
1899 it you will be prompted to download a graphics set.")
1900 (home-page "http://openttd.org/")
1901 ;; This package is GPLv2, except for a few files located in
1902 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
1903 ;; licenses. In addition, this software contains an in-game downloader
1904 ;; from which the user may find non-functional data licensed under
1906 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
1908 ;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make
1909 ;; 'openttd' a wrapper around them. The engine is playable by itself,
1910 ;; but it asks a user to download graphics if it's not found.
1912 (define-public openttd
1914 (inherit openttd-engine)
1917 (define-public pinball
1922 (origin (method url-fetch)
1923 (uri (string-append "mirror://sourceforge/pinball/pinball/"
1924 "pinball-" version "/"
1925 "pinball-" version ".tar.gz"))
1928 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
1929 (patches (search-patches "pinball-const-fix.patch"
1930 "pinball-cstddef.patch"
1931 "pinball-missing-separators.patch"
1932 "pinball-src-deps.patch"
1933 "pinball-system-ltdl.patch"))))
1934 (build-system gnu-build-system)
1939 ("sdl-image" ,sdl-image)
1940 ("sdl-mixer" ,sdl-mixer)))
1943 (list (string-append "CPPFLAGS=-I"
1944 (assoc-ref %build-inputs "sdl-image")
1946 (assoc-ref %build-inputs "sdl-mixer")
1948 (home-page "http://pinball.sourceforge.net")
1949 (synopsis "Pinball simulator")
1950 (description "The Emilia Pinball Project is a pinball simulator. There
1951 are only two levels to play with, but they are very addictive.")
1952 (license license:gpl2)))
1954 (define-public pioneers
1960 (uri (string-append "http://downloads.sourceforge.net/pio/"
1961 "pioneers-" version ".tar.gz"))
1964 "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
1965 (build-system gnu-build-system)
1966 (inputs `(("gtk+" ,gtk+)
1967 ("librsvg" ,librsvg)
1969 (native-inputs `(("intltool" ,intltool)
1970 ("pkg-config" ,pkg-config)))
1971 (synopsis "Board game inspired by The Settlers of Catan")
1972 (description "Pioneers is an emulation of the board game The Settlers of
1973 Catan. It can be played on a local network, on the internet, and with AI
1975 (home-page "http://pio.sourceforge.net/")
1976 (license license:gpl2+)))
1978 (define-public desmume
1986 "mirror://sourceforge/desmume/desmume/"
1987 version "/desmume-" version ".tar.gz"))
1990 "15l8wdw3q61fniy3h93d84dnm6s4pyadvh95a0j6d580rjk4pcrs"))))
1991 (build-system gnu-build-system)
1993 ;; Enable support for WiFi and microphone.
1994 `(#:configure-flags '("--enable-wifi"
1995 "--enable-openal")))
1997 `(("pkg-config" ,pkg-config)
1998 ("intltool" ,intltool)))
2005 (home-page "http://desmume.org/")
2006 (synopsis "Nintendo DS emulator")
2008 "DeSmuME is an emulator for the Nintendo DS handheld gaming console.")
2009 (license license:gpl2)))
2011 (define-public einstein
2017 (uri (string-append "http://http.debian.net/debian/pool/main/e/"
2018 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
2021 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
2022 (patches (search-patches "einstein-build.patch"))))
2023 (build-system gnu-build-system)
2025 `(("freetype" ,freetype)
2026 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
2029 `(("font-dejavu" ,font-dejavu)))
2031 `(#:tests? #f ; no check target
2033 (modify-phases %standard-phases
2035 (lambda* (#:key outputs inputs #:allow-other-keys)
2036 (let ((out (assoc-ref outputs "out"))
2037 (dejavu (string-append (assoc-ref inputs "font-dejavu")
2038 "/share/fonts/truetype/DejaVuSans.ttf")))
2039 (substitute* "Makefile"
2040 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
2041 ;; The patch above registers a free font for use by the binary,
2042 ;; but the font is copied during the compile phase into a
2043 ;; resources file, so we need to make the ttf file available.
2044 (symlink dejavu "res/DejaVuSans.ttf")
2046 (synopsis "Logic puzzle game")
2047 (description "The goal of this logic game is to open all cards in a 6x6
2048 grid, using a number of hints as to their relative position. The game idea
2049 is attributed to Albert Einstein.")
2050 ;; The original home page has disappeared.
2051 (home-page (string-append "http://web.archive.org/web/20120521062745/"
2052 "http://games.flowix.com/en/index.html"))
2053 ;; License according to
2054 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
2055 ;; The source code is a DFSG-sanitized tarball and does not contain any
2056 ;; license information.
2057 (license license:gpl3+)))
2059 (define-public powwow
2066 "https://www.hoopajoo.net/static/projects/powwow-"
2068 (file-name (string-append name "-" version ".tar.gz"))
2071 "1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"))))
2073 `(("ncurses" ,ncurses)))
2074 (build-system gnu-build-system)
2075 (home-page "http://www.hoopajoo.net/projects/powwow.html")
2076 (synopsis "MUD and telnet client")
2078 "POWWOW is a client software which can be used for telnet as well as for
2079 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
2080 the chat server psyced with the specific config located at
2081 http://lavachat.symlynx.com/unix/")
2082 (license license:gpl2+)))
2084 (define-public red-eclipse
2086 '(("acerspyro" "0s6q56i5marpm67lx70g5109lir5d6r45y45i8kbz6arc1spa7pp")
2087 ("actors" "0jclmciz64i81ngxwbag8x5m8wvxkhraa9c7plix566y6rh28fv1")
2088 ("appleflap" "1iz5igzdksamldhy0zh4vdjkxqhmg5c0n5g64pd3kan6h8vlbkq4")
2089 ("blendbrush" "1hz3x5npp25dixcadp020xyahmd1i3ihs4cdf77iy84i9njbp7bv")
2090 ("caustics" "05sbj46lrc6lkf7j6ls6jwc21n0qzxvfhfy9j7hdw482p9gvz54h")
2091 ("crosshairs" "05vfxc6vm91dyf1kzig550fglgydp9szl9135q677lk4g60w5dfh")
2092 ("elyvisions" "0fzdbxc40ggqmv4v1llx6sys2gjc6l1nxsbi5scpxqvm86dbddi9")
2093 ("fonts" "0sbvnd96aip49dy1ja01s36p8fwwczibpic7myfw1frs110m0zgr")
2094 ("freezurbern" "0k60dzzq42mfq360qf7bsf4alhy6k5gjfaidg2i1wsz5zssgmqwn")
2095 ("john" "1ln9v8vfm0ggavvdyl438cy4mizzm1i87r9msx1sbja30q8f57c1")
2096 ("jojo" "0cdgl82s4bm6qlv07fsq5l7anbywvvw13d0mng831yn6scf0hxb1")
2097 ("jwin" "0yg5vriffyckgfjmi4487sw07hsp44b3gfw90f0v4jsgbjjm2v20")
2098 ("luckystrike" "0f82caq09znsr9m08qnlbh3jl9j5w0ysga0b7d5ayqr5lpqxfk9k")
2099 ("maps" "14m23h3mip12anhx7i9k5xlapwkjbw4n0l7lj1b7dfcimf71gjll")
2100 ("mayhem" "0dxrr6craqi7ag724qfj9y0lb0pmwyrfpap02cndmjbbacdya0ra")
2101 ("mikeplus64" "040giyrk3hdd26sxhdx37q4mk923g5v3jbrinq1fw2yfvsl6n1cs")
2102 ("misc" "07xfs9hngshg27rl2vf65nyxilgnak3534h8msaan0fjgmzvlk0q")
2103 ("nobiax" "1n3nghi5426r2zav4rsfih8gn37sfa85absvhdwhir8wycsvbkh6")
2104 ("particles" "0yj0nykal3fgxx50278xl2zn2bfz09wbrjcvng56aa6hhfiwp8gd")
2105 ("philipk" "1m3krkxq9hsknbmxg1g5sgnpcv7c8c2q7zpbizw2wb3dir8snvcj")
2106 ("projectiles" "05swvalja7vzqc3dlk136n5b5kdzn3a8il6bg1h12alcaa0k9rba")
2107 ("props" "1cqi6gw5s4z5pj06x6kiiilh4if0hm1yrbqys5dln23mcvw8f0ny")
2108 ("skyboxes" "1mm6xl89b0l98l2h3qn99id7svmpwr940bydgjbcrvlx21yqdric")
2109 ("sounds" "03q7jazf0chszyiaa9cxirbwdnckcp5fl812sj42lv0z4sqz222l")
2110 ("textures" "1caqyxa9xkrwpyhac65akdv1l7nqychgz7zfivasnskk2yy6jani")
2111 ("torley" "1hp8lkzqmdqyq3jn9rains32diw11gg1w3dxxlln5pc041cd7vil")
2112 ("trak" "0wlczjax33q0hz75lgc4qnxlm592pcxgnbkin5qrglv59nrxzxyr")
2113 ("ulukai" "0dkn7qxf92sidhsy4sm4v5z54n449a2z2w9qax5cfgzs78kb5c34")
2114 ("unnamed" "0p9mmfp0vplmswyxh8qab33phcl8lzmzh3mms4f7i587hppdg6db")
2115 ("vanities" "1w23853lmvj4kx5cbxvb5dk598jiqz7ml2bm0qiy7idkf5mcd2lv")
2116 ("vegetation" "0jw1ljhmv62fzvklid6i8syiacmrs075cp7r3gc069bg4fg47cpn")
2117 ("weapons" "1p64ry1s4y7hkgm6i2rdk2x78368359wvx8v81gg179p3sjnjkww")
2118 ("wicked" "1kmpy2n15lyh50rqjspyfg3qrc72jf0n3dx2y3ian7pjfp6ldxd9"))))
2120 (name "red-eclipse")
2124 (uri (string-append "https://github.com/red-eclipse/base"
2125 "/archive/v" version ".tar.gz"))
2126 (file-name (string-append name "-" version ".tar.gz"))
2129 "0xl3655876i8j5nixy0yp73s0yw9nwysj68fyhqs2agmvshryy96"))))
2130 (build-system gnu-build-system)
2132 `(#:tests? #f ; no check target
2133 #:make-flags (list "CC=gcc" "-Csrc"
2134 (string-append "INSTDIR="
2135 (assoc-ref %outputs "out") "/bin"))
2137 (modify-phases %standard-phases
2138 (add-after 'unpack 'unpack-data
2139 (lambda* (#:key inputs #:allow-other-keys)
2140 (delete-file-recursively "data")
2142 (for-each (lambda (name)
2143 (system* "tar" "-xvf"
2144 (assoc-ref inputs name)
2148 name "-" ,version "/"
2150 (list ,@(map car data-sources)))
2152 (delete 'configure) ; no configure script
2153 (add-after 'set-paths 'set-sdl-paths
2154 (lambda* (#:key inputs #:allow-other-keys)
2156 (string-append (assoc-ref inputs "sdl-union")
2159 (add-after 'install 'copy-data
2160 (lambda* (#:key outputs #:allow-other-keys)
2161 (let ((out (assoc-ref outputs "out")))
2162 (copy-recursively "config"
2163 (string-append out "/config"))
2164 (copy-file "doc/examples/servinit.cfg"
2165 (string-append out "/config/servinit.cfg"))
2166 (copy-recursively "data"
2167 (string-append out "/data")))
2169 (add-after 'copy-data 'wrap-program
2170 (lambda* (#:key inputs outputs #:allow-other-keys)
2171 (let* ((out (assoc-ref outputs "out"))
2172 (bin (string-append out "/bin")))
2173 (with-directory-excursion bin
2174 (rename-file "redeclipse_linux"
2175 ".redeclipse_linux-real")
2176 (rename-file "redeclipse_server_linux"
2177 ".redeclipse_server_linux-real")
2178 (call-with-output-file "redeclipse_linux"
2180 (format port "#!~a/bin/sh
2181 # Run the thing from its home, otherwise it just bails out.
2183 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
2184 (assoc-ref inputs "bash") ;implicit input
2186 (string-append bin))))
2187 (call-with-output-file "redeclipse_server_linux"
2189 (format port "#!~a/bin/sh
2190 # Run the thing from its home, otherwise it just bails out.
2192 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
2193 (assoc-ref inputs "bash") ;implicit input
2195 (string-append bin))))
2196 (chmod "redeclipse_linux" #o555)
2197 (chmod "redeclipse_server_linux" #o555)))
2199 (native-inputs `(("pkg-config" ,pkg-config)))
2203 ("sdl-union" ,(sdl-union (list sdl2
2206 ;; Create origin records for the many separate data packages.
2207 ,@(map (match-lambda
2213 "https://github.com/red-eclipse/"
2214 name "/archive/v" version ".tar.gz"))
2215 (sha256 (base32 hash))
2216 (file-name (string-append name "-" version
2219 (home-page "http://redeclipse.net/")
2220 (synopsis "Arena shooter derived from the Cube 2 engine")
2222 "Red Eclipse is an arena shooter, created from the Cube2 engine.
2223 Offering an innovative parkour system and distinct but all potent weapons,
2224 Red Eclipse provides fast paced and accessible gameplay.")
2225 ;; The engine is under Zlib; data files are covered by the other
2226 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
2227 (license (list license:expat
2233 (define-public higan
2241 "https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v"
2243 (file-name (string-append name "-" version ".tar.gz"))
2245 (base32 "0qavwkmzc63p6qplmxii4gc541z5mcs8gjwh3m4y7i576r7rcbk9"))
2246 (patches (search-patches "higan-remove-march-native-flag.patch"))))
2247 (build-system gnu-build-system)
2249 `(("pkg-config" ,pkg-config)))
2251 `(("alsa-lib" ,alsa-lib)
2255 ("gtksourceview-2" ,gtksourceview-2)
2259 ("pulseaudio" ,pulseaudio)
2263 (let ((build-phase (assoc-ref %standard-phases 'build))
2264 (install-phase (assoc-ref %standard-phases 'install)))
2265 (modify-phases %standard-phases
2266 ;; The higan build system has no configure phase.
2268 (add-before 'build 'chdir-to-higan
2271 (add-before 'install 'create-/share/applications
2272 (lambda* (#:key outputs #:allow-other-keys)
2273 (let ((out (assoc-ref outputs "out")))
2274 ;; It seems the author forgot to do this in the Makefile.
2275 (mkdir-p (string-append out "/share/applications")))))
2276 (add-after 'install 'chdir-to-icarus
2278 (chdir "../icarus")))
2279 (add-after 'chdir-to-icarus 'build-icarus build-phase)
2280 (add-after 'build-icarus 'install-icarus install-phase)
2281 (add-after 'install-icarus 'wrap-higan-executable
2282 (lambda* (#:key inputs outputs #:allow-other-keys)
2283 (let* ((out (assoc-ref outputs "out"))
2284 (bin (string-append out "/bin"))
2285 (higan (string-append bin "/higan"))
2286 (higan-original (string-append higan "-original"))
2287 (bash (string-append (assoc-ref inputs "bash")
2289 (coreutils (assoc-ref inputs "coreutils"))
2290 (mkdir (string-append coreutils "/bin/mkdir"))
2291 (cp (string-append coreutils "/bin/cp"))
2292 (cp-r (string-append cp " -r --no-preserve=mode")))
2293 ;; First, have the executable make sure ~/.local/share/higan
2294 ;; contains up to date files. Higan insists on looking there
2295 ;; for these data files.
2296 (rename-file higan higan-original)
2297 (with-output-to-file higan
2302 ;; higan doesn't respect $XDG_DATA_HOME
2303 mkdir " -p ~/.local/share\n"
2304 cp-r " " out "/share/higan ~/.local/share\n"
2305 "exec " higan-original))))
2307 ;; Second, make sure higan will find icarus in PATH.
2309 `("PATH" ":" prefix (,bin))))))))
2311 (list "compiler=g++"
2312 (string-append "prefix=" (assoc-ref %outputs "out")))
2313 ;; There is no test suite.
2315 (home-page "http://byuu.org/emulation/higan/")
2316 (synopsis "Nintendo multi-system emulator")
2318 "higan (formerly bsnes) is an emulator for multiple Nintendo video game
2319 consoles, including the Nintendo Entertainment System (NES/Famicom), Super
2320 Nintendo Entertainment System (SNES/Super Famicom), Game Boy, Game Boy
2321 Color (GBC), and Game Boy Advance (GBA). It also supports the subsystems
2322 Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
2323 ;; As noted in these files among more:
2324 ;; - icarus/icarus.cpp
2325 ;; - higan/emulator/emulator.hpp
2326 (license license:gpl3)))
2328 (define-public grue-hunter
2330 (name "grue-hunter")
2334 (uri (string-append "https://jxself.org/" name ".tar.gz"))
2337 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
2338 (build-system trivial-build-system) ; no Makefile.PL
2339 (arguments `(#:modules ((guix build utils))
2342 (use-modules (guix build utils))
2343 (use-modules (srfi srfi-1))
2345 (let* ((tarball (assoc-ref %build-inputs "tarball"))
2346 (perl (string-append (assoc-ref %build-inputs
2349 (gzip (string-append (assoc-ref %build-inputs
2352 (tar (string-append (assoc-ref %build-inputs
2355 (out (assoc-ref %outputs "out"))
2356 (bin (string-append out "/bin"))
2357 (doc (string-append out "/share/doc")))
2360 (copy-file tarball "grue-hunter.tar.gz")
2361 (zero? (system* gzip "-d" "grue-hunter.tar.gz"))
2362 (zero? (system* tar "xvf" "grue-hunter.tar"))
2365 (copy-file "grue-hunter/gh.pl"
2366 (string-append bin "/grue-hunter"))
2367 (patch-shebang (string-append bin "/grue-hunter")
2371 (copy-file "grue-hunter/AGPLv3.txt"
2372 (string-append doc "/grue-hunter")))))))
2373 (inputs `(("perl" ,perl)
2376 ("tarball" ,source)))
2377 (home-page "http://jxself.org/grue-hunter.shtml")
2378 (synopsis "Text adventure game")
2380 "Grue Hunter is a text adventure game written in Perl. You must make
2381 your way through an underground cave system in search of the Grue. Can you
2382 capture it and get out alive?")
2383 (license license:agpl3+)))
2385 (define-public warzone2100
2387 (name "warzone2100")
2391 (uri (string-append "mirror://sourceforge/" name
2392 "/releases/" version "/" name "-" version
2396 "1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
2397 (build-system gnu-build-system)
2400 (modify-phases %standard-phases
2401 (add-after 'unpack 'link-tests-with-qt
2403 (substitute* "tests/Makefile.in"
2404 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
2405 (string-append prefix "$(QT5_LIBS) ")))
2407 (add-after 'unpack 'remove-reference-to-missing-file
2409 (substitute* "icons/Makefile.in"
2410 (("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
2412 (native-inputs `(("pkg-config" ,pkg-config)
2415 (inputs `(("fontconfig" ,fontconfig)
2416 ("freetype" ,freetype)
2417 ("fribidi" ,fribidi)
2419 ("libtheora" ,libtheora)
2420 ("libvorbis" ,libvorbis)
2421 ("libxrandr" ,libxrandr)
2425 ("openssl" ,openssl)
2426 ("quesoglc" ,quesoglc)
2428 (home-page "http://wz2100.net")
2429 (synopsis "3D Real-time strategy and real-time tactics game")
2431 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
2432 modes. An extensive tech tree with over 400 different technologies, combined
2433 with the unit design system, allows for a wide variety of possible units and
2435 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
2436 (license (list license:bsd-3
2441 license:lgpl2.1+))))
2443 (define-public starfighter
2445 (name "starfighter")
2450 "mirror://savannah/starfighter/"
2451 (version-major+minor version) "/"
2452 name "-" version "-src.tar.gz"))
2455 "1qc0hhw9m8sy3n9fips52c7aph3w8a8pdl4n45yaasgxzbvpn9xg"))))
2456 (build-system gnu-build-system)
2458 '(#:tests? #f ; no check target
2460 (let ((out (assoc-ref %outputs "out")))
2461 (list (string-append "PREFIX=" out)
2462 (string-append "BINDIR=" out "/bin/")))
2464 (modify-phases %standard-phases
2465 ;; no configure script
2466 (delete 'configure))))
2468 `(("pkg-config" ,pkg-config)))
2471 ("sdl2-image" ,sdl2-image)
2472 ("sdl2-mixer" ,sdl2-mixer)))
2473 (home-page "http://starfighter.nongnu.org/")
2474 (synopsis "2D scrolling shooter game")
2476 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
2477 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
2478 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
2479 way, you will encounter new foes, make new allies, and assist local rebels
2480 in strikes against the evil corporation.")
2481 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
2482 (license (list license:gpl3+
2486 license:public-domain))))
2488 (define-public chromium-bsu
2490 (name "chromium-bsu")
2491 (version "0.9.15.1")
2494 (uri (string-append "mirror://sourceforge/" name
2495 "/Chromium B.S.U. source code/"
2496 name "-" version ".tar.gz"))
2499 "01c4mki0rpz6wrqbf18fj4vd7axln5v0xqm80cyksbv63g04s6w6"))))
2500 (build-system gnu-build-system)
2502 `(#:phases (modify-phases %standard-phases
2503 (add-after 'set-paths 'set-sdl-paths
2504 (lambda* (#:key inputs #:allow-other-keys)
2506 (string-append (assoc-ref inputs "sdl-union")
2509 (native-inputs `(("pkg-config" ,pkg-config)))
2510 (inputs `(("glu" ,glu)
2511 ("quesoglc" ,quesoglc)
2512 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
2513 (home-page "http://chromium-bsu.sourceforge.net/")
2514 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
2516 "In this game you are the captain of the cargo ship Chromium B.S.U. and
2517 are responsible for delivering supplies to the troops on the front line. Your
2518 ship has a small fleet of robotic fighters which you control from the relative
2519 safety of the Chromium vessel.")
2520 ;; Clarified Artistic License for everything but sound, which is covered
2521 ;; by the Expat License.
2522 (license (list license:clarified-artistic license:expat))))
2524 (define-public tuxpaint
2527 (version "0.9.22") ;keep VER_DATE below in sync
2531 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
2532 version "/tuxpaint-" version ".tar.gz"))
2535 "1qrbrdck9yxpcg3si6jb9i11w8lw9h4hqad0pfaxgyiniqpr7gca"))
2536 (modules '((guix build utils)))
2539 ;; Remove win32 directory which contains binary dll's and the
2540 ;; deprecated visualc directory.
2541 (for-each delete-file-recursively '("win32" "visualc"))
2542 (substitute* "Makefile"
2543 ;; Do not rely on $(GPERF) being an absolute file name
2544 (("\\[ -x \\$\\(GPERF\\) \\]")
2545 "$(GPERF) --version >/dev/null 2>&1"))))
2546 (patches (search-patches "tuxpaint-stamps-path.patch"))))
2547 (build-system gnu-build-system)
2550 ("pkg-config" ,pkg-config)))
2553 ("fribidi" ,fribidi)
2554 ("gettext" ,gnu-gettext)
2556 ("librsvg" ,librsvg)
2557 ("libpaper" ,libpaper)
2559 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
2560 ;; TODO: Use system fonts rather than those in data/fonts
2562 `(#:make-flags `("VER_DATE=2014-08-23"
2563 "GPERF=gperf" "CC=gcc"
2564 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
2565 ,(string-append "PREFIX=" %output)
2566 "GNOME_PREFIX=$(PREFIX)"
2567 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
2568 #:tests? #f ;No tests
2569 #:phases (modify-phases %standard-phases
2570 (delete 'configure) ;no configure phase
2571 (add-after 'install 'fix-import
2572 (lambda* (#:key inputs outputs #:allow-other-keys)
2573 (let* ((out (assoc-ref outputs "out"))
2574 (net (assoc-ref inputs "netpbm"))
2575 (tpi (string-append out "/bin/tuxpaint-import")))
2577 ;; Point to installation prefix so that the default
2578 ;; configure file is found.
2579 (("/usr/local") out))
2580 ;; tuxpaint-import uses a bunch of programs from
2581 ;; netpbm, so make sure it knows where those are
2584 (,(string-append net "/bin"))))))))))
2585 (native-search-paths
2586 (list (search-path-specification
2587 (variable "TUXPAINT_STAMPS_PATH")
2588 (files '("share/tuxpaint/stamps")))))
2589 (home-page "http://www.tuxpaint.org")
2590 (synopsis "Drawing software for children")
2592 "Tux Paint is a free drawing program designed for young children (kids
2593 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
2594 and an encouraging cartoon mascot who helps guide children as they use the
2595 program. It provides a blank canvas and a variety of drawing tools to help
2596 your child be creative.")
2597 (license license:gpl2+)))
2599 (define-public tuxpaint-stamps
2601 (name "tuxpaint-stamps")
2602 (version "2014.08.23")
2606 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
2607 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
2608 "/tuxpaint-stamps-" version ".tar.gz"))
2611 "0rhlwrjz44wp269v3rid4p8pi0i615pzifm1ym6va64gn1bms06q"))))
2612 (build-system trivial-build-system)
2617 `(#:modules ((guix build utils))
2619 (use-modules (guix build utils))
2622 (assoc-ref %build-inputs "tar") "/bin" ":"
2623 (assoc-ref %build-inputs "gzip") "/bin"))
2624 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
2625 (chdir (string-append ,name "-" ,version))
2626 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
2628 (copy-recursively "stamps" dir)))))
2629 (home-page (package-home-page tuxpaint))
2630 (synopsis "Stamp images for Tux Paint")
2632 "This package contains a set of \"Rubber Stamp\" images which can be used
2633 with the \"Stamp\" tool within Tux Paint.")
2634 (license license:gpl2+)))
2636 (define-public tuxpaint-config
2638 (name "tuxpaint-config")
2639 (version "0.0.13") ;keep VER_DATE below in sync
2643 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
2644 version "/tuxpaint-config-" version ".tar.gz"))
2647 "1z12s46mvy87qs3vgq9m0ki9pp21zqc52mmgphahpihw3s7haf6v"))))
2648 (build-system gnu-build-system)
2650 `(("gettext" ,gnu-gettext)))
2653 ("libpaper" ,libpaper)
2654 ;; TODO: Should the following be propagated by fltk?
2659 `(#:make-flags `("VER_DATE=2014-08-23"
2660 "CONFDIR=/etc/tuxpaint" ;don't write to store
2661 ,(string-append "PREFIX=" %output)
2662 "GNOME_PREFIX=$(PREFIX)")
2663 #:parallel-build? #f ;race conditions
2664 #:tests? #f ;no tests
2665 #:phases (modify-phases %standard-phases
2666 (delete 'configure) ;no configure phase
2667 (add-before 'install 'gzip-no-name
2669 (substitute* "Makefile"
2670 ;; tuxpaint-config compresses its own documentation;
2671 ;; make sure it uses flags for reproducibility.
2672 (("gzip") "gzip --no-name"))))
2673 (add-before 'install 'make-install-dirs
2674 (lambda* (#:key outputs #:allow-other-keys)
2675 (let ((out (assoc-ref outputs "out")))
2676 (mkdir-p (string-append out "/bin"))
2678 (home-page (package-home-page tuxpaint))
2679 (synopsis "Configure Tux Paint")
2681 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
2682 (license license:gpl2))) ;no "or later" present
2684 (define-public supertux
2690 (uri (string-append "https://github.com/SuperTux/supertux/"
2691 "releases/download/v" version "/SuperTux-v"
2692 version "-Source.tar.gz"))
2695 "0fx7c7m6mfanqy7kln7yf6abb5l3r68picf32js2yls11jj0vbng"))))
2698 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
2699 "-DENABLE_BOOST_STATIC_LIBS=OFF")))
2700 (build-system cmake-build-system)
2701 (inputs `(("sdl2" ,sdl2)
2702 ("sdl2-image" ,sdl2-image)
2703 ("sdl2-mixer" ,sdl2-mixer)
2707 ("libvorbis" ,libvorbis)
2712 (native-inputs `(("pkg-config" ,pkg-config)))
2713 (synopsis "2D platformer game")
2714 (description "SuperTux is a free classic 2D jump'n run sidescroller game
2715 in a style similar to the original Super Mario games covered under
2717 (home-page "https://supertuxproject.org/")
2718 (license license:gpl3+)))
2720 (define-public tintin++
2726 (uri (string-append "https://sourceforge.net/projects/tintin"
2727 "/files/TinTin++ Source Code/" version
2728 "/tintin" "-" version ".tar.gz"))
2731 "195wrfcys8yy953gdrl1gxryhjnx9lg1vqgxm3dyzm8bi18aa2yc"))))
2733 `(("gnutls" ,gnutls)
2735 ("readline" ,readline)
2738 '(#:tests? #f ; no test suite
2740 (modify-phases %standard-phases
2741 ;; The source is in tt/src.
2742 (add-before 'configure 'chdir
2746 (build-system gnu-build-system)
2747 (home-page "http://tintin.sourceforge.net/")
2748 (synopsis "MUD client")
2750 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression Protocol),
2751 MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET options used by MUDs,
2752 as well as those required to login via telnet on Linux / Mac OS X servers, and an
2753 auto mapper with a VT100 map display.")
2754 (license license:gpl2+)))
2761 (origin (method url-fetch)
2763 "https://github.com/sgimenez/laby/archive/"
2764 name "-" version ".tar.gz"))
2767 "0gyrfa95l1qka7gbjf7l6mk7mbfvph00l0c995ia272qdw7rjhyf"))
2768 (patches (search-patches "laby-make-install.patch"))))
2769 (build-system gnu-build-system)
2771 `(("lablgtk" ,lablgtk)
2773 ("ocaml-findlib" ,ocaml-findlib)))
2776 (modify-phases %standard-phases
2778 (add-before 'build 'setenv
2779 (lambda* (#:key inputs #:allow-other-keys)
2780 (let ((lablgtk (assoc-ref inputs "lablgtk")))
2781 (setenv "LD_LIBRARY_PATH"
2782 (string-append lablgtk "/lib/ocaml/stublibs"))))))
2783 #:tests? #f ; no 'check' target
2785 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
2786 (home-page "https://sgimenez.github.io/laby/")
2787 (synopsis "Programming game")
2788 (description "Learn programming, playing with ants and spider webs ;-)
2789 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
2790 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
2791 programmers may also add their own favorite language.")
2792 (license license:gpl3+)))
2794 (define-public bambam
2801 (uri (string-append "https://github.com/porridge/bambam/archive/"
2803 (file-name (string-append name "-" version ".tar.gz"))
2806 "10w110mjdwbvddzihh9rganvvjr5jfiz8cs9n7w12zndwwcc3ria"))))
2807 (build-system python-build-system)
2809 `(#:python ,python-2
2810 #:tests? #f ; no tests
2812 (modify-phases %standard-phases
2814 (add-before 'install 'patch-data-dir-location
2816 (substitute* "bambam.py"
2817 (("'data'") "'../share/bambam/data'"))
2820 (lambda* (#:key outputs #:allow-other-keys)
2821 (let* ((out (assoc-ref outputs "out"))
2822 (bin (string-append out "/bin"))
2823 (share (string-append out "/share")))
2825 (copy-file "bambam.py" (string-append bin "/bambam"))
2826 (install-file "bambam.6" (string-append share "/man/man6"))
2827 (copy-recursively "data" (string-append share "/bambam/data")))
2830 `(("python-pygame" ,python-pygame)))
2831 (home-page "https://github.com/porridge/bambam")
2832 (synopsis "Keyboard mashing and doodling game for babies")
2833 (description "Bambam is a simple baby keyboard (and gamepad) masher
2834 application that locks the keyboard and mouse and instead displays bright
2835 colors, pictures, and sounds.")
2836 (license license:gpl3+)))
2838 (define-public mrrescue
2845 "https://github.com/SimonLarsen/mrrescue/releases/"
2846 "download/" version "/" name version ".love"))
2847 (file-name (string-append name "-" version ".love"))
2850 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
2851 (build-system trivial-build-system)
2853 '(#:modules ((guix build utils))
2856 (use-modules (guix build utils))
2857 (let* ((out (assoc-ref %outputs "out"))
2858 (bindir (string-append out "/bin"))
2859 (prog (string-append bindir "/mrrescue"))
2860 (source (assoc-ref %build-inputs "source"))
2861 (bash (string-append (assoc-ref %build-inputs "bash")
2863 (love (string-append (assoc-ref %build-inputs "love")
2866 (with-output-to-file prog
2868 (format #t "#!~a~%" bash)
2869 (format #t "exec -a mrrescue \"~a\" \"~a\"~%" love source)))
2875 (home-page "http://tangramgames.dk/games/mrrescue")
2876 (synopsis "Arcade-style fire fighting game")
2878 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
2879 civilians from burning buildings. The game features fast paced fire
2880 extinguishing action, intense boss battles, a catchy soundtrack and lots of
2881 throwing people around in pseudo-randomly generated buildings.")
2882 (license (list license:zlib ; for source code
2883 license:cc-by-sa3.0)))) ; for graphics and music assets
2885 (define-public hyperrogue
2892 "http://www.roguetemple.com/z/hyper/"
2896 "1ag95d84m4j0rqyn9hj7655znixw2j57bpf93nk14nfy02xz1g6p"))
2897 (modules '((guix build utils)))
2898 ;; Remove .exe and .dll files.
2900 '(for-each delete-file (find-files "." "\\.(exe|dll)$")))))
2901 (build-system gnu-build-system)
2903 '(#:tests? #f ; no check target
2904 #:make-flags '("-Csrc")
2906 (modify-phases %standard-phases
2907 (add-after 'set-paths 'set-sdl-paths
2908 (lambda* (#:key inputs #:allow-other-keys)
2910 (string-append (assoc-ref inputs "sdl-union")
2912 ;; Fix font and music paths.
2914 (lambda* (#:key inputs outputs #:allow-other-keys)
2915 (let ((out (assoc-ref outputs "out"))
2916 (dejavu-dir (string-append
2917 (assoc-ref inputs "font-dejavu")
2918 "/share/fonts/truetype"))
2919 (dejavu-font "DejaVuSans-Bold.ttf")
2920 (music-file "hyperrogue-music.txt"))
2921 (with-directory-excursion "src"
2922 (substitute* "graph.cpp"
2924 (string-append dejavu-dir "/" dejavu-font))
2925 (((string-append "\\./" music-file))
2926 (string-append out "/share/hyperrogue/" music-file)))
2927 (substitute* music-file
2929 (string-append out "/share/hyperrogue/")))))
2932 (lambda* (#:key inputs outputs #:allow-other-keys)
2933 (let* ((out (assoc-ref outputs "out"))
2934 (bin (string-append out "/bin"))
2935 (share-dir (string-append out "/share/hyperrogue")))
2937 (copy-file "src/hyper" (string-append bin "/hyperrogue"))
2939 (copy-file "src/hyperrogue-music.txt"
2940 (string-append share-dir "/hyperrogue-music.txt"))
2941 (for-each (lambda (file)
2942 (copy-file file (string-append share-dir "/" file)))
2943 (find-files "." "\\.ogg$")))
2946 `(("font-dejavu" ,font-dejavu)
2949 ("sdl-union" ,(sdl-union (list sdl
2953 (home-page "http://www.roguetemple.com/z/hyper/")
2954 (synopsis "Non-euclidean graphical rogue-like game")
2956 "HyperRogue is a game in which the player collects treasures and fights
2957 monsters -- rogue-like but for the fact that it is played on the hyperbolic
2958 plane and not in euclidean space.
2960 In HyperRogue, the player can move through different parts of the world, which
2961 are home to particular creatures and may be subject to own rules of \"physics\".
2963 While it can use ASCII characters to display the world the classical rogue
2964 symbols, the game needs graphics to render the non-euclidean world.")
2965 (license (list license:bsd-3 ; src/glew.c, src/mtrand.*
2966 license:cc-by-sa3.0 ; *.ogg
2967 license:public-domain ; src/direntx.*
2968 license:zlib ; src/savepng.*
2969 license:gpl2+)))) ; remaining files
2971 (define-public kobodeluxe
2977 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
2978 version ".tar.bz2"))
2981 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
2982 (patches (search-patches
2983 "kobodeluxe-const-charp-conversion.patch"
2984 "kobodeluxe-enemies-pipe-decl.patch"
2985 "kobodeluxe-graphics-window-signed-char.patch"
2986 "kobodeluxe-manpage-minus-not-hyphen.patch"
2987 "kobodeluxe-midicon-segmentation-fault.patch"
2988 "kobodeluxe-paths.patch"))))
2989 (build-system gnu-build-system)
2992 (list (string-append "CPPFLAGS=-I"
2993 (assoc-ref %build-inputs "sdl-union")
2995 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
2996 (synopsis "Shooter with space station destruction")
2998 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
2999 for Un*x systems with X11.")
3000 (home-page "http://olofson.net/kobodl/")
3001 (license license:gpl2+)))