gnu: Add wl-clipboard.
[jackhill/guix/guix.git] / gnu / packages / game-development.scm
... / ...
CommitLineData
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Tomáš Čech <sleep_walker@suse.cz>
3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org>
5;;; Copyright © 2015, 2018 Alex Kost <alezost@gmail.com>
6;;; Copyright © 2015, 2016, 2017 David Thompson <davet@gnu.org>
7;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
8;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
9;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
10;;; Copyright © 2016, 2017, 2018 Julian Graham <joolean@gmail.com>
11;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
13;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
14;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
15;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
16;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
17;;;
18;;; This file is part of GNU Guix.
19;;;
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.
24;;;
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.
29;;;
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/>.
32
33(define-module (gnu packages game-development)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix packages)
36 #:use-module (guix download)
37 #:use-module (guix git-download)
38 #:use-module (guix utils)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system python)
42 #:use-module (guix build-system scons)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages audio)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages boost)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages curl)
49 #:use-module (gnu packages databases)
50 #:use-module (gnu packages documentation)
51 #:use-module (gnu packages fltk)
52 #:use-module (gnu packages fonts)
53 #:use-module (gnu packages fontutils)
54 #:use-module (gnu packages freedesktop)
55 #:use-module (gnu packages fribidi)
56 #:use-module (gnu packages gl)
57 #:use-module (gnu packages glib)
58 #:use-module (gnu packages gnome)
59 #:use-module (gnu packages gnunet)
60 #:use-module (gnu packages graphics)
61 #:use-module (gnu packages graphviz)
62 #:use-module (gnu packages gtk)
63 #:use-module (gnu packages guile)
64 #:use-module (gnu packages image)
65 #:use-module (gnu packages linux)
66 #:use-module (gnu packages lua)
67 #:use-module (gnu packages m4)
68 #:use-module (gnu packages mp3)
69 #:use-module (gnu packages multiprecision)
70 #:use-module (gnu packages music)
71 #:use-module (gnu packages ncurses)
72 #:use-module (gnu packages pkg-config)
73 #:use-module (gnu packages pulseaudio)
74 #:use-module (gnu packages python)
75 #:use-module (gnu packages qt)
76 #:use-module (gnu packages sdl)
77 #:use-module (gnu packages stb)
78 #:use-module (gnu packages texinfo)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages video)
81 #:use-module (gnu packages xdisorg)
82 #:use-module (gnu packages xiph)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages xorg))
85
86(define-public bullet
87 (package
88 (name "bullet")
89 (version "2.87")
90 (source (origin
91 (method url-fetch)
92 (uri (string-append "https://github.com/bulletphysics/bullet3/"
93 "archive/" version ".tar.gz"))
94 (file-name (string-append name "-" version ".tar.gz"))
95 (sha256
96 (base32
97 "15azjc1jj8ak9ad7c5sbp9nv5gpqjsa0s9pc0bwy63w490f1b323"))))
98 (build-system cmake-build-system)
99 (arguments
100 '(#:configure-flags (list (string-append
101 "-DBUILD_SHARED_LIBS=ON "
102 "-DCMAKE_CXX_FLAGS=-fPIC "
103 (or (getenv "CXXFLAGS") "")))))
104 (inputs
105 `(("glu" ,glu)
106 ("libx11" ,libx11)
107 ("mesa" ,mesa)))
108 (home-page "https://pybullet.org/wordpress/")
109 (synopsis "3D physics engine library")
110 (description
111 "Bullet is a physics engine library usable for collision detection. It
112is used in some video games and movies.")
113 (license license:zlib)))
114
115(define-public deutex
116 (package
117 (name "deutex")
118 (version "5.1.2")
119 (source (origin
120 (method url-fetch)
121 (uri (string-append "https://github.com/Doom-Utils/" name
122 "/releases/download/v" version "/"
123 name "-" version ".tar.xz"))
124 (sha256
125 (base32
126 "1rj3w4xa0n4jixy4j7p6gbclylbgxvhdnji7xnkydrqii9rxnbp4"))))
127 (build-system gnu-build-system)
128 (native-inputs `(("asciidoc" ,asciidoc)))
129 (home-page "https://github.com/Doom-Utils/deutex")
130 (synopsis "WAD file composer for Doom and related games")
131 (description
132 "DeuTex is a wad composer for Doom, Heretic, Hexen and Strife. It can be
133used to extract the lumps of a wad and save them as individual files.
134Conversely, it can also build a wad from separate files. When extracting a
135lump to a file, it does not just copy the raw data, it converts it to an
136appropriate format (such as PPM for graphics, Sun audio for samples, etc.).
137Conversely, when it reads files for inclusion in pwads, it does the necessary
138conversions (for example, from PPM to Doom picture format). In addition,
139DeuTex has functions such as merging wads, etc.")
140 (license license:gpl2+)))
141
142(define-public grfcodec
143 (package
144 (name "grfcodec")
145 (version "6.0.6")
146 (source (origin
147 (method url-fetch)
148 (uri (string-append "http://binaries.openttd.org/extra/"
149 name "/" version "/" name "-" version
150 "-source.tar.xz"))
151 (sha256
152 (base32
153 "08admgnpqcsifpicbm56apgv360fxapqpbbsp10qyk8i22w1ivsk"))))
154 (build-system gnu-build-system)
155 (arguments
156 '(#:tests? #f ; no check target
157 #:phases
158 (modify-phases %standard-phases
159 (delete 'configure) ; no configure script
160 (replace 'install ; no install target
161 (lambda* (#:key outputs #:allow-other-keys)
162 (let* ((out (assoc-ref outputs "out"))
163 (bin (string-append out "/bin"))
164 (doc (string-append out "/share/doc"))
165 (man (string-append out "/share/man/man1")))
166 (for-each (lambda (file)
167 (install-file file bin))
168 '("grfcodec" "grfid" "grfstrip" "nforenum"))
169 (install-file "COPYING" doc)
170 (with-directory-excursion "docs"
171 (for-each (lambda (file)
172 (install-file (string-append file ".txt") doc))
173 '("auto_correct" "commands" "grf" "grfcodec" "grftut"
174 "readme" "readme.rpn"))
175 (for-each (lambda (file)
176 (install-file file man))
177 (find-files "." "\\.1"))))
178 #t)))))
179 (inputs
180 `(("boost" ,boost)
181 ("libpng" ,libpng)
182 ("zlib" ,zlib)))
183 (synopsis "GRF development tools")
184 (description
185 "The @dfn{Graphics Resource File} (GRF) development tools are a set of
186tools for developing (New)GRFs. It includes a number of smaller programs, each
187with a specific task:
188@enumerate
189@item @code{grfcodec} decodes and encodes GRF files for OpenTTD.
190@item @code{grfid} extracts the so-called \"GRF ID\" from a GRF.
191@item @code{grfstrip} strips all sprites from a GRF.
192@item @code{nforenum} checks NFO code for errors, making corrections when
193necessary.
194@end enumerate")
195 (home-page "http://dev.openttdcoop.org/projects/grfcodec")
196 ;; GRFCodec, GRFID, and GRFStrip are exclusively under the GPL2.
197 ;; NFORenum is under the GPL2+.
198 ;; The MD5 implementation contained in GRFID is under the zlib license.
199 (license (list license:gpl2 license:gpl2+ license:zlib))))
200
201(define-public catcodec
202 (package
203 (name "catcodec")
204 (version "1.0.5")
205 (source
206 (origin
207 (method url-fetch)
208 (uri (string-append "https://binaries.openttd.org/extra/catcodec/"
209 version "/catcodec-" version "-source.tar.xz"))
210 (sha256
211 (base32
212 "1qg0c2i4p29sxj0q6qp2jynlrzm5pphz2xhcjqlxa69ycrnlxzs7"))))
213 (build-system gnu-build-system)
214 (arguments
215 `(#:tests? #f ; no tests
216 #:make-flags (list (string-append "prefix=" %output))
217 #:phases (modify-phases %standard-phases
218 (delete 'configure))))
219 (home-page "http://dev.openttdcoop.org/projects/catcodec")
220 (synopsis "Encode/decode OpenTTD sounds")
221 (description "catcodec encodes and decodes sounds for OpenTTD. These
222sounds are not much more than some metadata (description and filename) and raw
223PCM data.")
224 (license license:gpl2)))
225
226(define-public gzochi
227 (package
228 (name "gzochi")
229 (version "0.12")
230 (source (origin
231 (method url-fetch)
232 (uri (string-append "mirror://savannah/gzochi/gzochi-"
233 version ".tar.gz"))
234 (sha256
235 (base32
236 "0h8yvk7154kd8zdfa9nqy73blrjq2x19kv305jcnwlmm09vvss59"))))
237 (build-system gnu-build-system)
238 (arguments
239 '(#:phases (modify-phases %standard-phases
240 (add-before 'build 'no-Werror
241 (lambda _
242 ;; Don't abort builds due to things like GLib
243 ;; deprecation warnings.
244 (substitute* (find-files "." "^Makefile\\.in$")
245 (("-Werror") ""))
246 #t)))))
247 (native-inputs `(("pkgconfig" ,pkg-config)))
248 (inputs `(("bdb" ,bdb)
249 ("glib" ,glib)
250 ("guile" ,guile-2.2)
251 ("libmicrohttpd" ,libmicrohttpd)
252 ("ncurses" ,ncurses)
253 ("sdl" ,sdl)
254 ("zlib" ,zlib)))
255 (home-page "https://www.nongnu.org/gzochi/")
256 (synopsis "Scalable middleware for multiplayer games")
257 (description
258 "gzochi is a framework for developing massively multiplayer online games.
259A server container provides services to deployed games, which are written in
260Guile Scheme, that abstract and simplify some of the most challenging and
261error-prone aspects of online game development: Concurrency, data persistence,
262and network communications. A very thin client library can be embedded to
263provide connectivity for client applications written in any language.")
264 (license license:gpl3+)))
265
266(define-public nml
267 (package
268 (name "nml")
269 (version "0.4.5")
270 (source
271 (origin
272 (method url-fetch)
273 (uri (string-append "http://bundles.openttdcoop.org/nml/releases/"
274 version "/nml-" version ".tar.gz"))
275 (sha256
276 (base32
277 "1pmvvm3sgnpngfa7884mqhq3fwdjh9sr0ca07ypnidcg0y341w53"))))
278 (build-system python-build-system)
279 (propagated-inputs
280 `(("python-pillow" ,python-pillow)
281 ("python-ply" ,python-ply)))
282 (home-page "https://dev.openttdcoop.org/projects/nml")
283 (synopsis "NML compiler")
284 (description
285 "@dfn{NewGRF Meta Language} (NML) is a python-based compiler, capable of
286compiling NML files (along with their associated language, sound and graphic
287files) into @file{.grf} and/or @file{.nfo} files.")
288 (license license:gpl2+)))
289
290(define-public python-sge-pygame
291 (package
292 (name "python-sge-pygame")
293 (version "1.5.1")
294 (source
295 (origin
296 (method url-fetch)
297 (uri (string-append "mirror://savannah/stellarengine/"
298 (version-major+minor version) "/sge-pygame-"
299 version ".tar.gz"))
300 (file-name (string-append name "-" version ".tar.gz"))
301 (sha256
302 (base32
303 "1rl3xjzh78sl0sq3xl8rl7cgp9v9v3h7s2pfwn7nj1vrmffzkcpd"))))
304 (build-system python-build-system)
305 (propagated-inputs
306 `(("python-pygame" ,python-pygame)
307 ("python-six" ,python-six)
308 ("python-uniseg" ,python-uniseg)))
309 (home-page "http://stellarengine.nongnu.org")
310 (synopsis "2D game engine for Python")
311 (description
312 "The SGE Game Engine (\"SGE\", pronounced like \"Sage\") is a
313general-purpose 2D game engine. It takes care of several details for you so
314you can focus on the game itself. This makes more rapid game development
315possible, and it also makes the SGE easy to learn.")
316 (license license:lgpl3+)))
317
318(define-public python2-sge-pygame
319 (package-with-python2 python-sge-pygame))
320
321(define-public python-tmx
322 (package
323 (name "python-tmx")
324 (version "1.10")
325 (source
326 (origin
327 (method url-fetch)
328 (uri (string-append "mirror://savannah/python-tmx/"
329 (version-major+minor version) "/tmx-"
330 version ".tar.gz"))
331 (sha256
332 (base32
333 "073q0prg1nzlkga2b45vhscz374206qh4x68ccg00mxxwagn64z0"))))
334 (build-system python-build-system)
335 (propagated-inputs
336 `(("python-six" ,python-six)))
337 (home-page "http://python-tmx.nongnu.org")
338 (synopsis "Python library for the @code{Tiled} TMX format")
339 (description
340 "Python TMX reads and writes the @code{Tiled} TMX format in a simple way.
341This is useful for map editors or generic level editors, and it's also useful
342for using a map editor or generic level editor like Tiled to edit your game's
343levels.")
344 (license (list license:asl2.0
345 ;; Documentation (only available in the source tarball) is
346 ;; under the CC0 license.
347 license:cc0))))
348
349(define-public python2-tmx
350 (let ((python2-tmx (package-with-python2 python-tmx)))
351 (package
352 (inherit python2-tmx)
353 (propagated-inputs
354 `(("python2-pathlib" ,python2-pathlib)
355 ,@(package-propagated-inputs python2-tmx))))))
356
357(define-public python-xsge
358 (package
359 (name "python-xsge")
360 (version "2018.02.26")
361 (source (origin
362 (method url-fetch)
363 (uri (string-append "mirror://savannah/xsge/xsge/xsge-"
364 version ".tar.gz"))
365 (sha256
366 (base32
367 "0bx93hgf7cgdw2gsygbh59y8vpw37pgsa279rajw3fkdpl8vrc40"))))
368 (build-system python-build-system)
369 (arguments
370 '(#:phases
371 (modify-phases %standard-phases
372 ;; xSGE's setup.py script does not support one of the Python build
373 ;; system's default flags, "--single-version-externally-managed".
374 (replace 'install
375 (lambda* (#:key outputs #:allow-other-keys)
376 (invoke "python" "setup.py" "install"
377 (string-append "--prefix=" (assoc-ref outputs "out"))
378 "--root=/"))))
379 #:tests? #f)) ; no check target
380 (propagated-inputs
381 `(("python-sge-pygame" ,python-sge-pygame)
382 ("python-pygame" ,python-pygame)
383 ("python-six" ,python-six)
384 ("python-tmx" ,python-tmx)))
385 (home-page "http://xsge.nongnu.org")
386 (synopsis "Extensions for the SGE Game Engine")
387 (description
388 "xSGE is a collection of modules that make doing certain tasks with the SGE
389Game Engine easier. In addition to SGE's conveniences, the user has access to a
390GUI toolkit, lighting and physics frameworks and @code{Tiled} TMX format
391support.")
392 (license license:gpl3+)))
393
394(define-public python2-xsge
395 (package-with-python2 python-xsge))
396
397(define-public tiled
398 (package
399 (name "tiled")
400 (version "1.2.1")
401 (source (origin
402 (method git-fetch)
403 (uri (git-reference
404 (url "https://github.com/bjorn/tiled.git")
405 (commit (string-append "v" version))))
406 (file-name (git-file-name name version))
407 (sha256
408 (base32
409 "1dl06k2p0r7l20ghxcq5sn7j0jl2l8q4m27vmfs2qfgvldjll2h3"))))
410 (build-system gnu-build-system)
411 (inputs
412 `(("qtbase" ,qtbase)
413 ("qtsvg" ,qtsvg)
414 ("zlib" ,zlib)))
415 (native-inputs
416 `(("qttools" ,qttools)))
417 (arguments
418 '(#:phases
419 (modify-phases %standard-phases
420 (replace 'configure
421 (lambda* (#:key inputs outputs #:allow-other-keys)
422 (substitute* "translations/translations.pro"
423 (("LRELEASE =.*")
424 (string-append "LRELEASE = "
425 (assoc-ref inputs "qttools")
426 "/bin/lrelease\n")))
427 (let ((out (assoc-ref outputs "out")))
428 (invoke "qmake"
429 (string-append "PREFIX=" out))))))))
430 (home-page "http://www.mapeditor.org/")
431 (synopsis "Tile map editor")
432 (description
433 "Tiled is a general purpose tile map editor. It is meant to be used for
434editing maps of any tile-based game, be it an RPG, a platformer or a Breakout
435clone.")
436
437 ;; As noted in 'COPYING', part of it is under GPLv2+, while the rest is
438 ;; under BSD-2.
439 (license license:gpl2+)))
440
441(define-public sfml
442 (package
443 (name "sfml")
444 (version "2.5.1")
445 (source (origin
446 (method git-fetch)
447 ;; Do not fetch the archives from
448 ;; http://mirror0.sfml-dev.org/files/ because files there seem
449 ;; to be changed in place.
450 (uri (git-reference
451 (url "https://github.com/SFML/SFML.git")
452 (commit version)))
453 (file-name (git-file-name name version))
454 (sha256
455 (base32
456 "0abr8ri2ssfy9ylpgjrr43m6rhrjy03wbj9bn509zqymifvq5pay"))
457 (modules '((guix build utils)))
458 (snippet
459 '(begin
460 ;; Ensure system libraries are used.
461 (delete-file-recursively "extlibs")
462 #t))))
463 (build-system cmake-build-system)
464 (arguments
465 '(#:configure-flags
466 (list "-DSFML_INSTALL_PKGCONFIG_FILES=TRUE"
467 "-DSFML_OS_PKGCONFIG_DIR=lib/pkgconfig")
468 #:tests? #f)) ; no tests
469 (native-inputs
470 `(("pkg-config" ,pkg-config)))
471 (inputs
472 `(("mesa" ,mesa)
473 ("glew" ,glew)
474 ("libx11" ,libx11)
475 ("xcb-util-image" ,xcb-util-image)
476 ("libxrandr" ,libxrandr)
477 ("eudev" ,eudev)
478 ("libjpeg" ,libjpeg)
479 ("libsndfile" ,libsndfile)
480 ("stb-image" ,stb-image)
481 ("stb-image-write" ,stb-image-write)))
482 (propagated-inputs
483 ;; In Requires.private of pkg-config files.
484 `(("flac" ,flac)
485 ("freetype" ,freetype)
486 ("libvorbis" ,libvorbis)
487 ("openal" ,openal)))
488 (home-page "https://www.sfml-dev.org")
489 (synopsis "Simple and Fast Multimedia Library")
490 (description
491 "SFML provides a simple interface to the various computer components,
492to ease the development of games and multimedia applications. It is composed
493of five modules: system, window, graphics, audio and network.")
494 (license license:zlib)))
495
496(define-public sfxr
497 (package
498 (name "sfxr")
499 (version "1.2.1")
500 (source (origin
501 (method url-fetch)
502 (uri (string-append "http://www.drpetter.se/files/sfxr-sdl-1.2.1.tar.gz"))
503 (sha256
504 (base32
505 "0dfqgid6wzzyyhc0ha94prxax59wx79hqr25r6if6by9cj4vx4ya"))))
506 (build-system gnu-build-system)
507 (arguments
508 `(#:phases (modify-phases %standard-phases
509 (delete 'configure) ; no configure script
510 (add-before 'build 'patch-makefile
511 (lambda* (#:key outputs #:allow-other-keys)
512 (let ((out (assoc-ref outputs "out")))
513 (substitute* "Makefile"
514 (("\\$\\(DESTDIR\\)/usr") out))
515 (substitute* "main.cpp"
516 (("/usr/share")
517 (string-append out "/share")))
518 #t))))
519 #:tests? #f)) ; no tests
520 (native-inputs
521 `(("pkg-config" ,pkg-config)
522 ("desktop-file-utils" ,desktop-file-utils)))
523 (inputs
524 `(("sdl" ,sdl)
525 ("gtk+" ,gtk+)))
526 (synopsis "Simple sound effect generator")
527 (description "Sfxr is a tool for quickly generating simple sound effects.
528Originally created for use in video game prototypes, it can generate random
529sounds from presets such as \"explosion\" or \"powerup\".")
530 (home-page "http://www.drpetter.se/project_sfxr.html")
531 (license license:expat)))
532
533(define-public physfs
534 (package
535 (name "physfs")
536 (version "3.0.1")
537 (source (origin
538 (method url-fetch)
539 (uri (string-append
540 "https://icculus.org/physfs/downloads/physfs-"
541 version ".tar.bz2"))
542 (file-name (string-append name "-" version ".tar.gz"))
543 (sha256
544 (base32
545 "1wgj2zqpnfbnyyi1i7bq5pshcc9n5cvwlpzp8im67nb8662ryyxp"))))
546 (build-system cmake-build-system)
547 (arguments
548 '(#:tests? #f ; no check target
549 #:phases (modify-phases %standard-phases
550 (add-after 'unpack 'patch-CMakeLists.txt
551 (lambda _
552 (substitute* "CMakeLists.txt"
553 ;; XXX: For some reason CMakeLists.txt disables
554 ;; RUNPATH manipulation when the compiler is GCC.
555 (("CMAKE_COMPILER_IS_GNUCC") "FALSE"))
556 #t)))))
557 (inputs
558 `(("zlib" ,zlib)))
559 (native-inputs
560 `(("doxygen" ,doxygen)))
561 (home-page "https://icculus.org/physfs")
562 (synopsis "File system abstraction library")
563 (description
564 "PhysicsFS is a library to provide abstract access to various archives.
565It is intended for use in video games. For security, no file writing done
566through the PhysicsFS API can leave a defined @emph{write directory}. For
567file reading, a @emph{search path} with archives and directories is defined,
568and it becomes a single, transparent hierarchical file system. So archive
569files can be accessed in the same way as you access files directly on a disk,
570and it makes it easy to ship a new archive that will override a previous
571archive on a per-file basis.")
572 (license license:zlib)))
573
574(define-public love
575 (package
576 (name "love")
577 (version "11.1")
578 (source (origin
579 (method url-fetch)
580 (uri (string-append "https://bitbucket.org/rude/love/downloads/"
581 "love-" version "-linux-src.tar.gz"))
582 (sha256
583 (base32
584 "1pkwiszmjs0xrwk0wqbc5cp9108b1y8gwsid0gqk1s0x09q9lpmw"))))
585 (build-system gnu-build-system)
586 (native-inputs
587 `(("pkg-config" ,pkg-config)))
588 (inputs
589 `(("devil" ,devil)
590 ("freetype" ,freetype)
591 ("libmodplug" ,libmodplug)
592 ("libtheora" ,libtheora)
593 ("libvorbis" ,libvorbis)
594 ("luajit" ,luajit)
595 ("mesa" ,mesa)
596 ("mpg123" ,mpg123)
597 ("openal" ,openal)
598 ("physfs" ,physfs)
599 ("sdl2" ,sdl2)
600 ("zlib" ,zlib)))
601 (synopsis "2D game framework for Lua")
602 (description "LÖVE is a framework for making 2D games in the Lua
603programming language.")
604 (home-page "https://love2d.org/")
605 (license license:zlib)))
606
607(define-public allegro-4
608 (package
609 (name "allegro")
610 (version "4.4.2")
611 (source (origin
612 (method url-fetch)
613 (uri (string-append "https://github.com/liballeg/allegro5/"
614 "releases/download/" version "/allegro-"
615 version ".tar.gz"))
616 (sha256
617 (base32
618 "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v"))))
619 (build-system cmake-build-system)
620 (arguments
621 '(#:phases
622 (modify-phases %standard-phases
623 (add-after 'unpack 'patch-build-system
624 (lambda _
625 ;; Build addons as shared libraries. Trying to set ADDON_LINKAGE
626 ;; via a command line option doesn't work because it is
627 ;; unconditionally clobbered in the build script.
628 (substitute* '("CMakeLists.txt")
629 (("ADDON_LINKAGE STATIC")
630 "ADDON_LINKAGE SHARED"))
631 #t)))))
632 (inputs
633 `(("glu" ,glu)
634 ("libpng" ,libpng)
635 ("libvorbis" ,libvorbis)
636 ("mesa" ,mesa)
637 ("zlib" ,zlib)))
638 (synopsis "Game programming library")
639 (description "Allegro is a library mainly aimed at video game and
640multimedia programming. It handles common, low-level tasks such as creating
641windows, accepting user input, loading data, drawing images, playing sounds,
642etc.")
643 (home-page "http://liballeg.org")
644 (license license:giftware)))
645
646(define-public allegro
647 (package
648 (name "allegro")
649 (version "5.2.4.0")
650 (source (origin
651 (method url-fetch)
652 (uri (string-append "https://github.com/liballeg/allegro5/releases"
653 "/download/" version "/allegro-"
654 version ".tar.gz"))
655 (patches (search-patches
656 "allegro-fix-compilation-mesa-18.2.5-and-later.patch"))
657 (sha256
658 (base32
659 "1w9a5yqi5q03b2qvmx5ff90paz0xbr9cy7i7f0xiqa65ava66q9l"))))
660 (build-system cmake-build-system)
661 (arguments `(#:tests? #f)) ; there are no tests
662 (inputs
663 ;; FIXME: Add the following optional inputs: xinput2, opensl, dumb
664 `(("flac" ,flac)
665 ("freetype" ,freetype)
666 ("glu" ,glu)
667 ("gtk" ,gtk+-2)
668 ("libjpeg" ,libjpeg)
669 ("libpng" ,libpng)
670 ("libtheora" ,libtheora)
671 ("libvorbis" ,libvorbis)
672 ("libxcursor" ,libxcursor)
673 ("libxinerama" ,libxinerama)
674 ("libxrandr" ,libxrandr)
675 ("mesa" ,mesa)
676 ("openal" ,openal)
677 ("physfs" ,physfs)
678 ("zlib" ,zlib)))
679 (native-inputs
680 `(("pkg-config" ,pkg-config)))
681 (synopsis "Game programming library")
682 (description "Allegro is a library mainly aimed at video game and
683multimedia programming. It handles common, low-level tasks such as creating
684windows, accepting user input, loading data, drawing images, playing sounds,
685etc.")
686 (home-page "http://liballeg.org")
687 (license license:bsd-3)))
688
689(define-public allegro-5.0
690 (package (inherit allegro)
691 (name "allegro")
692 (version "5.0.11")
693 (source (origin
694 (method url-fetch)
695 (uri (string-append "https://github.com/liballeg/allegro5/releases"
696 "/download/" version "/allegro-"
697 (if (equal? "0" (string-take-right version 1))
698 (string-drop-right version 2)
699 version)
700 ".tar.gz"))
701 (sha256
702 (base32
703 "0cd51qrh97jrr0xdmnivqgwljpmizg8pixsgvc4blqqlaz4i9zj9"))))))
704
705(define-public aseprite
706 (package
707 (name "aseprite")
708 (version "1.1.7") ; After 1.1.7 the source is no longer distributed under the GPL.
709 ;; TODO: Unbundle third party software.
710 (source (origin
711 (method url-fetch/zipbomb)
712 (uri (string-append "https://github.com/aseprite/aseprite"
713 "/releases/download/v" version
714 "/Aseprite-v" version "-Source.zip"))
715 (sha256
716 (base32
717 "1plss4i1lfxcznv9p0pip1bkhj7ipw7jlhsh5avd6dzw079l4nvv"))))
718 (build-system cmake-build-system)
719 (arguments
720 '(#:configure-flags
721 ;; Use shared libraries instead of building bundled source.
722 (list "-DWITH_WEBP_SUPPORT=1"
723 "-DUSE_SHARED_CURL=1"
724 "-DUSE_SHARED_GIFLIB=1"
725 "-DUSE_SHARED_JPEGLIB=1"
726 "-DUSE_SHARED_ZLIB=1"
727 "-DUSE_SHARED_LIBPNG=1"
728 "-DUSE_SHARED_LIBLOADPNG=1"
729 "-DUSE_SHARED_LIBWEBP=1"
730 "-DUSE_SHARED_TINYXML=1"
731 "-DUSE_SHARED_PIXMAN=1"
732 "-DUSE_SHARED_FREETYPE=1"
733 "-DUSE_SHARED_ALLEGRO4=1"
734 "-DENABLE_UPDATER=0" ; no auto-updates
735 (string-append "-DFREETYPE_INCLUDE_DIR="
736 (assoc-ref %build-inputs "freetype")
737 "/include/freetype2"))))
738 (native-inputs
739 `(("pkg-config" ,pkg-config)))
740 ;; TODO: Use a patched Allegro 4 that supports window resizing. This
741 ;; patched version is bundled with Aseprite, but the patches should be
742 ;; extracted and applied on top of a standalone Allegro 4 package.
743 (inputs
744 `(("allegro" ,allegro-4)
745 ("curl" ,curl)
746 ("freetype" ,freetype)
747 ("giflib" ,giflib)
748 ("libjpeg" ,libjpeg)
749 ("libpng" ,libpng)
750 ("libwebp" ,libwebp)
751 ("libx11" ,libx11)
752 ("libxext" ,libxext)
753 ("libxxf86vm" ,libxxf86vm)
754 ("pixman" ,pixman)
755 ("tinyxml" ,tinyxml)
756 ("zlib" ,zlib)))
757 (synopsis "Animated sprite editor and pixel art tool")
758 (description "Aseprite is a tool for creating 2D pixel art for video
759games. In addition to basic pixel editing features, Aseprite can assist in
760the creation of animations, tiled graphics, texture atlases, and more.")
761 (home-page "https://www.aseprite.org/")
762 (license license:gpl2+)))
763
764(define-public qqwing
765 (package
766 (name "qqwing")
767 (version "1.3.4")
768 (source (origin
769 (method url-fetch)
770 (uri (string-append
771 "https://qqwing.com/"
772 name "-" version ".tar.gz"))
773 (sha256
774 (base32
775 "0bw0papyqjg22z6irf36gs54y8236wa37b6gyn2h1spy65n76lqp"))))
776 (build-system gnu-build-system)
777 (native-inputs
778 `(("pkg-config" ,pkg-config)))
779 (home-page "https://qqwing.com/")
780 (synopsis "Sudoku puzzle solver and generator")
781 (description
782 "QQWing is a Sudoku puzzle generator and solver.
783It offers the following features:
784@enumerate
785@item Can solve 1000 puzzles in 1 second and generate 1000 puzzles in 25 seconds.
786@item Uses logic. Uses as many solve techniques as possible when solving
787 puzzles rather than guessing.
788@item Rates puzzles. Most generators don't give an indication of the difficulty
789 of a Sudoku puzzle. QQwing does.
790@item Can print solve instructions for any puzzle.
791@item Customizable output style, including a CSV style that is easy to
792 import into a database.
793@end enumerate")
794 (license license:gpl2+)))
795
796(define-public quesoglc
797 (package
798 (name "quesoglc")
799 (version "0.7.2")
800 (source (origin
801 (method url-fetch)
802 (uri (string-append "mirror://sourceforge/" name "/" version "/"
803 name "-" version "-free.tar.bz2"))
804 (sha256
805 (base32
806 "08ddhywdy2qg17m592ng3yr0p1ih96irg8wg729g75hsxxq9ipks"))))
807 (build-system gnu-build-system)
808 (native-inputs `(("pkg-config" ,pkg-config)))
809 (inputs `(("fontconfig" ,fontconfig)
810 ("freeglute" ,freeglut)
811 ("fribidi" ,fribidi)
812 ("glew" ,glew)))
813 (home-page "http://quesoglc.sourceforge.net")
814 (synopsis "Implementation of the OpenGL Character Renderer (GLC)")
815 (description
816 "The OpenGL Character Renderer (GLC) is a state machine that provides
817OpenGL programs with character rendering services via an application programming
818interface (API).")
819 (license (list license:expat license:lgpl2.1+))))
820
821(define-public python-pygame
822 (package
823 (name "python-pygame")
824 (version "1.9.3")
825 (source (origin
826 (method url-fetch)
827 (uri (pypi-uri "pygame" version))
828 (sha256
829 (base32
830 "1hlydiyygl444bq5m5g8n3jsxsgrdyxlm42ipmfbw36wkf0j243m"))))
831 (build-system python-build-system)
832 (arguments
833 `(#:tests? #f ; Tests require pygame to be installed first.
834 #:phases
835 (modify-phases %standard-phases
836 ;; Set the paths to the dependencies manually because
837 ;; the configure script does not allow passing them as
838 ;; parameters. This also means we can skip the configure
839 ;; phase.
840 (add-before 'build 'set-library-paths
841 (lambda* (#:key inputs outputs #:allow-other-keys)
842 (let ((sdl-ref (assoc-ref inputs "sdl"))
843 (font-ref (assoc-ref inputs "sdl-ttf"))
844 (image-ref (assoc-ref inputs "sdl-image"))
845 (mixer-ref (assoc-ref inputs "sdl-mixer"))
846 (smpeg-ref (assoc-ref inputs "libsmpeg"))
847 (png-ref (assoc-ref inputs "libpng"))
848 (jpeg-ref (assoc-ref inputs "libjpeg"))
849 (freetype-ref (assoc-ref inputs "freetype"))
850 (v4l-ref (assoc-ref inputs "v4l-utils"))
851 (out-ref (assoc-ref outputs "out")))
852 (substitute* "Setup.in"
853 (("SDL = -I/usr/include/SDL")
854 (string-append "SDL = -I" sdl-ref "/include/SDL -I.")))
855 (substitute* "Setup.in"
856 (("FONT = -lSDL_ttf")
857 (string-append "FONT = -I" font-ref "/include/SDL -L"
858 font-ref "/lib -lSDL_ttf")))
859 (substitute* "Setup.in"
860 (("IMAGE = -lSDL_image")
861 (string-append "IMAGE = -I" image-ref "/include/SDL -L"
862 image-ref "/lib -lSDL_image")))
863 (substitute* "Setup.in"
864 (("MIXER = -lSDL_mixer")
865 (string-append "MIXER = -I" mixer-ref "/include/SDL -L"
866 mixer-ref "/lib -lSDL_mixer")))
867 (substitute* "Setup.in"
868 (("SMPEG = -lsmpeg")
869 (string-append "SMPEG = -I" smpeg-ref "/include/smpeg -L"
870 smpeg-ref "/lib -lsmpeg")))
871 (substitute* "Setup.in"
872 (("PNG = -lpng")
873 (string-append "PNG = -I" png-ref "/include -L"
874 png-ref "/lib -lpng")))
875 (substitute* "Setup.in"
876 (("JPEG = -ljpeg")
877 (string-append "JPEG = -I" jpeg-ref "/include -L"
878 jpeg-ref "/lib -ljpeg")))
879
880 (substitute* "Setup.in"
881 (("FREETYPE = -lfreetype")
882 (string-append "FREETYPE = -I" freetype-ref "/include/freetype2 -L"
883 freetype-ref "/lib -lfreetype")))
884
885 (substitute* "Setup.in"
886 (("^pypm") "#pypm"))
887 ;; Create a path to a header file provided by v4l-utils.
888 (system* "mkdir" "linux")
889 (system* "ln" "--symbolic"
890 (string-append v4l-ref "/include/libv4l1-videodev.h")
891 "linux/videodev.h")
892 (system* "ln" "--symbolic" "Setup.in" "Setup")))))))
893 (inputs
894 `(("freetype" ,freetype)
895 ("sdl" ,sdl)
896 ("sdl-image" ,sdl-image)
897 ("sdl-mixer" ,sdl-mixer)
898 ("sdl-ttf" ,sdl-ttf)
899 ("sdl-gfx" ,sdl-gfx)
900 ("libjpeg" ,libjpeg)
901 ("libpng" ,libpng)
902 ("libX11" ,libx11)
903 ("libsmpeg" ,libsmpeg)
904 ("portmidi" ,portmidi)
905 ("v4l-utils" ,v4l-utils)))
906 (home-page "https://www.pygame.org")
907 (synopsis "SDL wrapper for Python")
908 (description "Pygame is a set of Python modules designed for writing games.
909Pygame adds functionality on top of the excellent SDL library. This allows you
910to create fully featured games and multimedia programs in the python language.")
911 (license (list license:bsd-2
912 ;; python numeric license as listed by Debian looks like
913 ;; an Expat-style license with a warranty disclaimer for
914 ;; the U.S. government and the University of California.
915 license:expat
916 license:lgpl2.0+
917 license:lgpl2.1+
918 license:gpl3+
919 license:psfl
920 license:public-domain
921 license:lgpl2.1+))))
922
923(define-public python2-pygame
924 (package-with-python2 python-pygame))
925
926(define-public grafx2
927 (package
928 (name "grafx2")
929 (version "2.4")
930 (source (origin
931 (method url-fetch)
932 ;; XXX: There is no URL that contains the version. :(
933 (uri "http://pulkomandy.tk/projects/GrafX2/downloads/21")
934 (sha256
935 (base32
936 "0svsy6rqmdj11b400c242i2ixihyz0hds0dgicqz6g6dcgmcl62q"))))
937 (build-system gnu-build-system)
938 (arguments
939 '(#:phases
940 (modify-phases %standard-phases
941 (delete 'configure) ; no configure script
942 (add-before 'build 'change-to-src-directory
943 (lambda _
944 (chdir "src")
945 #t)))
946 #:make-flags
947 ;; SDL header files are referenced without the preceeding "SDL/".
948 (list (string-append "CFLAGS=-I"
949 (assoc-ref %build-inputs "sdl-union")
950 "/include/SDL")
951 (string-append "prefix="
952 (assoc-ref %outputs "out")))
953 #:tests? #f)) ; no check target
954 (native-inputs
955 `(("pkg-config" ,pkg-config)))
956 (inputs
957 `(("libpng" ,libpng)
958 ("lua" ,lua-5.1)
959 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-ttf)))))
960 (synopsis "Bitmap paint program")
961 (description "GrafX2 is a bitmap paint program inspired by the Amiga
962programs Deluxe Paint and Brilliance. Specializing in 256-color drawing, it
963includes a very large number of tools and effects that make it particularly
964suitable for pixel art, game graphics, and generally any detailed graphics
965painted with a mouse.")
966 (home-page "http://pulkomandy.tk/projects/GrafX2")
967 (license license:gpl2))) ; GPLv2 only
968
969(define-public ois
970 (package
971 (name "ois")
972 (version "1.3")
973 (source
974 (origin
975 ;; Development has moved to github and there are no recent tarball
976 ;; releases.
977 (method git-fetch)
978 (uri (git-reference
979 (url "https://github.com/wgois/OIS.git")
980 (commit "bb75ccc1aabc1c547195579963601ff6080ca2f2")))
981 (file-name (string-append name "-" version))
982 (sha256
983 (base32
984 "0w0pamjc3vj0jr718hysrw8x076fq6n9rd6wcb36sn2jd0lqvi98"))))
985 (build-system gnu-build-system)
986 (native-inputs
987 `(("autoconf" ,autoconf)
988 ("automake" ,automake)
989 ("libtool" ,libtool)
990 ("m4" ,m4)
991 ("pkg-config" ,pkg-config)))
992 (inputs
993 `(("libxaw" ,libxaw)))
994 (synopsis "Object Oriented Input System")
995 (description
996 "Cross Platform Object Oriented Input Lib System is a cross platform,
997simple solution for using all kinds of Input Devices (Keyboards, Mice,
998Joysticks, etc) and feedback devices (e.g. force feedback). Meant to be very
999robust and compatible with many systems and operating systems.")
1000 (home-page "https://github.com/wgois/OIS")
1001 (license license:zlib)))
1002
1003(define-public mygui
1004 (package
1005 (name "mygui")
1006 (version "3.2.2")
1007 (source
1008 (origin
1009 (method url-fetch)
1010 (uri
1011 (string-append "https://github.com/MyGUI/" name
1012 "/archive/MyGUI" version ".tar.gz"))
1013 (sha256
1014 (base32
1015 "13x7cydmj7gjmsg702sqjbfi53z265iv6j7binv3r6a7ibndfa0a"))))
1016 (build-system cmake-build-system)
1017 (arguments
1018 '(#:tests? #f ; No test target
1019 #:configure-flags
1020 (list "-DMYGUI_INSTALL_DOCS=TRUE"
1021 (string-append "-DOGRE_INCLUDE_DIR="
1022 (assoc-ref %build-inputs "ogre")
1023 "/include/OGRE"))))
1024 (native-inputs
1025 `(("boost" ,boost)
1026 ("doxygen" ,doxygen)
1027 ("pkg-config" ,pkg-config)))
1028 (inputs
1029 `(("font-dejavu" ,font-dejavu)
1030 ("freetype" ,freetype)
1031 ("graphviz" ,graphviz)
1032 ("libx11" ,libx11)
1033 ("ogre" ,ogre)
1034 ("ois" ,ois)))
1035 (synopsis "Fast, flexible and simple GUI")
1036 (description
1037 "MyGUI is a library for creating Graphical User Interfaces (GUIs) for games
1038and 3D applications. The main goals of mygui are: speed, flexibility and ease
1039of use.")
1040 (home-page "http://mygui.info/")
1041 (license license:expat)))
1042
1043(define-public openmw
1044 (package
1045 (name "openmw")
1046 (version "0.44.0")
1047 (source
1048 (origin
1049 (method url-fetch)
1050 (uri
1051 (string-append "https://github.com/OpenMW/openmw/archive/"
1052 name "-" version ".tar.gz"))
1053 (sha256
1054 (base32
1055 "03fgm2f2r7y0aqlgp038pdlnllgvm3jimrp968p4nhz1sffvjzcy"))))
1056 (build-system cmake-build-system)
1057 (arguments
1058 `(#:tests? #f ; No test target
1059 #:configure-flags
1060 (list "-DDESIRED_QT_VERSION=5")))
1061 (native-inputs
1062 `(("boost" ,boost)
1063 ("doxygen" ,doxygen)
1064 ("pkg-config" ,pkg-config)))
1065 (inputs
1066 `(("bullet" ,bullet)
1067 ("ffmpeg" ,ffmpeg)
1068 ("libxt" ,libxt)
1069 ("mygui" ,mygui)
1070 ("openal" ,openal)
1071 ("openscenegraph" ,openscenegraph)
1072 ("qtbase" ,qtbase)
1073 ("sdl" ,sdl2)
1074 ("unshield" ,unshield)))
1075 (synopsis "Re-implementation of the RPG Morrowind engine")
1076 (description
1077 "OpenMW is a game engine which reimplements and extends the one that runs
1078the 2002 open-world RPG Morrowind. The engine comes with its own editor,
1079called OpenMW-CS which allows the user to edit or create their own original
1080games.")
1081 (home-page "https://openmw.org")
1082 (license license:gpl3)))
1083
1084(define-public godot
1085 (package
1086 (name "godot")
1087 (version "3.0.6")
1088 (source (origin
1089 (method git-fetch)
1090 (uri (git-reference
1091 (url "https://github.com/godotengine/godot")
1092 (commit (string-append version "-stable"))))
1093 (file-name (git-file-name name version))
1094 (sha256
1095 (base32
1096 "0g64h0x8dlv6aa9ggfcidk2mknkfl5li7z1phcav8aqp9srj8avf"))
1097 (modules '((guix build utils)))
1098 (snippet
1099 '(begin
1100 ;; Drop libraries that we take from Guix. Note that some
1101 ;; of these may be modified; see "thirdparty/README.md".
1102 (with-directory-excursion "thirdparty"
1103 (for-each delete-file-recursively
1104 '("freetype"
1105 "libogg"
1106 "libpng"
1107 "libtheora"
1108 "libvorbis"
1109 "libvpx"
1110 "libwebp"
1111 "openssl"
1112 "opus"
1113 "zlib"))
1114 #t)))))
1115 (build-system scons-build-system)
1116 (arguments
1117 `(#:scons ,scons-python2
1118 #:scons-flags (list "platform=x11"
1119 ,@(if (string-prefix? "aarch64" (or (%current-target-system)
1120 (%current-system)))
1121 `("CCFLAGS=-DNO_THREADS")
1122 '())
1123 ;; Avoid using many of the bundled libs.
1124 ;; Note: These options can be found in the SConstruct file.
1125 "builtin_freetype=no"
1126 "builtin_glew=no"
1127 "builtin_libmpdec=no"
1128 "builtin_libogg=no"
1129 "builtin_libpng=no"
1130 "builtin_libtheora=no"
1131 "builtin_libvorbis=no"
1132 "builtin_libvpx=no"
1133 "builtin_libwebp=no"
1134 "builtin_openssl=no"
1135 "builtin_opus=no"
1136 "builtin_zlib=no")
1137 #:tests? #f ; There are no tests
1138 #:phases
1139 (modify-phases %standard-phases
1140 (add-after 'unpack 'scons-use-env
1141 (lambda _
1142 ;; Scons does not use the environment variables by default,
1143 ;; but this substitution makes it do so.
1144 (substitute* "SConstruct"
1145 (("env_base = Environment\\(tools=custom_tools\\)")
1146 (string-append
1147 "env_base = Environment(tools=custom_tools)\n"
1148 "env_base = Environment(ENV=os.environ)")))
1149 #t))
1150 (replace 'install
1151 (lambda* (#:key outputs #:allow-other-keys)
1152 (let* ((out (assoc-ref outputs "out"))
1153 (bin (string-append out "/bin")))
1154 (with-directory-excursion "bin"
1155 (if (file-exists? "godot.x11.tools.64")
1156 (rename-file "godot.x11.tools.64" "godot")
1157 (rename-file "godot.x11.tools.32" "godot"))
1158 (install-file "godot" bin))
1159 #t)))
1160 (add-after 'install 'install-godot-desktop
1161 (lambda* (#:key outputs #:allow-other-keys)
1162 (let* ((out (assoc-ref outputs "out"))
1163 (desktop (string-append out "/share/applications"))
1164 (icon-dir (string-append out "/share/pixmaps")))
1165 (rename-file "icon.png" "godot.png")
1166 (install-file "godot.png" icon-dir)
1167 (mkdir-p desktop)
1168 (with-output-to-file
1169 (string-append desktop "/godot.desktop")
1170 (lambda _
1171 (format #t
1172 "[Desktop Entry]~@
1173 Name=godot~@
1174 Comment=The godot game engine~@
1175 Exec=~a/bin/godot~@
1176 TryExec=~@*~a/bin/godot~@
1177 Icon=godot~@
1178 Type=Application~%"
1179 out)))
1180 #t))))))
1181 (native-inputs `(("pkg-config" ,pkg-config)))
1182 (inputs `(("alsa-lib" ,alsa-lib)
1183 ("freetype" ,freetype)
1184 ("glew" ,glew)
1185 ("glu" ,glu)
1186 ("libtheora" ,libtheora)
1187 ("libvorbis" ,libvorbis)
1188 ("libvpx" ,libvpx)
1189 ("libwebp" ,libwebp)
1190 ("libx11" ,libx11)
1191 ("libxcursor" ,libxcursor)
1192 ("libxi" ,libxi)
1193 ("libxinerama" ,libxinerama)
1194 ("libxrandr" ,libxrandr)
1195 ("mesa" ,mesa)
1196 ("openssl" ,openssl)
1197 ("opusfile" ,opusfile)
1198 ("pulseaudio" ,pulseaudio)))
1199 (home-page "https://godotengine.org/")
1200 (synopsis "Advanced 2D and 3D game engine")
1201 (description
1202 "Godot is an advanced multi-platform game engine written in C++. If
1203features design tools such as a visual editor, can import 3D models and
1204provide high-quality 3D rendering, it contains an animation editor, and can be
1205scripted in a Python-like language.")
1206 (license license:expat)))
1207
1208(define-public eureka
1209 (package
1210 (name "eureka")
1211 (version "1.21")
1212 (source (origin
1213 (method url-fetch)
1214 (uri (string-append "mirror://sourceforge/eureka-editor/Eureka/"
1215 version "/eureka-"
1216 ;; version without dots e.g 1.21 => 121
1217 (string-join (string-split version #\.) "")
1218 "-source.tar.gz"))
1219 (sha256
1220 (base32
1221 "1a7pf7xi56fcz7jc8layih5gq5m66g2ss4x5j61kzgip07j6rkir"))))
1222 (build-system gnu-build-system)
1223 (arguments
1224 '(#:tests? #f
1225 #:make-flags
1226 (let ((out (assoc-ref %outputs "out")))
1227 (list (string-append "PREFIX=" out)))
1228 #:phases
1229 (modify-phases %standard-phases
1230 (delete 'configure)
1231 (add-before 'build 'prepare-install-directories
1232 (lambda* (#:key outputs #:allow-other-keys)
1233 (let ((out (assoc-ref outputs "out")))
1234 (mkdir-p (string-append out "/bin"))
1235 (mkdir-p (string-append out "/share"))
1236
1237 (with-fluids ((%default-port-encoding #f))
1238 (substitute* "./src/main.cc"
1239 (("/usr/local") out)))
1240
1241 (substitute* "Makefile"
1242 (("-o root") ""))))))))
1243 (inputs `(("mesa" ,mesa)
1244 ("libxft" ,libxft)
1245 ("libxinerama" ,libxinerama)
1246 ("libfontconfig" ,fontconfig)
1247 ("libjpeg" ,libjpeg)
1248 ("libpng" ,libpng)
1249 ("fltk" ,fltk)
1250 ("zlib" ,zlib)))
1251 (native-inputs `(("pkg-config" ,pkg-config)
1252 ("xdg-utils" ,xdg-utils)))
1253 (synopsis "Doom map editor")
1254 (description "Eureka is a map editor for the classic DOOM games, and a few
1255related games such as Heretic and Hexen. It comes with a 3d preview mode and
1256a 2D editor view.")
1257 (home-page "http://eureka-editor.sourceforge.net/")
1258 (license license:gpl2+)))
1259
1260(define-public guile-chickadee
1261 (package
1262 (name "guile-chickadee")
1263 (version "0.3.0")
1264 (source (origin
1265 (method url-fetch)
1266 (uri (string-append "https://files.dthompson.us/chickadee/"
1267 "chickadee-" version ".tar.gz"))
1268 (sha256
1269 (base32
1270 "0jl223dybsj5gvs7z4q60gnafj1b7kgi5mx0kj58m5knrp8qwg5h"))))
1271 (build-system gnu-build-system)
1272 (arguments
1273 '(#:make-flags '("GUILE_AUTO_COMPILE=0")
1274 #:phases
1275 (modify-phases %standard-phases
1276 (add-before 'configure 'patch-godir
1277 (lambda _
1278 ;; Install compiled '.go' files into the site directory.
1279 (substitute* "Makefile.in"
1280 (("/ccache") "/site-ccache")))))))
1281 (propagated-inputs
1282 `(("guile-opengl" ,guile-opengl)
1283 ("guile-sdl2" ,guile-sdl2)))
1284 (inputs
1285 `(("guile" ,guile-2.2)))
1286 (native-inputs
1287 `(("pkg-config" ,pkg-config)
1288 ("texinfo" ,texinfo)))
1289 (home-page "https://dthompson.us/projects/chickadee.html")
1290 (synopsis "Game development toolkit for Guile Scheme with SDL2 and OpenGL")
1291 (description "Chickadee is a game development toolkit for Guile Scheme
1292built on top of SDL2 and OpenGL. Chickadee aims to provide all the features
1293that parenthetically inclined game developers need to make 2D (and eventually
12943D) games in Scheme, such as:
1295
1296@enumerate
1297@item extensible, fixed-timestep game loop
1298@item OpenGL-based rendering engine
1299@item keyboard, mouse, controller input
1300@item REPL-driven development model
1301@end enumerate\n")
1302 (license license:gpl3+)))