guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#42377] [PATCH] Add raylib.


From: trymonv
Subject: [bug#42377] [PATCH] Add raylib.
Date: Wed, 15 Jul 2020 17:52:07 +0000

 gnu/packages/game-development.scm | 34 +++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index e45980e7a0..cba9b5bd45 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2489,3 +2489,37 @@ fully dynamic omnidirectional shadows, global illumination, HDR lighting,
 deferred shading, morphological / temporal / multisample anti-aliasing, and
 much more.")
       (license license:zlib))))
+
+(define-public raylib
+  (package
+    (name "raylib")
+    (version "3.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/raysan5/raylib/")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1chj7sril4l2dxh7flp5ndddydbbf1fhnqlydaysm4m6waxidxmr"))))
+    (build-system cmake-build-system)
+    (arguments '(#:configure-flags `("-DSHARED=OFF" "-DSTATIC=ON")
+                 #:tests? #f))
+    (inputs `())
+    (native-inputs `(("alsa-lib", alsa-lib)
+                     ("glu", glu)
+                     ("libx11", libx11)
+                     ("libxrandr", libxrandr)
+                     ("libxi", libxi)
+                     ("libxinerama", libxinerama)
+                     ("libxcursor", libxcursor)
+                     ("mesa", mesa)
+                     ("pkg-config", pkg-config)))
+    (synopsis "C library for videogame programming")
+    (description "raylib is a library which defines many data structures and
+methods useful for programming small video games or video game prototypes in
+plain C.  It tries to provide simple bindings for OpenGL in an attempt to
+conceal technical complexities behind an easy-to-use interface.")
+    (home-page "https://www.raylib.com/")
+    (license license:zlib)))
-- 
2.27.0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]