diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-05-06 16:46:40 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-05-06 16:46:40 +0200 |
commit | 72e2e8fa29a4b1815613220dccc67fc7b380b98e (patch) | |
tree | d8581afb5b61ab4e4a58ca4b743de63148838511 /gnu/packages | |
parent | 0e3931f02700b9fcc788e7a1215cf0e8383d09c3 (diff) | |
download | guix-72e2e8fa29a4b1815613220dccc67fc7b380b98e.tar.gz |
gnu: Add cglm.
* gnu/packages/maths.scm (cglm): New public variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/maths.scm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index d5a94e92ab..9f7bdb9bb1 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4227,6 +4227,34 @@ done in the BIOS, or, on GNU/Linux, with the following command: Failure to do so will result in a library with poor performance.") (license license:bsd-3))) +(define-public cglm + (package + (name "cglm") + (version "0.8.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/recp/cglm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lcfl9ph4bnl3hckpx4hzwh8r4llnw94ik75igc5qy38wk468gmk")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list "-DCGLM_USE_TEST=ON"))) + (home-page "https://github.com/recp/cglm") + (synopsis "Mathematics C library for graphics programming") + (description + "@acronym{CGLM, C OpenGL Mathematics} is an optimised 3D maths library +for graphics software based on the @acronym{GLSL, OpenGL Shading Language} +specifications. + +It's similar to the original C++ GLM library but written in C99 and compatible +with C89.") + (license license:expat))) + (define-public glm (package (name "glm") |