add torque3d, update khanat

Julien LepillerFri May 04 18:58:02+0200 2018

d1fc1b2

add torque3d, update khanat

more/packages/games.scm

2525
  #:use-module (guix build-system trivial)
2626
  #:use-module ((guix licenses) #:prefix license:)
2727
  #:use-module (gnu packages)
28+
  #:use-module (gnu packages assembly)
2829
  #:use-module (gnu packages audio)
2930
  #:use-module (gnu packages base)
3031
  #:use-module (gnu packages boost)

165166
              (method git-fetch)
166167
              (uri (git-reference
167168
                     (url "https://git.khaganat.net/khaganat/mmorpg_khanat/khanat-opennel-code.git")
168-
                     (commit "0ca90c49a5e1e6f8865ef15517bd25e388a2db96")))
169+
                     ;(commit "0ca90c49a5e1e6f8865ef15517bd25e388a2db96")))
170+
                     (commit "302ee7e20ea93caded5d46637918ba0092f207fd")))
169171
              (sha256
170172
               (base32
171-
                "0rfrk43ya8mx576ycs4rln67kdrci37ryixk7abf1cqjdrz7a883"))))
173+
                ;"1rfrk43ya8mx576ycs4rln67kdrci37ryixk7abf1cqjdrz7a883"))))
174+
                "1w0bhspsgf3dg33xdyypc4rm935n6g5d7shid92jf4j6jb0cjahh"))))
172175
    (build-system cmake-build-system)
173176
    (inputs
174177
     `(("boost" ,boost)

198201
       (modify-phases %standard-phases
199202
         (add-before 'configure 'chdir
200203
           (lambda _
201-
             (chdir "code"))))))
204+
             (chdir "code")))
205+
         (add-after 'install 'link-khanat
206+
           (lambda* (#:key outputs #:allow-other-keys)
207+
             (let* ((out (assoc-ref outputs "out"))
208+
                    (game (string-append out "/games/khanat_client"))
209+
                    (bin (string-append out "/bin/khanat_client")))
210+
             (symlink game bin)))))))
202211
    (home-page "https://khaganat.net/")
203212
    (synopsis "")
204213
    (description "")

291300
emojis.  Emojicode is a straightforward language to learn, whatever background
292301
you have.")
293302
    (license license:artistic2.0)))
303+
304+
(define-public torque3d
305+
  (package
306+
    (name "torque3d")
307+
    (version "3.10.1")
308+
    (source (origin
309+
              (method url-fetch)
310+
              (uri (string-append "https://github.com/GarageGames/Torque3D/archive/v"
311+
                                  version ".tar.gz"))
312+
              (file-name (string-append name "-" version ".tar.gz"))
313+
              (sha256
314+
               (base32
315+
                "0qxaybdmir90ynfqs7l45di7vh0xa619abq53l9avj6yycihgw8b"))))
316+
    (build-system cmake-build-system)
317+
    (arguments
318+
     `(#:configure-flags
319+
       (list "-DTORQUE_APP_NAME=Torque3D")
320+
       #:tests? #f))
321+
    (inputs
322+
     `(("gtk+" ,gtk+)
323+
       ("libxft" ,libxft)
324+
       ("openal" ,openal)))
325+
    (native-inputs
326+
     `(("nasm" ,nasm)
327+
       ("pkg-config" ,pkg-config)))
328+
    (home-page "http://torque3d.org/")
329+
    (synopsis "Game engine")
330+
    (description "")
331+
    (license license:expat)))