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>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages game-development)
21 #:use-module ((guix licenses) #:prefix license:)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system cmake)
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages qt)
28 #:use-module (gnu packages compression)
29 #:use-module (gnu packages zip)
30 #:use-module (gnu packages gl)
31 #:use-module (gnu packages linux)
32 #:use-module (gnu packages xorg)
33 #:use-module (gnu packages fontutils)
34 #:use-module (gnu packages image)
35 #:use-module (gnu packages audio)
36 #:use-module (gnu packages pulseaudio))
41 (version "2.82-r2704")
44 (uri (string-append "https://bullet.googlecode.com/files/bullet-"
48 "1lnfksxa9b1slyfcxys313ymsllvbsnxh9np06azkbgpfvmwkr37"))))
49 (build-system cmake-build-system)
50 (arguments '(#:tests? #f ; no 'test' target
51 #:configure-flags (list
53 "-DCMAKE_CXX_FLAGS=-fPIC "
54 (or (getenv "CXXFLAGS") "")))))
55 (home-page "http://bulletphysics.org/")
56 (synopsis "3D physics engine library")
58 "Bullet is a physics engine library usable for collision detection. It
59 is used in some video games and movies.")
60 (license license:zlib)))
68 (uri (string-append "https://github.com/bjorn/tiled/archive/v"
70 (file-name (string-append name "-" version ".tar.gz"))
73 "03a15vbzjfwc8dpifbjvd0gnr208mzmdkgs2nlc8zq6z0a4h4jqd"))))
74 (build-system gnu-build-system)
81 (lambda* (#:key outputs #:allow-other-keys)
82 (let ((out (assoc-ref outputs "out")))
84 (string-append "PREFIX=" out))))
86 (home-page "http://www.mapeditor.org/")
87 (synopsis "Tile map editor")
89 "Tiled is a general purpose tile map editor. It is meant to be used for
90 editing maps of any tile-based game, be it an RPG, a platformer or a Breakout
93 ;; As noted in 'COPYING', part of it is under GPLv2+, while the rest is
95 (license license:gpl2+)))
103 (uri (string-append "http://mirror0.sfml-dev.org/files/SFML-"
104 version "-sources.zip"))
107 "1xhkvgyfbhqsjdmfbxvk729kdrzh7kdyagxa3bvpzi6z43mh1frd"))))
108 (build-system cmake-build-system)
110 '(#:tests? #f)) ; no tests
117 ("libxrandr" ,libxrandr)
119 ("freetype" ,freetype)
121 ("libsndfile" ,libsndfile)
123 (home-page "http://www.sfml-dev.org")
124 (synopsis "Simple and Fast Multimedia Library")
126 "SFML provides a simple interface to the various computer components,
127 to ease the development of games and multimedia applications. It is composed
128 of five modules: system, window, graphics, audio and network.")
129 (license license:zlib)))