guix-more/more/packages/games.scm

games.scm

1
;;; GNU Guix --- Functional package management for GNU
2
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
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 (more packages games)
20
  #:use-module (guix packages)
21
  #:use-module (guix download)
22
  #:use-module (guix build-system cmake)
23
  #:use-module ((guix licenses) #:prefix license:)
24
  #:use-module (gnu packages)
25
  #:use-module (gnu packages audio)
26
  #:use-module (gnu packages boost)
27
  #:use-module (gnu packages check)
28
  #:use-module (gnu packages compression)
29
  #:use-module (gnu packages documentation)
30
  #:use-module (gnu packages fontutils)
31
  #:use-module (gnu packages gl)
32
  #:use-module (gnu packages image)
33
  #:use-module (gnu packages pkg-config)
34
  #:use-module (gnu packages sdl)
35
  #:use-module (gnu packages tbb)
36
  #:use-module (gnu packages xiph)
37
  #:use-module (gnu packages xml)
38
  #:use-module (gnu packages xorg)
39
  #:use-module (gnu packages zip))
40
41
(define-public lugaru
42
  (package
43
    (name "lugaru")
44
    (version "1.1")
45
    (source (origin
46
              (method url-fetch)
47
              (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
48
                                  name "-" version ".tar.xz"))
49
              (sha256
50
               (base32
51
                "0b5q73kwbiqin00iizjwzzwijrl45drq0da4cxn94mqqc7ygc02y"))))
52
    (build-system cmake-build-system)
53
    (arguments
54
     `(#:configure-flags
55
       (list "-DSYSTEM_INSTALL=ON")
56
       #:tests? #f))
57
    (native-inputs
58
     `(("pkg-config" ,pkg-config)))
59
    (inputs
60
     `(("sdl2" ,sdl2)
61
       ("glu" ,glu)
62
       ("libjpeg" ,libjpeg-turbo)
63
       ("libpng" ,libpng)
64
       ("openal" ,openal)
65
       ("vorbis" ,libvorbis)
66
       ("zlib" ,zlib)))
67
    (home-page "https://osslugaru.gitlab.io")
68
    (synopsis "Cross-platform third-person action game")
69
    (description "The main character, Turner, is an anthropomorphic rebel bunny
70
rabbit with impressive combat skills.  In his quest to find those responsible
71
for slaughtering his village, he uncovers a far-reaching conspiracy involving
72
the corrupt leaders of the rabbit republic and the starving wolves from a
73
nearby den.  Turner takes it upon himself to fight against their plot and save
74
his fellow rabbits from slavery.")
75
    (license (list license:gpl2+ license:cc-by-sa3.0))))
76
77
(define-public ogre3d
78
  (package
79
    (name "ogre3d")
80
    (version "1.9.0")
81
    (source (origin
82
              (method url-fetch)
83
              (uri (string-append
84
                     "https://bitbucket.org/sinbad/ogre/get/v"
85
                     (string-map (lambda (x) (if (char=? x #\.) #\- x)) version)
86
                     ".tar.gz"))
87
              (file-name (string-append name "-" version ".tar.gz"))
88
              (sha256
89
               (base32
90
                "0p8gyn293qn3iyiy1smfmjd9zpnjb8h2zgvff8778fwh0ylbmlpa"))))
91
    (build-system cmake-build-system)
92
    (native-inputs
93
     `(("doxygen" ,doxygen)))
94
    (inputs
95
     `(("freetype" ,freetype)
96
       ("boost" ,boost)
97
       ("sdl2" ,sdl2)
98
       ("cppunit" ,cppunit)
99
       ("freeimage" ,freeimage)
100
       ("glu" ,glu)
101
       ("libxt" ,libxt)
102
       ("libxaw" ,libxaw)
103
       ("libxxf86vm" ,libxxf86vm)
104
       ("libxrandr" ,libxrandr)
105
       ("mesa" ,mesa)
106
       ("tbb" ,tbb)
107
       ("tinyxml" ,tinyxml)
108
       ("zziplib" ,zziplib)))
109
    (arguments
110
     `(#:tests? #f
111
       #:configure-flags
112
       (list (string-append "-DFREETYPE_FT2BUILD_INCLUDE_DIR="
113
               (assoc-ref %build-inputs "freetype")
114
               "/include"))
115
       #:phases
116
       (modify-phases %standard-phases
117
         (add-after 'build 'build-doc
118
           (lambda* _
119
             (zero? (system* "make" "OgreDoc")))))))
120
    (home-page "http://www.ogre3d.org")
121
    (synopsis "3D graphics engine")
122
    (description "3D graphics engine")
123
    (license license:expat)))
124