[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: Add box2d.
From: |
guix-commits |
Subject: |
02/09: gnu: Add box2d. |
Date: |
Tue, 22 Jun 2021 06:53:04 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 920a36392a40fad1e6e42aec2bbe9292e0d2202d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jun 22 09:26:55 2021 +0300
gnu: Add box2d.
* gnu/packages/game-development.scm (box2d): New variable.
---
gnu/packages/game-development.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/game-development.scm
b/gnu/packages/game-development.scm
index 78983cd..f1205e5 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2018 Alex Kost <alezost@gmail.com>
;;; Copyright © 2015, 2016, 2017 David Thompson <davet@gnu.org>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner
<efraim@flashner.co.il>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner
<efraim@flashner.co.il>
;;; Copyright © 2016, 2017, 2020 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2016, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016, 2017, 2018 Julian Graham <joolean@gmail.com>
@@ -2289,6 +2289,39 @@ computer games, 3D authoring tools and simulation
tools.")
rigid body physics library written in C.")
(license license:expat)))
+(define-public box2d
+ (package
+ (name "box2d")
+ (version "2.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/erincatto/box2d")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ja9cahf3z9zzrdaqcw44lpjmqf2ir2g4chwz0iwqwlkckwhpgvh"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Bundled code only used for the testbed.
+ (delete-file-recursively "extern")))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:test-target "unit_test"
+ #:configure-flags '("-DBUILD_SHARED_LIBS=ON"
+ "-DBOX2D_BUILD_TESTBED=OFF")))
+ (inputs
+ `(("libx11" ,libx11)))
+ (home-page "https://box2d.org/")
+ (synopsis "2D physics engine for games")
+ (description "Box2D is a 2D rigid body simulation library for games.
+Programmers can use it in their games to make objects move in realistic ways
and
+make the game world more interactive. From the game engine's point of view, a
+physics engine is just a system for procedural animation.")
+ (license license:expat)))
+
(define-public libtcod
(package
(name "libtcod")
- branch master updated (e88f205 -> d89ef8a), guix-commits, 2021/06/22
- 01/09: gnu: libreoffice: Add vendor string., guix-commits, 2021/06/22
- 03/09: gnu: ensembl-vep: Use a source file-name., guix-commits, 2021/06/22
- 04/09: gnu: emacs-shell-command+: Use a source file-name., guix-commits, 2021/06/22
- 06/09: gnu: ixion: Update to 0.16.1., guix-commits, 2021/06/22
- 09/09: gnu: libreoffice: Update to 7.1.4.2., guix-commits, 2021/06/22
- 02/09: gnu: Add box2d.,
guix-commits <=
- 05/09: gnu: ocaml-uri: Use a source file-name., guix-commits, 2021/06/22
- 07/09: gnu: orcus: Don't build static library., guix-commits, 2021/06/22
- 08/09: gnu: orcus: Update to 0.16.1., guix-commits, 2021/06/22