added ogre 3d

Julien LepillerThu Mar 23 23:18:33+0100 2017

ebbc0bd

added ogre 3d

more/packages/games.scm

2323
  #:use-module ((guix licenses) #:prefix license:)
2424
  #:use-module (gnu packages)
2525
  #:use-module (gnu packages audio)
26+
  #:use-module (gnu packages boost)
27+
  #:use-module (gnu packages check)
2628
  #:use-module (gnu packages compression)
29+
  #:use-module (gnu packages documentation)
30+
  #:use-module (gnu packages fontutils)
2731
  #:use-module (gnu packages gl)
2832
  #:use-module (gnu packages image)
2933
  #:use-module (gnu packages pkg-config)
3034
  #:use-module (gnu packages sdl)
31-
  #:use-module (gnu packages xiph))
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))
3240
3341
(define-public lugaru
3442
  (package

6573
nearby den.  Turner takes it upon himself to fight against their plot and save
6674
his fellow rabbits from slavery.")
6775
    (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)))