gnu: tiled: Move to game-development module.
[jackhill/guix/guix.git] / gnu / packages / game-development.scm
CommitLineData
6cb89466
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Tomáš Čech <sleep_walker@suse.cz>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages game-development)
b0910aad 20 #:use-module ((guix licenses) #:prefix license:)
6cb89466
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system cmake)
b0910aad
DT
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages qt)
27 #:use-module (gnu packages compression))
6cb89466
28
29(define-public bullet
30 (package
31 (name "bullet")
32 (version "2.82-r2704")
33 (source (origin
34 (method url-fetch)
35 (uri (string-append "https://bullet.googlecode.com/files/bullet-"
36 version ".tgz"))
37 (sha256
38 (base32
39 "1lnfksxa9b1slyfcxys313ymsllvbsnxh9np06azkbgpfvmwkr37"))))
40 (build-system cmake-build-system)
41 (arguments '(#:tests? #f ; no 'test' target
42 #:configure-flags (list
43 (string-append
44 "-DCMAKE_CXX_FLAGS=-fPIC "
45 (or (getenv "CXXFLAGS") "")))))
46 (home-page "http://bulletphysics.org/")
47 (synopsis "3D physics engine library")
48 (description
49 "Bullet is a physics engine library usable for collision detection. It
50is used in some video games and movies.")
b0910aad
DT
51 (license license:zlib)))
52
53(define-public tiled
54 (package
55 (name "tiled")
56 (version "0.10.2")
57 (source (origin
58 (method url-fetch)
59 (uri (string-append "https://github.com/bjorn/tiled/archive/v"
60 version ".tar.gz"))
61 (sha256
62 (base32
63 "0p4p3lv4nw11fkfvvyjirb93r2x4w2rrc2w650gl2k57k92jpiij"))))
64 (build-system gnu-build-system)
65 (inputs `(("qt" ,qt)
66 ("zlib" ,zlib)))
67 (arguments
68 '(#:phases
69 (alist-replace
70 'configure
71 (lambda* (#:key outputs #:allow-other-keys)
72 (let ((out (assoc-ref outputs "out")))
73 (system* "qmake"
74 (string-append "PREFIX=" out))))
75 %standard-phases)))
76 (home-page "http://www.mapeditor.org/")
77 (synopsis "Tile map editor")
78 (description
79 "Tiled is a general purpose tile map editor. It is meant to be used for
80editing maps of any tile-based game, be it an RPG, a platformer or a Breakout
81clone.")
82
83 ;; As noted in 'COPYING', part of it is under GPLv2+, while the rest is
84 ;; under BSD-2.
85 (license license:gpl2+)))